@drayman/elements 1.25.0 → 1.26.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- (()=>{var aC={959:(q,De,V)=>{"use strict";q.exports=V(606)},550:(q,De,V)=>{"use strict";var J,Ue,tt,X=V(539),le="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function ze(){tt=!1}function z(Ne){if(Ne){if(Ne!==J){if(Ne.length!==le.length)throw new Error("Custom alphabet for shortid must be "+le.length+" unique characters. You submitted "+Ne.length+" characters: "+Ne);var Et=Ne.split("").filter(function(li,Vr,Qs){return Vr!==Qs.lastIndexOf(li)});if(Et.length)throw new Error("Custom alphabet for shortid must be "+le.length+" unique characters. These characters were not unique: "+Et.join(", "));J=Ne,ze()}}else J!==le&&(J=le,ze())}function Ie(){return tt||(tt=function Li(){J||z(le);for(var Vr,Ne=J.split(""),Et=[],li=X.nextValue();Ne.length>0;)li=X.nextValue(),Vr=Math.floor(li*Ne.length),Et.push(Ne.splice(Vr,1)[0]);return Et.join("")}())}q.exports={get:function Dl(){return J||le},characters:function Ct(Ne){return z(Ne),J},seed:function Ce(Ne){X.seed(Ne),Ue!==Ne&&(ze(),Ue=Ne)},lookup:function Zs(Ne){return Ie()[Ne]},shuffled:Ie}},119:(q,De,V)=>{"use strict";var tt,ze,X=V(535);V(550),q.exports=function z(Ct){var Ce="",Li=Math.floor(.001*(Date.now()-1567752802062));return Li===ze?tt++:(tt=0,ze=Li),Ce+=X(7),Ce+=X(Ct),tt>0&&(Ce+=X(tt)),Ce+X(Li)}},535:(q,De,V)=>{"use strict";var X=V(550),le=V(68),J=V(152);q.exports=function Ue(tt){for(var z,ze=0,Ct="";!z;)Ct+=J(le,X.get(),1),z=tt<Math.pow(16,ze+1),ze++;return Ct}},606:(q,De,V)=>{"use strict";var X=V(550),le=V(119),J=V(777),Ue=V(1)||0;function Ct(){return le(Ue)}q.exports=Ct,q.exports.generate=Ct,q.exports.seed=function tt(Ce){return X.seed(Ce),q.exports},q.exports.worker=function ze(Ce){return Ue=Ce,q.exports},q.exports.characters=function z(Ce){return void 0!==Ce&&X.characters(Ce),X.shuffled()},q.exports.isValid=J},777:(q,De,V)=>{"use strict";var X=V(550);q.exports=function le(J){return!(!J||"string"!=typeof J||J.length<6||new RegExp("[^"+X.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(J))}},68:q=>{"use strict";var De="object"==typeof window&&(window.crypto||window.msCrypto);q.exports=De&&De.getRandomValues?function(X){return De.getRandomValues(new Uint8Array(X))}:function(X){for(var le=[],J=0;J<X;J++)le.push(Math.floor(256*Math.random()));return le}},539:q=>{"use strict";var De=1;q.exports={nextValue:function V(){return(De=(9301*De+49297)%233280)/233280},seed:function X(le){De=le}}},1:q=>{"use strict";q.exports=0},152:q=>{q.exports=function(De,V,X){for(var le=(2<<Math.log(V.length-1)/Math.LN2)-1,J=-~(1.6*le*X/V.length),Ue="";;)for(var tt=De(J),ze=J;ze--;)if((Ue+=V[tt[ze]&le]||"").length===+X)return Ue}}},Lh={};function Vh(q){var De=Lh[q];if(void 0!==De)return De.exports;var V=Lh[q]={exports:{}};return aC[q](V,V.exports,Vh),V.exports}(()=>{"use strict";function q(n){return"function"==typeof n}let De=!1;const V={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else De&&console.log("RxJS: Back to a better error behavior. Thank you. <3");De=n},get useDeprecatedSynchronousErrorHandling(){return De}};function X(n){setTimeout(()=>{throw n},0)}const le={closed:!0,next(n){},error(n){if(V.useDeprecatedSynchronousErrorHandling)throw n;X(n)},complete(){}},J=Array.isArray||(n=>n&&"number"==typeof n.length);function Ue(n){return null!==n&&"object"==typeof n}const ze=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(q(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof ze?Ct(o.errors):[o]}}if(J(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ue(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof ze?e=e.concat(Ct(c.errors)):e.push(c)}}}if(e)throw new ze(e)}add(e){let t=e;if(!e)return z.EMPTY;switch(typeof e){case"function":t=new z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof z)){const s=t;t=new z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ct(n){return n.reduce((e,t)=>e.concat(t instanceof ze?t.errors:t),[])}z.EMPTY=((n=new z).closed=!0,n);const Ce="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ie extends z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=le;break;case 1:if(!e){this.destination=le;break}if("object"==typeof e){e instanceof Ie?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Zs(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Zs(this,e,t,i)}}[Ce](){return this}static create(e,t,i){const r=new Ie(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Zs extends Ie{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;q(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==le&&(o=Object.create(t),q(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;V.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=V;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):X(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;X(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);V.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),V.useDeprecatedSynchronousErrorHandling)throw i;X(i)}}__tryOrSetError(e,t,i){if(!V.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return V.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(X(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Et="function"==typeof Symbol&&Symbol.observable||"@@observable";function li(n){return n}let ge=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Ne(n,e,t){if(n){if(n instanceof Ie)return n;if(n[Ce])return n[Ce]()}return n||e||t?new Ie(n,e,t):new Ie(le)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||V.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),V.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){V.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Dl(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof Ie?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=Bh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Et](){return this}pipe(...t){return 0===t.length?this:function Qs(n){return 0===n.length?li:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=Bh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function Bh(n){if(n||(n=V.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Vi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class jh extends z{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class Hh extends Ie{constructor(e){super(e),this.destination=e}}let Ee=(()=>{class n extends ge{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ce](){return new Hh(this)}lift(t){const i=new $h(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Vi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Vi;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Vi;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Vi;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Vi;return this.hasError?(t.error(this.thrownError),z.EMPTY):this.isStopped?(t.complete(),z.EMPTY):(this.observers.push(t),new jh(this,t))}asObservable(){const t=new ge;return t.source=this,t}}return n.create=(e,t)=>new $h(e,t),n})();class $h extends Ee{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):z.EMPTY}}function Br(n){return n&&"function"==typeof n.schedule}function $n(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new lC(n,e))}}class lC{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new cC(e,this.project,this.thisArg))}}class cC extends Ie{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const Uh=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Xs=function dC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),zh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Gh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const Wh=n=>{if(n&&"function"==typeof n[Et])return(n=>e=>{const t=n[Et]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(zh(n))return Uh(n);if(Gh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,X),e))(n);if(n&&"function"==typeof n[Xs])return(n=>e=>{const t=n[Xs]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ue(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Cl(n,e){return new ge(t=>{const i=new z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function jr(n,e){return e?function vC(n,e){if(null!=n){if(function _C(n){return n&&"function"==typeof n[Et]}(n))return function pC(n,e){return new ge(t=>{const i=new z;return i.add(e.schedule(()=>{const r=n[Et]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Gh(n))return function mC(n,e){return new ge(t=>{const i=new z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(zh(n))return Cl(n,e);if(function yC(n){return n&&"function"==typeof n[Xs]}(n)||"string"==typeof n)return function gC(n,e){if(!n)throw new Error("Iterable cannot be null");return new ge(t=>{const i=new z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Xs](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof ge?n:new ge(Wh(n))}class Js extends Ie{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class eo extends Ie{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function to(n,e){if(!e.closed)return n instanceof ge?n.subscribe(e):Wh(n)(e)}function qh(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(qh((r,s)=>jr(n(r,s)).pipe($n((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new bC(n,t)))}class bC{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new DC(e,this.project,this.concurrent))}}class DC extends eo{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Js(this),i=this.destination;i.add(t);const r=to(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Kh(n=Number.POSITIVE_INFINITY){return qh(li,n)}function Yh(n,e){return e?Cl(n,e):new ge(Uh(n))}function Un(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return Br(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof ge?n[0]:Kh(e)(Yh(n,t))}function Zh(){return function(e){return e.lift(new CC(e))}}class CC{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new EC(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class EC extends Ie{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class wC extends ge{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new z,e.add(this.source.subscribe(new SC(this.getSubject(),this))),e.closed&&(this._connection=null,e=z.EMPTY)),e}refCount(){return Zh()(this)}}const MC=(()=>{const n=wC.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class SC extends Hh{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class IC{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function FC(){return new Ee}function ce(n){for(let e in n)if(n[e]===ce)return e;throw Error("Could not find renamed property on target object.")}function El(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ne(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ne).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function wl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const xC=ce({__forward_ref__:ce});function ue(n){return n.__forward_ref__=ue,n.toString=function(){return ne(this())},n}function H(n){return Qh(n)?n():n}function Qh(n){return"function"==typeof n&&n.hasOwnProperty(xC)&&n.__forward_ref__===ue}class M extends Error{constructor(e,t){super(function Ml(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function k(n){return"string"==typeof n?n:null==n?"":String(n)}function nt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():k(n)}function no(n,e){const t=e?` in ${e}`:"";throw new M(-201,`No provider for ${nt(n)} found${t}`)}function Mt(n,e){null==n&&function ie(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function O(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function _e(n){return{providers:n.providers||[],imports:n.imports||[]}}function Sl(n){return Xh(n,io)||Xh(n,ef)}function Xh(n,e){return n.hasOwnProperty(e)?n[e]:null}function Jh(n){return n&&(n.hasOwnProperty(Al)||n.hasOwnProperty(BC))?n[Al]:null}const io=ce({\u0275prov:ce}),Al=ce({\u0275inj:ce}),ef=ce({ngInjectableDef:ce}),BC=ce({ngInjectorDef:ce});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Tl;function zn(n){const e=Tl;return Tl=n,e}function tf(n,e,t){const i=Sl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&B.Optional?null:void 0!==e?e:void no(ne(n),"Injector")}function Gn(n){return{toString:n}.toString()}var Yt=(()=>((Yt=Yt||{})[Yt.OnPush=0]="OnPush",Yt[Yt.Default=1]="Default",Yt))(),Zt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Zt||(Zt={})),Zt))();const HC="undefined"!=typeof globalThis&&globalThis,$C="undefined"!=typeof window&&window,UC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,se=HC||"undefined"!=typeof global&&global||$C||UC,Bi={},de=[],ro=ce({\u0275cmp:ce}),Il=ce({\u0275dir:ce}),Fl=ce({\u0275pipe:ce}),nf=ce({\u0275mod:ce}),In=ce({\u0275fac:ce}),Hr=ce({__NG_ELEMENT_ID__:ce});let zC=0;function ci(n){return Gn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Yt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||de,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Zt.Emulated,id:"c",styles:n.styles||de,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=zC++,i.inputs=lf(n.inputs,t),i.outputs=lf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(rf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(sf):null,i})}function rf(n){return it(n)||function Wn(n){return n[Il]||null}(n)}function sf(n){return function ui(n){return n[Fl]||null}(n)}const af={};function we(n){return Gn(()=>{const e={type:n.type,bootstrap:n.bootstrap||de,declarations:n.declarations||de,imports:n.imports||de,exports:n.exports||de,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(af[n.id]=n.type),e})}function lf(n,e){if(null==n)return Bi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const I=ci;function it(n){return n[ro]||null}function Vt(n,e){const t=n[nf]||null;if(!t&&!0===e)throw new Error(`Type ${ne(n)} does not have '\u0275mod' property.`);return t}const j=11;function mn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Xt(n){return Array.isArray(n)&&!0===n[1]}function Rl(n){return 0!=(8&n.flags)}function lo(n){return 2==(2&n.flags)}function co(n){return 1==(1&n.flags)}function Jt(n){return null!==n.template}function ZC(n){return 0!=(512&n[2])}function pi(n,e){return n.hasOwnProperty(In)?n[In]:null}class uf{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function en(){return df}function df(n){return n.type.prototype.ngOnChanges&&(n.setInput=eE),JC}function JC(){const n=ff(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Bi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function eE(n,e,t,i){const r=ff(n)||function tE(n,e){return n[hf]=e}(n,{previous:Bi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new uf(l&&l.currentValue,e,o===Bi),n[i]=e}en.ngInherit=!0;const hf="__ngSimpleChanges__";function ff(n){return n[hf]||null}let Vl;function Oe(n){return!!n.listen}const pf={createRenderer:(n,e)=>function Bl(){return void 0!==Vl?Vl:"undefined"!=typeof document?document:void 0}()};function Le(n){for(;Array.isArray(n);)n=n[0];return n}function uo(n,e){return Le(e[n])}function At(n,e){return Le(e[n.index])}function jl(n,e){return n.data[e]}function Tt(n,e){const t=e[n];return mn(t)?t:t[0]}function mf(n){return 4==(4&n[2])}function Hl(n){return 128==(128&n[2])}function qn(n,e){return null==e?null:n[e]}function gf(n){n[18]=0}function $l(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const P={lFrame:Mf(null),bindingsEnabled:!0};function yf(){return P.bindingsEnabled}function v(){return P.lFrame.lView}function Z(){return P.lFrame.tView}function Ul(n){return P.lFrame.contextLView=n,n[8]}function Ge(){let n=vf();for(;null!==n&&64===n.type;)n=n.parent;return n}function vf(){return P.lFrame.currentTNode}function gn(n,e){const t=P.lFrame;t.currentTNode=n,t.isParent=e}function zl(){return P.lFrame.isParent}function Gl(){P.lFrame.isParent=!1}function Gi(){return P.lFrame.bindingIndex++}function yE(n,e){const t=P.lFrame;t.bindingIndex=t.bindingRootIndex=n,Wl(e)}function Wl(n){P.lFrame.currentDirectiveIndex=n}function Cf(){return P.lFrame.currentQueryIndex}function Kl(n){P.lFrame.currentQueryIndex=n}function bE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function Ef(n,e,t){if(t&B.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&B.Host||(r=bE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=P.lFrame=wf();return i.currentTNode=e,i.lView=n,!0}function fo(n){const e=wf(),t=n[1];P.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function wf(){const n=P.lFrame,e=null===n?null:n.child;return null===e?Mf(n):e}function Mf(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Sf(){const n=P.lFrame;return P.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Af=Sf;function po(){const n=Sf();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ht(){return P.lFrame.selectedIndex}function Kn(n){P.lFrame.selectedIndex=n}function Me(){const n=P.lFrame;return jl(n.tView,n.selectedIndex)}function mo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function go(n,e,t){Tf(n,e,3,t)}function _o(n,e,t,i){(3&n[2])===t&&Tf(n,e,t,i)}function Yl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function Tf(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(IE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function IE(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class Wr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function yo(n,e,t){const i=Oe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];Ql(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function If(n){return 3===n||4===n||6===n}function Ql(n){return 64===n.charCodeAt(0)}function vo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Ff(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Ff(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function Of(n){return-1!==n}function Wi(n){return 32767&n}function qi(n,e){let t=function NE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Xl=!0;function bo(n){const e=Xl;return Xl=n,e}let kE=0;function Kr(n,e){const t=ec(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Jl(i.data,n),Jl(e,null),Jl(i.blueprint,null));const r=Do(n,e),s=n.injectorIndex;if(Of(r)){const o=Wi(r),a=qi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Jl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function ec(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Do(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Co(n,e,t){!function PE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty(Hr)&&(i=t[Hr]),null==i&&(i=t[Hr]=kE++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function Nf(n,e,t){if(t&B.Optional)return n;no(e,"NodeInjector")}function kf(n,e,t,i){if(t&B.Optional&&void 0===i&&(i=null),0==(t&(B.Self|B.Host))){const r=n[9],s=zn(void 0);try{return r?r.get(e,i,t&B.Optional):tf(e,i,t&B.Optional)}finally{zn(s)}}return Nf(i,e,t)}function Pf(n,e,t,i=B.Default,r){if(null!==n){const s=function jE(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty(Hr)?n[Hr]:void 0;return"number"==typeof e?e>=0?255&e:VE:e}(t);if("function"==typeof s){if(!Ef(e,n,i))return i&B.Host?Nf(r,t,i):kf(e,t,i,r);try{const o=s(i);if(null!=o||i&B.Optional)return o;no(t)}finally{Af()}}else if("number"==typeof s){let o=null,a=ec(n,e),l=-1,c=i&B.Host?e[16][6]:null;for((-1===a||i&B.SkipSelf)&&(l=-1===a?Do(n,e):e[a+8],-1!==l&&Bf(i,!1)?(o=e[1],a=Wi(l),e=qi(l,e)):a=-1);-1!==a;){const u=e[1];if(Vf(s,a,u.data)){const d=BE(a,e,t,o,i,c);if(d!==Lf)return d}l=e[a+8],-1!==l&&Bf(i,e[1].data[a+8]===c)&&Vf(s,a,e)?(o=u,a=Wi(l),e=qi(l,e)):a=-1}}}return kf(e,t,i,r)}const Lf={};function VE(){return new Ki(Ge(),v())}function BE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Eo(a,o,t,null==i?lo(a)&&Xl:i!=o&&0!=(3&a.type),r&B.Host&&s===a);return null!==u?Yr(e,o,u,a):Lf}function Eo(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Jt(f)&&f.type===t)return l}return null}function Yr(n,e,t,i){let r=n[t];const s=e.data;if(function FE(n){return n instanceof Wr}(r)){const o=r;o.resolving&&function RC(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new M(-200,`Circular dependency in DI detected for ${n}${t}`)}(nt(s[t]));const a=bo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?zn(o.injectImpl):null;Ef(n,i,B.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function TE(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=df(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&zn(l),bo(a),o.resolving=!1,Af()}}return r}function Vf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function Bf(n,e){return!(n&B.Self||n&B.Host&&e)}class Ki{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Pf(this._tNode,this._lView,e,i,t)}}function Ve(n){return Gn(()=>{const e=n.prototype.constructor,t=e[In]||tc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[In]||tc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function tc(n){return Qh(n)?()=>{const e=tc(H(n));return e&&e()}:pi(n)}const Zi="__parameters__";function Xi(n,e,t){return Gn(()=>{const i=function nc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Zi)?l[Zi]:Object.defineProperty(l,Zi,{value:[]})[Zi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class A{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ht(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ht(i,e)):e!==n&&e.push(i)}return e}function _n(n,e){n.forEach(t=>Array.isArray(t)?_n(t,e):e(t))}function Hf(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Mo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Xr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function It(n,e,t){let i=Ji(n,e);return i>=0?n[1|i]=t:(i=~i,function zE(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function rc(n,e){const t=Ji(n,e);if(t>=0)return n[1|t]}function Ji(n,e){return function zf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const Jr={},oc="__NG_DI_FLAG__",Ao="ngTempTokenPath",QE=/\n/gm,Wf="__source",JE=ce({provide:String,useValue:ce});let es;function qf(n){const e=es;return es=n,e}function ew(n,e=B.Default){if(void 0===es)throw new M(203,"");return null===es?tf(n,void 0,e):es.get(n,e&B.Optional?null:void 0,e)}function D(n,e=B.Default){return(function jC(){return Tl}()||ew)(H(n),e)}const ac=D;function lc(n){const e=[];for(let t=0;t<n.length;t++){const i=H(n[t]);if(Array.isArray(i)){if(0===i.length)throw new M(900,"");let r,s=B.Default;for(let o=0;o<i.length;o++){const a=i[o],l=tw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(D(r,s))}else e.push(D(i))}return e}function ts(n,e){return n[oc]=e,n.prototype[oc]=e,n}function tw(n){return n[oc]}const To=ts(Xi("Optional"),8),Io=ts(Xi("SkipSelf"),4);var Ft=(()=>((Ft=Ft||{})[Ft.Important=1]="Important",Ft[Ft.DashCase=2]="DashCase",Ft))();const tp="__ngContext__";function st(n,e){n[tp]=e}function hc(n){const e=function is(n){return n[tp]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function pc(n,e){return undefined(n,e)}function rs(n){const e=n[3];return Xt(e)?e[3]:e}function mc(n){return lp(n[13])}function gc(n){return lp(n[4])}function lp(n){for(;null!==n&&!Xt(n);)n=n[4];return n}function tr(n,e,t,i,r){if(null!=i){let s,o=!1;Xt(i)?s=i:mn(i)&&(o=!0,i=i[0]);const a=Le(i);0===n&&null!==t?null==r?pp(e,t,a):mi(e,t,a,r||null,!0):1===n&&null!==t?mi(e,t,a,r||null,!0):2===n?function Ec(n,e,t){const i=Oo(n,e);i&&function xw(n,e,t,i){Oe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function kw(n,e,t,i,r){const s=t[7];s!==Le(t)&&tr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];ss(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function yc(n,e,t){if(Oe(n))return n.createElement(e,t);{const i=null!==t?function sE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function up(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,$l(r,-1)),t.splice(i,1)}function vc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&up(r,i),e>0&&(n[t-1][4]=i[4]);const s=Mo(n,10+e);!function ww(n,e){ss(n,e,e[j],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function dp(n,e){if(!(256&e[2])){const t=e[j];Oe(t)&&t.destroyNode&&ss(n,e,t,3,null,null),function Aw(n){let e=n[13];if(!e)return bc(n[1],n);for(;e;){let t=null;if(mn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)mn(e)&&bc(e[1],e),e=e[3];null===e&&(e=n),mn(e)&&bc(e[1],e),t=e&&e[4]}e=t}}(e)}}function bc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function Ow(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof Wr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function Fw(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Le(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Oe(e[j])&&e[j].destroy();const t=e[17];if(null!==t&&Xt(e[3])){t!==e[3]&&up(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function hp(n,e,t){return function fp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Zt.None||r===Zt.Emulated)return null}return At(i,t)}(n,e.parent,t)}function mi(n,e,t,i,r){Oe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function pp(n,e,t){Oe(n)?n.appendChild(e,t):e.appendChild(t)}function mp(n,e,t,i,r){null!==i?mi(n,e,t,i,r):pp(n,e,t)}function Oo(n,e){return Oe(n)?n.parentNode(e):e.parentNode}function gp(n,e,t){return yp(n,e,t)}let yp=function _p(n,e,t){return 40&n.type?At(n,t):null};function xo(n,e,t,i){const r=hp(n,i,e),s=e[j],a=gp(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)mp(s,r,t[l],a,!1);else mp(s,r,t,a,!1)}function Ro(n,e){if(null!==e){const t=e.type;if(3&t)return At(e,n);if(4&t)return Cc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Ro(n,i);{const r=n[e.index];return Xt(r)?Cc(-1,r):Le(r)}}if(32&t)return pc(e,n)()||Le(n[e.index]);{const i=bp(n,e);return null!==i?Array.isArray(i)?i[0]:Ro(rs(n[16]),i):Ro(n,e.next)}}return null}function bp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Cc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Ro(i,r)}return e[7]}function wc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&st(Le(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)wc(n,e,t.child,i,r,s,!1),tr(e,n,r,a,s);else if(32&l){const c=pc(t,i);let u;for(;u=c();)tr(e,n,r,u,s);tr(e,n,r,a,s)}else 16&l?Dp(n,e,i,t,r,s):tr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function ss(n,e,t,i,r,s){wc(t,i,n.firstChild,e,r,s,!1)}function Dp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)tr(e,n,r,l[c],s);else wc(n,e,l,o[3],r,s,!0)}function Cp(n,e,t){Oe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Mc(n,e,t){Oe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Rc(n){return n.ngOriginalError}function fM(n,...e){n.error(...e)}class cs{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function hM(n){return n&&n.ngErrorLogger||fM}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Rc(e);for(;t&&Rc(t);)t=Rc(t);return t||null}}const bM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(se))();function vn(n){return n instanceof Function?n():n}function Lp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Vp="ng-template";function wM(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Lp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function Bp(n){return 4===n.type&&n.value!==Vp}function MM(n,e,t){return e===(4!==n.type||t?n.value:Vp)}function SM(n,e,t){let i=4;const r=n.attrs||[],s=function IM(n){for(let e=0;e<n.length;e++)if(If(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!MM(n,l,t)||""===l&&1===e.length){if(tn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!wM(n.attrs,c,t)){if(tn(i))return!1;o=!0}continue}const d=AM(8&i?"class":l,r,Bp(n),t);if(-1===d){if(tn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Lp(f,c,0)||2&i&&c!==h){if(tn(i))return!1;o=!0}}}}else{if(!o&&!tn(i)&&!tn(l))return!1;if(o&&tn(l))continue;o=!1,i=l|1&i}}return tn(i)||o}function tn(n){return 0==(1&n)}function AM(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function FM(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function jp(n,e,t=!1){for(let i=0;i<e.length;i++)if(SM(n,e[i],t))return!0;return!1}function OM(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function Hp(n,e){return n?":not("+e.trim()+")":e}function xM(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!tn(o)&&(e+=Hp(s,r),r=""),i=o,s=s||!tn(i);t++}return""!==r&&(e+=Hp(s,r)),e}const L={};function oe(n){$p(Z(),v(),ht()+n,!1)}function $p(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&go(e,s,t)}else{const s=n.preOrderHooks;null!==s&&_o(e,s,0,t)}Kn(t)}function Vo(n,e){return n<<17|e<<2}function nn(n){return n>>17&32767}function Nc(n){return 2|n}function xn(n){return(131068&n)>>2}function kc(n,e){return-131069&n|e<<2}function Pc(n){return 1|n}function Jp(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Kl(r),o.contentQueries(2,e[s],s)}}}function us(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,gf(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[j]=a||n&&n[j],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function ir(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Gc(n,e,t,i,r){const s=vf(),o=zl(),l=n.data[e]=function ZM(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function _E(){return P.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Gr(){const n=P.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return gn(s,!0),s}function rr(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function ds(n,e,t){fo(e);try{const i=n.viewQuery;null!==i&&eu(1,i,t);const r=n.template;null!==r&&em(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&Jp(n,e),n.staticViewQueries&&eu(2,n.viewQuery,t);const s=n.components;null!==s&&function qM(n,e){for(let t=0;t<e.length;t++)pS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,po()}}function sr(n,e,t,i){const r=e[2];if(256!=(256&r)){fo(e);try{gf(e),function bf(n){return P.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&em(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&go(e,c,null)}else{const c=n.preOrderHooks;null!==c&&_o(e,c,0,null),Yl(e,0)}if(function hS(n){for(let e=mc(n);null!==e;e=gc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&$l(s,1),r[2]|=1024}}}(e),function dS(n){for(let e=mc(n);null!==e;e=gc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Hl(i)&&sr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&Jp(n,e),o){const c=n.contentCheckHooks;null!==c&&go(e,c)}else{const c=n.contentHooks;null!==c&&_o(e,c,1),Yl(e,1)}!function GM(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Kn(~r);else{const s=r,o=t[++i],a=t[++i];yE(o,s),a(2,e[s])}}}finally{Kn(-1)}}(n,e);const a=n.components;null!==a&&function WM(n,e){for(let t=0;t<e.length;t++)fS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&eu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&go(e,c)}else{const c=n.viewHooks;null!==c&&_o(e,c,2),Yl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,$l(e[3],-1))}finally{po()}}}function KM(n,e,t,i){const r=e[10],o=mf(e);try{!o&&r.begin&&r.begin(),o&&ds(n,e,i),sr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function em(n,e,t,i,r){const s=ht(),o=2&i;try{Kn(-1),o&&e.length>20&&$p(n,e,20,!1),t(i,r)}finally{Kn(s)}}function tm(n,e,t){if(Rl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Wc(n,e,t){!yf()||(function iS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Kr(t,e),st(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Jt(l);c&&lS(e,t,l);const u=Yr(e,n,a,t);st(u,e),null!==o&&cS(0,a-r,u,l,0,o),c&&(Tt(t.index,e)[8]=u)}}(n,e,t,At(t,e)),128==(128&t.flags)&&function rS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function vE(){return P.lFrame.currentDirectiveIndex}();try{Kn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Wl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&cm(c,u)}}finally{Kn(-1),Wl(a)}}(n,e,t))}function qc(n,e,t=At){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function nm(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Ho(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Ho(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function YM(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:L);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function sm(n,e,t,i){const r=mm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&gm(n).push(i,r.length-1))}function om(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Ot(n,e,t,i,r,s,o,a){const l=At(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(vm(n,t,u,i,r),lo(e)&&function JM(n,e){const t=Tt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function XM(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Oe(s)?s.setProperty(l,i,r):Ql(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Kc(n,e,t,i){let r=!1;if(yf()){const s=function sS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];jp(t,o.selectors,!1)&&(r||(r=[]),Co(Kr(t,e),n,o.type),Jt(o)?(um(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,dm(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=rr(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=vo(t.mergedAttrs,d.hostAttrs),hm(n,t,e,c,d),aS(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function QM(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||Bp(e)?null:uS(d,s);o.push(h),a=om(d,c,a),l=om(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function oS(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new M(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=vo(t.mergedAttrs,t.attrs),r}function lm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function nS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function cm(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function um(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function aS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Jt(e)&&(t[""]=n)}}function dm(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function hm(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=pi(r.type)),o=new Wr(s,Jt(r),null);n.blueprint[i]=o,t[i]=o,lm(n,e,0,i,rr(n,t,r.hostVars,L),r)}function lS(n,e,t){const i=At(e,n),r=nm(t),s=n[10],o=$o(n,us(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function bn(n,e,t,i,r,s){const o=At(n,e);!function Yc(n,e,t,i,r,s,o){if(null==s)Oe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?k(s):o(s,i||"",r);Oe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[j],o,s,n.value,t,i,r)}function cS(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function uS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function fm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function fS(n,e){const t=Tt(e,n);if(Hl(t)){const i=t[1];80&t[2]?sr(i,t,i.template,t[8]):t[5]>0&&Zc(t)}}function Zc(n){for(let i=mc(n);null!==i;i=gc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];sr(o,s,o.template,s[8])}else s[5]>0&&Zc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Tt(t[i],n);Hl(r)&&r[5]>0&&Zc(r)}}function pS(n,e){const t=Tt(e,n),i=t[1];(function mS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),ds(i,t,t[8])}function $o(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Qc(n){for(;n;){n[2]|=64;const e=rs(n);if(ZC(n)&&!e)return n;n=e}return null}function pm(n){!function Xc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=hc(t),r=i[1];KM(r,i,r.template,t)}}(n[8])}function eu(n,e,t){Kl(0),e(n,t)}const _S=(()=>Promise.resolve(null))();function mm(n){return n[7]||(n[7]=[])}function gm(n){return n.cleanup||(n.cleanup=[])}function ym(n,e){const t=n[9],i=t?t.get(cs,null):null;i&&i.handleError(e)}function vm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Rn(n,e,t){const i=uo(e,n);!function cp(n,e,t){Oe(n)?n.setValue(e,t):e.textContent=t}(n[j],i,t)}function Uo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=wl(r,a):2==s&&(i=wl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const tu=new A("INJECTOR",-1);class bm{get(e,t=Jr){if(t===Jr){const i=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw i.name="NullInjectorError",i}return t}}const nu=new A("Set Injector scope."),hs={},bS={};let iu;function Dm(){return void 0===iu&&(iu=new bm),iu}function Cm(n,e=null,t=null,i){const r=Em(n,e,t,i);return r._resolveInjectorDefTypes(),r}function Em(n,e=null,t=null,i){return new DS(n,t,e||Dm(),i)}class DS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&_n(t,a=>this.processProvider(a,e,t)),_n([e],a=>this.processInjectorType(a,[],s)),this.records.set(tu,or(void 0,this));const o=this.records.get(nu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ne(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=Jr,i=B.Default){this.assertNotDestroyed();const r=qf(this),s=zn(void 0);try{if(!(i&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function IS(n){return"function"==typeof n||"object"==typeof n&&n instanceof A}(e)&&Sl(e);a=l&&this.injectableDefInScope(l)?or(ru(e),hs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&B.Self?Dm():this.parent).get(e,t=i&B.Optional&&t===Jr?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ao]=o[Ao]||[]).unshift(ne(e)),r)throw o;return function nw(n,e,t,i){const r=n[Ao];throw e[Wf]&&r.unshift(e[Wf]),n.message=function iw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ne(e);if(Array.isArray(e))r=e.map(ne).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ne(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(QE,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ao]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{zn(s),qf(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ne(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processInjectorType(e,t,i){if(!(e=H(e)))return!1;let r=Jh(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=Jh(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{_n(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];_n(f,p=>this.processProvider(p,h,f||de))}}this.injectorDefTypes.add(o);const l=pi(o)||(()=>new o);this.records.set(o,or(l,hs));const c=r.providers;if(null!=c&&!a){const u=e;_n(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=ar(e=H(e))?e:H(e&&e.provide);const s=function ES(n,e,t){return Mm(n)?or(void 0,n.useValue):or(wm(n),hs)}(e);if(ar(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=or(void 0,hs,!0),o.factory=()=>lc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===hs&&(t.value=bS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function TS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=H(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ru(n){const e=Sl(n),t=null!==e?e.factory:pi(n);if(null!==t)return t;if(n instanceof A)throw new M(204,!1);if(n instanceof Function)return function CS(n){const e=n.length;if(e>0)throw Xr(e,"?"),new M(204,!1);const t=function LC(n){const e=n&&(n[io]||n[ef]);if(e){const t=function VC(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new M(204,!1)}function wm(n,e,t){let i;if(ar(n)){const r=H(n);return pi(r)||ru(r)}if(Mm(n))i=()=>H(n.useValue);else if(function MS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...lc(n.deps||[]));else if(function wS(n){return!(!n||!n.useExisting)}(n))i=()=>D(H(n.useExisting));else{const r=H(n&&(n.useClass||n.provide));if(!function AS(n){return!!n.deps}(n))return pi(r)||ru(r);i=()=>new r(...lc(n.deps))}return i}function or(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Mm(n){return null!==n&&"object"==typeof n&&JE in n}function ar(n){return"function"==typeof n}let pt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Cm({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Cm({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=Jr,n.NULL=new bm,n.\u0275prov=O({token:n,providedIn:"any",factory:()=>D(tu)}),n.__NG_ELEMENT_ID__=-1,n})();function LS(n,e){mo(hc(n)[1],Ge())}function K(n){let e=function Lm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Jt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=au(n.inputs),o.declaredInputs=au(n.declaredInputs),o.outputs=au(n.outputs);const a=r.hostBindings;a&&HS(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&BS(n,l),c&&jS(n,c),El(n.inputs,r.inputs),El(n.declaredInputs,r.declaredInputs),El(n.outputs,r.outputs),Jt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===K&&(t=!1)}}e=Object.getPrototypeOf(e)}!function VS(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=vo(r.hostAttrs,t=vo(t,r.hostAttrs))}}(i)}function au(n){return n===Bi?{}:n===de?[]:n}function BS(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function jS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function HS(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let zo=null;function lr(){if(!zo){const n=se.Symbol;if(n&&n.iterator)zo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zo=i)}}}return zo}function fs(n){return!!lu(n)&&(Array.isArray(n)||!(n instanceof Map)&&lr()in n)}function lu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ot(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function at(n,e,t,i){const r=v();return ot(r,Gi(),e)&&(Z(),bn(Me(),r,n,e,t,i)),at}function Qe(n,e,t,i,r,s,o,a){const l=v(),c=Z(),u=n+20,d=c.firstCreatePass?function KS(n,e,t,i,r,s,o,a,l){const c=e.consts,u=ir(e,n,4,o||null,qn(c,a));Kc(e,t,u,qn(c,l)),mo(e,u);const d=u.tViews=Ho(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];gn(d,!1);const h=l[j].createComment("");xo(c,l,h,d),st(h,l),$o(l,l[u]=fm(h,l,h,d)),co(d)&&Wc(c,l,d),null!=o&&qc(l,d,a)}function _(n,e=B.Default){const t=v();return null===t?D(n,e):Pf(Ge(),t,H(n),e)}function ee(n,e,t){const i=v();return ot(i,Gi(),e)&&Ot(Z(),Me(),i,n,e,i[j],t,!1),ee}function fu(n,e,t,i,r){const o=r?"class":"style";vm(n,t,e.inputs[o],o,i)}function ae(n,e,t,i){const r=v(),s=Z(),o=20+n,a=r[j],l=r[o]=yc(a,e,function AE(){return P.lFrame.currentNamespace}()),c=s.firstCreatePass?function g0(n,e,t,i,r,s,o){const a=e.consts,c=ir(e,n,2,r,qn(a,s));return Kc(e,t,c,qn(a,o)),null!==c.attrs&&Uo(c,c.attrs,!1),null!==c.mergedAttrs&&Uo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];gn(c,!0);const u=c.mergedAttrs;null!==u&&yo(a,l,u);const d=c.classes;null!==d&&Mc(a,l,d);const h=c.styles;return null!==h&&Cp(a,l,h),64!=(64&c.flags)&&xo(s,r,l,c),0===function dE(){return P.lFrame.elementDepthCount}()&&st(l,r),function hE(){P.lFrame.elementDepthCount++}(),co(c)&&(Wc(s,r,c),tm(s,c,r)),null!==i&&qc(r,c),ae}function he(){let n=Ge();zl()?Gl():(n=n.parent,gn(n,!1));const e=n;!function fE(){P.lFrame.elementDepthCount--}();const t=Z();return t.firstCreatePass&&(mo(t,n),Rl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function xE(n){return 0!=(16&n.flags)}(e)&&fu(t,e,v(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function RE(n){return 0!=(32&n.flags)}(e)&&fu(t,e,v(),e.stylesWithoutHost,!1),he}function Jn(n,e,t,i){return ae(n,e,t,i),he(),Jn}function ms(n,e,t){const i=v(),r=Z(),s=n+20,o=r.firstCreatePass?function _0(n,e,t,i,r){const s=e.consts,o=qn(s,i),a=ir(e,n,8,"ng-container",o);return null!==o&&Uo(a,o,!0),Kc(e,t,a,qn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];gn(o,!0);const a=i[s]=i[j].createComment("");return xo(r,i,a,o),st(a,i),co(o)&&(Wc(r,i,o),tm(r,o,i)),null!=t&&qc(i,o),ms}function gs(){let n=Ge();const e=Z();return zl()?Gl():(n=n.parent,gn(n,!1)),e.firstCreatePass&&(mo(e,n),Rl(n)&&e.queries.elementEnd(n)),gs}function pu(){return v()}function qo(n){return!!n&&"function"==typeof n.then}const ag=function og(n){return!!n&&"function"==typeof n.subscribe};function qe(n,e,t,i){const r=v(),s=Z(),o=Ge();return function cg(n,e,t,i,r,s,o,a){const l=co(i),u=n.firstCreatePass&&gm(n),d=e[8],h=mm(e);let f=!0;if(3&i.type||a){const y=At(i,e),b=a?a(y):y,g=h.length,C=a?T=>a(Le(T[i.index])):i.index;if(Oe(t)){let T=null;if(!a&&l&&(T=function y0(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=mu(i,e,d,s,!1);const U=t.listen(b,r,s);h.push(s,U),u&&u.push(r,C,g,g+1)}}else s=mu(i,e,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,C,g,o)}else s=mu(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const be=e[m[b]][m[b+1]].subscribe(s),Ae=h.length;h.push(s,be),u&&u.push(r,i.index,Ae,-(Ae+1))}}}(s,r,r[j],o,n,e,!!t,i),qe}function ug(n,e,t,i){try{return!1!==t(i)}catch(r){return ym(n,r),!1}}function mu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Tt(n.index,e):e;0==(32&e[2])&&Qc(a);let l=ug(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=ug(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function lt(n=1){return function DE(n){return(P.lFrame.contextLView=function CE(n,e){for(;n>0;)e=e[15],n--;return e}(n,P.lFrame.contextLView))[8]}(n)}function v0(n,e){let t=null;const i=function TM(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?jp(n,s,!0):OM(i,s))return r}else t=r}return t}function Ko(n){const e=v()[16][6];if(!e.projection){const i=e.projection=Xr(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?v0(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function sn(n,e=0,t){const i=v(),r=Z(),s=ir(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Gl(),64!=(64&s.flags)&&function Nw(n,e,t){Dp(e[j],0,e,t,hp(n,t,e),gp(t.parent||e[6],t,e))}(r,i,s)}function bg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?nn(s):xn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];C0(n[a],e)&&(l=!0,n[a+1]=i?Pc(u):Nc(u)),a=i?nn(u):xn(u)}l&&(n[t+1]=i?Nc(s):Pc(s))}function C0(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Ji(n,e)>=0}function Ut(n,e){return function on(n,e,t,i){const r=v(),s=Z(),o=function On(n){const e=P.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Ig(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[ht()],o=function Tg(n,e){return e>=n.expandoStartIndex}(n,t);(function Rg(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function O0(n,e,t,i){const r=function ql(n){const e=P.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=_s(t=_u(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=_u(r,n,e,t,i),null===s){let l=function x0(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==xn(i))return n[nn(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=_u(null,n,e,l[1],i),l=_s(l,e.attrs,i),function R0(n,e,t,i){n[nn(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function N0(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=_s(i,n[s].hostAttrs,t);return _s(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function b0(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=nn(o),l=xn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Ji(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=nn(n[a+1]);n[i+1]=Vo(h,a),0!==h&&(n[h+1]=kc(n[h+1],i)),n[a+1]=function kM(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Vo(a,0),0!==a&&(n[a+1]=kc(n[a+1],i)),a=i;else n[i+1]=Vo(l,0),0===a?a=i:n[l+1]=kc(n[l+1],i),l=i;c&&(n[i+1]=Nc(n[i+1])),bg(n,u,i,!0),bg(n,u,i,!1),function D0(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Ji(s,e)>=0&&(t[i+1]=Pc(t[i+1]))}(e,u,n,i,s),o=Vo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==L&&ot(r,o,e)&&function Og(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Yo(function Gp(n){return 1==(1&n)}(c)?xg(l,e,t,r,xn(c),o):void 0)||(Yo(s)||function zp(n){return 2==(2&n)}(c)&&(s=xg(l,null,t,r,a,o)),function Pw(n,e,t,i,r){const s=Oe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Ft.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Ft.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,uo(ht(),t),r,s))}(s,s.data[ht()],r,r[j],n,r[o+1]=function L0(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ne(function Zn(n){return n instanceof class Sp{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Ut}function _u(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=_s(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function _s(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),It(n,o,!!t||e[++s]))}return void 0===n?null:n}function xg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===L&&(h=d?de:void 0);let f=d?rc(h,i):u===i?h:void 0;if(c&&!Yo(f)&&(f=rc(l,i)),Yo(f)&&(a=f,o))return a;const p=n[r+1];r=o?nn(p):xn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=rc(l,i))}return a}function Yo(n){return void 0!==n}function Nn(n,e=""){const t=v(),i=Z(),r=n+20,s=i.firstCreatePass?ir(i,r,1,e,null):i.data[r],o=t[r]=function _c(n,e){return Oe(n)?n.createText(e):n.createTextNode(e)}(t[j],e);xo(i,t,o,s),gn(s,!1)}function br(n){return Dr("",n,""),br}function Dr(n,e,t){const i=v(),r=function ur(n,e,t,i){return ot(n,Gi(),t)?e+k(t)+i:L}(i,n,e,t);return r!==L&&Rn(i,ht(),r),Dr}function Zo(n,e,t){const i=v();return ot(i,Gi(),e)&&Ot(Z(),Me(),i,n,e,i[j],t,!0),Zo}const Qo="en-US";let e_=Qo;function bu(n,e,t,i,r){if(n=H(n),Array.isArray(n))for(let s=0;s<n.length;s++)bu(n[s],e,t,i,r);else{const s=Z(),o=v();let a=ar(n)?n:H(n.provide),l=wm(n);const c=Ge(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(ar(n)||!n.multi){const f=new Wr(l,r,_),p=Cu(a,e,r?u:u+h,d);-1===p?(Co(Kr(c,o),s,a),Du(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Cu(a,e,u+h,d),p=Cu(a,e,u,u+h),m=f>=0&&t[f],y=p>=0&&t[p];if(r&&!y||!r&&!m){Co(Kr(c,o),s,a);const b=function nT(n,e,t,i,r){const s=new Wr(n,t,_);return s.multi=[],s.index=e,s.componentProviders=0,w_(s,r,i&&!t),s}(r?tT:eT,t.length,r,i,l);!r&&y&&(t[p].providerFactory=b),Du(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else Du(s,n,f>-1?f:p,w_(t[r?p:f],l,!r&&i));!r&&i&&y&&t[p].componentProviders++}}}function Du(n,e,t,i){const r=ar(e),s=function SS(n){return!!n.useClass}(e);if(r||s){const l=(s?H(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function w_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Cu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function eT(n,e,t,i){return Eu(this.multi,[])}function tT(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Yr(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Eu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Eu(r,s);return s}function Eu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function te(n,e=[]){return t=>{t.providersResolver=(i,r)=>function JA(n,e,t){const i=Z();if(i.firstCreatePass){const r=Jt(n);bu(t,i.data,i.blueprint,r,!0),bu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class M_{}class sT{resolveComponentFactory(e){throw function rT(n){const e=Error(`No component factory found for ${ne(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let vi=(()=>{class n{}return n.NULL=new sT,n})();function oT(){return wr(Ge(),v())}function wr(n,e){return new Re(At(n,e))}let Re=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=oT,n})();function aT(n){return n instanceof Re?n.nativeElement:n}class Cs{}let bi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function cT(){const n=v(),t=Tt(Ge().index,n);return function lT(n){return n[j]}(mn(t)?t:n)}(),n})(),uT=(()=>{class n{}return n.\u0275prov=O({token:n,providedIn:"root",factory:()=>null}),n})();class Di{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const dT=new Di("13.4.0"),wu={};function na(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Le(s)),Xt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&na(l[1],l,c,i)}const o=t.type;if(8&o)na(n,e,t.child,i);else if(32&o){const a=pc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=bp(e,t);if(Array.isArray(a))i.push(...a);else{const l=rs(e[16]);na(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class Es{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return na(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Xt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(vc(e,i),Mo(t,i))}this._attachedToViewContainer=!1}dp(this._lView[1],this._lView)}onDestroy(e){sm(this._lView[1],this._lView,null,e)}markForCheck(){Qc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Jc(n,e,t){const i=e[10];i.begin&&i.begin();try{sr(n,e,n.template,t)}catch(r){throw ym(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Sw(n,e){ss(n,e,e[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,"");this._appRef=e}}class hT extends Es{constructor(e){super(e),this._view=e}detectChanges(){pm(this._view)}checkNoChanges(){}get context(){return null}}class A_ extends vi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=it(e);return new Mu(t,this.ngModule)}}function T_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Mu extends M_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function RM(n){return n.map(xM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return T_(this.componentDef.inputs)}get outputs(){return T_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function pT(n,e){return{get:(t,i,r)=>{const s=n.get(t,wu,r);return s!==wu||i===wu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Cs,pf),a=s.get(uT,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function rm(n,e,t){if(Oe(n))return n.selectRootElement(e,t===Zt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):yc(o.createRenderer(null,this.componentDef),c,function fT(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Pm(n,e){return{components:[],scheduler:n||bM,clean:_S,playerHandler:e||null,flags:0}}(),f=Ho(0,null,null,1,0,null,null,null,null,null),p=us(null,f,h,d,null,null,o,l,a,s);let m,y;fo(p);try{const b=function Nm(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=ir(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Uo(l,c,!0),null!==n&&(yo(r,n,c),null!==l.classes&&Mc(r,n,l.classes),null!==l.styles&&Cp(r,n,l.styles)));const u=i.createRenderer(n,e),d=us(t,nm(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Co(Kr(l,t),o,e.type),um(o,l),dm(l,t.length,1)),$o(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)yo(l,u,["ng-version",dT.full]);else{const{attrs:g,classes:C}=function NM(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!tn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&yo(l,u,g),C&&C.length>0&&Mc(l,u,C.join(" "))}if(y=jl(f,20),void 0!==t){const g=y.projection=[];for(let C=0;C<this.ngContentSelectors.length;C++){const T=t[C];g.push(null!=T?Array.from(T):null)}}m=function km(n,e,t,i,r){const s=t[1],o=function tS(n,e,t){const i=Ge();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),hm(n,i,e,rr(n,e,1,null),t));const r=Yr(e,n,i.directiveStart,i);st(r,e);const s=At(i,e);return s&&st(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Ge();e.contentQueries(1,o,l.directiveStart)}const a=Ge();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Kn(a.index),lm(t[1],a,0,a.directiveStart,a.directiveEnd,e),cm(e,o)),o}(b,this.componentDef,p,h,[LS]),ds(f,p,null)}finally{po()}return new gT(this.componentType,m,wr(y,p),p,y)}}class gT extends class iT{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new hT(r),this.componentType=e}get injector(){return new Ki(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Mr{}const Sr=new Map;class O_ extends Mr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new A_(this);const i=Vt(e);this._bootstrapComponents=vn(i.bootstrap),this._r3Injector=Em(e,t,[{provide:Mr,useValue:this},{provide:vi,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=pt.THROW_IF_NOT_FOUND,i=B.Default){return e===pt||e===Mr||e===tu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Su extends class yT{}{constructor(e){super(),this.moduleType=e,null!==Vt(e)&&function vT(n){const e=new Set;!function t(i){const r=Vt(i,!0),s=r.id;null!==s&&(function I_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ne(e)} vs ${ne(e.name)}`)}(s,Sr.get(s),i),Sr.set(s,i));const o=vn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new O_(this.moduleType,e)}}function Au(n){return e=>{setTimeout(n,void 0,e)}}const ve=class LT extends Ee{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Au(l),a&&(a=Au(a)),c&&(c=Au(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof z&&e.add(u),u}};function VT(){return this._results[lr()]()}class Ss{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=lr(),i=Ss.prototype;i[t]||(i[t]=VT)}get changes(){return this._changes||(this._changes=new ve)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ht(e);(this._changesDetected=!function $E(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[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 wn=(()=>{class n{}return n.__NG_ELEMENT_ID__=HT,n})();const BT=wn,jT=class extends BT{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=us(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),ds(t,i,e),new Es(i)}};function HT(){return ia(Ge(),v())}function ia(n,e){return 4&n.type?new jT(e,n,wr(n,e)):null}let ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=$T,n})();function $T(){return B_(Ge(),v())}const UT=ln,L_=class extends UT{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Ki(this._hostTNode,this._hostLView)}get parentInjector(){const e=Do(this._hostTNode,this._hostLView);if(Of(e)){const t=qi(e,this._hostLView),i=Wi(e);return new Ki(t[1].data[i+8],t)}return new Ki(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=V_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Qr(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Mu(it(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Mr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function uE(n){return Xt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new L_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Tw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],Hf(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Iw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Cc(s,o),l=i[j],c=Oo(l,o[7]);return null!==c&&function Mw(n,e,t,i,r,s){i[0]=r,i[6]=e,ss(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),Hf(Tu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=V_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=vc(this._lContainer,t);i&&(Mo(Tu(this._lContainer),t),dp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=vc(this._lContainer,t);return i&&null!=Mo(Tu(this._lContainer),t)?new Es(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function V_(n){return n[8]}function Tu(n){return n[8]||(n[8]=[])}function B_(n,e){let t;const i=e[n.index];if(Xt(i))t=i;else{let r;if(8&n.type)r=Le(i);else{const s=e[j];r=s.createComment("");const o=At(n,e);mi(s,Oo(s,o),r,function Rw(n,e){return Oe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=fm(i,e,r,n),$o(e,t)}return new L_(t,n,e)}class Iu{constructor(e){this.queryList=e,this.matches=null}clone(){return new Iu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Fu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==z_(e,t).matches&&this.queries[t].setDirty()}}class j_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Ou{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Ou(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class xu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new xu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,WT(t,s)),this.matchTNodeWithReadOption(e,t,Eo(t,e,s,!1,!1))}else i===wn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Eo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Re||r===ln||r===wn&&4&t.type)this.addMatch(t.index,-2);else{const s=Eo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function WT(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function KT(n,e,t,i){return-1===t?function qT(n,e){return 11&n.type?wr(n,e):4&n.type?ia(n,e):null}(e,n):-2===t?function YT(n,e,t){return t===Re?wr(e,n):t===wn?ia(e,n):t===ln?B_(e,n):void 0}(n,e,i):Yr(n,n[1],t,e)}function H_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:KT(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Ru(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=H_(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Ru(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Ru(f[1],f,c,i)}}}}}return i}function Xe(n){const e=v(),t=Z(),i=Cf();Kl(i+1);const r=z_(t,i);if(n.dirty&&mf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Ru(t,e,i,[]):H_(t,e,r,i);n.reset(s,aT),n.notifyOnChanges()}return!0}return!1}function Ci(n,e,t){const i=Z();i.firstCreatePass&&(U_(i,new j_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),$_(i,v(),e)}function zt(n,e,t,i){const r=Z();if(r.firstCreatePass){const s=Ge();U_(r,new j_(e,t,i),s.index),function QT(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}$_(r,v(),t)}function Je(){return function ZT(n,e){return n[19].queries[e].queryList}(v(),Cf())}function $_(n,e,t){const i=new Ss(4==(4&t));sm(n,e,i,i.destroy),null===e[19]&&(e[19]=new Fu),e[19].queries.push(new Iu(i))}function U_(n,e,t){null===n.queries&&(n.queries=new Ou),n.queries.track(new xu(e,t))}function z_(n,e){return n.queries.getByIndex(e)}function oa(...n){}const ay=new A("Application Initializer");let Bu=(()=>{class n{constructor(t){this.appInits=t,this.resolve=oa,this.reject=oa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(qo(s))t.push(s);else if(ag(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(D(ay,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Ts=new A("AppId",{providedIn:"root",factory:function ly(){return`${ju()}${ju()}${ju()}`}});function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const cy=new A("Platform Initializer"),Hu=new A("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),mI=new A("appBootstrapListener"),kn=new A("LocaleId",{providedIn:"root",factory:()=>ac(kn,B.Optional|B.SkipSelf)||function gI(){return"undefined"!=typeof $localize&&$localize.locale||Qo}()}),bI=(()=>Promise.resolve(0))();function $u(n){"undefined"==typeof Zone?bI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class re{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new ve(!1),this.onMicrotaskEmpty=new ve(!1),this.onStable=new ve(!1),this.onError=new ve(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function DI(){let n=se.requestAnimationFrame,e=se.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function wI(n){const e=()=>{!function EI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(se,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,zu(n),n.isCheckStableRunning=!0,Uu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),zu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return uy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),dy(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return uy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),dy(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,zu(n),Uu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!re.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(re.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,CI,oa,oa);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const CI={};function Uu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function zu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function uy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function dy(n){n._nesting--,Uu(n)}class MI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new ve,this.onMicrotaskEmpty=new ve,this.onStable=new ve,this.onError=new ve}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Gu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{re.assertNotInAngularZone(),$u(()=>{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())$u(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(D(re))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),SI=(()=>{class n{constructor(){this._applications=new Map,Wu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Wu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class AI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Wu=new AI,Ei=null;const hy=new A("AllowMultipleToken"),fy=new A("PlatformOnDestroy");function py(n,e,t=[]){const i=`Platform: ${e}`,r=new A(i);return(s=[])=>{let o=qu();if(!o||o.injector.get(hy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function OI(n){if(Ei&&!Ei.get(hy,!1))throw new M(400,"");Ei=n;const e=n.get(my),t=n.get(cy,null);t&&t.forEach(i=>i())}(function RI(n=[],e){return pt.create({name:e,providers:[{provide:nu,useValue:"platform"},{provide:fy,useValue:()=>Ei=null},...n]})}(a,i))}return function xI(n){const e=qu();if(!e)throw new M(401,"");return e}()}}function qu(){var n;return null!==(n=null==Ei?void 0:Ei.get(my))&&void 0!==n?n:null}let my=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function NI(n,e){let t;return t="noop"===n?new MI:("zone.js"===n?void 0:n)||new re({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:re,useValue:a}];return a.run(()=>{const c=pt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(cs,null);if(!d)throw new M(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Ku(this._modules,u),h.unsubscribe()})}),function kI(n,e,t){try{const i=t();return qo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Bu);return h.runInitializers(),h.donePromise.then(()=>(function lA(n){Mt(n,"Expected localeId to be defined"),"string"==typeof n&&(e_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,Qo)||Qo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=gy({},i);return function II(n,e,t){const i=new Su(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(aa);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new M(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(fy,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(D(pt))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function gy(n,e){return Array.isArray(e)?e.reduce(gy,n):Object.assign(Object.assign({},n),e)}let aa=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,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 o=new ge(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new ge(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{re.assertNotInAngularZone(),$u(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{re.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Un(o,a.pipe(function OC(){return n=>Zh()(function TC(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new IC(r,e));const s=Object.create(i,MC);return s.source=i,s.subjectFactory=r,s}}(FC)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new M(405,"");let r;r=t instanceof M_?t:this._injector.get(vi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function FI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Mr),a=r.create(pt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Gu,null),u=c&&a.injector.get(SI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Ku(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new M(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Ku(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(mI,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(D(re),D(pt),D(cs),D(Bu))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ku(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let yy=!0,wi=(()=>{class n{}return n.__NG_ELEMENT_ID__=VI,n})();function VI(n){return function BI(n,e,t){if(lo(n)&&!t){const i=Tt(n.index,e);return new Es(i,i)}return 47&n.type?new Es(e[16],e):null}(Ge(),v(),16==(16&n))}class Ey{constructor(){}supports(e){return fs(e)}create(e){return new GI(e)}}const zI=(n,e)=>e;class GI{constructor(e){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=e||zI}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<My(i,r,s)?t:i,a=My(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!fs(e))throw new M(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function qS(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[lr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new WI(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new wy),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new wy),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class WI{constructor(e,t){this.item=e,this.trackById=t,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 qI{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class wy{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new qI,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function My(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Sy{constructor(){}supports(e){return e instanceof Map||lu(e)}create(){return new KI}}class KI{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||lu(e)))throw new M(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new YI(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class YI{constructor(e){this.key=e,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 Ay(){return new ua([new Ey])}let ua=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ay()),deps:[[n,new Io,new To]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new M(901,"")}}return n.\u0275prov=O({token:n,providedIn:"root",factory:Ay}),n})();function Ty(){return new Is([new Sy])}let Is=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ty()),deps:[[n,new Io,new To]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new M(901,"")}}return n.\u0275prov=O({token:n,providedIn:"root",factory:Ty}),n})();const XI=py(null,"core",[]);let JI=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(D(aa))},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})(),da=null;function Mn(){return da}const fe=new A("DocumentToken");let Fs=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:function(){return function iF(){return D(Iy)}()},providedIn:"platform"}),n})(),Iy=(()=>{class n extends Fs{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mn().getBaseHref(this._doc)}onPopState(t){const i=Mn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Mn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,r){Fy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Fy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:function(){return function rF(){return new Iy(D(fe))}()},providedIn:"platform"}),n})();function Fy(){return!!window.history.pushState}function Oy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function xy(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Si(n){return n&&"?"!==n[0]?"?"+n:n}let Ju=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:function(){return function sF(n){const e=D(fe).location;return new aF(D(Fs),e&&e.origin||"")}()},providedIn:"root"}),n})();const oF=new A("appBaseHref");let aF=(()=>{class n extends Ju{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return Oy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Si(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Si(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Si(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(D(Fs),D(oF,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),Ry=(()=>{class n{constructor(t,i){this._subject=new ve,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=xy(Ny(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Si(i))}normalize(t){return n.stripTrailingSlash(function cF(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,Ny(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Si(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Si(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Si,n.joinWithSlash=Oy,n.stripTrailingSlash=xy,n.\u0275fac=function(t){return new(t||n)(D(Ju),D(Fs))},n.\u0275prov=O({token:n,factory:function(){return function lF(){return new Ry(D(Ju),D(Fs))}()},providedIn:"root"}),n})();function Ny(n){return n.replace(/\/index.html$/,"")}let Uy=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(fs(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ne(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(_(ua),_(Is),_(Re),_(bi))},n.\u0275dir=I({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class KF{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}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 zy=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new KF(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Gy(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Gy(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn),_(ua))},n.\u0275dir=I({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Gy(n,e){n.context.$implicit=e.item}let Da=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new YF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){Wy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){Wy("ngIfElse",t),this._elseTemplateRef=t,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(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn))},n.\u0275dir=I({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class YF{constructor(){this.$implicit=null,this.ngIf=null}}function Wy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ne(e)}'.`)}const qy="browser";class dd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let wa=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Xy=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new dd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn),_(wa,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),ev=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(Is),_(bi))},n.\u0275dir=I({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ma=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})();class pd extends class XO extends class nF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function tF(n){da||(da=n)}(new pd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function JO(){return Ns=Ns||document.querySelector("base"),Ns?Ns.getAttribute("href"):null}();return null==t?null:function ex(n){Sa=Sa||document.createElement("a"),Sa.setAttribute("href",n);const e=Sa.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){Ns=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function WF(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Sa,Ns=null;const iv=new A("TRANSITION_ID"),nx=[{provide:ay,useFactory:function tx(n,e,t){return()=>{t.get(Bu).donePromise.then(()=>{const i=Mn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[iv,fe,pt],multi:!0}];class md{static init(){!function TI(n){Wu=n}(new md)}addToWindow(e){se.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},se.getAllAngularTestabilities=()=>e.getAllTestabilities(),se.getAllAngularRootElements=()=>e.getAllRootElements(),se.frameworkStabilizers||(se.frameworkStabilizers=[]),se.frameworkStabilizers.push(i=>{const r=se.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Mn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let ix=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const Aa=new A("EventManagerPlugins");let Ta=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(D(Aa),D(re))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class rv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Mn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let sv=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),ks=(()=>{class n extends sv{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(ov),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(ov))}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();function ov(n){Mn().remove(n)}const gd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_d=/%COMP%/g;function Ia(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Ia(n,r,t):(r=r.replace(_d,n),t.push(r))}return t}function cv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new yd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Zt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new cx(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Zt.ShadowDom:return new ux(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ia(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(D(Ta),D(ks),D(Ts))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class yd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(gd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=gd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=gd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Ft.DashCase|Ft.Important)?e.style.setProperty(t,i,r&Ft.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Ft.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,cv(i)):this.eventManager.addEventListener(e,t,cv(i))}}class cx extends yd{constructor(e,t,i,r){super(e),this.component=i;const s=Ia(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function ox(n){return"_ngcontent-%COMP%".replace(_d,n)}(r+"-"+i.id),this.hostAttr=function ax(n){return"_nghost-%COMP%".replace(_d,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class ux extends yd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ia(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let dx=(()=>{class n extends rv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const dv=["alt","control","meta","shift"],fx={"\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"},hv={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"},px={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let mx=(()=>{class n extends rv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(dv.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function gx(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&hv.hasOwnProperty(e)&&(e=hv[e]))}return fx[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),dv.forEach(s=>{s!=r&&px[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const bx=py(XI,"browser",[{provide:Hu,useValue:qy},{provide:cy,useValue:function _x(){pd.makeCurrent(),md.init()},multi:!0},{provide:fe,useFactory:function vx(){return function oE(n){Vl=n}(document),document},deps:[]}]),Dx=[{provide:nu,useValue:"root"},{provide:cs,useFactory:function yx(){return new cs},deps:[]},{provide:Aa,useClass:dx,multi:!0,deps:[fe,re,Hu]},{provide:Aa,useClass:mx,multi:!0,deps:[fe]},{provide:Fa,useClass:Fa,deps:[Ta,ks,Ts]},{provide:Cs,useExisting:Fa},{provide:sv,useExisting:ks},{provide:ks,useClass:ks,deps:[fe]},{provide:Gu,useClass:Gu,deps:[re]},{provide:Ta,useClass:Ta,deps:[Aa,re]},{provide:class ZO{},useClass:ix,deps:[]}];let fv=(()=>{class n{constructor(t){if(t)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(t){return{ngModule:n,providers:[{provide:Ts,useValue:t.appId},{provide:iv,useExisting:Ts},nx]}}}return n.\u0275fac=function(t){return new(t||n)(D(n,12))},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:Dx,imports:[Ma,JI]}),n})();"undefined"!=typeof window&&window;class xx extends z{constructor(e,t){super()}schedule(e,t=0){return this}}class Oa extends xx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let gv=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class dn extends gv{constructor(e,t=gv.now){super(e,()=>dn.delegate&&dn.delegate!==this?dn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return dn.delegate&&dn.delegate!==this?dn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const kx=new class Nx extends dn{}(class Rx extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),_v=new ge(n=>n.complete());function bd(n){return n?function Px(n){return new ge(e=>n.schedule(()=>e.complete()))}(n):_v}function xa(...n){let e=n[n.length-1];return Br(e)?(n.pop(),Cl(n,e)):Yh(n)}function Vx({error:n,subscriber:e}){e.error(n)}class Dt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return xa(this.value);case"E":return function Lx(n,e){return new ge(e?t=>e.schedule(Vx,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return bd()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Dt("N",e):Dt.undefinedValueNotification}static createError(e){return new Dt("E",void 0,e)}static createComplete(){return Dt.completeNotification}}Dt.completeNotification=new Dt("C"),Dt.undefinedValueNotification=new Dt("N",void 0);class Ra extends Ie{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ra.dispatch,this.delay,new jx(e,this.destination)))}_next(e){this.scheduleMessage(Dt.createNext(e))}_error(e){this.scheduleMessage(Dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Dt.createComplete()),this.unsubscribe()}}class jx{constructor(e,t){this.notification=e,this.destination=t}}class Hx extends Ee{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new $x(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Vi;if(this.isStopped||this.hasError?o=z.EMPTY:(this.observers.push(e),o=new jh(this,e)),r&&e.add(e=new Ra(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||kx).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class $x{constructor(e,t){this.time=e,this.value=t}}function Ps(n,e){return"function"==typeof e?t=>t.pipe(Ps((i,r)=>jr(n(i,r)).pipe($n((s,o)=>e(i,s,r,o))))):t=>t.lift(new Ux(n))}class Ux{constructor(e){this.project=e}call(e,t){return t.subscribe(new zx(e,this.project))}}class zx extends eo{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Js(this),r=this.destination;r.add(i),this.innerSubscription=to(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Na={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Na.schedule(n,0);if(void 0===window.requestAnimationFrame)return Na.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Dd;function Jx(n,e,t){let i=t;return function Wx(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function Kx(n,e){if(!Dd){const t=Element.prototype;Dd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dd.call(n,e)}(n,r)||(i=s,0))),i}class tR{constructor(e,t){this.componentFactory=t.get(vi).resolveComponentFactory(e)}create(e){return new nR(this.componentFactory,e)}}class nR{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new Hx(1),this.events=this.eventEmitters.pipe(Ps(i=>Un(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(re),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Na.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Yx(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=pt.create({providers:[],parent:this.injector}),i=function Xx(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=Jx(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(wi),this.implementsOnChanges=function qx(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(aa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe($n(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Na.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new uf(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class iR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class yv{}const Ln="*";function oR(n,e){return{type:7,name:n,definitions:e,options:{}}}function aR(n,e=null){return{type:4,styles:e,timings:n}}function vv(n,e=null){return{type:2,steps:n,options:e}}function ka(n){return{type:6,styles:n,offset:null}}function lR(n,e,t){return{type:0,name:n,styles:e,options:t}}function cR(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function bv(n){Promise.resolve(null).then(n)}class Ls{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){bv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Dv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?bv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Y=!1;function Cv(n){return new M(3e3,Y)}function UR(){return"undefined"!=typeof window&&void 0!==window.document}function Ed(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ti(n){switch(n.length){case 0:return new Ls;case 1:return n[0];default:return new Dv(n)}}function Ev(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,y=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),y){case"!":y=r[p];break;case Ln:y=s[p];break;default:y=e.normalizeStyleValue(p,m,y,o)}f[m]=y}),h||a.push(f),c=f,l=d}),o.length)throw function xR(n){return new M(3502,Y)}();return a}function wd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Md(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Md(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Md(t,"destroy",n)))}}function Md(n,e,t){const i=t.totalTime,s=Sd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Sd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function xt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function wv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Ad=(n,e)=>!1,Mv=(n,e,t)=>[],Sv=null;function Td(n){const e=n.parentNode||n.host;return e===Sv?null:e}(Ed()||"undefined"!=typeof Element)&&(UR()?(Sv=(()=>document.documentElement)(),Ad=(n,e)=>{for(;e;){if(e===n)return!0;e=Td(e)}return!1}):Ad=(n,e)=>n.contains(e),Mv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Ai=null,Av=!1;function Tv(n){Ai||(Ai=function GR(){return"undefined"!=typeof document?document.body:null}()||{},Av=!!Ai.style&&"WebkitAppearance"in Ai.style);let e=!0;return Ai.style&&!function zR(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Ai.style,!e&&Av&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ai.style)),e}const Iv=Ad,Fv=Mv;let Ov=(()=>{class n{validateStyleProperty(t){return Tv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Iv(t,i)}getParentElement(t){return Td(t)}query(t,i,r){return Fv(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Ls(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),Id=(()=>{class n{}return n.NOOP=new Ov,n})();const Fd="ng-enter",La="ng-leave",Va="ng-trigger",Ba=".ng-trigger",Rv="ng-animating",Od=".ng-animating";function Ti(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:xd(parseFloat(e[1]),e[2])}function xd(n,e){return"s"===e?1e3*n:n}function ja(n,e,t){return n.hasOwnProperty("duration")?n:function KR(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(Cv()),{duration:0,delay:0,easing:""};r=xd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=xd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function uR(){return new M(3100,Y)}()),a=!0),s<0&&(e.push(function dR(){return new M(3101,Y)}()),a=!0),a&&e.splice(l,0,Cv())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Tr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ni(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Tr(n,t);return t}function kv(n,e,t){return t?e+":"+t+";":""}function Pv(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=kv(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=kv(0,QR(t),n.style[t]));n.setAttribute("style",e)}function Sn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Nd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Ed()&&Pv(n))}function Ii(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Nd(t);n.style[i]=""}),Ed()&&Pv(n))}function Vs(n){return Array.isArray(n)?1==n.length?n[0]:vv(n):n}const Rd=new RegExp("{{\\s*(.+?)\\s*}}","g");function Lv(n){let e=[];if("string"==typeof n){let t;for(;t=Rd.exec(n);)e.push(t[1]);Rd.lastIndex=0}return e}function Ha(n,e,t){const i=n.toString(),r=i.replace(Rd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function fR(n){return new M(3003,Y)}()),a=""),a.toString()});return r==i?n:r}function $a(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const ZR=/-+([a-z0-9])/g;function Nd(n){return n.replace(ZR,(...e)=>e[1].toUpperCase())}function QR(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function pR(n){return new M(3004,Y)}()}}function Vv(n,e){return window.getComputedStyle(n)[e]}function iN(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function rN(n,e,t){if(":"==n[0]){const l=function sN(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function TR(n){return new M(3016,Y)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function AR(n){return new M(3015,Y)}()),e;const r=i[1],s=i[2],o=i[3];e.push(Bv(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(Bv(o,r))}(i,t,e)):t.push(n),t}const Wa=new Set(["true","1"]),qa=new Set(["false","0"]);function Bv(n,e){const t=Wa.has(n)||qa.has(n),i=Wa.has(e)||qa.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Wa.has(n):qa.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Wa.has(e):qa.has(e)),o&&a}}const oN=new RegExp("s*:selfs*,?","g");function kd(n,e,t,i){return new aN(n).build(e,t,i)}class aN{constructor(e){this._driver=e}build(e,t,i){const r=new uN(t);this._resetContextStyleTimingState(r);const s=Rt(this,Vs(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function gR(){return new M(3006,Y)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function _R(){return new M(3007,Y)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ka(a)){const l=a;Object.keys(l).forEach(c=>{Lv(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&($a(s.values()),t.errors.push(function yR(n,e){return new M(3008,Y)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Rt(this,Vs(e.animation),t);return{type:1,matchers:iN(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Fi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Rt(this,i,t)),options:Fi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Rt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Fi(e.options)}}visitAnimate(e,t){const i=function hN(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Pd(ja(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Pd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=ja(t,e);return Pd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:ka({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=ka(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Ln?i.push(o):t.errors.push(function vR(n){return new M(3002,Y)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ka(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function bR(n,e,t,i,r){return new M(3010,Y)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function YR(n,e,t){const i=e.params||{},r=Lv(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function hR(n){return new M(3001,Y)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function DR(){return new M(3011,Y)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const g=this._makeStyleAst(b,t);let C=null!=g.offset?g.offset:function dN(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Ka(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Ka(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),T=0;return null!=C&&(s++,T=g.offset=C),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),g});l&&t.errors.push(function CR(){return new M(3012,Y)}()),a&&t.errors.push(function ER(){return new M(3200,Y)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function wR(){return new M(3202,Y)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,y=m.duration;return u.forEach((b,g)=>{const C=h>0?g==f?1:h*g:o[g],T=C*y;t.currentTime=p+m.delay+T,m.duration=T,this._validateStyleAst(b,t),b.offset=C,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Rt(this,Vs(e.animation),t),options:Fi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Fi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Fi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function lN(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(oN,"")),n=n.replace(/@\*/g,Ba).replace(/@\w+/g,t=>Ba+"-"+t.substr(1)).replace(/:animating/g,Od),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,xt(t.collectedStyles,t.currentQuerySelector,{});const a=Rt(this,Vs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Fi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function MR(){return new M(3013,Y)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:ja(e.timings,t.errors,!0);return{type:12,animation:Rt(this,Vs(e.animation),t),timings:i,options:null}}}class uN{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function Ka(n){return!Array.isArray(n)&&"object"==typeof n}function Fi(n){return n?(n=Tr(n)).params&&(n.params=function cN(n){return n?Tr(n):null}(n.params)):n={},n}function Pd(n,e,t){return{duration:n,delay:e,easing:t}}function Ld(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Ya{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const mN=new RegExp(":enter","g"),_N=new RegExp(":leave","g");function Vd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new yN).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class yN{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Ya;const d=new Bd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Rt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Ld(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Ti(i.duration):null,a=null!=i.delay?Ti(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Rt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Za);const o=Ti(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Rt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ti(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Rt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return ja(t.params?Ha(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ti(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Za);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Rt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Rt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Za={};class Bd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Za,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qa(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Ti(i.duration)),null!=i.delay&&(r.delay=Ti(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ha(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new Bd(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Za,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new vN(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(mN,"."+this._enterClassName)).replace(_N,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function SR(n){return new M(3014,Y)}()),a}}class Qa{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Qa(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ln,this._currentKeyframe[t]=Ln}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function bN(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=Ln})):ni(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ha(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ln),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ni(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Ln&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?$a(e.values()):[],o=t.size?$a(t.values()):[];if(i){const a=r[0],l=Tr(a);a.offset=0,l.offset=1,r=[a,l]}return Ld(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class vN extends Qa{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ni(e[0],!1);l.offset=0,s.push(l);const c=ni(e[0],!1);c.offset=$v(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ni(e[d],!1);h.offset=$v((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Ld(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function $v(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class jd{}class DN extends jd{normalizePropertyName(e,t){return Nd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(CN[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function mR(n,e){return new M(3005,Y)}())}return o+s}}const CN=(()=>function EN(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 Uv(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Hd={};class zv{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function wN(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Hd,p=this.buildStyles(i,a&&a.params||Hd,d),m=l&&l.params||Hd,y=this.buildStyles(r,m,d),b=new Set,g=new Map,C=new Map,T="void"===r,U={params:Object.assign(Object.assign({},h),m)},be=u?[]:Vd(e,t,this.ast.animation,s,o,p,y,U,c,d);let Ae=0;if(be.forEach(kt=>{Ae=Math.max(kt.duration+kt.delay,Ae)}),d.length)return Uv(t,this._triggerName,i,r,T,p,y,[],[],g,C,Ae,d);be.forEach(kt=>{const Pt=kt.element,kr=xt(g,Pt,{});kt.preStyleProps.forEach(pn=>kr[pn]=!0);const Hn=xt(C,Pt,{});kt.postStyleProps.forEach(pn=>Hn[pn]=!0),Pt!==t&&b.add(Pt)});const Nt=$a(b.values());return Uv(t,this._triggerName,i,r,T,p,y,be,Nt,g,C,Ae)}}class MN{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Tr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ha(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class AN{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new MN(r.style,r.options&&r.options.params||{},i)}),Gv(this.states,"true","1"),Gv(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new zv(e,r,this.states))}),this.fallbackTransition=function TN(n,e,t){return new zv(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Gv(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const IN=new Ya;class FN{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=kd(this._driver,t,i,[]);if(i.length)throw function RR(n){return new M(3503,Y)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=Ev(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Vd(this._driver,t,s,Fd,La,{},{},i,IN,r),o.forEach(u=>{const d=xt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function NR(){return new M(3300,Y)}()),o=[]),r.length)throw function kR(n){return new M(3504,Y)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Ln)})});const c=ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function PR(n){return new M(3301,Y)}();return t}listen(e,t,i,r){const s=Sd(t,"","","");return wd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const Wv="ng-animate-queued",$d="ng-animate-disabled",kN=[],qv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},PN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qt="__ng_removed";class Ud{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function jN(n){return null!=n?n:null}(i?e.value:e),i){const s=Tr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const Bs="void",zd=new Ud(Bs);class LN{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Kt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function LR(n,e){return new M(3302,Y)}();if(null==i||0==i.length)throw function VR(n){return new M(3303,Y)}();if(!function HN(n){return"start"==n||"done"==n}(i))throw function BR(n,e){return new M(3400,Y)}();const s=xt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=xt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Kt(e,Va),Kt(e,Va+"-"+t),a[t]=zd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function jR(n){return new M(3401,Y)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Gd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Kt(e,Va),Kt(e,Va+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Ud(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=zd),c.value!==Bs&&l.value===c.value){if(!function zN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ii(e,y),Sn(e,b)})}return}const h=xt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Kt(e,Wv),o.onStart(()=>{Ir(e,Wv)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(e);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Ba,!0);i.forEach(r=>{if(r[qt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,Bs,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ti(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||zd,u=new Ud(Bs),d=new Gd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[qt];(!s||s===qv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Kt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Sd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,wd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class VN{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new LN(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(Xa(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Xa(t))return;const s=t[qt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Kt(e,$d)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ir(e,$d))}removeNode(e,t,i,r){if(Xa(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[qt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Xa(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ba,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Od,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ti(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[qt];if(i&&i.setForRemoval){if(e[qt]=qv,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains($d))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Kt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?ti(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function HR(n){return new M(3402,Y)}()}_flushAnimations(e,t){const i=new Ya,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);const F=this.driver.query(S,".ng-animate-queued",!0);for(let N=0;N<F.length;N++)u.add(F[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Zv(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((S,F)=>{const N=Fd+m++;p.set(F,N),S.forEach(Q=>Kt(Q,N))});const y=[],b=new Set,g=new Set;for(let S=0;S<this.collectedLeaveElements.length;S++){const F=this.collectedLeaveElements[S],N=F[qt];N&&N.setForRemoval&&(y.push(F),b.add(F),N.hasAnimation?this.driver.query(F,".ng-star-inserted",!0).forEach(Q=>b.add(Q)):g.add(F))}const C=new Map,T=Zv(h,Array.from(b));T.forEach((S,F)=>{const N=La+m++;C.set(F,N),S.forEach(Q=>Kt(Q,N))}),e.push(()=>{f.forEach((S,F)=>{const N=p.get(F);S.forEach(Q=>Ir(Q,N))}),T.forEach((S,F)=>{const N=C.get(F);S.forEach(Q=>Ir(Q,N))}),y.forEach(S=>{this.processLeaveNode(S)})});const U=[],be=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(N=>{const Q=N.player,et=N.element;if(U.push(Q),this.collectedEnterElements.length){const yt=et[qt];if(yt&&yt.setForMove){if(yt.previousTriggersValues&&yt.previousTriggersValues.has(N.triggerName)){const ki=yt.previousTriggersValues.get(N.triggerName),ai=this.statesByElement.get(N.element);ai&&ai[N.triggerName]&&(ai[N.triggerName].value=ki)}return void Q.destroy()}}const An=!d||!this.driver.containsElement(d,et),Lt=C.get(et),oi=p.get(et),Te=this._buildInstruction(N,i,oi,Lt,An);if(Te.errors&&Te.errors.length)return void be.push(Te);if(An)return Q.onStart(()=>Ii(et,Te.fromStyles)),Q.onDestroy(()=>Sn(et,Te.toStyles)),void r.push(Q);if(N.isFallbackTransition)return Q.onStart(()=>Ii(et,Te.fromStyles)),Q.onDestroy(()=>Sn(et,Te.toStyles)),void r.push(Q);const oC=[];Te.timelines.forEach(yt=>{yt.stretchStartingKeyframe=!0,this.disabledNodes.has(yt.element)||oC.push(yt)}),Te.timelines=oC,i.append(et,Te.timelines),o.push({instruction:Te,player:Q,element:et}),Te.queriedElements.forEach(yt=>xt(a,yt,[]).push(Q)),Te.preStyleProps.forEach((yt,ki)=>{const ai=Object.keys(yt);if(ai.length){let Pi=l.get(ki);Pi||l.set(ki,Pi=new Set),ai.forEach(Ph=>Pi.add(Ph))}}),Te.postStyleProps.forEach((yt,ki)=>{const ai=Object.keys(yt);let Pi=c.get(ki);Pi||c.set(ki,Pi=new Set),ai.forEach(Ph=>Pi.add(Ph))})});if(be.length){const S=[];be.forEach(F=>{S.push(function $R(n,e){return new M(3505,Y)}())}),U.forEach(F=>F.destroy()),this.reportError(S)}const Ae=new Map,Nt=new Map;o.forEach(S=>{const F=S.element;i.has(F)&&(Nt.set(F,F),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,Ae))}),r.forEach(S=>{const F=S.element;this._getPreviousPlayers(F,!1,S.namespaceId,S.triggerName,null).forEach(Q=>{xt(Ae,F,[]).push(Q),Q.destroy()})});const kt=y.filter(S=>Xv(S,l,c)),Pt=new Map;Yv(Pt,this.driver,g,c,Ln).forEach(S=>{Xv(S,l,c)&&kt.push(S)});const Hn=new Map;f.forEach((S,F)=>{Yv(Hn,this.driver,new Set(S),l,"!")}),kt.forEach(S=>{const F=Pt.get(S),N=Hn.get(S);Pt.set(S,Object.assign(Object.assign({},F),N))});const pn=[],Pr=[],Lr={};o.forEach(S=>{const{element:F,player:N,instruction:Q}=S;if(i.has(F)){if(u.has(F))return N.onDestroy(()=>Sn(F,Q.toStyles)),N.disabled=!0,N.overrideTotalTime(Q.totalTime),void r.push(N);let et=Lr;if(Nt.size>1){let Lt=F;const oi=[];for(;Lt=Lt.parentNode;){const Te=Nt.get(Lt);if(Te){et=Te;break}oi.push(Lt)}oi.forEach(Te=>Nt.set(Te,et))}const An=this._buildAnimation(N.namespaceId,Q,Ae,s,Hn,Pt);if(N.setRealPlayer(An),et===Lr)pn.push(N);else{const Lt=this.playersByElement.get(et);Lt&&Lt.length&&(N.parentPlayer=ti(Lt)),r.push(N)}}else Ii(F,Q.fromStyles),N.onDestroy(()=>Sn(F,Q.toStyles)),Pr.push(N),u.has(F)&&r.push(N)}),Pr.forEach(S=>{const F=s.get(S.element);if(F&&F.length){const N=ti(F);S.setRealPlayer(N)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S<y.length;S++){const F=y[S],N=F[qt];if(Ir(F,La),N&&N.hasAnimation)continue;let Q=[];if(a.size){let An=a.get(F);An&&An.length&&Q.push(...An);let Lt=this.driver.query(F,Od,!0);for(let oi=0;oi<Lt.length;oi++){let Te=a.get(Lt[oi]);Te&&Te.length&&Q.push(...Te)}}const et=Q.filter(An=>!An.destroyed);et.length?$N(this,F,et):this.processLeaveNode(F)}return y.length=0,pn.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();const F=this.players.indexOf(S);this.players.splice(F,1)}),S.play()}),pn}elementContainsData(e,t){let i=!1;const r=t[qt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==Bs;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=xt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ii(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const y=m[qt];if(y&&y.removedBeforeQueried)return new Ls(p.duration,p.delay);const b=m!==l,g=function UN(n){const e=[];return Qv(n,e),e}((i.get(m)||kN).map(Ae=>Ae.getRealPlayer())).filter(Ae=>!!Ae.element&&Ae.element===m),C=s.get(m),T=o.get(m),U=Ev(0,this._normalizer,0,p.keyframes,C,T),be=this._buildPlayer(p,U,g);if(p.subTimeline&&r&&d.add(m),b){const Ae=new Gd(e,a,m);Ae.setRealPlayer(be),c.push(Ae)}return be});c.forEach(p=>{xt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function BN(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Kt(p,Rv));const f=ti(h);return f.onDestroy(()=>{u.forEach(p=>Ir(p,Rv)),Sn(l,t.toStyles)}),d.forEach(p=>{xt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Ls(e.duration,e.delay)}}class Gd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Ls,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>wd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){xt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Xa(n){return n&&1===n.nodeType}function Kv(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Yv(n,e,t,i,r){const s=[];t.forEach(l=>s.push(Kv(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[qt]=PN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Kv(l,s[a++])),o}function Zv(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Kt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Ir(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function $N(n,e,t){ti(t).onDone(()=>n.processLeaveNode(e))}function Qv(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Dv?Qv(i.players,e):e.push(i)}}function Xv(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class Ja{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new VN(e,t,i),this._timelineEngine=new FN(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=kd(this._driver,s,l,[]);if(l.length)throw function OR(n,e){return new M(3404,Y)}();a=function SN(n,e,t){return new AN(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=wv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=wv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let WN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Sn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sn(this._element,this._initialStyles),this._endStyles&&(Sn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ii(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ii(this._element,this._endStyles),this._endStyles=null),Sn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Wd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];qN(r)&&(e=e||{},e[r]=n[r])}return e}function qN(n){return"display"===n||"position"===n}class Jv{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:Vv(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class KN{validateStyleProperty(e){return Tv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Iv(e,t)}getParentElement(e){return Td(e)}query(e,t,i){return Fv(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof Jv);(function XR(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function JR(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=Vv(n,l)})}}return e}(e,t=t.map(h=>ni(h,!1)),c);const d=function GN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Wd(e[0]),e.length>1&&(i=Wd(e[e.length-1]))):e&&(t=Wd(e)),t||i?new WN(n,t,i):null}(e,t);return new Jv(e,t,l,d)}}let YN=(()=>{class n extends yv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Zt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?vv(t):t;return eb(this._renderer,null,i,"register",[r]),new ZN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(D(Cs),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class ZN extends class sR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new QN(this._id,e,t||{},this._renderer)}}class QN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return eb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function eb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const tb="@.disabled";let XN=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new nb("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new JN(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(D(Cs),D(Ja),D(re))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class nb{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==tb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class JN extends nb{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==tb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function ek(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function tk(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let nk=(()=>{class n extends Ja{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(Id),D(jd))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const js=new A("AnimationModuleType"),ib=[{provide:yv,useClass:YN},{provide:jd,useFactory:function ik(){return new DN}},{provide:Ja,useClass:nk},{provide:Cs,useFactory:function rk(n,e,t){return new XN(n,e,t)},deps:[Fa,Ja,re]}],rb=[{provide:Id,useFactory:()=>new KN},{provide:js,useValue:"BrowserAnimations"},...ib],sk=[{provide:Id,useClass:Ov},{provide:js,useValue:"NoopAnimations"},...ib];let qd,ok=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?sk:rb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:rb,imports:[fv]}),n})();function Vn(n){return null!=n&&"false"!=`${n}`}function sb(n){return Array.isArray(n)?n:[n]}function $e(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fr(n){return n instanceof Re?n.nativeElement:n}try{qd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){qd=!1}let Or,hn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function JF(n){return n===qy}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(D(Hu))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const ob=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function ab(){if(Or)return Or;if("object"!=typeof document||!document)return Or=new Set(ob),Or;let n=document.createElement("input");return Or=new Set(ob.filter(e=>(n.setAttribute("type",e),n.type===e))),Or}let Hs,Oi;function tl(n){return function uk(){if(null==Hs&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>Hs=!0}))}finally{Hs=Hs||!1}return Hs}()?n:!!n.capture}function dk(){if(null==Oi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Oi=!1,Oi;if("scrollBehavior"in document.documentElement.style)Oi=!0;else{const n=Element.prototype.scrollTo;Oi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Oi}function Yd(n){return n.composedPath?n.composedPath()[0]:n.target}function Zd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function il(n,e){return new ge(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=jr(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}let lb=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(_(bi),_(Re))},n.\u0275dir=I({type:n}),n})(),xi=(()=>{class n extends lb{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,features:[K]}),n})();const fn=new A("NgValueAccessor"),mk={provide:fn,useExisting:ue(()=>rl),multi:!0},_k=new A("CompositionEventMode");let rl=(()=>{class n extends lb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function gk(){const n=Mn()?Mn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(_(bi),_(Re),_(_k,8))},n.\u0275dir=I({type:n,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(t,i){1&t&&qe("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[te([mk]),K]}),n})();function ii(n){return null==n||0===n.length}function ub(n){return null!=n&&"number"==typeof n.length}const ct=new A("NgValidators"),ri=new A("NgAsyncValidators"),yk=/^(?=.{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 vk{static min(e){return function db(n){return e=>{if(ii(e.value)||ii(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function hb(n){return e=>{if(ii(e.value)||ii(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function fb(n){return ii(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function pb(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function mb(n){return ii(n.value)||yk.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function gb(n){return e=>ii(e.value)||!ub(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function _b(n){return e=>ub(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function yb(n){if(!n)return sl;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(ii(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return wb(e)}static composeAsync(e){return Mb(e)}}function sl(n){return null}function vb(n){return null!=n}function bb(n){const e=qo(n)?jr(n):n;return ag(e),e}function Db(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Cb(n,e){return e.map(t=>t(n))}function Eb(n){return n.map(e=>function bk(n){return!n.validate}(e)?e:t=>e.validate(t))}function wb(n){if(!n)return null;const e=n.filter(vb);return 0==e.length?null:function(t){return Db(Cb(t,e))}}function Qd(n){return null!=n?wb(Eb(n)):null}function Mb(n){if(!n)return null;const e=n.filter(vb);return 0==e.length?null:function(t){return function fk(...n){if(1===n.length){const e=n[0];if(J(e))return il(e,null);if(Ue(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return il(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return il(n=1===n.length&&J(n[0])?n[0]:n,null).pipe($n(t=>e(...t)))}return il(n,null)}(Cb(t,e).map(bb)).pipe($n(Db))}}function Xd(n){return null!=n?Mb(Eb(n)):null}function Sb(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Ab(n){return n._rawValidators}function Tb(n){return n._rawAsyncValidators}function Jd(n){return n?Array.isArray(n)?n:[n]:[]}function ol(n,e){return Array.isArray(n)?n.includes(e):n===e}function Ib(n,e){const t=Jd(e);return Jd(n).forEach(r=>{ol(t,r)||t.push(r)}),t}function Fb(n,e){return Jd(e).filter(t=>!ol(n,t))}class Ob{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(e){this._rawValidators=e||[],this._composedValidatorFn=Qd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Xd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Bn extends Ob{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class _t extends Ob{get formDirective(){return null}get path(){return null}}let Rb=(()=>{class n extends class xb{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(_(Bn,2))},n.\u0275dir=I({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Ut("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[K]}),n})();function $s(n,e){nh(n,e),e.valueAccessor.writeValue(n.value),function Ik(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&kb(n,e)})}(n,e),function Ok(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function Fk(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&kb(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function Tk(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function cl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),dl(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ul(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function nh(n,e){const t=Ab(n);null!==e.validator?n.setValidators(Sb(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Tb(n);null!==e.asyncValidator?n.setAsyncValidators(Sb(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();ul(e._rawValidators,r),ul(e._rawAsyncValidators,r)}function dl(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Ab(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Tb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return ul(e._rawValidators,i),ul(e._rawAsyncValidators,i),t}function kb(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Pb(n,e){nh(n,e)}function Vb(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function sh(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const Us="VALID",hl="INVALID",xr="PENDING",zs="DISABLED";function ah(n){return(fl(n)?n.validators:n)||null}function Bb(n){return Array.isArray(n)?Qd(n):n||null}function lh(n,e){return(fl(e)?e.asyncValidators:n)||null}function jb(n){return Array.isArray(n)?Xd(n):n||null}function fl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const Hb=n=>n instanceof dh,ch=n=>n instanceof hh;function $b(n){return Hb(n)?n.value:n.getRawValue()}function Ub(n,e){const t=ch(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new M(1e3,"");if(!i[e])throw new M(1001,"")}function zb(n,e){ch(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new M(1002,"")})}class uh{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=Bb(this._rawValidators),this._composedAsyncValidatorFn=jb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===Us}get invalid(){return this.status===hl}get pending(){return this.status==xr}get disabled(){return this.status===zs}get enabled(){return this.status!==zs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=Bb(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=jb(e)}addValidators(e){this.setValidators(Ib(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Ib(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Fb(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Fb(e,this._rawAsyncValidators))}hasValidator(e){return ol(this._rawValidators,e)}hasAsyncValidator(e){return ol(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=xr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=zs,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Us,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===Us||this.status===xr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?zs:Us}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=xr,this._hasOwnPendingAsyncValidator=!0;const t=bb(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function kk(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=ch(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof Lk)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new ve,this.statusChanges=new ve}_calculateStatus(){return this._allControlsDisabled()?zs:this.errors?hl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xr)?xr:this._anyControlsHaveStatus(hl)?hl:Us}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){fl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class dh extends uh{constructor(e=null,t,i){super(ah(t),lh(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){sh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){sh(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class hh extends uh{constructor(e,t,i){super(ah(t),lh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){zb(this,e),Object.keys(e).forEach(i=>{Ub(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=$b(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Lk extends uh{constructor(e,t,i){super(ah(t),lh(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){zb(this,e),e.forEach((i,r)=>{Ub(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>$b(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Vk={provide:_t,useExisting:ue(()=>pl)},Gs=(()=>Promise.resolve(null))();let pl=(()=>{class n extends _t{constructor(t,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new ve,this.form=new hh({},Qd(t),Xd(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Gs.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),$s(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Gs.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Gs.then(()=>{const i=this._findContainer(t.path),r=new hh({});Pb(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Gs.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){Gs.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Vb(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10))},n.\u0275dir=I({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){1&t&&qe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[te([Vk]),K]}),n})();const $k={provide:fn,useExisting:ue(()=>fh),multi:!0};let fh=(()=>{class n extends xi{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&qe("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[te([$k]),K]}),n})(),Yb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})();const ph=new A("NgModelWithFormControlWarning"),Wk={provide:Bn,useExisting:ue(()=>mh)};let mh=(()=>{class n extends Bn{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new ve,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function rh(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===rl?t=s:function Nk(n){return Object.getPrototypeOf(n.constructor)===xi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&cl(i,this,!1),$s(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function ih(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10),_(fn,10),_(ph,8))},n.\u0275dir=I({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[te([Wk]),K,en]}),n})();const qk={provide:_t,useExisting:ue(()=>ml)};let ml=(()=>{class n extends _t{constructor(t,i){super(),this.validators=t,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new ve,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(dl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return $s(i,t),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){cl(t.control||null,t,!1),sh(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,Vb(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(cl(i||null,t),Hb(r)&&($s(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);Pb(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function xk(n,e){return dl(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){nh(this.form,this),this._oldForm&&dl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10))},n.\u0275dir=I({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&qe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[te([qk]),K,en]}),n})(),hP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[Yb]]}),n})(),fP=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:ph,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[hP]}),n})();const pP=new A("cdk-dir-doc",{providedIn:"root",factory:function mP(){return ac(fe)}}),gP=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Dh=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new ve,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function _P(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?gP.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(D(pP,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Ws=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})();function qs(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function si(){}function gD(n,e,t){return function(r){return r.lift(new xP(n,e,t))}}class xP{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new RP(e,this.nextOrObserver,this.error,this.complete))}}class RP extends Ie{constructor(e,t,i,r){super(e),this._tapNext=si,this._tapError=si,this._tapComplete=si,this._tapError=i||si,this._tapComplete=r||si,q(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||si,this._tapError=t.error||si,this._tapComplete=t.complete||si)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const gl=new dn(Oa);function Eh(n,e=gl){return t=>t.lift(new NP(n,e))}class NP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new kP(e,this.dueTime,this.scheduler))}}class kP extends Ie{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(PP,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function PP(n){n.debouncedNext()}function Rr(n,e){return function(i){return i.lift(new LP(n,e))}}class LP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new VP(e,this.predicate,this.thisArg))}}class VP extends Ie{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class $P extends class HP{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new Ee,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new Ee,this.change=new Ee,e instanceof Ss&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(gD(t=>this._pressedLetters.push(t)),Eh(e),Rr(()=>this._pressedLetters.length>0),$n(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||qs(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof Ss?this._items.toArray():this._items}}{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}const bD="cdk-high-contrast-black-on-white",DD="cdk-high-contrast-white-on-black",wh="cdk-high-contrast-active";let QP=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(wh),t.remove(bD),t.remove(DD),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(wh),t.add(bD)):2===i&&(t.add(wh),t.add(DD))}}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function XP(n,e){if(1&n&&Jn(0,"mat-pseudo-checkbox",4),2&n){const t=lt();ee("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function JP(n,e){if(1&n&&(ae(0,"span",5),Nn(1),he()),2&n){const t=lt();oe(1),Dr("(",t.group.label,")")}}const e1=["*"],n1=new A("mat-sanity-checks",{providedIn:"root",factory:function t1(){return!0}});let jn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Zd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(D(QP),D(n1,8),D(fe))},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[Ws],Ws]}),n})();function r1(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function s1(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Vn(e)}}}function o1(n){return class extends n{constructor(...e){super(...e),this.stateChanges=new Ee,this.errorState=!1}updateErrorState(){const e=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==e&&(this.errorState=s,this.stateChanges.next())}}}let ED=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class l1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const wD={enterDuration:225,exitDuration:150},Mh=tl({passive:!0}),MD=["mousedown","touchstart"],SD=["mouseup","mouseleave","touchend","touchcancel"];class u1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},wD),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function h1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function d1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new l1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},wD),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Fr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(MD))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(SD),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=function KP(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!function YP(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Mh)})})}_removeTriggerEvents(){this._triggerElement&&(MD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Mh)}),this._pointerUpEventsRegistered&&SD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Mh)}))}}const f1=new A("mat-ripple-global-options");let p1=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new u1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(re),_(hn),_(f1,8),_(js,8))},n.\u0275dir=I({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Ut("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),m1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[jn],jn]}),n})(),g1=(()=>{class n{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(t){return new(t||n)(_(js,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,i){2&t&&Ut("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),_1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[jn]]}),n})();const AD=new A("MAT_OPTION_PARENT_COMPONENT"),TD=new A("MatOptgroup");let y1=0;class ID{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let v1=(()=>{class n{constructor(t,i,r,s){this._element=t,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+y1++,this.onSelectionChange=new ve,this._stateChanges=new Ee}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Vn(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!qs(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new ID(this,t))}}return n.\u0275fac=function(t){!function rg(){throw new Error("invalid")}()},n.\u0275dir=I({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),FD=(()=>{class n extends v1{constructor(t,i,r,s){super(t,i,r,s)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(wi),_(AD,8),_(TD,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,i){1&t&&qe("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&t&&(Zo("id",i.id),at("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Ut("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[K],ngContentSelectors:e1,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,i){1&t&&(Ko(),Qe(0,XP,1,2,"mat-pseudo-checkbox",0),ae(1,"span",1),sn(2),he(),Qe(3,JP,2,1,"span",2),Jn(4,"div",3)),2&t&&(ee("ngIf",i.multiple),oe(3),ee("ngIf",i.group&&i.group._inert),oe(1),ee("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[g1,Da,p1],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),OD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[m1,Ma,jn,_1]]}),n})(),xD=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),C1=(()=>{class n{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=Fr(t);return new ge(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new Ee,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}}return n.\u0275fac=function(t){return new(t||n)(D(xD))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E1=(()=>{class n{constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new ve,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Vn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function ak(n,e=0){return function lk(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(Eh(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(_(C1),_(Re),_(re))},n.\u0275dir=I({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),w1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:[xD]}),n})();function Nr(n,e,t,i){return q(t)&&(i=t,t=void 0),i?Nr(n,e,t).pipe($n(r=>J(r)?i(...r):i(r))):new ge(r=>{RD(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function RD(n,e,t,i,r){let s;if(function A1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function S1(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function M1(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)RD(n[o],e,t,i,r)}i.add(s)}function ND(...n){return function T1(){return Kh(1)}()(xa(...n))}function _l(...n){const e=n[n.length-1];return Br(e)?(n.pop(),t=>ND(n,t,e)):t=>ND(n,t)}function yl(n){return e=>e.lift(new I1(n))}class I1{constructor(e){this.notifier=e}call(e,t){const i=new F1(e),r=to(this.notifier,new Js(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class F1 extends eo{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const O1=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ys(n){return e=>0===n?bd():e.lift(new x1(n))}class x1{constructor(e){if(this.total=e,this.total<0)throw new O1}call(e,t){return t.subscribe(new R1(e,this.total))}}class R1 extends Ie{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const N1=["connectionContainer"],k1=["inputContainer"],P1=["label"];function L1(n,e){1&n&&(ms(0),ae(1,"div",14),Jn(2,"div",15)(3,"div",16)(4,"div",17),he(),ae(5,"div",18),Jn(6,"div",15)(7,"div",16)(8,"div",17),he(),gs())}function V1(n,e){if(1&n){const t=pu();ae(0,"div",19),qe("cdkObserveContent",function(){return Ul(t),lt().updateOutlineGap()}),sn(1,1),he()}2&n&&ee("cdkObserveContentDisabled","outline"!=lt().appearance)}function B1(n,e){if(1&n&&(ms(0),sn(1,2),ae(2,"span"),Nn(3),he(),gs()),2&n){const t=lt(2);oe(3),br(t._control.placeholder)}}function j1(n,e){1&n&&sn(0,3,["*ngSwitchCase","true"])}function H1(n,e){1&n&&(ae(0,"span",23),Nn(1," *"),he())}function $1(n,e){if(1&n){const t=pu();ae(0,"label",20,21),qe("cdkObserveContent",function(){return Ul(t),lt().updateOutlineGap()}),Qe(2,B1,4,1,"ng-container",12),Qe(3,j1,1,0,"ng-content",12),Qe(4,H1,2,0,"span",22),he()}if(2&n){const t=lt();Ut("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),ee("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),at("for",t._control.id)("aria-owns",t._control.id),oe(2),ee("ngSwitchCase",!1),oe(1),ee("ngSwitchCase",!0),oe(1),ee("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function U1(n,e){1&n&&(ae(0,"div",24),sn(1,4),he())}function z1(n,e){if(1&n&&(ae(0,"div",25),Jn(1,"span",26),he()),2&n){const t=lt();oe(1),Ut("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function G1(n,e){1&n&&(ae(0,"div"),sn(1,5),he()),2&n&&ee("@transitionMessages",lt()._subscriptAnimationState)}function W1(n,e){if(1&n&&(ae(0,"div",30),Nn(1),he()),2&n){const t=lt(2);ee("id",t._hintLabelId),oe(1),br(t.hintLabel)}}function q1(n,e){if(1&n&&(ae(0,"div",27),Qe(1,W1,2,2,"div",28),sn(2,6),Jn(3,"div",29),sn(4,7),he()),2&n){const t=lt();ee("@transitionMessages",t._subscriptAnimationState),oe(1),ee("ngIf",t.hintLabel)}}const K1=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Y1=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Z1=0;const kD=new A("MatError");let Q1=(()=>{class n{constructor(t,i){this.id="mat-error-"+Z1++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(function wo(n){return function LE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(If(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Ge(),n)}("aria-live"),_(Re))},n.\u0275dir=I({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&at("id",i.id)},inputs:{id:"id"},features:[te([{provide:kD,useExisting:n}])]}),n})();const X1={transitionMessages:oR("transitionMessages",[lR("enter",ka({opacity:1,transform:"translateY(0%)"})),cR("void => enter",[ka({opacity:0,transform:"translateY(-5px)"}),aR("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Sh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n}),n})(),J1=0;const PD=new A("MatHint");let eL=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+J1++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(at("id",i.id)("align",null),Ut("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[te([{provide:PD,useExisting:n}])]}),n})(),Ah=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-label"]]}),n})(),tL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-placeholder"]]}),n})();const nL=new A("MatPrefix"),iL=new A("MatSuffix");let LD=0;const sL=r1(class{constructor(n){this._elementRef=n}},"primary"),oL=new A("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Th=new A("MatFormField");let aL=(()=>{class n extends sL{constructor(t,i,r,s,o,a,l){super(t),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new Ee,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+LD++,this._labelId="mat-form-field-label-"+LD++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const i=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Vn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(_l(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(yl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(yl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Un(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_l(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_l(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yl(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,Nr(this._label.nativeElement,"transitionend").pipe(Ys(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!t||!t.children.length||!t.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=t.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(wi),_(Dh,8),_(oL,8),_(hn),_(re),_(js,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(1&t&&(zt(r,Sh,5),zt(r,Sh,7),zt(r,Ah,5),zt(r,Ah,7),zt(r,tL,5),zt(r,kD,5),zt(r,PD,5),zt(r,nL,5),zt(r,iL,5)),2&t){let s;Xe(s=Je())&&(i._controlNonStatic=s.first),Xe(s=Je())&&(i._controlStatic=s.first),Xe(s=Je())&&(i._labelChildNonStatic=s.first),Xe(s=Je())&&(i._labelChildStatic=s.first),Xe(s=Je())&&(i._placeholderChild=s.first),Xe(s=Je())&&(i._errorChildren=s),Xe(s=Je())&&(i._hintChildren=s),Xe(s=Je())&&(i._prefixChildren=s),Xe(s=Je())&&(i._suffixChildren=s)}},viewQuery:function(t,i){if(1&t&&(Ci(N1,7),Ci(k1,5),Ci(P1,5)),2&t){let r;Xe(r=Je())&&(i._connectionContainerRef=r.first),Xe(r=Je())&&(i._inputContainerRef=r.first),Xe(r=Je())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,i){2&t&&Ut("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[te([{provide:Th,useExisting:n}]),K],ngContentSelectors:Y1,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,i){1&t&&(Ko(K1),ae(0,"div",0)(1,"div",1,2),qe("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Qe(3,L1,9,0,"ng-container",3),Qe(4,V1,2,1,"div",4),ae(5,"div",5,6),sn(7),ae(8,"span",7),Qe(9,$1,5,16,"label",8),he()(),Qe(10,U1,2,0,"div",9),he(),Qe(11,z1,2,4,"div",10),ae(12,"div",11),Qe(13,G1,2,1,"div",12),Qe(14,q1,5,2,"div",13),he()()),2&t&&(oe(3),ee("ngIf","outline"==i.appearance),oe(1),ee("ngIf",i._prefixChildren.length),oe(5),ee("ngIf",i._hasFloatingLabel()),oe(1),ee("ngIf",i._suffixChildren.length),oe(1),ee("ngIf","outline"!=i.appearance),oe(1),ee("ngSwitch",i._getDisplayedMessages()),oe(1),ee("ngSwitchCase","error"),oe(1),ee("ngSwitchCase","hint"))},directives:[Da,E1,wa,Xy],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.cdk-high-contrast-active .mat-form-field-disabled .mat-form-field-label{color:GrayText}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-form-field-disabled .mat-form-field-flex{outline-color:GrayText}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px;border-top-color:GrayText}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-form-field-disabled .mat-form-field-outline{color:GrayText}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[X1.transitionMessages]},changeDetection:0}),n})(),Ih=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[Ma,jn,w1],jn]}),n})();const BD=tl({passive:!0});let lL=(()=>{class n{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return _v;const i=Fr(t),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new Ee,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,BD),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,BD)}}),s}stopMonitoring(t){const i=Fr(t),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((t,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(re))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),jD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})();const cL=new A("MAT_INPUT_VALUE_ACCESSOR"),uL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let dL=0;const hL=o1(class{constructor(n,e,t,i){this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=t,this.ngControl=i}});let HD=(()=>{class n extends hL{constructor(t,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=t,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+dL++,this.focused=!1,this.stateChanges=new Ee,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>ab().has(p)),this._iOSKeyupListener=p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))};const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",this._iOSKeyupListener)}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Vn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){var t,i,r,s;return null!==(s=null!==(t=this._required)&&void 0!==t?t:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(vk.required))&&void 0!==s&&s}set required(t){this._required=Vn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&ab().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Vn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement),this._platform.IOS&&this._elementRef.nativeElement.removeEventListener("keyup",this._iOSKeyupListener)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,i;const r=(null===(i=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===i?void 0:i.call(t))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){uL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(hn),_(Bn,10),_(pl,8),_(ml,8),_(ED),_(cL,10),_(lL),_(re),_(Th,8))},n.\u0275dir=I({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,i){1&t&&qe("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(Zo("disabled",i.disabled)("required",i.required),at("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Ut("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[te([{provide:Sh,useExisting:n}]),K,en]}),n})(),fL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:[ED],imports:[[jD,Ih,jn],jD,Ih]}),n})(),pL=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new dh(""),this.onEnter$=new Ee,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(Eh(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Rr(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),mL=(()=>{class n extends pL{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(t){super.ngOnChanges(t),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var t;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(t=this.suggestions)||void 0===t?void 0:t.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var t;null===(t=this.onFocus)||void 0===t||t.call(this)}optionSelected(t){this.onEnter$.next()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();var gL=Vh(959);new class vL extends dn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class yL extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let DL=1;const CL=Promise.resolve(),vl={};function $D(n){return n in vl&&(delete vl[n],!0)}const UD={setImmediate(n){const e=DL++;return vl[e]=!0,CL.then(()=>$D(e)&&n()),e},clearImmediate(n){$D(n)}};new class wL extends dn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class EL extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=UD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(UD.clearImmediate(t),e.scheduled=void 0)}});class AL{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new TL(e,this.durationSelector))}}class TL extends eo{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=to(t,new Js(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function zD(n){return!J(n)&&n-parseFloat(n)+1>=0}function FL(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function GD(n,e=gl){return function SL(n){return function(t){return t.lift(new AL(n))}}(()=>function IL(n=0,e,t){let i=-1;return zD(e)?i=Number(e)<1?1:Number(e):Br(e)&&(t=e),Br(t)||(t=gl),new ge(r=>{const s=zD(n)?n:+n-t.now();return t.schedule(FL,s,{index:0,period:i,subscriber:r})})}(n,e))}let xL=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new Ee,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new ge(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(GD(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):xa()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Rr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>Nr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(D(re),D(hn),D(fe,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Fh=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new Ee,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(GD(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(re),D(fe,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})(),WD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({imports:[[Ws,Oh],Ws,Oh]}),n})();class xh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class NL extends xh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class qD extends xh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class kL extends xh{constructor(e){super(),this.element=e instanceof Re?e.nativeElement:e}}class LL extends class PL{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof NL?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof qD?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof kL?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector||pt.NULL),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.viewCount>0&&this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let VL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({}),n})();const KD=dk();class BL{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=$e(-this._previousScrollPosition.left),e.style.top=$e(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),KD&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),KD&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class jL{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class YD{enable(){}disable(){}attach(){}}function Rh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function ZD(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class HL{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Rh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let $L=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new YD,this.close=o=>new jL(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new BL(this._viewportRuler,this._document),this.reposition=o=>new HL(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(D(xL),D(Fh),D(re),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class QD{constructor(e){if(this.scrollStrategy=new YD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class UL{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class zL{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new Ee,this._attachments=new Ee,this._detachments=new Ee,this._locationChanges=z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._backdropTransitionendHandler=u=>{this._disposeBackdrop(u.target)},this._keydownEvents=new Ee,this._outsidePointerEvents=new Ee,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host);const t=this._portalOutlet.attach(e);return this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ys(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=$e(this._config.width),e.height=$e(this._config.height),e.minWidth=$e(this._config.minWidth),e.minHeight=$e(this._config.minHeight),e.maxWidth=$e(this._config.maxWidth),e.maxHeight=$e(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;!e||(e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",this._backdropTransitionendHandler)}),e.style.pointerEvents="none",this._backdropTimeout=this._ngZone.runOutsideAngular(()=>setTimeout(()=>{this._disposeBackdrop(e)},500)))}_toggleClasses(e,t,i){const r=sb(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(yl(Un(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",this._backdropTransitionendHandler),e.remove(),this._backdropElement===e&&(this._backdropElement=null)),this._backdropTimeout&&(clearTimeout(this._backdropTimeout),this._backdropTimeout=void 0)}}let Nh=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Zd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Zd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(hn))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const XD="cdk-overlay-connected-position-bounding-box",GL=/([A-Za-z%]+)$/;class WL{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new Ee,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(XD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ni(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(XD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(this._isDisposed||!this._platform.isBrowser)return;const e=this._lastPosition;if(e){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}else this.apply()}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=eC(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=JD(this._overlayRef.getConfig().minHeight),a=JD(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=eC(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new UL(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=$e(i.height),r.top=$e(i.top),r.bottom=$e(i.bottom),r.width=$e(i.width),r.left=$e(i.left),r.right=$e(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=$e(s)),o&&(r.maxWidth=$e(o))}this._lastBoundingBoxSize=i,Ni(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ni(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ni(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ni(i,this._getExactOverlayY(t,e,u)),Ni(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=$e(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=$e(o.maxWidth):s&&(i.maxWidth="")),Ni(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=$e(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=$e(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:ZD(e,i),isOriginOutsideView:Rh(e,i),isOverlayClipped:ZD(t,i),isOverlayOutsideView:Rh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&sb(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Re)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function Ni(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function JD(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(GL);return t&&"px"!==t?null:parseFloat(e)}return n||null}function eC(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const tC="cdk-global-overlay-wrapper";class qL{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(tC),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(tC),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let KL=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new qL}flexibleConnectedTo(t){return new WL(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(D(Fh),D(fe),D(hn),D(Nh))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),nC=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),YL=(()=>{class n extends nC{constructor(t,i){super(t),this._ngZone=i,this._keydownListener=r=>{const s=this._attachedOverlays;for(let o=s.length-1;o>-1;o--)if(s[o]._keydownEvents.observers.length>0){const a=s[o]._keydownEvents;this._ngZone?this._ngZone.run(()=>a.next(r)):a.next(r);break}}}add(t){super.add(t),this._isAttached||(this._ngZone?this._ngZone.runOutsideAngular(()=>this._document.body.addEventListener("keydown",this._keydownListener)):this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(re,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZL=(()=>{class n extends nC{constructor(t,i,r){super(t),this._platform=i,this._ngZone=r,this._cursorStyleIsSet=!1,this._pointerDownListener=s=>{this._pointerDownEventTarget=Yd(s)},this._clickListener=s=>{const o=Yd(s),a="click"===s.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:o;this._pointerDownEventTarget=null;const l=this._attachedOverlays.slice();for(let c=l.length-1;c>-1;c--){const u=l[c];if(u._outsidePointerEvents.observers.length<1||!u.hasAttached())continue;if(u.overlayElement.contains(o)||u.overlayElement.contains(a))break;const d=u._outsidePointerEvents;this._ngZone?this._ngZone.run(()=>d.next(s)):d.next(s)}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;this._ngZone?this._ngZone.runOutsideAngular(()=>this._addEventListeners(i)):this._addEventListeners(i),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}_addEventListeners(t){t.addEventListener("pointerdown",this._pointerDownListener,!0),t.addEventListener("click",this._clickListener,!0),t.addEventListener("auxclick",this._clickListener,!0),t.addEventListener("contextmenu",this._clickListener,!0)}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(hn),D(re,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QL=0,bl=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new QD(t);return o.direction=o.direction||this._directionality.value,new zL(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+QL++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(aa)),new LL(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(D($L),D(Nh),D(vi),D(KL),D(YL),D(pt),D(re),D(fe),D(Dh),D(Ry),D(ZL))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const eV={provide:new A("cdk-connected-overlay-scroll-strategy"),deps:[bl],useFactory:function JL(n){return()=>n.scrollStrategies.reposition()}};let tV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:[bl,eV],imports:[[Ws,VL,WD],WD]}),n})();class rV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new kh(e,this.delay,this.scheduler))}}class kh extends Ie{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(kh.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new sV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Dt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Dt.createComplete()),this.unsubscribe()}}class sV{constructor(e,t){this.time=e,this.notification=t}}const oV=["panel"];function aV(n,e){if(1&n&&(ae(0,"div",0,1),sn(2),he()),2&n){const t=e.id,i=lt();ee("id",i.id)("ngClass",i._classList),at("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const lV=["*"];let cV=0;class uV{constructor(e,t){this.source=e,this.option=t}}const dV=s1(class{}),iC=new A("mat-autocomplete-default-options",{providedIn:"root",factory:function hV(){return{autoActiveFirstOption:!1}}});let fV=(()=>{class n extends dV{constructor(t,i,r,s){super(),this._changeDetectorRef=t,this._elementRef=i,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new ve,this.opened=new ve,this.closed=new ve,this.optionActivated=new ve,this._classList={},this.id="mat-autocomplete-"+cV++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Vn(t)}set classList(t){this._classList=t&&t.length?function ck(n,e=/\s+/){const t=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(e);for(const r of i){const s=`${r}`.trim();s&&t.push(s)}}return t}(t).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new $P(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const i=new uV(this,t);this.optionSelected.emit(i)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(t){return new(t||n)(_(wi),_(Re),_(iC),_(hn))},n.\u0275dir=I({type:n,viewQuery:function(t,i){if(1&t&&(Ci(wn,7),Ci(oV,5)),2&t){let r;Xe(r=Je())&&(i.template=r.first),Xe(r=Je())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[K]}),n})(),pV=(()=>{class n extends fV{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275cmp=ci({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,r){if(1&t&&(zt(r,TD,5),zt(r,FD,5)),2&t){let s;Xe(s=Je())&&(i.optionGroups=s),Xe(s=Je())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[te([{provide:AD,useExisting:n}]),K],ngContentSelectors:lV,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,i){1&t&&(Ko(),Qe(0,aV,3,4,"ng-template"))},directives:[Uy],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const rC=new A("mat-autocomplete-scroll-strategy"),gV={provide:rC,deps:[bl],useFactory:function mV(n){return()=>n.scrollStrategies.reposition()}},_V={provide:fn,useExisting:ue(()=>sC),multi:!0};let yV=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this._element=t,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new Ee,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function _L(n){return new ge(e=>{let t;try{t=n()}catch(r){return void e.error(r)}return(t?jr(t):bd()).subscribe(e)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(_l(f),Ps(()=>Un(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Ys(1),Ps(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Vn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this._zone.run(()=>{this.autocomplete.closed.emit()}),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Un(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Rr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Rr(()=>this._overlayAttached)):xa()).pipe($n(t=>t instanceof ID?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Un(Nr(this._document,"click"),Nr(this._document,"auxclick"),Nr(this._document,"touchend")).pipe(Rr(t=>{const i=Yd(t),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&this._document.activeElement!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(t){Promise.resolve().then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const i=t.keyCode,r=qs(t);if(27===i&&!r&&t.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!r)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const s=this.autocomplete._keyManager.activeItem,o=38===i||40===i;9===i||o&&!r&&this.panelOpen?this.autocomplete._keyManager.onKeydown(t):o&&this._canOpen()&&this.openPanel(),(o||this.autocomplete._keyManager.activeItem!==s)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let i=t.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_handleClick(){this._canOpen()&&!this.panelOpen&&this.openPanel()}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Un(this._zone.onStable.pipe(Ys(1)),this.autocomplete.options.changes.pipe(gD(()=>this._positionStrategy.reapplyLastPosition()),function iV(n,e=gl){const i=function nV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new rV(i,e))}(0))).pipe(Ps(()=>(this._zone.run(()=>{const r=this.panelOpen;this._resetActiveItem(),this.autocomplete._setVisibility(),this._changeDetectorRef.detectChanges(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit())}),this.panelClosingActions)),Ys(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(t){const i=t&&t.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(i=>{i!==t&&i.selected&&i.deselect()})}_attachOverlay(){var t;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new qD(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!qs(s)||38===s.keyCode&&qs(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new QD({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const i=this.autocomplete,r=function b1(n,e,t){if(t.length){let i=e.toArray(),r=t.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(t,i.options,i.optionGroups);if(0===t&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[t];if(s){const o=s._getHostElement(),a=function D1(n,e,t,i){return n<t?n:n+e>t+i?Math.max(0,n-i+e):t}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(bl),_(ln),_(re),_(wi),_(rC),_(Dh,8),_(Th,9),_(fe,8),_(Fh),_(iC,8))},n.\u0275dir=I({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[en]}),n})(),sC=(()=>{class n extends yV{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){1&t&&qe("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)})("click",function(){return i._handleClick()}),2&t&&at("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",i.autocompleteDisabled?null:"listbox")},exportAs:["matAutocompleteTrigger"],features:[te([_V]),K]}),n})(),vV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:[gV],imports:[[tV,OD,jn,Ma],Oh,OD,jn]}),n})();function bV(n,e){if(1&n&&(ae(0,"mat-label"),Nn(1),he()),2&n){const t=lt();oe(1),br(t.label)}}function DV(n,e){if(1&n&&(ae(0,"mat-option",6),Nn(1),he()),2&n){const t=e.$implicit,i=lt();ee("value",null==t?null:t.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),oe(1),Dr(" ",null==t?null:t.label," ")}}function CV(n,e){if(1&n&&(ae(0,"mat-error"),Nn(1),he()),2&n){const t=lt();oe(1),Dr(" ",t.error," ")}}let EV=(()=>{class n extends mL{constructor(){super(...arguments),this.id=(0,gL.generate)()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275cmp=ci({type:n,selectors:[["drayman-number-field-internal"]],viewQuery:function(t,i){if(1&t&&Ci(HD,5),2&t){let r;Xe(r=Je())&&(i.input=r.first)}},inputs:{suggestions:"suggestions",onFocus:"onFocus",appearance:"appearance",suggestionsPanelWidth:"suggestionsPanelWidth",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[K],decls:9,vars:12,consts:[[3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","step","any","type","number","autocomplete","off",3,"id","placeholder","formControl","errorStateMatcher","matAutocomplete","blur"],["autoActiveFirstOption","",3,"panelWidth","opened"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],[3,"value","ngStyle","disabled"]],template:function(t,i){if(1&t&&(ae(0,"mat-form-field",0),Qe(1,bV,2,1,"mat-label",1),ae(2,"input",2),qe("blur",function(){return i.onBlur()}),he(),ae(3,"mat-autocomplete",3,4),qe("opened",function(){return i.triggerFocus()}),Qe(5,DV,2,4,"mat-option",5),he(),ae(6,"mat-hint"),Nn(7),he(),Qe(8,CV,2,1,"mat-error",1),he()),2&t){const r=function qm(n){return function zi(n,e){return n[e]}(function gE(){return P.lFrame.contextLView}(),20+n)}(4);ee("appearance",i.appearance||"outline")("floatLabel","auto"),oe(1),ee("ngIf",i.label),oe(1),ee("id",i.id)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",r),oe(1),ee("panelWidth",i.suggestionsPanelWidth),oe(2),ee("ngForOf",i.filteredSuggestions),oe(2),br(i.helpText),oe(1),ee("ngIf",i.error)}},directives:[aL,Da,Ah,HD,fh,rl,sC,Rb,mh,pV,zy,FD,ev,eL,Q1],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),wV=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),MV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function rR(n,e){const t=function Qx(n,e){return e.get(vi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new tR(n,e.injector),r=function Zx(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Gx(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends iR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(EV,{injector:this.injector});customElements.define("drayman-number-field",t)}}return n.\u0275fac=function(t){return new(t||n)(D(pt))},n.\u0275mod=we({type:n}),n.\u0275inj=_e({providers:[{provide:Nh,useClass:wV}],imports:[[fv,ok,fP,Ih,fL,vV]]}),n})();(function LI(){yy=!1})(),bx().bootstrapModule(MV).catch(n=>console.error(n))})()})();
1
+ (()=>{var lC={959:(q,Ce,V)=>{"use strict";q.exports=V(606)},550:(q,Ce,V)=>{"use strict";var J,Ue,tt,X=V(539),ae="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function ze(){tt=!1}function z(Ne){if(Ne){if(Ne!==J){if(Ne.length!==ae.length)throw new Error("Custom alphabet for shortid must be "+ae.length+" unique characters. You submitted "+Ne.length+" characters: "+Ne);var Et=Ne.split("").filter(function(li,Br,Qs){return Br!==Qs.lastIndexOf(li)});if(Et.length)throw new Error("Custom alphabet for shortid must be "+ae.length+" unique characters. These characters were not unique: "+Et.join(", "));J=Ne,ze()}}else J!==ae&&(J=ae,ze())}function Ie(){return tt||(tt=function Li(){J||z(ae);for(var Br,Ne=J.split(""),Et=[],li=X.nextValue();Ne.length>0;)li=X.nextValue(),Br=Math.floor(li*Ne.length),Et.push(Ne.splice(Br,1)[0]);return Et.join("")}())}q.exports={get:function Dl(){return J||ae},characters:function Ct(Ne){return z(Ne),J},seed:function Ee(Ne){X.seed(Ne),Ue!==Ne&&(ze(),Ue=Ne)},lookup:function Zs(Ne){return Ie()[Ne]},shuffled:Ie}},119:(q,Ce,V)=>{"use strict";var tt,ze,X=V(535);V(550),q.exports=function z(Ct){var Ee="",Li=Math.floor(.001*(Date.now()-1567752802062));return Li===ze?tt++:(tt=0,ze=Li),Ee+=X(7),Ee+=X(Ct),tt>0&&(Ee+=X(tt)),Ee+X(Li)}},535:(q,Ce,V)=>{"use strict";var X=V(550),ae=V(68),J=V(152);q.exports=function Ue(tt){for(var z,ze=0,Ct="";!z;)Ct+=J(ae,X.get(),1),z=tt<Math.pow(16,ze+1),ze++;return Ct}},606:(q,Ce,V)=>{"use strict";var X=V(550),ae=V(119),J=V(777),Ue=V(1)||0;function Ct(){return ae(Ue)}q.exports=Ct,q.exports.generate=Ct,q.exports.seed=function tt(Ee){return X.seed(Ee),q.exports},q.exports.worker=function ze(Ee){return Ue=Ee,q.exports},q.exports.characters=function z(Ee){return void 0!==Ee&&X.characters(Ee),X.shuffled()},q.exports.isValid=J},777:(q,Ce,V)=>{"use strict";var X=V(550);q.exports=function ae(J){return!(!J||"string"!=typeof J||J.length<6||new RegExp("[^"+X.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(J))}},68:q=>{"use strict";var Ce="object"==typeof window&&(window.crypto||window.msCrypto);q.exports=Ce&&Ce.getRandomValues?function(X){return Ce.getRandomValues(new Uint8Array(X))}:function(X){for(var ae=[],J=0;J<X;J++)ae.push(Math.floor(256*Math.random()));return ae}},539:q=>{"use strict";var Ce=1;q.exports={nextValue:function V(){return(Ce=(9301*Ce+49297)%233280)/233280},seed:function X(ae){Ce=ae}}},1:q=>{"use strict";q.exports=0},152:q=>{q.exports=function(Ce,V,X){for(var ae=(2<<Math.log(V.length-1)/Math.LN2)-1,J=-~(1.6*ae*X/V.length),Ue="";;)for(var tt=Ce(J),ze=J;ze--;)if((Ue+=V[tt[ze]&ae]||"").length===+X)return Ue}}},Vh={};function Bh(q){var Ce=Vh[q];if(void 0!==Ce)return Ce.exports;var V=Vh[q]={exports:{}};return lC[q](V,V.exports,Bh),V.exports}(()=>{"use strict";function q(n){return"function"==typeof n}let Ce=!1;const V={Promise:void 0,set useDeprecatedSynchronousErrorHandling(n){if(n){const e=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+e.stack)}else Ce&&console.log("RxJS: Back to a better error behavior. Thank you. <3");Ce=n},get useDeprecatedSynchronousErrorHandling(){return Ce}};function X(n){setTimeout(()=>{throw n},0)}const ae={closed:!0,next(n){},error(n){if(V.useDeprecatedSynchronousErrorHandling)throw n;X(n)},complete(){}},J=Array.isArray||(n=>n&&"number"==typeof n.length);function Ue(n){return null!==n&&"object"==typeof n}const ze=(()=>{function n(e){return Error.call(this),this.message=e?`${e.length} errors occurred during unsubscription:\n${e.map((t,i)=>`${i+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=e,this}return n.prototype=Object.create(Error.prototype),n})();class z{constructor(e){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,e&&(this._ctorUnsubscribe=!0,this._unsubscribe=e)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:t,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:s}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof z)t.remove(this);else if(null!==t)for(let o=0;o<t.length;++o)t[o].remove(this);if(q(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(o){e=o instanceof ze?Ct(o.errors):[o]}}if(J(s)){let o=-1,a=s.length;for(;++o<a;){const l=s[o];if(Ue(l))try{l.unsubscribe()}catch(c){e=e||[],c instanceof ze?e=e.concat(Ct(c.errors)):e.push(c)}}}if(e)throw new ze(e)}add(e){let t=e;if(!e)return z.EMPTY;switch(typeof e){case"function":t=new z(e);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof z)){const s=t;t=new z,t._subscriptions=[s]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:i}=t;if(null===i)t._parentOrParents=this;else if(i instanceof z){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}const r=this._subscriptions;return null===r?this._subscriptions=[t]:r.push(t),t}remove(e){const t=this._subscriptions;if(t){const i=t.indexOf(e);-1!==i&&t.splice(i,1)}}}var n;function Ct(n){return n.reduce((e,t)=>e.concat(t instanceof ze?t.errors:t),[])}z.EMPTY=((n=new z).closed=!0,n);const Ee="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random();class Ie extends z{constructor(e,t,i){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=ae;break;case 1:if(!e){this.destination=ae;break}if("object"==typeof e){e instanceof Ie?(this.syncErrorThrowable=e.syncErrorThrowable,this.destination=e,e.add(this)):(this.syncErrorThrowable=!0,this.destination=new Zs(this,e));break}default:this.syncErrorThrowable=!0,this.destination=new Zs(this,e,t,i)}}[Ee](){return this}static create(e,t,i){const r=new Ie(e,t,i);return r.syncErrorThrowable=!1,r}next(e){this.isStopped||this._next(e)}error(e){this.isStopped||(this.isStopped=!0,this._error(e))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(e){this.destination.next(e)}_error(e){this.destination.error(e),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:e}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}class Zs extends Ie{constructor(e,t,i,r){super(),this._parentSubscriber=e;let s,o=this;q(t)?s=t:t&&(s=t.next,i=t.error,r=t.complete,t!==ae&&(o=Object.create(t),q(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=s,this._error=i,this._complete=r}next(e){if(!this.isStopped&&this._next){const{_parentSubscriber:t}=this;V.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}error(e){if(!this.isStopped){const{_parentSubscriber:t}=this,{useDeprecatedSynchronousErrorHandling:i}=V;if(this._error)i&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)i?(t.syncErrorValue=e,t.syncErrorThrown=!0):X(e),this.unsubscribe();else{if(this.unsubscribe(),i)throw e;X(e)}}}complete(){if(!this.isStopped){const{_parentSubscriber:e}=this;if(this._complete){const t=()=>this._complete.call(this._context);V.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(e,t){try{e.call(this._context,t)}catch(i){if(this.unsubscribe(),V.useDeprecatedSynchronousErrorHandling)throw i;X(i)}}__tryOrSetError(e,t,i){if(!V.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,i)}catch(r){return V.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(X(r),!0)}return!1}_unsubscribe(){const{_parentSubscriber:e}=this;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}const Et="function"==typeof Symbol&&Symbol.observable||"@@observable";function li(n){return n}let _e=(()=>{class n{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(t){const i=new n;return i.source=this,i.operator=t,i}subscribe(t,i,r){const{operator:s}=this,o=function Ne(n,e,t){if(n){if(n instanceof Ie)return n;if(n[Ee])return n[Ee]()}return n||e||t?new Ie(n,e,t):new Ie(ae)}(t,i,r);if(o.add(s?s.call(o,this.source):this.source||V.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),V.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o}_trySubscribe(t){try{return this._subscribe(t)}catch(i){V.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=i),function Dl(n){for(;n;){const{closed:e,destination:t,isStopped:i}=n;if(e||i)return!1;n=t&&t instanceof Ie?t:null}return!0}(t)?t.error(i):console.warn(i)}}forEach(t,i){return new(i=jh(i))((r,s)=>{let o;o=this.subscribe(a=>{try{t(a)}catch(l){s(l),o&&o.unsubscribe()}},s,r)})}_subscribe(t){const{source:i}=this;return i&&i.subscribe(t)}[Et](){return this}pipe(...t){return 0===t.length?this:function Qs(n){return 0===n.length?li:1===n.length?n[0]:function(t){return n.reduce((i,r)=>r(i),t)}}(t)(this)}toPromise(t){return new(t=jh(t))((i,r)=>{let s;this.subscribe(o=>s=o,o=>r(o),()=>i(s))})}}return n.create=e=>new n(e),n})();function jh(n){if(n||(n=V.Promise||Promise),!n)throw new Error("no Promise impl found");return n}const Vi=(()=>{function n(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return n.prototype=Object.create(Error.prototype),n})();class Hh extends z{constructor(e,t){super(),this.subject=e,this.subscriber=t,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const e=this.subject,t=e.observers;if(this.subject=null,!t||0===t.length||e.isStopped||e.closed)return;const i=t.indexOf(this.subscriber);-1!==i&&t.splice(i,1)}}class $h extends Ie{constructor(e){super(e),this.destination=e}}let we=(()=>{class n extends _e{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[Ee](){return new $h(this)}lift(t){const i=new Uh(this,this);return i.operator=t,i}next(t){if(this.closed)throw new Vi;if(!this.isStopped){const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].next(t)}}error(t){if(this.closed)throw new Vi;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:i}=this,r=i.length,s=i.slice();for(let o=0;o<r;o++)s[o].error(t);this.observers.length=0}complete(){if(this.closed)throw new Vi;this.isStopped=!0;const{observers:t}=this,i=t.length,r=t.slice();for(let s=0;s<i;s++)r[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new Vi;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new Vi;return this.hasError?(t.error(this.thrownError),z.EMPTY):this.isStopped?(t.complete(),z.EMPTY):(this.observers.push(t),new Hh(this,t))}asObservable(){const t=new _e;return t.source=this,t}}return n.create=(e,t)=>new Uh(e,t),n})();class Uh extends we{constructor(e,t){super(),this.destination=e,this.source=t}next(e){const{destination:t}=this;t&&t.next&&t.next(e)}error(e){const{destination:t}=this;t&&t.error&&this.destination.error(e)}complete(){const{destination:e}=this;e&&e.complete&&this.destination.complete()}_subscribe(e){const{source:t}=this;return t?this.source.subscribe(e):z.EMPTY}}function jr(n){return n&&"function"==typeof n.schedule}function $n(n,e){return function(i){if("function"!=typeof n)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return i.lift(new cC(n,e))}}class cC{constructor(e,t){this.project=e,this.thisArg=t}call(e,t){return t.subscribe(new uC(e,this.project,this.thisArg))}}class uC extends Ie{constructor(e,t,i){super(e),this.project=t,this.count=0,this.thisArg=i||this}_next(e){let t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}this.destination.next(t)}}const zh=n=>e=>{for(let t=0,i=n.length;t<i&&!e.closed;t++)e.next(n[t]);e.complete()},Xs=function hC(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}(),Gh=n=>n&&"number"==typeof n.length&&"function"!=typeof n;function Wh(n){return!!n&&"function"!=typeof n.subscribe&&"function"==typeof n.then}const qh=n=>{if(n&&"function"==typeof n[Et])return(n=>e=>{const t=n[Et]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)})(n);if(Gh(n))return zh(n);if(Wh(n))return(n=>e=>(n.then(t=>{e.closed||(e.next(t),e.complete())},t=>e.error(t)).then(null,X),e))(n);if(n&&"function"==typeof n[Xs])return(n=>e=>{const t=n[Xs]();for(;;){let i;try{i=t.next()}catch(r){return e.error(r),e}if(i.done){e.complete();break}if(e.next(i.value),e.closed)break}return"function"==typeof t.return&&e.add(()=>{t.return&&t.return()}),e})(n);{const t=`You provided ${Ue(n)?"an invalid object":`'${n}'`} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`;throw new TypeError(t)}};function Cl(n,e){return new _e(t=>{const i=new z;let r=0;return i.add(e.schedule(function(){r!==n.length?(t.next(n[r++]),t.closed||i.add(this.schedule())):t.complete()})),i})}function Hr(n,e){return e?function bC(n,e){if(null!=n){if(function yC(n){return n&&"function"==typeof n[Et]}(n))return function mC(n,e){return new _e(t=>{const i=new z;return i.add(e.schedule(()=>{const r=n[Et]();i.add(r.subscribe({next(s){i.add(e.schedule(()=>t.next(s)))},error(s){i.add(e.schedule(()=>t.error(s)))},complete(){i.add(e.schedule(()=>t.complete()))}}))})),i})}(n,e);if(Wh(n))return function gC(n,e){return new _e(t=>{const i=new z;return i.add(e.schedule(()=>n.then(r=>{i.add(e.schedule(()=>{t.next(r),i.add(e.schedule(()=>t.complete()))}))},r=>{i.add(e.schedule(()=>t.error(r)))}))),i})}(n,e);if(Gh(n))return Cl(n,e);if(function vC(n){return n&&"function"==typeof n[Xs]}(n)||"string"==typeof n)return function _C(n,e){if(!n)throw new Error("Iterable cannot be null");return new _e(t=>{const i=new z;let r;return i.add(()=>{r&&"function"==typeof r.return&&r.return()}),i.add(e.schedule(()=>{r=n[Xs](),i.add(e.schedule(function(){if(t.closed)return;let s,o;try{const a=r.next();s=a.value,o=a.done}catch(a){return void t.error(a)}o?t.complete():(t.next(s),this.schedule())}))})),i})}(n,e)}throw new TypeError((null!==n&&typeof n||n)+" is not observable")}(n,e):n instanceof _e?n:new _e(qh(n))}class Js extends Ie{constructor(e){super(),this.parent=e}_next(e){this.parent.notifyNext(e)}_error(e){this.parent.notifyError(e),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class eo extends Ie{notifyNext(e){this.destination.next(e)}notifyError(e){this.destination.error(e)}notifyComplete(){this.destination.complete()}}function to(n,e){if(!e.closed)return n instanceof _e?n.subscribe(e):qh(n)(e)}function Kh(n,e,t=Number.POSITIVE_INFINITY){return"function"==typeof e?i=>i.pipe(Kh((r,s)=>Hr(n(r,s)).pipe($n((o,a)=>e(r,o,s,a))),t)):("number"==typeof e&&(t=e),i=>i.lift(new DC(n,t)))}class DC{constructor(e,t=Number.POSITIVE_INFINITY){this.project=e,this.concurrent=t}call(e,t){return t.subscribe(new CC(e,this.project,this.concurrent))}}class CC extends eo{constructor(e,t,i=Number.POSITIVE_INFINITY){super(e),this.project=t,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}_tryNext(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t)}_innerSub(e){const t=new Js(this),i=this.destination;i.add(t);const r=to(e,t);r!==t&&i.add(r)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(e){this.destination.next(e)}notifyComplete(){const e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function Yh(n=Number.POSITIVE_INFINITY){return Kh(li,n)}function Zh(n,e){return e?Cl(n,e):new _e(zh(n))}function Un(...n){let e=Number.POSITIVE_INFINITY,t=null,i=n[n.length-1];return jr(i)?(t=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(e=n.pop())):"number"==typeof i&&(e=n.pop()),null===t&&1===n.length&&n[0]instanceof _e?n[0]:Yh(e)(Zh(n,t))}function Qh(){return function(e){return e.lift(new EC(e))}}class EC{constructor(e){this.connectable=e}call(e,t){const{connectable:i}=this;i._refCount++;const r=new wC(e,i),s=t.subscribe(r);return r.closed||(r.connection=i.connect()),s}}class wC extends Ie{constructor(e,t){super(e),this.connectable=t}_unsubscribe(){const{connectable:e}=this;if(!e)return void(this.connection=null);this.connectable=null;const t=e._refCount;if(t<=0)return void(this.connection=null);if(e._refCount=t-1,t>1)return void(this.connection=null);const{connection:i}=this,r=e._connection;this.connection=null,r&&(!i||r===i)&&r.unsubscribe()}}class MC extends _e{constructor(e,t){super(),this.source=e,this.subjectFactory=t,this._refCount=0,this._isComplete=!1}_subscribe(e){return this.getSubject().subscribe(e)}getSubject(){const e=this._subject;return(!e||e.isStopped)&&(this._subject=this.subjectFactory()),this._subject}connect(){let e=this._connection;return e||(this._isComplete=!1,e=this._connection=new z,e.add(this.source.subscribe(new AC(this.getSubject(),this))),e.closed&&(this._connection=null,e=z.EMPTY)),e}refCount(){return Qh()(this)}}const SC=(()=>{const n=MC.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:n._subscribe},_isComplete:{value:n._isComplete,writable:!0},getSubject:{value:n.getSubject},connect:{value:n.connect},refCount:{value:n.refCount}}})();class AC extends $h{constructor(e,t){super(e),this.connectable=t}_error(e){this._unsubscribe(),super._error(e)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const e=this.connectable;if(e){this.connectable=null;const t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}class FC{constructor(e,t){this.subjectFactory=e,this.selector=t}call(e,t){const{selector:i}=this,r=this.subjectFactory(),s=i(r).subscribe(e);return s.add(t.subscribe(r)),s}}function OC(){return new we}function le(n){for(let e in n)if(n[e]===le)return e;throw Error("Could not find renamed property on target object.")}function El(n,e){for(const t in e)e.hasOwnProperty(t)&&!n.hasOwnProperty(t)&&(n[t]=e[t])}function ne(n){if("string"==typeof n)return n;if(Array.isArray(n))return"["+n.map(ne).join(", ")+"]";if(null==n)return""+n;if(n.overriddenName)return`${n.overriddenName}`;if(n.name)return`${n.name}`;const e=n.toString();if(null==e)return""+e;const t=e.indexOf("\n");return-1===t?e:e.substring(0,t)}function wl(n,e){return null==n||""===n?null===e?"":e:null==e||""===e?n:n+" "+e}const RC=le({__forward_ref__:le});function ce(n){return n.__forward_ref__=ce,n.toString=function(){return ne(this())},n}function H(n){return Xh(n)?n():n}function Xh(n){return"function"==typeof n&&n.hasOwnProperty(RC)&&n.__forward_ref__===ce}class M extends Error{constructor(e,t){super(function Ml(n,e){return`NG0${Math.abs(n)}${e?": "+e:""}`}(e,t)),this.code=e}}function k(n){return"string"==typeof n?n:null==n?"":String(n)}function nt(n){return"function"==typeof n?n.name||n.toString():"object"==typeof n&&null!=n&&"function"==typeof n.type?n.type.name||n.type.toString():k(n)}function no(n,e){const t=e?` in ${e}`:"";throw new M(-201,`No provider for ${nt(n)} found${t}`)}function Mt(n,e){null==n&&function ie(n,e,t,i){throw new Error(`ASSERTION ERROR: ${n}`+(null==i?"":` [Expected=> ${t} ${i} ${e} <=Actual]`))}(e,n,null,"!=")}function O(n){return{token:n.token,providedIn:n.providedIn||null,factory:n.factory,value:void 0}}function ge(n){return{providers:n.providers||[],imports:n.imports||[]}}function Sl(n){return Jh(n,io)||Jh(n,tf)}function Jh(n,e){return n.hasOwnProperty(e)?n[e]:null}function ef(n){return n&&(n.hasOwnProperty(Al)||n.hasOwnProperty(jC))?n[Al]:null}const io=le({\u0275prov:le}),Al=le({\u0275inj:le}),tf=le({ngInjectableDef:le}),jC=le({ngInjectorDef:le});var B=(()=>((B=B||{})[B.Default=0]="Default",B[B.Host=1]="Host",B[B.Self=2]="Self",B[B.SkipSelf=4]="SkipSelf",B[B.Optional=8]="Optional",B))();let Tl;function zn(n){const e=Tl;return Tl=n,e}function nf(n,e,t){const i=Sl(n);return i&&"root"==i.providedIn?void 0===i.value?i.value=i.factory():i.value:t&B.Optional?null:void 0!==e?e:void no(ne(n),"Injector")}function Gn(n){return{toString:n}.toString()}var Yt=(()=>((Yt=Yt||{})[Yt.OnPush=0]="OnPush",Yt[Yt.Default=1]="Default",Yt))(),Zt=(()=>(function(n){n[n.Emulated=0]="Emulated",n[n.None=2]="None",n[n.ShadowDom=3]="ShadowDom"}(Zt||(Zt={})),Zt))();const $C="undefined"!=typeof globalThis&&globalThis,UC="undefined"!=typeof window&&window,zC="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,re=$C||"undefined"!=typeof global&&global||UC||zC,Bi={},ue=[],ro=le({\u0275cmp:le}),Il=le({\u0275dir:le}),Fl=le({\u0275pipe:le}),rf=le({\u0275mod:le}),In=le({\u0275fac:le}),$r=le({__NG_ELEMENT_ID__:le});let GC=0;function ci(n){return Gn(()=>{const t={},i={type:n.type,providersResolver:null,decls:n.decls,vars:n.vars,factory:null,template:n.template||null,consts:n.consts||null,ngContentSelectors:n.ngContentSelectors,hostBindings:n.hostBindings||null,hostVars:n.hostVars||0,hostAttrs:n.hostAttrs||null,contentQueries:n.contentQueries||null,declaredInputs:t,inputs:null,outputs:null,exportAs:n.exportAs||null,onPush:n.changeDetection===Yt.OnPush,directiveDefs:null,pipeDefs:null,selectors:n.selectors||ue,viewQuery:n.viewQuery||null,features:n.features||null,data:n.data||{},encapsulation:n.encapsulation||Zt.Emulated,id:"c",styles:n.styles||ue,_:null,setInput:null,schemas:n.schemas||null,tView:null},r=n.directives,s=n.features,o=n.pipes;return i.id+=GC++,i.inputs=cf(n.inputs,t),i.outputs=cf(n.outputs),s&&s.forEach(a=>a(i)),i.directiveDefs=r?()=>("function"==typeof r?r():r).map(sf):null,i.pipeDefs=o?()=>("function"==typeof o?o():o).map(af):null,i})}function sf(n){return it(n)||function Wn(n){return n[Il]||null}(n)}function af(n){return function ui(n){return n[Fl]||null}(n)}const lf={};function ye(n){return Gn(()=>{const e={type:n.type,bootstrap:n.bootstrap||ue,declarations:n.declarations||ue,imports:n.imports||ue,exports:n.exports||ue,transitiveCompileScopes:null,schemas:n.schemas||null,id:n.id||null};return null!=n.id&&(lf[n.id]=n.type),e})}function cf(n,e){if(null==n)return Bi;const t={};for(const i in n)if(n.hasOwnProperty(i)){let r=n[i],s=r;Array.isArray(r)&&(s=r[1],r=r[0]),t[r]=i,e&&(e[r]=s)}return t}const I=ci;function it(n){return n[ro]||null}function Vt(n,e){const t=n[rf]||null;if(!t&&!0===e)throw new Error(`Type ${ne(n)} does not have '\u0275mod' property.`);return t}const j=11;function mn(n){return Array.isArray(n)&&"object"==typeof n[1]}function Xt(n){return Array.isArray(n)&&!0===n[1]}function Rl(n){return 0!=(8&n.flags)}function lo(n){return 2==(2&n.flags)}function co(n){return 1==(1&n.flags)}function Jt(n){return null!==n.template}function QC(n){return 0!=(512&n[2])}function pi(n,e){return n.hasOwnProperty(In)?n[In]:null}class df{constructor(e,t,i){this.previousValue=e,this.currentValue=t,this.firstChange=i}isFirstChange(){return this.firstChange}}function en(){return hf}function hf(n){return n.type.prototype.ngOnChanges&&(n.setInput=tE),eE}function eE(){const n=pf(this),e=null==n?void 0:n.current;if(e){const t=n.previous;if(t===Bi)n.previous=e;else for(let i in e)t[i]=e[i];n.current=null,this.ngOnChanges(e)}}function tE(n,e,t,i){const r=pf(n)||function nE(n,e){return n[ff]=e}(n,{previous:Bi,current:null}),s=r.current||(r.current={}),o=r.previous,a=this.declaredInputs[t],l=o[a];s[a]=new df(l&&l.currentValue,e,o===Bi),n[i]=e}en.ngInherit=!0;const ff="__ngSimpleChanges__";function pf(n){return n[ff]||null}let Vl;function Oe(n){return!!n.listen}const mf={createRenderer:(n,e)=>function Bl(){return void 0!==Vl?Vl:"undefined"!=typeof document?document:void 0}()};function Le(n){for(;Array.isArray(n);)n=n[0];return n}function uo(n,e){return Le(e[n])}function At(n,e){return Le(e[n.index])}function jl(n,e){return n.data[e]}function Tt(n,e){const t=e[n];return mn(t)?t:t[0]}function gf(n){return 4==(4&n[2])}function Hl(n){return 128==(128&n[2])}function qn(n,e){return null==e?null:n[e]}function _f(n){n[18]=0}function $l(n,e){n[5]+=e;let t=n,i=n[3];for(;null!==i&&(1===e&&1===t[5]||-1===e&&0===t[5]);)i[5]+=e,t=i,i=i[3]}const P={lFrame:Sf(null),bindingsEnabled:!0};function vf(){return P.bindingsEnabled}function v(){return P.lFrame.lView}function Z(){return P.lFrame.tView}function Ul(n){return P.lFrame.contextLView=n,n[8]}function Ge(){let n=bf();for(;null!==n&&64===n.type;)n=n.parent;return n}function bf(){return P.lFrame.currentTNode}function gn(n,e){const t=P.lFrame;t.currentTNode=n,t.isParent=e}function zl(){return P.lFrame.isParent}function Gl(){P.lFrame.isParent=!1}function Gi(){return P.lFrame.bindingIndex++}function vE(n,e){const t=P.lFrame;t.bindingIndex=t.bindingRootIndex=n,Wl(e)}function Wl(n){P.lFrame.currentDirectiveIndex=n}function Ef(){return P.lFrame.currentQueryIndex}function Kl(n){P.lFrame.currentQueryIndex=n}function DE(n){const e=n[1];return 2===e.type?e.declTNode:1===e.type?n[6]:null}function wf(n,e,t){if(t&B.SkipSelf){let r=e,s=n;for(;!(r=r.parent,null!==r||t&B.Host||(r=DE(s),null===r||(s=s[15],10&r.type))););if(null===r)return!1;e=r,n=s}const i=P.lFrame=Mf();return i.currentTNode=e,i.lView=n,!0}function fo(n){const e=Mf(),t=n[1];P.lFrame=e,e.currentTNode=t.firstChild,e.lView=n,e.tView=t,e.contextLView=n,e.bindingIndex=t.bindingStartIndex,e.inI18n=!1}function Mf(){const n=P.lFrame,e=null===n?null:n.child;return null===e?Sf(n):e}function Sf(n){const e={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:n,child:null,inI18n:!1};return null!==n&&(n.child=e),e}function Af(){const n=P.lFrame;return P.lFrame=n.parent,n.currentTNode=null,n.lView=null,n}const Tf=Af;function po(){const n=Af();n.isParent=!0,n.tView=null,n.selectedIndex=-1,n.contextLView=null,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.bindingRootIndex=-1,n.bindingIndex=-1,n.currentQueryIndex=0}function ht(){return P.lFrame.selectedIndex}function Kn(n){P.lFrame.selectedIndex=n}function Me(){const n=P.lFrame;return jl(n.tView,n.selectedIndex)}function mo(n,e){for(let t=e.directiveStart,i=e.directiveEnd;t<i;t++){const s=n.data[t].type.prototype,{ngAfterContentInit:o,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:c,ngOnDestroy:u}=s;o&&(n.contentHooks||(n.contentHooks=[])).push(-t,o),a&&((n.contentHooks||(n.contentHooks=[])).push(t,a),(n.contentCheckHooks||(n.contentCheckHooks=[])).push(t,a)),l&&(n.viewHooks||(n.viewHooks=[])).push(-t,l),c&&((n.viewHooks||(n.viewHooks=[])).push(t,c),(n.viewCheckHooks||(n.viewCheckHooks=[])).push(t,c)),null!=u&&(n.destroyHooks||(n.destroyHooks=[])).push(t,u)}}function go(n,e,t){If(n,e,3,t)}function _o(n,e,t,i){(3&n[2])===t&&If(n,e,t,i)}function Yl(n,e){let t=n[2];(3&t)===e&&(t&=2047,t+=1,n[2]=t)}function If(n,e,t,i){const s=null!=i?i:-1,o=e.length-1;let a=0;for(let l=void 0!==i?65535&n[18]:0;l<o;l++)if("number"==typeof e[l+1]){if(a=e[l],null!=i&&a>=i)break}else e[l]<0&&(n[18]+=65536),(a<s||-1==s)&&(FE(n,t,e,l),n[18]=(4294901760&n[18])+l+2),l++}function FE(n,e,t,i){const r=t[i]<0,s=t[i+1],a=n[r?-t[i]:t[i]];if(r){if(n[2]>>11<n[18]>>16&&(3&n[2])===e){n[2]+=2048;try{s.call(a)}finally{}}}else try{s.call(a)}finally{}}class qr{constructor(e,t,i){this.factory=e,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=i}}function yo(n,e,t){const i=Oe(n);let r=0;for(;r<t.length;){const s=t[r];if("number"==typeof s){if(0!==s)break;r++;const o=t[r++],a=t[r++],l=t[r++];i?n.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=s,a=t[++r];Ql(o)?i&&n.setProperty(e,o,a):i?n.setAttribute(e,o,a):e.setAttribute(o,a),r++}}return r}function Ff(n){return 3===n||4===n||6===n}function Ql(n){return 64===n.charCodeAt(0)}function vo(n,e){if(null!==e&&0!==e.length)if(null===n||0===n.length)n=e.slice();else{let t=-1;for(let i=0;i<e.length;i++){const r=e[i];"number"==typeof r?t=r:0===t||Of(n,t,r,null,-1===t||2===t?e[++i]:null)}}return n}function Of(n,e,t,i,r){let s=0,o=n.length;if(-1===e)o=-1;else for(;s<n.length;){const a=n[s++];if("number"==typeof a){if(a===e){o=-1;break}if(a>e){o=s-1;break}}}for(;s<n.length;){const a=n[s];if("number"==typeof a)break;if(a===t){if(null===i)return void(null!==r&&(n[s+1]=r));if(i===n[s+1])return void(n[s+2]=r)}s++,null!==i&&s++,null!==r&&s++}-1!==o&&(n.splice(o,0,e),s=o+1),n.splice(s++,0,t),null!==i&&n.splice(s++,0,i),null!==r&&n.splice(s++,0,r)}function xf(n){return-1!==n}function Wi(n){return 32767&n}function qi(n,e){let t=function kE(n){return n>>16}(n),i=e;for(;t>0;)i=i[15],t--;return i}let Xl=!0;function bo(n){const e=Xl;return Xl=n,e}let PE=0;function Yr(n,e){const t=ec(n,e);if(-1!==t)return t;const i=e[1];i.firstCreatePass&&(n.injectorIndex=e.length,Jl(i.data,n),Jl(e,null),Jl(i.blueprint,null));const r=Do(n,e),s=n.injectorIndex;if(xf(r)){const o=Wi(r),a=qi(r,e),l=a[1].data;for(let c=0;c<8;c++)e[s+c]=a[o+c]|l[o+c]}return e[s+8]=r,s}function Jl(n,e){n.push(0,0,0,0,0,0,0,0,e)}function ec(n,e){return-1===n.injectorIndex||n.parent&&n.parent.injectorIndex===n.injectorIndex||null===e[n.injectorIndex+8]?-1:n.injectorIndex}function Do(n,e){if(n.parent&&-1!==n.parent.injectorIndex)return n.parent.injectorIndex;let t=0,i=null,r=e;for(;null!==r;){const s=r[1],o=s.type;if(i=2===o?s.declTNode:1===o?r[6]:null,null===i)return-1;if(t++,r=r[15],-1!==i.injectorIndex)return i.injectorIndex|t<<16}return-1}function Co(n,e,t){!function LE(n,e,t){let i;"string"==typeof t?i=t.charCodeAt(0)||0:t.hasOwnProperty($r)&&(i=t[$r]),null==i&&(i=t[$r]=PE++);const r=255&i;e.data[n+(r>>5)]|=1<<r}(n,e,t)}function kf(n,e,t){if(t&B.Optional)return n;no(e,"NodeInjector")}function Pf(n,e,t,i){if(t&B.Optional&&void 0===i&&(i=null),0==(t&(B.Self|B.Host))){const r=n[9],s=zn(void 0);try{return r?r.get(e,i,t&B.Optional):nf(e,i,t&B.Optional)}finally{zn(s)}}return kf(i,e,t)}function Lf(n,e,t,i=B.Default,r){if(null!==n){const s=function HE(n){if("string"==typeof n)return n.charCodeAt(0)||0;const e=n.hasOwnProperty($r)?n[$r]:void 0;return"number"==typeof e?e>=0?255&e:BE:e}(t);if("function"==typeof s){if(!wf(e,n,i))return i&B.Host?kf(r,t,i):Pf(e,t,i,r);try{const o=s(i);if(null!=o||i&B.Optional)return o;no(t)}finally{Tf()}}else if("number"==typeof s){let o=null,a=ec(n,e),l=-1,c=i&B.Host?e[16][6]:null;for((-1===a||i&B.SkipSelf)&&(l=-1===a?Do(n,e):e[a+8],-1!==l&&jf(i,!1)?(o=e[1],a=Wi(l),e=qi(l,e)):a=-1);-1!==a;){const u=e[1];if(Bf(s,a,u.data)){const d=jE(a,e,t,o,i,c);if(d!==Vf)return d}l=e[a+8],-1!==l&&jf(i,e[1].data[a+8]===c)&&Bf(s,a,e)?(o=u,a=Wi(l),e=qi(l,e)):a=-1}}}return Pf(e,t,i,r)}const Vf={};function BE(){return new Ki(Ge(),v())}function jE(n,e,t,i,r,s){const o=e[1],a=o.data[n+8],u=Eo(a,o,t,null==i?lo(a)&&Xl:i!=o&&0!=(3&a.type),r&B.Host&&s===a);return null!==u?Zr(e,o,u,a):Vf}function Eo(n,e,t,i,r){const s=n.providerIndexes,o=e.data,a=1048575&s,l=n.directiveStart,u=s>>20,h=r?a+u:n.directiveEnd;for(let f=i?a:a+u;f<h;f++){const p=o[f];if(f<l&&t===p||f>=l&&p.type===t)return f}if(r){const f=o[l];if(f&&Jt(f)&&f.type===t)return l}return null}function Zr(n,e,t,i){let r=n[t];const s=e.data;if(function OE(n){return n instanceof qr}(r)){const o=r;o.resolving&&function NC(n,e){const t=e?`. Dependency path: ${e.join(" > ")} > ${n}`:"";throw new M(-200,`Circular dependency in DI detected for ${n}${t}`)}(nt(s[t]));const a=bo(o.canSeeViewProviders);o.resolving=!0;const l=o.injectImpl?zn(o.injectImpl):null;wf(n,i,B.Default);try{r=n[t]=o.factory(void 0,s,n,i),e.firstCreatePass&&t>=i.directiveStart&&function IE(n,e,t){const{ngOnChanges:i,ngOnInit:r,ngDoCheck:s}=e.type.prototype;if(i){const o=hf(e);(t.preOrderHooks||(t.preOrderHooks=[])).push(n,o),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,o)}r&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-n,r),s&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n,s))}(t,s[t],e)}finally{null!==l&&zn(l),bo(a),o.resolving=!1,Tf()}}return r}function Bf(n,e,t){return!!(t[e+(n>>5)]&1<<n)}function jf(n,e){return!(n&B.Self||n&B.Host&&e)}class Ki{constructor(e,t){this._tNode=e,this._lView=t}get(e,t,i){return Lf(this._tNode,this._lView,e,i,t)}}function Ve(n){return Gn(()=>{const e=n.prototype.constructor,t=e[In]||tc(e),i=Object.prototype;let r=Object.getPrototypeOf(n.prototype).constructor;for(;r&&r!==i;){const s=r[In]||tc(r);if(s&&s!==t)return s;r=Object.getPrototypeOf(r)}return s=>new s})}function tc(n){return Xh(n)?()=>{const e=tc(H(n));return e&&e()}:pi(n)}const Zi="__parameters__";function Xi(n,e,t){return Gn(()=>{const i=function nc(n){return function(...t){if(n){const i=n(...t);for(const r in i)this[r]=i[r]}}}(e);function r(...s){if(this instanceof r)return i.apply(this,s),this;const o=new r(...s);return a.annotation=o,a;function a(l,c,u){const d=l.hasOwnProperty(Zi)?l[Zi]:Object.defineProperty(l,Zi,{value:[]})[Zi];for(;d.length<=u;)d.push(null);return(d[u]=d[u]||[]).push(o),l}}return t&&(r.prototype=Object.create(t.prototype)),r.prototype.ngMetadataName=n,r.annotationCls=r,r})}class A{constructor(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=O({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Ht(n,e){void 0===e&&(e=n);for(let t=0;t<n.length;t++){let i=n[t];Array.isArray(i)?(e===n&&(e=n.slice(0,t)),Ht(i,e)):e!==n&&e.push(i)}return e}function _n(n,e){n.forEach(t=>Array.isArray(t)?_n(t,e):e(t))}function $f(n,e,t){e>=n.length?n.push(t):n.splice(e,0,t)}function Mo(n,e){return e>=n.length-1?n.pop():n.splice(e,1)[0]}function Jr(n,e){const t=[];for(let i=0;i<n;i++)t.push(e);return t}function It(n,e,t){let i=Ji(n,e);return i>=0?n[1|i]=t:(i=~i,function GE(n,e,t,i){let r=n.length;if(r==e)n.push(t,i);else if(1===r)n.push(i,n[0]),n[0]=t;else{for(r--,n.push(n[r-1],n[r]);r>e;)n[r]=n[r-2],r--;n[e]=t,n[e+1]=i}}(n,i,e,t)),i}function rc(n,e){const t=Ji(n,e);if(t>=0)return n[1|t]}function Ji(n,e){return function Gf(n,e,t){let i=0,r=n.length>>t;for(;r!==i;){const s=i+(r-i>>1),o=n[s<<t];if(e===o)return s<<t;o>e?r=s:i=s+1}return~(r<<t)}(n,e,1)}const es={},oc="__NG_DI_FLAG__",Ao="ngTempTokenPath",XE=/\n/gm,qf="__source",ew=le({provide:String,useValue:le});let ts;function Kf(n){const e=ts;return ts=n,e}function tw(n,e=B.Default){if(void 0===ts)throw new M(203,"");return null===ts?nf(n,void 0,e):ts.get(n,e&B.Optional?null:void 0,e)}function D(n,e=B.Default){return(function HC(){return Tl}()||tw)(H(n),e)}const ac=D;function lc(n){const e=[];for(let t=0;t<n.length;t++){const i=H(n[t]);if(Array.isArray(i)){if(0===i.length)throw new M(900,"");let r,s=B.Default;for(let o=0;o<i.length;o++){const a=i[o],l=nw(a);"number"==typeof l?-1===l?r=a.token:s|=l:r=a}e.push(D(r,s))}else e.push(D(i))}return e}function ns(n,e){return n[oc]=e,n.prototype[oc]=e,n}function nw(n){return n[oc]}const To=ns(Xi("Optional"),8),Io=ns(Xi("SkipSelf"),4);var Ft=(()=>((Ft=Ft||{})[Ft.Important=1]="Important",Ft[Ft.DashCase=2]="DashCase",Ft))();const np="__ngContext__";function st(n,e){n[np]=e}function hc(n){const e=function rs(n){return n[np]||null}(n);return e?Array.isArray(e)?e:e.lView:null}function pc(n,e){return undefined(n,e)}function ss(n){const e=n[3];return Xt(e)?e[3]:e}function mc(n){return cp(n[13])}function gc(n){return cp(n[4])}function cp(n){for(;null!==n&&!Xt(n);)n=n[4];return n}function tr(n,e,t,i,r){if(null!=i){let s,o=!1;Xt(i)?s=i:mn(i)&&(o=!0,i=i[0]);const a=Le(i);0===n&&null!==t?null==r?mp(e,t,a):mi(e,t,a,r||null,!0):1===n&&null!==t?mi(e,t,a,r||null,!0):2===n?function Ec(n,e,t){const i=Oo(n,e);i&&function Rw(n,e,t,i){Oe(n)?n.removeChild(e,t,i):e.removeChild(t)}(n,i,e,t)}(e,a,o):3===n&&e.destroyNode(a),null!=s&&function Pw(n,e,t,i,r){const s=t[7];s!==Le(t)&&tr(e,n,i,s,r);for(let a=10;a<t.length;a++){const l=t[a];os(l[1],l,n,e,i,s)}}(e,n,s,t,r)}}function yc(n,e,t){if(Oe(n))return n.createElement(e,t);{const i=null!==t?function oE(n){const e=n.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(t):null;return null===i?n.createElement(e):n.createElementNS(i,e)}}function dp(n,e){const t=n[9],i=t.indexOf(e),r=e[3];1024&e[2]&&(e[2]&=-1025,$l(r,-1)),t.splice(i,1)}function vc(n,e){if(n.length<=10)return;const t=10+e,i=n[t];if(i){const r=i[17];null!==r&&r!==n&&dp(r,i),e>0&&(n[t-1][4]=i[4]);const s=Mo(n,10+e);!function Mw(n,e){os(n,e,e[j],2,null,null),e[0]=null,e[6]=null}(i[1],i);const o=s[19];null!==o&&o.detachView(s[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}function hp(n,e){if(!(256&e[2])){const t=e[j];Oe(t)&&t.destroyNode&&os(n,e,t,3,null,null),function Tw(n){let e=n[13];if(!e)return bc(n[1],n);for(;e;){let t=null;if(mn(e))t=e[13];else{const i=e[10];i&&(t=i)}if(!t){for(;e&&!e[4]&&e!==n;)mn(e)&&bc(e[1],e),e=e[3];null===e&&(e=n),mn(e)&&bc(e[1],e),t=e&&e[4]}e=t}}(e)}}function bc(n,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function xw(n,e){let t;if(null!=n&&null!=(t=n.destroyHooks))for(let i=0;i<t.length;i+=2){const r=e[t[i]];if(!(r instanceof qr)){const s=t[i+1];if(Array.isArray(s))for(let o=0;o<s.length;o+=2){const a=r[s[o]],l=s[o+1];try{l.call(a)}finally{}}else try{s.call(r)}finally{}}}}(n,e),function Ow(n,e){const t=n.cleanup,i=e[7];let r=-1;if(null!==t)for(let s=0;s<t.length-1;s+=2)if("string"==typeof t[s]){const o=t[s+1],a="function"==typeof o?o(e):Le(e[o]),l=i[r=t[s+2]],c=t[s+3];"boolean"==typeof c?a.removeEventListener(t[s],l,c):c>=0?i[r=c]():i[r=-c].unsubscribe(),s+=2}else{const o=i[r=t[s+1]];t[s].call(o)}if(null!==i){for(let s=r+1;s<i.length;s++)i[s]();e[7]=null}}(n,e),1===e[1].type&&Oe(e[j])&&e[j].destroy();const t=e[17];if(null!==t&&Xt(e[3])){t!==e[3]&&dp(t,e);const i=e[19];null!==i&&i.detachView(n)}}}function fp(n,e,t){return function pp(n,e,t){let i=e;for(;null!==i&&40&i.type;)i=(e=i).parent;if(null===i)return t[0];if(2&i.flags){const r=n.data[i.directiveStart].encapsulation;if(r===Zt.None||r===Zt.Emulated)return null}return At(i,t)}(n,e.parent,t)}function mi(n,e,t,i,r){Oe(n)?n.insertBefore(e,t,i,r):e.insertBefore(t,i,r)}function mp(n,e,t){Oe(n)?n.appendChild(e,t):e.appendChild(t)}function gp(n,e,t,i,r){null!==i?mi(n,e,t,i,r):mp(n,e,t)}function Oo(n,e){return Oe(n)?n.parentNode(e):e.parentNode}function _p(n,e,t){return vp(n,e,t)}let vp=function yp(n,e,t){return 40&n.type?At(n,t):null};function xo(n,e,t,i){const r=fp(n,i,e),s=e[j],a=_p(i.parent||e[6],i,e);if(null!=r)if(Array.isArray(t))for(let l=0;l<t.length;l++)gp(s,r,t[l],a,!1);else gp(s,r,t,a,!1)}function Ro(n,e){if(null!==e){const t=e.type;if(3&t)return At(e,n);if(4&t)return Cc(-1,n[e.index]);if(8&t){const i=e.child;if(null!==i)return Ro(n,i);{const r=n[e.index];return Xt(r)?Cc(-1,r):Le(r)}}if(32&t)return pc(e,n)()||Le(n[e.index]);{const i=Dp(n,e);return null!==i?Array.isArray(i)?i[0]:Ro(ss(n[16]),i):Ro(n,e.next)}}return null}function Dp(n,e){return null!==e?n[16][6].projection[e.projection]:null}function Cc(n,e){const t=10+n+1;if(t<e.length){const i=e[t],r=i[1].firstChild;if(null!==r)return Ro(i,r)}return e[7]}function wc(n,e,t,i,r,s,o){for(;null!=t;){const a=i[t.index],l=t.type;if(o&&0===e&&(a&&st(Le(a),i),t.flags|=4),64!=(64&t.flags))if(8&l)wc(n,e,t.child,i,r,s,!1),tr(e,n,r,a,s);else if(32&l){const c=pc(t,i);let u;for(;u=c();)tr(e,n,r,u,s);tr(e,n,r,a,s)}else 16&l?Cp(n,e,i,t,r,s):tr(e,n,r,a,s);t=o?t.projectionNext:t.next}}function os(n,e,t,i,r,s){wc(t,i,n.firstChild,e,r,s,!1)}function Cp(n,e,t,i,r,s){const o=t[16],l=o[6].projection[i.projection];if(Array.isArray(l))for(let c=0;c<l.length;c++)tr(e,n,r,l[c],s);else wc(n,e,l,o[3],r,s,!0)}function Ep(n,e,t){Oe(n)?n.setAttribute(e,"style",t):e.style.cssText=t}function Mc(n,e,t){Oe(n)?""===t?n.removeAttribute(e,"class"):n.setAttribute(e,"class",t):e.className=t}function Rc(n){return n.ngOriginalError}function pM(n,...e){n.error(...e)}class us{constructor(){this._console=console}handleError(e){const t=this._findOriginalError(e),i=function fM(n){return n&&n.ngErrorLogger||pM}(e);i(this._console,"ERROR",e),t&&i(this._console,"ORIGINAL ERROR",t)}_findOriginalError(e){let t=e&&Rc(e);for(;t&&Rc(t);)t=Rc(t);return t||null}}const DM=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(re))();function vn(n){return n instanceof Function?n():n}function Vp(n,e,t){let i=n.length;for(;;){const r=n.indexOf(e,t);if(-1===r)return r;if(0===r||n.charCodeAt(r-1)<=32){const s=e.length;if(r+s===i||n.charCodeAt(r+s)<=32)return r}t=r+1}}const Bp="ng-template";function MM(n,e,t){let i=0;for(;i<n.length;){let r=n[i++];if(t&&"class"===r){if(r=n[i],-1!==Vp(r.toLowerCase(),e,0))return!0}else if(1===r){for(;i<n.length&&"string"==typeof(r=n[i++]);)if(r.toLowerCase()===e)return!0;return!1}}return!1}function jp(n){return 4===n.type&&n.value!==Bp}function SM(n,e,t){return e===(4!==n.type||t?n.value:Bp)}function AM(n,e,t){let i=4;const r=n.attrs||[],s=function FM(n){for(let e=0;e<n.length;e++)if(Ff(n[e]))return e;return n.length}(r);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&i){if(i=2|1&i,""!==l&&!SM(n,l,t)||""===l&&1===e.length){if(tn(i))return!1;o=!0}}else{const c=8&i?l:e[++a];if(8&i&&null!==n.attrs){if(!MM(n.attrs,c,t)){if(tn(i))return!1;o=!0}continue}const d=TM(8&i?"class":l,r,jp(n),t);if(-1===d){if(tn(i))return!1;o=!0;continue}if(""!==c){let h;h=d>s?"":r[d+1].toLowerCase();const f=8&i?h:null;if(f&&-1!==Vp(f,c,0)||2&i&&c!==h){if(tn(i))return!1;o=!0}}}}else{if(!o&&!tn(i)&&!tn(l))return!1;if(o&&tn(l))continue;o=!1,i=l|1&i}}return tn(i)||o}function tn(n){return 0==(1&n)}function TM(n,e,t,i){if(null===e)return-1;let r=0;if(i||!t){let s=!1;for(;r<e.length;){const o=e[r];if(o===n)return r;if(3===o||6===o)s=!0;else{if(1===o||2===o){let a=e[++r];for(;"string"==typeof a;)a=e[++r];continue}if(4===o)break;if(0===o){r+=4;continue}}r+=s?1:2}return-1}return function OM(n,e){let t=n.indexOf(4);if(t>-1)for(t++;t<n.length;){const i=n[t];if("number"==typeof i)return-1;if(i===e)return t;t++}return-1}(e,n)}function Hp(n,e,t=!1){for(let i=0;i<e.length;i++)if(AM(n,e[i],t))return!0;return!1}function xM(n,e){e:for(let t=0;t<e.length;t++){const i=e[t];if(n.length===i.length){for(let r=0;r<n.length;r++)if(n[r]!==i[r])continue e;return!0}}return!1}function $p(n,e){return n?":not("+e.trim()+")":e}function RM(n){let e=n[0],t=1,i=2,r="",s=!1;for(;t<n.length;){let o=n[t];if("string"==typeof o)if(2&i){const a=n[++t];r+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&i?r+="."+o:4&i&&(r+=" "+o);else""!==r&&!tn(o)&&(e+=$p(s,r),r=""),i=o,s=s||!tn(i);t++}return""!==r&&(e+=$p(s,r)),e}const L={};function se(n){Up(Z(),v(),ht()+n,!1)}function Up(n,e,t,i){if(!i)if(3==(3&e[2])){const s=n.preOrderCheckHooks;null!==s&&go(e,s,t)}else{const s=n.preOrderHooks;null!==s&&_o(e,s,0,t)}Kn(t)}function Vo(n,e){return n<<17|e<<2}function nn(n){return n>>17&32767}function Nc(n){return 2|n}function xn(n){return(131068&n)>>2}function kc(n,e){return-131069&n|e<<2}function Pc(n){return 1|n}function em(n,e){const t=n.contentQueries;if(null!==t)for(let i=0;i<t.length;i+=2){const r=t[i],s=t[i+1];if(-1!==s){const o=n.data[s];Kl(r),o.contentQueries(2,e[s],s)}}}function ds(n,e,t,i,r,s,o,a,l,c){const u=e.blueprint.slice();return u[0]=r,u[2]=140|i,_f(u),u[3]=u[15]=n,u[8]=t,u[10]=o||n&&n[10],u[j]=a||n&&n[j],u[12]=l||n&&n[12]||null,u[9]=c||n&&n[9]||null,u[6]=s,u[16]=2==e.type?n[16]:u,u}function ir(n,e,t,i,r){let s=n.data[e];if(null===s)s=function Gc(n,e,t,i,r){const s=bf(),o=zl(),l=n.data[e]=function QM(n,e,t,i,r,s){return{type:t,index:i,insertBeforeIndex:null,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:r,attrs:s,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:e,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?s:s&&s.parent,t,e,i,r);return null===n.firstChild&&(n.firstChild=l),null!==s&&(o?null==s.child&&null!==l.parent&&(s.child=l):null===s.next&&(s.next=l)),l}(n,e,t,i,r),function yE(){return P.lFrame.inI18n}()&&(s.flags|=64);else if(64&s.type){s.type=t,s.value=i,s.attrs=r;const o=function Wr(){const n=P.lFrame,e=n.currentTNode;return n.isParent?e:e.parent}();s.injectorIndex=null===o?-1:o.injectorIndex}return gn(s,!0),s}function rr(n,e,t,i){if(0===t)return-1;const r=e.length;for(let s=0;s<t;s++)e.push(i),n.blueprint.push(i),n.data.push(null);return r}function hs(n,e,t){fo(e);try{const i=n.viewQuery;null!==i&&eu(1,i,t);const r=n.template;null!==r&&tm(n,e,r,1,t),n.firstCreatePass&&(n.firstCreatePass=!1),n.staticContentQueries&&em(n,e),n.staticViewQueries&&eu(2,n.viewQuery,t);const s=n.components;null!==s&&function KM(n,e){for(let t=0;t<e.length;t++)mS(n,e[t])}(e,s)}catch(i){throw n.firstCreatePass&&(n.incompleteFirstPass=!0,n.firstCreatePass=!1),i}finally{e[2]&=-5,po()}}function sr(n,e,t,i){const r=e[2];if(256!=(256&r)){fo(e);try{_f(e),function Df(n){return P.lFrame.bindingIndex=n}(n.bindingStartIndex),null!==t&&tm(n,e,t,2,i);const o=3==(3&r);if(o){const c=n.preOrderCheckHooks;null!==c&&go(e,c,null)}else{const c=n.preOrderHooks;null!==c&&_o(e,c,0,null),Yl(e,0)}if(function fS(n){for(let e=mc(n);null!==e;e=gc(e)){if(!e[2])continue;const t=e[9];for(let i=0;i<t.length;i++){const r=t[i],s=r[3];0==(1024&r[2])&&$l(s,1),r[2]|=1024}}}(e),function hS(n){for(let e=mc(n);null!==e;e=gc(e))for(let t=10;t<e.length;t++){const i=e[t],r=i[1];Hl(i)&&sr(r,i,r.template,i[8])}}(e),null!==n.contentQueries&&em(n,e),o){const c=n.contentCheckHooks;null!==c&&go(e,c)}else{const c=n.contentHooks;null!==c&&_o(e,c,1),Yl(e,1)}!function WM(n,e){const t=n.hostBindingOpCodes;if(null!==t)try{for(let i=0;i<t.length;i++){const r=t[i];if(r<0)Kn(~r);else{const s=r,o=t[++i],a=t[++i];vE(o,s),a(2,e[s])}}}finally{Kn(-1)}}(n,e);const a=n.components;null!==a&&function qM(n,e){for(let t=0;t<e.length;t++)pS(n,e[t])}(e,a);const l=n.viewQuery;if(null!==l&&eu(2,l,i),o){const c=n.viewCheckHooks;null!==c&&go(e,c)}else{const c=n.viewHooks;null!==c&&_o(e,c,2),Yl(e,2)}!0===n.firstUpdatePass&&(n.firstUpdatePass=!1),e[2]&=-73,1024&e[2]&&(e[2]&=-1025,$l(e[3],-1))}finally{po()}}}function YM(n,e,t,i){const r=e[10],o=gf(e);try{!o&&r.begin&&r.begin(),o&&hs(n,e,i),sr(n,e,t,i)}finally{!o&&r.end&&r.end()}}function tm(n,e,t,i,r){const s=ht(),o=2&i;try{Kn(-1),o&&e.length>20&&Up(n,e,20,!1),t(i,r)}finally{Kn(s)}}function nm(n,e,t){if(Rl(e)){const r=e.directiveEnd;for(let s=e.directiveStart;s<r;s++){const o=n.data[s];o.contentQueries&&o.contentQueries(1,t[s],s)}}}function Wc(n,e,t){!vf()||(function rS(n,e,t,i){const r=t.directiveStart,s=t.directiveEnd;n.firstCreatePass||Yr(t,e),st(i,e);const o=t.initialInputs;for(let a=r;a<s;a++){const l=n.data[a],c=Jt(l);c&&cS(e,t,l);const u=Zr(e,n,a,t);st(u,e),null!==o&&uS(0,a-r,u,l,0,o),c&&(Tt(t.index,e)[8]=u)}}(n,e,t,At(t,e)),128==(128&t.flags)&&function sS(n,e,t){const i=t.directiveStart,r=t.directiveEnd,o=t.index,a=function bE(){return P.lFrame.currentDirectiveIndex}();try{Kn(o);for(let l=i;l<r;l++){const c=n.data[l],u=e[l];Wl(l),(null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs)&&um(c,u)}}finally{Kn(-1),Wl(a)}}(n,e,t))}function qc(n,e,t=At){const i=e.localNames;if(null!==i){let r=e.index+1;for(let s=0;s<i.length;s+=2){const o=i[s+1],a=-1===o?t(e,n):n[o];n[r++]=a}}}function im(n){const e=n.tView;return null===e||e.incompleteFirstPass?n.tView=Ho(1,null,n.template,n.decls,n.vars,n.directiveDefs,n.pipeDefs,n.viewQuery,n.schemas,n.consts):e}function Ho(n,e,t,i,r,s,o,a,l,c){const u=20+i,d=u+r,h=function ZM(n,e){const t=[];for(let i=0;i<e;i++)t.push(i<n?null:L);return t}(u,d),f="function"==typeof c?c():c;return h[1]={type:n,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:e,data:h.slice().fill(null,u),bindingStartIndex:u,expandoStartIndex:d,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 o?o():o,firstChild:null,schemas:l,consts:f,incompleteFirstPass:!1}}function om(n,e,t,i){const r=gm(e);null===t?r.push(i):(r.push(t),n.firstCreatePass&&_m(n).push(i,r.length-1))}function am(n,e,t){for(let i in n)if(n.hasOwnProperty(i)){const r=n[i];(t=null===t?{}:t).hasOwnProperty(i)?t[i].push(e,r):t[i]=[e,r]}return t}function Ot(n,e,t,i,r,s,o,a){const l=At(e,t);let u,c=e.inputs;!a&&null!=c&&(u=c[i])?(bm(n,t,u,i,r),lo(e)&&function eS(n,e){const t=Tt(e,n);16&t[2]||(t[2]|=64)}(t,e.index)):3&e.type&&(i=function JM(n){return"class"===n?"className":"for"===n?"htmlFor":"formaction"===n?"formAction":"innerHtml"===n?"innerHTML":"readonly"===n?"readOnly":"tabindex"===n?"tabIndex":n}(i),r=null!=o?o(r,e.value||"",i):r,Oe(s)?s.setProperty(l,i,r):Ql(i)||(l.setProperty?l.setProperty(i,r):l[i]=r))}function Kc(n,e,t,i){let r=!1;if(vf()){const s=function oS(n,e,t){const i=n.directiveRegistry;let r=null;if(i)for(let s=0;s<i.length;s++){const o=i[s];Hp(t,o.selectors,!1)&&(r||(r=[]),Co(Yr(t,e),n,o.type),Jt(o)?(dm(n,t),r.unshift(o)):r.push(o))}return r}(n,e,t),o=null===i?null:{"":-1};if(null!==s){r=!0,hm(t,n.data.length,s.length);for(let u=0;u<s.length;u++){const d=s[u];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,c=rr(n,e,s.length,null);for(let u=0;u<s.length;u++){const d=s[u];t.mergedAttrs=vo(t.mergedAttrs,d.hostAttrs),fm(n,t,e,c,d),lS(c,d,o),null!==d.contentQueries&&(t.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(t.flags|=128);const h=d.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t.index),a=!0),!l&&(h.ngOnChanges||h.ngDoCheck)&&((n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t.index),l=!0),c++}!function XM(n,e){const i=e.directiveEnd,r=n.data,s=e.attrs,o=[];let a=null,l=null;for(let c=e.directiveStart;c<i;c++){const u=r[c],d=u.inputs,h=null===s||jp(e)?null:dS(d,s);o.push(h),a=am(d,c,a),l=am(u.outputs,c,l)}null!==a&&(a.hasOwnProperty("class")&&(e.flags|=16),a.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=o,e.inputs=a,e.outputs=l}(n,t)}o&&function aS(n,e,t){if(e){const i=n.localNames=[];for(let r=0;r<e.length;r+=2){const s=t[e[r+1]];if(null==s)throw new M(-301,!1);i.push(e[r],s)}}}(t,i,o)}return t.mergedAttrs=vo(t.mergedAttrs,t.attrs),r}function cm(n,e,t,i,r,s){const o=s.hostBindings;if(o){let a=n.hostBindingOpCodes;null===a&&(a=n.hostBindingOpCodes=[]);const l=~e.index;(function iS(n){let e=n.length;for(;e>0;){const t=n[--e];if("number"==typeof t&&t<0)return t}return 0})(a)!=l&&a.push(l),a.push(i,r,o)}}function um(n,e){null!==n.hostBindings&&n.hostBindings(1,e)}function dm(n,e){e.flags|=2,(n.components||(n.components=[])).push(e.index)}function lS(n,e,t){if(t){if(e.exportAs)for(let i=0;i<e.exportAs.length;i++)t[e.exportAs[i]]=n;Jt(e)&&(t[""]=n)}}function hm(n,e,t){n.flags|=1,n.directiveStart=e,n.directiveEnd=e+t,n.providerIndexes=e}function fm(n,e,t,i,r){n.data[i]=r;const s=r.factory||(r.factory=pi(r.type)),o=new qr(s,Jt(r),null);n.blueprint[i]=o,t[i]=o,cm(n,e,0,i,rr(n,t,r.hostVars,L),r)}function cS(n,e,t){const i=At(e,n),r=im(t),s=n[10],o=$o(n,ds(n,r,null,t.onPush?64:16,i,e,s,s.createRenderer(i,t),null,null));n[e.index]=o}function bn(n,e,t,i,r,s){const o=At(n,e);!function Yc(n,e,t,i,r,s,o){if(null==s)Oe(n)?n.removeAttribute(e,r,t):e.removeAttribute(r);else{const a=null==o?k(s):o(s,i||"",r);Oe(n)?n.setAttribute(e,r,a,t):t?e.setAttributeNS(t,r,a):e.setAttribute(r,a)}}(e[j],o,s,n.value,t,i,r)}function uS(n,e,t,i,r,s){const o=s[e];if(null!==o){const a=i.setInput;for(let l=0;l<o.length;){const c=o[l++],u=o[l++],d=o[l++];null!==a?i.setInput(t,d,c,u):t[u]=d}}}function dS(n,e){let t=null,i=0;for(;i<e.length;){const r=e[i];if(0!==r)if(5!==r){if("number"==typeof r)break;n.hasOwnProperty(r)&&(null===t&&(t=[]),t.push(r,n[r],e[i+1])),i+=2}else i+=2;else i+=4}return t}function pm(n,e,t,i){return new Array(n,!0,!1,e,null,0,i,t,null,null)}function pS(n,e){const t=Tt(e,n);if(Hl(t)){const i=t[1];80&t[2]?sr(i,t,i.template,t[8]):t[5]>0&&Zc(t)}}function Zc(n){for(let i=mc(n);null!==i;i=gc(i))for(let r=10;r<i.length;r++){const s=i[r];if(1024&s[2]){const o=s[1];sr(o,s,o.template,s[8])}else s[5]>0&&Zc(s)}const t=n[1].components;if(null!==t)for(let i=0;i<t.length;i++){const r=Tt(t[i],n);Hl(r)&&r[5]>0&&Zc(r)}}function mS(n,e){const t=Tt(e,n),i=t[1];(function gS(n,e){for(let t=e.length;t<n.blueprint.length;t++)e.push(n.blueprint[t])})(i,t),hs(i,t,t[8])}function $o(n,e){return n[13]?n[14][4]=e:n[13]=e,n[14]=e,e}function Qc(n){for(;n;){n[2]|=64;const e=ss(n);if(QC(n)&&!e)return n;n=e}return null}function mm(n){!function Xc(n){for(let e=0;e<n.components.length;e++){const t=n.components[e],i=hc(t),r=i[1];YM(r,i,r.template,t)}}(n[8])}function eu(n,e,t){Kl(0),e(n,t)}const yS=(()=>Promise.resolve(null))();function gm(n){return n[7]||(n[7]=[])}function _m(n){return n.cleanup||(n.cleanup=[])}function vm(n,e){const t=n[9],i=t?t.get(us,null):null;i&&i.handleError(e)}function bm(n,e,t,i,r){for(let s=0;s<t.length;){const o=t[s++],a=t[s++],l=e[o],c=n.data[o];null!==c.setInput?c.setInput(l,r,i,a):l[a]=r}}function Rn(n,e,t){const i=uo(e,n);!function up(n,e,t){Oe(n)?n.setValue(e,t):e.textContent=t}(n[j],i,t)}function Uo(n,e,t){let i=t?n.styles:null,r=t?n.classes:null,s=0;if(null!==e)for(let o=0;o<e.length;o++){const a=e[o];"number"==typeof a?s=a:1==s?r=wl(r,a):2==s&&(i=wl(i,a+": "+e[++o]+";"))}t?n.styles=i:n.stylesWithoutHost=i,t?n.classes=r:n.classesWithoutHost=r}const tu=new A("INJECTOR",-1);class Dm{get(e,t=es){if(t===es){const i=new Error(`NullInjectorError: No provider for ${ne(e)}!`);throw i.name="NullInjectorError",i}return t}}const nu=new A("Set Injector scope."),fs={},DS={};let iu;function Cm(){return void 0===iu&&(iu=new Dm),iu}function Em(n,e=null,t=null,i){const r=wm(n,e,t,i);return r._resolveInjectorDefTypes(),r}function wm(n,e=null,t=null,i){return new CS(n,t,e||Cm(),i)}class CS{constructor(e,t,i,r=null){this.parent=i,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const s=[];t&&_n(t,a=>this.processProvider(a,e,t)),_n([e],a=>this.processInjectorType(a,[],s)),this.records.set(tu,or(void 0,this));const o=this.records.get(nu);this.scope=null!=o?o.value:null,this.source=r||("object"==typeof e?null:ne(e))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(e=>e.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(e,t=es,i=B.Default){this.assertNotDestroyed();const r=Kf(this),s=zn(void 0);try{if(!(i&B.SkipSelf)){let a=this.records.get(e);if(void 0===a){const l=function FS(n){return"function"==typeof n||"object"==typeof n&&n instanceof A}(e)&&Sl(e);a=l&&this.injectableDefInScope(l)?or(ru(e),fs):null,this.records.set(e,a)}if(null!=a)return this.hydrate(e,a)}return(i&B.Self?Cm():this.parent).get(e,t=i&B.Optional&&t===es?null:t)}catch(o){if("NullInjectorError"===o.name){if((o[Ao]=o[Ao]||[]).unshift(ne(e)),r)throw o;return function iw(n,e,t,i){const r=n[Ao];throw e[qf]&&r.unshift(e[qf]),n.message=function rw(n,e,t,i=null){n=n&&"\n"===n.charAt(0)&&"\u0275"==n.charAt(1)?n.substr(2):n;let r=ne(e);if(Array.isArray(e))r=e.map(ne).join(" -> ");else if("object"==typeof e){let s=[];for(let o in e)if(e.hasOwnProperty(o)){let a=e[o];s.push(o+":"+("string"==typeof a?JSON.stringify(a):ne(a)))}r=`{${s.join(", ")}}`}return`${t}${i?"("+i+")":""}[${r}]: ${n.replace(XE,"\n ")}`}("\n"+n.message,r,t,i),n.ngTokenPath=r,n[Ao]=null,n}(o,e,"R3InjectorError",this.source)}throw o}finally{zn(s),Kf(r)}}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(e=>this.get(e))}toString(){const e=[];return this.records.forEach((i,r)=>e.push(ne(r))),`R3Injector[${e.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new M(205,!1)}processInjectorType(e,t,i){if(!(e=H(e)))return!1;let r=ef(e);const s=null==r&&e.ngModule||void 0,o=void 0===s?e:s,a=-1!==i.indexOf(o);if(void 0!==s&&(r=ef(s)),null==r)return!1;if(null!=r.imports&&!a){let u;i.push(o);try{_n(r.imports,d=>{this.processInjectorType(d,t,i)&&(void 0===u&&(u=[]),u.push(d))})}finally{}if(void 0!==u)for(let d=0;d<u.length;d++){const{ngModule:h,providers:f}=u[d];_n(f,p=>this.processProvider(p,h,f||ue))}}this.injectorDefTypes.add(o);const l=pi(o)||(()=>new o);this.records.set(o,or(l,fs));const c=r.providers;if(null!=c&&!a){const u=e;_n(c,d=>this.processProvider(d,u,c))}return void 0!==s&&void 0!==e.providers}processProvider(e,t,i){let r=ar(e=H(e))?e:H(e&&e.provide);const s=function wS(n,e,t){return Sm(n)?or(void 0,n.useValue):or(Mm(n),fs)}(e);if(ar(e)||!0!==e.multi)this.records.get(r);else{let o=this.records.get(r);o||(o=or(void 0,fs,!0),o.factory=()=>lc(o.multi),this.records.set(r,o)),r=e,o.multi.push(e)}this.records.set(r,s)}hydrate(e,t){return t.value===fs&&(t.value=DS,t.value=t.factory()),"object"==typeof t.value&&t.value&&function IS(n){return null!==n&&"object"==typeof n&&"function"==typeof n.ngOnDestroy}(t.value)&&this.onDestroy.add(t.value),t.value}injectableDefInScope(e){if(!e.providedIn)return!1;const t=H(e.providedIn);return"string"==typeof t?"any"===t||t===this.scope:this.injectorDefTypes.has(t)}}function ru(n){const e=Sl(n),t=null!==e?e.factory:pi(n);if(null!==t)return t;if(n instanceof A)throw new M(204,!1);if(n instanceof Function)return function ES(n){const e=n.length;if(e>0)throw Jr(e,"?"),new M(204,!1);const t=function VC(n){const e=n&&(n[io]||n[tf]);if(e){const t=function BC(n){if(n.hasOwnProperty("name"))return n.name;const e=(""+n).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(n);return console.warn(`DEPRECATED: DI is instantiating a token "${t}" 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 "${t}" class.`),e}return null}(n);return null!==t?()=>t.factory(n):()=>new n}(n);throw new M(204,!1)}function Mm(n,e,t){let i;if(ar(n)){const r=H(n);return pi(r)||ru(r)}if(Sm(n))i=()=>H(n.useValue);else if(function SS(n){return!(!n||!n.useFactory)}(n))i=()=>n.useFactory(...lc(n.deps||[]));else if(function MS(n){return!(!n||!n.useExisting)}(n))i=()=>D(H(n.useExisting));else{const r=H(n&&(n.useClass||n.provide));if(!function TS(n){return!!n.deps}(n))return pi(r)||ru(r);i=()=>new r(...lc(n.deps))}return i}function or(n,e,t=!1){return{factory:n,value:e,multi:t?[]:void 0}}function Sm(n){return null!==n&&"object"==typeof n&&ew in n}function ar(n){return"function"==typeof n}let vt=(()=>{class n{static create(t,i){var r;if(Array.isArray(t))return Em({name:""},i,t,"");{const s=null!==(r=t.name)&&void 0!==r?r:"";return Em({name:s},t.parent,t.providers,s)}}}return n.THROW_IF_NOT_FOUND=es,n.NULL=new Dm,n.\u0275prov=O({token:n,providedIn:"any",factory:()=>D(tu)}),n.__NG_ELEMENT_ID__=-1,n})();function VS(n,e){mo(hc(n)[1],Ge())}function K(n){let e=function Vm(n){return Object.getPrototypeOf(n.prototype).constructor}(n.type),t=!0;const i=[n];for(;e;){let r;if(Jt(n))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new M(903,"");r=e.\u0275dir}if(r){if(t){i.push(r);const o=n;o.inputs=au(n.inputs),o.declaredInputs=au(n.declaredInputs),o.outputs=au(n.outputs);const a=r.hostBindings;a&&$S(n,a);const l=r.viewQuery,c=r.contentQueries;if(l&&jS(n,l),c&&HS(n,c),El(n.inputs,r.inputs),El(n.declaredInputs,r.declaredInputs),El(n.outputs,r.outputs),Jt(r)&&r.data.animation){const u=n.data;u.animation=(u.animation||[]).concat(r.data.animation)}}const s=r.features;if(s)for(let o=0;o<s.length;o++){const a=s[o];a&&a.ngInherit&&a(n),a===K&&(t=!1)}}e=Object.getPrototypeOf(e)}!function BS(n){let e=0,t=null;for(let i=n.length-1;i>=0;i--){const r=n[i];r.hostVars=e+=r.hostVars,r.hostAttrs=vo(r.hostAttrs,t=vo(t,r.hostAttrs))}}(i)}function au(n){return n===Bi?{}:n===ue?[]:n}function jS(n,e){const t=n.viewQuery;n.viewQuery=t?(i,r)=>{e(i,r),t(i,r)}:e}function HS(n,e){const t=n.contentQueries;n.contentQueries=t?(i,r,s)=>{e(i,r,s),t(i,r,s)}:e}function $S(n,e){const t=n.hostBindings;n.hostBindings=t?(i,r)=>{e(i,r),t(i,r)}:e}let zo=null;function lr(){if(!zo){const n=re.Symbol;if(n&&n.iterator)zo=n.iterator;else{const e=Object.getOwnPropertyNames(Map.prototype);for(let t=0;t<e.length;++t){const i=e[t];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(zo=i)}}}return zo}function ps(n){return!!lu(n)&&(Array.isArray(n)||!(n instanceof Map)&&lr()in n)}function lu(n){return null!==n&&("function"==typeof n||"object"==typeof n)}function ot(n,e,t){return!Object.is(n[e],t)&&(n[e]=t,!0)}function at(n,e,t,i){const r=v();return ot(r,Gi(),e)&&(Z(),bn(Me(),r,n,e,t,i)),at}function Qe(n,e,t,i,r,s,o,a){const l=v(),c=Z(),u=n+20,d=c.firstCreatePass?function YS(n,e,t,i,r,s,o,a,l){const c=e.consts,u=ir(e,n,4,o||null,qn(c,a));Kc(e,t,u,qn(c,l)),mo(e,u);const d=u.tViews=Ho(2,u,i,r,s,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c);return null!==e.queries&&(e.queries.template(e,u),d.queries=e.queries.embeddedTView(u)),u}(u,c,l,e,t,i,r,s,o):c.data[u];gn(d,!1);const h=l[j].createComment("");xo(c,l,h,d),st(h,l),$o(l,l[u]=pm(h,l,h,d)),co(d)&&Wc(c,l,d),null!=o&&qc(l,d,a)}function _(n,e=B.Default){const t=v();return null===t?D(n,e):Lf(Ge(),t,H(n),e)}function ee(n,e,t){const i=v();return ot(i,Gi(),e)&&Ot(Z(),Me(),i,n,e,i[j],t,!1),ee}function fu(n,e,t,i,r){const o=r?"class":"style";bm(n,t,e.inputs[o],o,i)}function oe(n,e,t,i){const r=v(),s=Z(),o=20+n,a=r[j],l=r[o]=yc(a,e,function TE(){return P.lFrame.currentNamespace}()),c=s.firstCreatePass?function _0(n,e,t,i,r,s,o){const a=e.consts,c=ir(e,n,2,r,qn(a,s));return Kc(e,t,c,qn(a,o)),null!==c.attrs&&Uo(c,c.attrs,!1),null!==c.mergedAttrs&&Uo(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(o,s,r,0,e,t,i):s.data[o];gn(c,!0);const u=c.mergedAttrs;null!==u&&yo(a,l,u);const d=c.classes;null!==d&&Mc(a,l,d);const h=c.styles;return null!==h&&Ep(a,l,h),64!=(64&c.flags)&&xo(s,r,l,c),0===function hE(){return P.lFrame.elementDepthCount}()&&st(l,r),function fE(){P.lFrame.elementDepthCount++}(),co(c)&&(Wc(s,r,c),nm(s,c,r)),null!==i&&qc(r,c),oe}function de(){let n=Ge();zl()?Gl():(n=n.parent,gn(n,!1));const e=n;!function pE(){P.lFrame.elementDepthCount--}();const t=Z();return t.firstCreatePass&&(mo(t,n),Rl(n)&&t.queries.elementEnd(n)),null!=e.classesWithoutHost&&function RE(n){return 0!=(16&n.flags)}(e)&&fu(t,e,v(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function NE(n){return 0!=(32&n.flags)}(e)&&fu(t,e,v(),e.stylesWithoutHost,!1),de}function Jn(n,e,t,i){return oe(n,e,t,i),de(),Jn}function gs(n,e,t){const i=v(),r=Z(),s=n+20,o=r.firstCreatePass?function y0(n,e,t,i,r){const s=e.consts,o=qn(s,i),a=ir(e,n,8,"ng-container",o);return null!==o&&Uo(a,o,!0),Kc(e,t,a,qn(s,r)),null!==e.queries&&e.queries.elementStart(e,a),a}(s,r,i,e,t):r.data[s];gn(o,!0);const a=i[s]=i[j].createComment("");return xo(r,i,a,o),st(a,i),co(o)&&(Wc(r,i,o),nm(r,o,i)),null!=t&&qc(i,o),gs}function _s(){let n=Ge();const e=Z();return zl()?Gl():(n=n.parent,gn(n,!1)),e.firstCreatePass&&(mo(e,n),Rl(n)&&e.queries.elementEnd(n)),_s}function pu(){return v()}function qo(n){return!!n&&"function"==typeof n.then}const lg=function ag(n){return!!n&&"function"==typeof n.subscribe};function qe(n,e,t,i){const r=v(),s=Z(),o=Ge();return function ug(n,e,t,i,r,s,o,a){const l=co(i),u=n.firstCreatePass&&_m(n),d=e[8],h=gm(e);let f=!0;if(3&i.type||a){const y=At(i,e),b=a?a(y):y,g=h.length,C=a?T=>a(Le(T[i.index])):i.index;if(Oe(t)){let T=null;if(!a&&l&&(T=function v0(n,e,t,i){const r=n.cleanup;if(null!=r)for(let s=0;s<r.length-1;s+=2){const o=r[s];if(o===t&&r[s+1]===i){const a=e[7],l=r[s+2];return a.length>l?a[l]:null}"string"==typeof o&&(s+=2)}return null}(n,e,r,i.index)),null!==T)(T.__ngLastListenerFn__||T).__ngNextListenerFn__=s,T.__ngLastListenerFn__=s,f=!1;else{s=mu(i,e,d,s,!1);const U=t.listen(b,r,s);h.push(s,U),u&&u.push(r,C,g,g+1)}}else s=mu(i,e,d,s,!0),b.addEventListener(r,s,o),h.push(s),u&&u.push(r,C,g,o)}else s=mu(i,e,d,s,!1);const p=i.outputs;let m;if(f&&null!==p&&(m=p[r])){const y=m.length;if(y)for(let b=0;b<y;b+=2){const De=e[m[b]][m[b+1]].subscribe(s),Ae=h.length;h.push(s,De),u&&u.push(r,i.index,Ae,-(Ae+1))}}}(s,r,r[j],o,n,e,!!t,i),qe}function dg(n,e,t,i){try{return!1!==t(i)}catch(r){return vm(n,r),!1}}function mu(n,e,t,i,r){return function s(o){if(o===Function)return i;const a=2&n.flags?Tt(n.index,e):e;0==(32&e[2])&&Qc(a);let l=dg(e,0,i,o),c=s.__ngNextListenerFn__;for(;c;)l=dg(e,0,c,o)&&l,c=c.__ngNextListenerFn__;return r&&!1===l&&(o.preventDefault(),o.returnValue=!1),l}}function lt(n=1){return function CE(n){return(P.lFrame.contextLView=function EE(n,e){for(;n>0;)e=e[15],n--;return e}(n,P.lFrame.contextLView))[8]}(n)}function b0(n,e){let t=null;const i=function IM(n){const e=n.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(n);for(let r=0;r<e.length;r++){const s=e[r];if("*"!==s){if(null===i?Hp(n,s,!0):xM(i,s))return r}else t=r}return t}function Ko(n){const e=v()[16][6];if(!e.projection){const i=e.projection=Jr(n?n.length:1,null),r=i.slice();let s=e.child;for(;null!==s;){const o=n?b0(s,n):0;null!==o&&(r[o]?r[o].projectionNext=s:i[o]=s,r[o]=s),s=s.next}}}function sn(n,e=0,t){const i=v(),r=Z(),s=ir(r,20+n,16,null,t||null);null===s.projection&&(s.projection=e),Gl(),64!=(64&s.flags)&&function kw(n,e,t){Cp(e[j],0,e,t,fp(n,t,e),_p(t.parent||e[6],t,e))}(r,i,s)}function Dg(n,e,t,i,r){const s=n[t+1],o=null===e;let a=i?nn(s):xn(s),l=!1;for(;0!==a&&(!1===l||o);){const u=n[a+1];E0(n[a],e)&&(l=!0,n[a+1]=i?Pc(u):Nc(u)),a=i?nn(u):xn(u)}l&&(n[t+1]=i?Nc(s):Pc(s))}function E0(n,e){return null===n||null==e||(Array.isArray(n)?n[1]:n)===e||!(!Array.isArray(n)||"string"!=typeof e)&&Ji(n,e)>=0}function Ut(n,e){return function on(n,e,t,i){const r=v(),s=Z(),o=function On(n){const e=P.lFrame,t=e.bindingIndex;return e.bindingIndex=e.bindingIndex+n,t}(2);s.firstUpdatePass&&function Fg(n,e,t,i){const r=n.data;if(null===r[t+1]){const s=r[ht()],o=function Ig(n,e){return e>=n.expandoStartIndex}(n,t);(function Ng(n,e){return 0!=(n.flags&(e?16:32))})(s,i)&&null===e&&!o&&(e=!1),e=function x0(n,e,t,i){const r=function ql(n){const e=P.lFrame.currentDirectiveIndex;return-1===e?null:n[e]}(n);let s=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(t=ys(t=_u(null,n,e,t,i),e.attrs,i),s=null);else{const o=e.directiveStylingLast;if(-1===o||n[o]!==r)if(t=_u(r,n,e,t,i),null===s){let l=function R0(n,e,t){const i=t?e.classBindings:e.styleBindings;if(0!==xn(i))return n[nn(i)]}(n,e,i);void 0!==l&&Array.isArray(l)&&(l=_u(null,n,e,l[1],i),l=ys(l,e.attrs,i),function N0(n,e,t,i){n[nn(t?e.classBindings:e.styleBindings)]=i}(n,e,i,l))}else s=function k0(n,e,t){let i;const r=e.directiveEnd;for(let s=1+e.directiveStylingLast;s<r;s++)i=ys(i,n[s].hostAttrs,t);return ys(i,e.attrs,t)}(n,e,i)}return void 0!==s&&(i?e.residualClasses=s:e.residualStyles=s),t}(r,s,e,i),function D0(n,e,t,i,r,s){let o=s?e.classBindings:e.styleBindings,a=nn(o),l=xn(o);n[i]=t;let u,c=!1;if(Array.isArray(t)){const d=t;u=d[1],(null===u||Ji(d,u)>0)&&(c=!0)}else u=t;if(r)if(0!==l){const h=nn(n[a+1]);n[i+1]=Vo(h,a),0!==h&&(n[h+1]=kc(n[h+1],i)),n[a+1]=function PM(n,e){return 131071&n|e<<17}(n[a+1],i)}else n[i+1]=Vo(a,0),0!==a&&(n[a+1]=kc(n[a+1],i)),a=i;else n[i+1]=Vo(l,0),0===a?a=i:n[l+1]=kc(n[l+1],i),l=i;c&&(n[i+1]=Nc(n[i+1])),Dg(n,u,i,!0),Dg(n,u,i,!1),function C0(n,e,t,i,r){const s=r?n.residualClasses:n.residualStyles;null!=s&&"string"==typeof e&&Ji(s,e)>=0&&(t[i+1]=Pc(t[i+1]))}(e,u,n,i,s),o=Vo(a,l),s?e.classBindings=o:e.styleBindings=o}(r,s,e,t,o,i)}}(s,n,o,i),e!==L&&ot(r,o,e)&&function xg(n,e,t,i,r,s,o,a){if(!(3&e.type))return;const l=n.data,c=l[a+1];Yo(function Wp(n){return 1==(1&n)}(c)?Rg(l,e,t,r,xn(c),o):void 0)||(Yo(s)||function Gp(n){return 2==(2&n)}(c)&&(s=Rg(l,null,t,r,a,o)),function Lw(n,e,t,i,r){const s=Oe(n);if(e)r?s?n.addClass(t,i):t.classList.add(i):s?n.removeClass(t,i):t.classList.remove(i);else{let o=-1===i.indexOf("-")?void 0:Ft.DashCase;if(null==r)s?n.removeStyle(t,i,o):t.style.removeProperty(i);else{const a="string"==typeof r&&r.endsWith("!important");a&&(r=r.slice(0,-10),o|=Ft.Important),s?n.setStyle(t,i,r,o):t.style.setProperty(i,r,a?"important":"")}}}(i,o,uo(ht(),t),r,s))}(s,s.data[ht()],r,r[j],n,r[o+1]=function V0(n,e){return null==n||("string"==typeof e?n+=e:"object"==typeof n&&(n=ne(function Zn(n){return n instanceof class Ap{constructor(e){this.changingThisBreaksApplicationSecurity=e}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?n.changingThisBreaksApplicationSecurity:n}(n)))),n}(e,t),i,o)}(n,e,null,!0),Ut}function _u(n,e,t,i,r){let s=null;const o=t.directiveEnd;let a=t.directiveStylingLast;for(-1===a?a=t.directiveStart:a++;a<o&&(s=e[a],i=ys(i,s.hostAttrs,r),s!==n);)a++;return null!==n&&(t.directiveStylingLast=a),i}function ys(n,e,t){const i=t?1:2;let r=-1;if(null!==e)for(let s=0;s<e.length;s++){const o=e[s];"number"==typeof o?r=o:r===i&&(Array.isArray(n)||(n=void 0===n?[]:["",n]),It(n,o,!!t||e[++s]))}return void 0===n?null:n}function Rg(n,e,t,i,r,s){const o=null===e;let a;for(;r>0;){const l=n[r],c=Array.isArray(l),u=c?l[1]:l,d=null===u;let h=t[r+1];h===L&&(h=d?ue:void 0);let f=d?rc(h,i):u===i?h:void 0;if(c&&!Yo(f)&&(f=rc(l,i)),Yo(f)&&(a=f,o))return a;const p=n[r+1];r=o?nn(p):xn(p)}if(null!==e){let l=s?e.residualClasses:e.residualStyles;null!=l&&(a=rc(l,i))}return a}function Yo(n){return void 0!==n}function Nn(n,e=""){const t=v(),i=Z(),r=n+20,s=i.firstCreatePass?ir(i,r,1,e,null):i.data[r],o=t[r]=function _c(n,e){return Oe(n)?n.createText(e):n.createTextNode(e)}(t[j],e);xo(i,t,o,s),gn(s,!1)}function br(n){return Dr("",n,""),br}function Dr(n,e,t){const i=v(),r=function ur(n,e,t,i){return ot(n,Gi(),t)?e+k(t)+i:L}(i,n,e,t);return r!==L&&Rn(i,ht(),r),Dr}function Zo(n,e,t){const i=v();return ot(i,Gi(),e)&&Ot(Z(),Me(),i,n,e,i[j],t,!0),Zo}const Qo="en-US";let t_=Qo;function bu(n,e,t,i,r){if(n=H(n),Array.isArray(n))for(let s=0;s<n.length;s++)bu(n[s],e,t,i,r);else{const s=Z(),o=v();let a=ar(n)?n:H(n.provide),l=Mm(n);const c=Ge(),u=1048575&c.providerIndexes,d=c.directiveStart,h=c.providerIndexes>>20;if(ar(n)||!n.multi){const f=new qr(l,r,_),p=Cu(a,e,r?u:u+h,d);-1===p?(Co(Yr(c,o),s,a),Du(s,n,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(f),o.push(f)):(t[p]=f,o[p]=f)}else{const f=Cu(a,e,u+h,d),p=Cu(a,e,u,u+h),m=f>=0&&t[f],y=p>=0&&t[p];if(r&&!y||!r&&!m){Co(Yr(c,o),s,a);const b=function iT(n,e,t,i,r){const s=new qr(n,t,_);return s.multi=[],s.index=e,s.componentProviders=0,M_(s,r,i&&!t),s}(r?nT:tT,t.length,r,i,l);!r&&y&&(t[p].providerFactory=b),Du(s,n,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=1048576),t.push(b),o.push(b)}else Du(s,n,f>-1?f:p,M_(t[r?p:f],l,!r&&i));!r&&i&&y&&t[p].componentProviders++}}}function Du(n,e,t,i){const r=ar(e),s=function AS(n){return!!n.useClass}(e);if(r||s){const l=(s?H(e.useClass):e).prototype.ngOnDestroy;if(l){const c=n.destroyHooks||(n.destroyHooks=[]);if(!r&&e.multi){const u=c.indexOf(t);-1===u?c.push(t,[i,l]):c[u+1].push(i,l)}else c.push(t,l)}}}function M_(n,e,t){return t&&n.componentProviders++,n.multi.push(e)-1}function Cu(n,e,t,i){for(let r=t;r<i;r++)if(e[r]===n)return r;return-1}function tT(n,e,t,i){return Eu(this.multi,[])}function nT(n,e,t,i){const r=this.multi;let s;if(this.providerFactory){const o=this.providerFactory.componentProviders,a=Zr(t,t[1],this.providerFactory.index,i);s=a.slice(0,o),Eu(r,s);for(let l=o;l<a.length;l++)s.push(a[l])}else s=[],Eu(r,s);return s}function Eu(n,e){for(let t=0;t<n.length;t++)e.push((0,n[t])());return e}function te(n,e=[]){return t=>{t.providersResolver=(i,r)=>function eT(n,e,t){const i=Z();if(i.firstCreatePass){const r=Jt(n);bu(t,i.data,i.blueprint,r,!0),bu(e,i.data,i.blueprint,r,!1)}}(i,r?r(n):n,e)}}class S_{}class oT{resolveComponentFactory(e){throw function sT(n){const e=Error(`No component factory found for ${ne(n)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=n,e}(e)}}let vi=(()=>{class n{}return n.NULL=new oT,n})();function aT(){return wr(Ge(),v())}function wr(n,e){return new Re(At(n,e))}let Re=(()=>{class n{constructor(t){this.nativeElement=t}}return n.__NG_ELEMENT_ID__=aT,n})();function lT(n){return n instanceof Re?n.nativeElement:n}class Es{}let bi=(()=>{class n{}return n.__NG_ELEMENT_ID__=()=>function uT(){const n=v(),t=Tt(Ge().index,n);return function cT(n){return n[j]}(mn(t)?t:n)}(),n})(),dT=(()=>{class n{}return n.\u0275prov=O({token:n,providedIn:"root",factory:()=>null}),n})();class Di{constructor(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}const hT=new Di("13.4.0"),wu={};function na(n,e,t,i,r=!1){for(;null!==t;){const s=e[t.index];if(null!==s&&i.push(Le(s)),Xt(s))for(let a=10;a<s.length;a++){const l=s[a],c=l[1].firstChild;null!==c&&na(l[1],l,c,i)}const o=t.type;if(8&o)na(n,e,t.child,i);else if(32&o){const a=pc(t,e);let l;for(;l=a();)i.push(l)}else if(16&o){const a=Dp(e,t);if(Array.isArray(a))i.push(...a);else{const l=ss(e[16]);na(l[1],l,a,i,!0)}}t=r?t.projectionNext:t.next}return i}class ws{constructor(e,t){this._lView=e,this._cdRefInjectingView=t,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const e=this._lView,t=e[1];return na(t,e,t.firstChild,[])}get context(){return this._lView[8]}set context(e){this._lView[8]=e}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const e=this._lView[3];if(Xt(e)){const t=e[8],i=t?t.indexOf(this):-1;i>-1&&(vc(e,i),Mo(t,i))}this._attachedToViewContainer=!1}hp(this._lView[1],this._lView)}onDestroy(e){om(this._lView[1],this._lView,null,e)}markForCheck(){Qc(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){!function Jc(n,e,t){const i=e[10];i.begin&&i.begin();try{sr(n,e,n.template,t)}catch(r){throw vm(e,r),r}finally{i.end&&i.end()}}(this._lView[1],this._lView,this.context)}checkNoChanges(){}attachToViewContainerRef(){if(this._appRef)throw new M(902,"");this._attachedToViewContainer=!0}detachFromAppRef(){this._appRef=null,function Aw(n,e){os(n,e,e[j],2,null,null)}(this._lView[1],this._lView)}attachToAppRef(e){if(this._attachedToViewContainer)throw new M(902,"");this._appRef=e}}class fT extends ws{constructor(e){super(e),this._view=e}detectChanges(){mm(this._view)}checkNoChanges(){}get context(){return null}}class T_ extends vi{constructor(e){super(),this.ngModule=e}resolveComponentFactory(e){const t=it(e);return new Mu(t,this.ngModule)}}function I_(n){const e=[];for(let t in n)n.hasOwnProperty(t)&&e.push({propName:n[t],templateName:t});return e}class Mu extends S_{constructor(e,t){super(),this.componentDef=e,this.ngModule=t,this.componentType=e.type,this.selector=function NM(n){return n.map(RM).join(",")}(e.selectors),this.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],this.isBoundToModule=!!t}get inputs(){return I_(this.componentDef.inputs)}get outputs(){return I_(this.componentDef.outputs)}create(e,t,i,r){const s=(r=r||this.ngModule)?function mT(n,e){return{get:(t,i,r)=>{const s=n.get(t,wu,r);return s!==wu||i===wu?s:e.get(t,i,r)}}}(e,r.injector):e,o=s.get(Es,mf),a=s.get(dT,null),l=o.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",u=i?function sm(n,e,t){if(Oe(n))return n.selectRootElement(e,t===Zt.ShadowDom);let i="string"==typeof e?n.querySelector(e):e;return i.textContent="",i}(l,i,this.componentDef.encapsulation):yc(o.createRenderer(null,this.componentDef),c,function pT(n){const e=n.toLowerCase();return"svg"===e?"svg":"math"===e?"math":null}(c)),d=this.componentDef.onPush?576:528,h=function Lm(n,e){return{components:[],scheduler:n||DM,clean:yS,playerHandler:e||null,flags:0}}(),f=Ho(0,null,null,1,0,null,null,null,null,null),p=ds(null,f,h,d,null,null,o,l,a,s);let m,y;fo(p);try{const b=function km(n,e,t,i,r,s){const o=t[1];t[20]=n;const l=ir(o,20,2,"#host",null),c=l.mergedAttrs=e.hostAttrs;null!==c&&(Uo(l,c,!0),null!==n&&(yo(r,n,c),null!==l.classes&&Mc(r,n,l.classes),null!==l.styles&&Ep(r,n,l.styles)));const u=i.createRenderer(n,e),d=ds(t,im(e),null,e.onPush?64:16,t[20],l,i,u,s||null,null);return o.firstCreatePass&&(Co(Yr(l,t),o,e.type),dm(o,l),hm(l,t.length,1)),$o(t,d),t[20]=d}(u,this.componentDef,p,o,l);if(u)if(i)yo(l,u,["ng-version",hT.full]);else{const{attrs:g,classes:C}=function kM(n){const e=[],t=[];let i=1,r=2;for(;i<n.length;){let s=n[i];if("string"==typeof s)2===r?""!==s&&e.push(s,n[++i]):8===r&&t.push(s);else{if(!tn(r))break;r=s}i++}return{attrs:e,classes:t}}(this.componentDef.selectors[0]);g&&yo(l,u,g),C&&C.length>0&&Mc(l,u,C.join(" "))}if(y=jl(f,20),void 0!==t){const g=y.projection=[];for(let C=0;C<this.ngContentSelectors.length;C++){const T=t[C];g.push(null!=T?Array.from(T):null)}}m=function Pm(n,e,t,i,r){const s=t[1],o=function nS(n,e,t){const i=Ge();n.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),fm(n,i,e,rr(n,e,1,null),t));const r=Zr(e,n,i.directiveStart,i);st(r,e);const s=At(i,e);return s&&st(s,e),r}(s,t,e);if(i.components.push(o),n[8]=o,r&&r.forEach(l=>l(o,e)),e.contentQueries){const l=Ge();e.contentQueries(1,o,l.directiveStart)}const a=Ge();return!s.firstCreatePass||null===e.hostBindings&&null===e.hostAttrs||(Kn(a.index),cm(t[1],a,0,a.directiveStart,a.directiveEnd,e),um(e,o)),o}(b,this.componentDef,p,h,[VS]),hs(f,p,null)}finally{po()}return new _T(this.componentType,m,wr(y,p),p,y)}}class _T extends class rT{}{constructor(e,t,i,r,s){super(),this.location=i,this._rootLView=r,this._tNode=s,this.instance=t,this.hostView=this.changeDetectorRef=new fT(r),this.componentType=e}get injector(){return new Ki(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(e){this.hostView.onDestroy(e)}}class Mr{}const Sr=new Map;class x_ extends Mr{constructor(e,t){super(),this._parent=t,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new T_(this);const i=Vt(e);this._bootstrapComponents=vn(i.bootstrap),this._r3Injector=wm(e,t,[{provide:Mr,useValue:this},{provide:vi,useValue:this.componentFactoryResolver}],ne(e)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(e)}get(e,t=vt.THROW_IF_NOT_FOUND,i=B.Default){return e===vt||e===Mr||e===tu?this:this._r3Injector.get(e,t,i)}destroy(){const e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(e){this.destroyCbs.push(e)}}class Su extends class vT{}{constructor(e){super(),this.moduleType=e,null!==Vt(e)&&function bT(n){const e=new Set;!function t(i){const r=Vt(i,!0),s=r.id;null!==s&&(function F_(n,e,t){if(e&&e!==t)throw new Error(`Duplicate module registered for ${n} - ${ne(e)} vs ${ne(e.name)}`)}(s,Sr.get(s),i),Sr.set(s,i));const o=vn(r.imports);for(const a of o)e.has(a)||(e.add(a),t(a))}(n)}(e)}create(e){return new x_(this.moduleType,e)}}function Au(n){return e=>{setTimeout(n,void 0,e)}}const be=class VT extends we{constructor(e=!1){super(),this.__isAsync=e}emit(e){super.next(e)}subscribe(e,t,i){var r,s,o;let a=e,l=t||(()=>null),c=i;if(e&&"object"==typeof e){const d=e;a=null===(r=d.next)||void 0===r?void 0:r.bind(d),l=null===(s=d.error)||void 0===s?void 0:s.bind(d),c=null===(o=d.complete)||void 0===o?void 0:o.bind(d)}this.__isAsync&&(l=Au(l),a&&(a=Au(a)),c&&(c=Au(c)));const u=super.subscribe({next:a,error:l,complete:c});return e instanceof z&&e.add(u),u}};function BT(){return this._results[lr()]()}class As{constructor(e=!1){this._emitDistinctChangesOnly=e,this.dirty=!0,this._results=[],this._changesDetected=!1,this._changes=null,this.length=0,this.first=void 0,this.last=void 0;const t=lr(),i=As.prototype;i[t]||(i[t]=BT)}get changes(){return this._changes||(this._changes=new be)}get(e){return this._results[e]}map(e){return this._results.map(e)}filter(e){return this._results.filter(e)}find(e){return this._results.find(e)}reduce(e,t){return this._results.reduce(e,t)}forEach(e){this._results.forEach(e)}some(e){return this._results.some(e)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(e,t){const i=this;i.dirty=!1;const r=Ht(e);(this._changesDetected=!function UE(n,e,t){if(n.length!==e.length)return!1;for(let i=0;i<n.length;i++){let r=n[i],s=e[i];if(t&&(r=t(r),s=t(s)),s!==r)return!1}return!0}(i._results,r,t))&&(i._results=r,i.length=r.length,i.last=r[this.length-1],i.first=r[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 wn=(()=>{class n{}return n.__NG_ELEMENT_ID__=$T,n})();const jT=wn,HT=class extends jT{constructor(e,t,i){super(),this._declarationLView=e,this._declarationTContainer=t,this.elementRef=i}createEmbeddedView(e){const t=this._declarationTContainer.tViews,i=ds(this._declarationLView,t,e,16,null,t.declTNode,null,null,null,null);i[17]=this._declarationLView[this._declarationTContainer.index];const s=this._declarationLView[19];return null!==s&&(i[19]=s.createEmbeddedView(t)),hs(t,i,e),new ws(i)}};function $T(){return ia(Ge(),v())}function ia(n,e){return 4&n.type?new HT(e,n,wr(n,e)):null}let ln=(()=>{class n{}return n.__NG_ELEMENT_ID__=UT,n})();function UT(){return j_(Ge(),v())}const zT=ln,V_=class extends zT{constructor(e,t,i){super(),this._lContainer=e,this._hostTNode=t,this._hostLView=i}get element(){return wr(this._hostTNode,this._hostLView)}get injector(){return new Ki(this._hostTNode,this._hostLView)}get parentInjector(){const e=Do(this._hostTNode,this._hostLView);if(xf(e)){const t=qi(e,this._hostLView),i=Wi(e);return new Ki(t[1].data[i+8],t)}return new Ki(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(e){const t=B_(this._lContainer);return null!==t&&t[e]||null}get length(){return this._lContainer.length-10}createEmbeddedView(e,t,i){const r=e.createEmbeddedView(t||{});return this.insert(r,i),r}createComponent(e,t,i,r,s){const o=e&&!function Xr(n){return"function"==typeof n}(e);let a;if(o)a=t;else{const d=t||{};a=d.index,i=d.injector,r=d.projectableNodes,s=d.ngModuleRef}const l=o?e:new Mu(it(e)),c=i||this.parentInjector;if(!s&&null==l.ngModule){const h=(o?c:this.parentInjector).get(Mr,null);h&&(s=h)}const u=l.create(c,r,void 0,s);return this.insert(u.hostView,a),u}insert(e,t){const i=e._lView,r=i[1];if(function dE(n){return Xt(n[3])}(i)){const u=this.indexOf(e);if(-1!==u)this.detach(u);else{const d=i[3],h=new V_(d,d[6],d[3]);h.detach(h.indexOf(e))}}const s=this._adjustIndex(t),o=this._lContainer;!function Iw(n,e,t,i){const r=10+i,s=t.length;i>0&&(t[r-1][4]=e),i<s-10?(e[4]=t[r],$f(t,10+i,e)):(t.push(e),e[4]=null),e[3]=t;const o=e[17];null!==o&&t!==o&&function Fw(n,e){const t=n[9];e[16]!==e[3][3][16]&&(n[2]=!0),null===t?n[9]=[e]:t.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(n),e[2]|=128}(r,i,o,s);const a=Cc(s,o),l=i[j],c=Oo(l,o[7]);return null!==c&&function Sw(n,e,t,i,r,s){i[0]=r,i[6]=e,os(n,i,t,1,r,s)}(r,o[6],l,i,c,a),e.attachToViewContainerRef(),$f(Tu(o),s,e),e}move(e,t){return this.insert(e,t)}indexOf(e){const t=B_(this._lContainer);return null!==t?t.indexOf(e):-1}remove(e){const t=this._adjustIndex(e,-1),i=vc(this._lContainer,t);i&&(Mo(Tu(this._lContainer),t),hp(i[1],i))}detach(e){const t=this._adjustIndex(e,-1),i=vc(this._lContainer,t);return i&&null!=Mo(Tu(this._lContainer),t)?new ws(i):null}_adjustIndex(e,t=0){return null==e?this.length+t:e}};function B_(n){return n[8]}function Tu(n){return n[8]||(n[8]=[])}function j_(n,e){let t;const i=e[n.index];if(Xt(i))t=i;else{let r;if(8&n.type)r=Le(i);else{const s=e[j];r=s.createComment("");const o=At(n,e);mi(s,Oo(s,o),r,function Nw(n,e){return Oe(n)?n.nextSibling(e):e.nextSibling}(s,o),!1)}e[n.index]=t=pm(i,e,r,n),$o(e,t)}return new V_(t,n,e)}class Iu{constructor(e){this.queryList=e,this.matches=null}clone(){return new Iu(this.queryList)}setDirty(){this.queryList.setDirty()}}class Fu{constructor(e=[]){this.queries=e}createEmbeddedView(e){const t=e.queries;if(null!==t){const i=null!==e.contentQueries?e.contentQueries[0]:t.length,r=[];for(let s=0;s<i;s++){const o=t.getByIndex(s);r.push(this.queries[o.indexInDeclarationView].clone())}return new Fu(r)}return null}insertView(e){this.dirtyQueriesWithMatches(e)}detachView(e){this.dirtyQueriesWithMatches(e)}dirtyQueriesWithMatches(e){for(let t=0;t<this.queries.length;t++)null!==G_(e,t).matches&&this.queries[t].setDirty()}}class H_{constructor(e,t,i=null){this.predicate=e,this.flags=t,this.read=i}}class Ou{constructor(e=[]){this.queries=e}elementStart(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].elementStart(e,t)}elementEnd(e){for(let t=0;t<this.queries.length;t++)this.queries[t].elementEnd(e)}embeddedTView(e){let t=null;for(let i=0;i<this.length;i++){const r=null!==t?t.length:0,s=this.getByIndex(i).embeddedTView(e,r);s&&(s.indexInDeclarationView=i,null!==t?t.push(s):t=[s])}return null!==t?new Ou(t):null}template(e,t){for(let i=0;i<this.queries.length;i++)this.queries[i].template(e,t)}getByIndex(e){return this.queries[e]}get length(){return this.queries.length}track(e){this.queries.push(e)}}class xu{constructor(e,t=-1){this.metadata=e,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=t}elementStart(e,t){this.isApplyingToNode(t)&&this.matchTNode(e,t)}elementEnd(e){this._declarationNodeIndex===e.index&&(this._appliesToNextNode=!1)}template(e,t){this.elementStart(e,t)}embeddedTView(e,t){return this.isApplyingToNode(e)?(this.crossesNgTemplate=!0,this.addMatch(-e.index,t),new xu(this.metadata)):null}isApplyingToNode(e){if(this._appliesToNextNode&&1!=(1&this.metadata.flags)){const t=this._declarationNodeIndex;let i=e.parent;for(;null!==i&&8&i.type&&i.index!==t;)i=i.parent;return t===(null!==i?i.index:-1)}return this._appliesToNextNode}matchTNode(e,t){const i=this.metadata.predicate;if(Array.isArray(i))for(let r=0;r<i.length;r++){const s=i[r];this.matchTNodeWithReadOption(e,t,qT(t,s)),this.matchTNodeWithReadOption(e,t,Eo(t,e,s,!1,!1))}else i===wn?4&t.type&&this.matchTNodeWithReadOption(e,t,-1):this.matchTNodeWithReadOption(e,t,Eo(t,e,i,!1,!1))}matchTNodeWithReadOption(e,t,i){if(null!==i){const r=this.metadata.read;if(null!==r)if(r===Re||r===ln||r===wn&&4&t.type)this.addMatch(t.index,-2);else{const s=Eo(t,e,r,!1,!1);null!==s&&this.addMatch(t.index,s)}else this.addMatch(t.index,i)}}addMatch(e,t){null===this.matches?this.matches=[e,t]:this.matches.push(e,t)}}function qT(n,e){const t=n.localNames;if(null!==t)for(let i=0;i<t.length;i+=2)if(t[i]===e)return t[i+1];return null}function YT(n,e,t,i){return-1===t?function KT(n,e){return 11&n.type?wr(n,e):4&n.type?ia(n,e):null}(e,n):-2===t?function ZT(n,e,t){return t===Re?wr(e,n):t===wn?ia(e,n):t===ln?j_(e,n):void 0}(n,e,i):Zr(n,n[1],t,e)}function $_(n,e,t,i){const r=e[19].queries[i];if(null===r.matches){const s=n.data,o=t.matches,a=[];for(let l=0;l<o.length;l+=2){const c=o[l];a.push(c<0?null:YT(e,s[c],o[l+1],t.metadata.read))}r.matches=a}return r.matches}function Ru(n,e,t,i){const r=n.queries.getByIndex(t),s=r.matches;if(null!==s){const o=$_(n,e,r,t);for(let a=0;a<s.length;a+=2){const l=s[a];if(l>0)i.push(o[a/2]);else{const c=s[a+1],u=e[-l];for(let d=10;d<u.length;d++){const h=u[d];h[17]===h[3]&&Ru(h[1],h,c,i)}if(null!==u[9]){const d=u[9];for(let h=0;h<d.length;h++){const f=d[h];Ru(f[1],f,c,i)}}}}}return i}function Xe(n){const e=v(),t=Z(),i=Ef();Kl(i+1);const r=G_(t,i);if(n.dirty&&gf(e)===(2==(2&r.metadata.flags))){if(null===r.matches)n.reset([]);else{const s=r.crossesNgTemplate?Ru(t,e,i,[]):$_(t,e,r,i);n.reset(s,lT),n.notifyOnChanges()}return!0}return!1}function Ci(n,e,t){const i=Z();i.firstCreatePass&&(z_(i,new H_(n,e,t),-1),2==(2&e)&&(i.staticViewQueries=!0)),U_(i,v(),e)}function zt(n,e,t,i){const r=Z();if(r.firstCreatePass){const s=Ge();z_(r,new H_(e,t,i),s.index),function XT(n,e){const t=n.contentQueries||(n.contentQueries=[]);e!==(t.length?t[t.length-1]:-1)&&t.push(n.queries.length-1,e)}(r,n),2==(2&t)&&(r.staticContentQueries=!0)}U_(r,v(),t)}function Je(){return function QT(n,e){return n[19].queries[e].queryList}(v(),Ef())}function U_(n,e,t){const i=new As(4==(4&t));om(n,e,i,i.destroy),null===e[19]&&(e[19]=new Fu),e[19].queries.push(new Iu(i))}function z_(n,e,t){null===n.queries&&(n.queries=new Ou),n.queries.track(new xu(e,t))}function G_(n,e){return n.queries.getByIndex(e)}function oa(...n){}const ly=new A("Application Initializer");let Bu=(()=>{class n{constructor(t){this.appInits=t,this.resolve=oa,this.reject=oa,this.initialized=!1,this.done=!1,this.donePromise=new Promise((i,r)=>{this.resolve=i,this.reject=r})}runInitializers(){if(this.initialized)return;const t=[],i=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let r=0;r<this.appInits.length;r++){const s=this.appInits[r]();if(qo(s))t.push(s);else if(lg(s)){const o=new Promise((a,l)=>{s.subscribe({complete:a,error:l})});t.push(o)}}Promise.all(t).then(()=>{i()}).catch(r=>{this.reject(r)}),0===t.length&&i(),this.initialized=!0}}return n.\u0275fac=function(t){return new(t||n)(D(ly,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const Is=new A("AppId",{providedIn:"root",factory:function cy(){return`${ju()}${ju()}${ju()}`}});function ju(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const uy=new A("Platform Initializer"),Hu=new A("Platform ID",{providedIn:"platform",factory:()=>"unknown"}),gI=new A("appBootstrapListener"),kn=new A("LocaleId",{providedIn:"root",factory:()=>ac(kn,B.Optional|B.SkipSelf)||function _I(){return"undefined"!=typeof $localize&&$localize.locale||Qo}()}),DI=(()=>Promise.resolve(0))();function $u(n){"undefined"==typeof Zone?DI.then(()=>{n&&n.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",n)}class he{constructor({enableLongStackTrace:e=!1,shouldCoalesceEventChangeDetection:t=!1,shouldCoalesceRunChangeDetection:i=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new be(!1),this.onMicrotaskEmpty=new be(!1),this.onStable=new be(!1),this.onError=new be(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(r._inner=r._inner.fork(new Zone.TaskTrackingZoneSpec)),e&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),r.shouldCoalesceEventChangeDetection=!i&&t,r.shouldCoalesceRunChangeDetection=i,r.lastRequestAnimationFrameId=-1,r.nativeRequestAnimationFrame=function CI(){let n=re.requestAnimationFrame,e=re.cancelAnimationFrame;if("undefined"!=typeof Zone&&n&&e){const t=n[Zone.__symbol__("OriginalDelegate")];t&&(n=t);const i=e[Zone.__symbol__("OriginalDelegate")];i&&(e=i)}return{nativeRequestAnimationFrame:n,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function MI(n){const e=()=>{!function wI(n){n.isCheckStableRunning||-1!==n.lastRequestAnimationFrameId||(n.lastRequestAnimationFrameId=n.nativeRequestAnimationFrame.call(re,()=>{n.fakeTopEventTask||(n.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{n.lastRequestAnimationFrameId=-1,zu(n),n.isCheckStableRunning=!0,Uu(n),n.isCheckStableRunning=!1},void 0,()=>{},()=>{})),n.fakeTopEventTask.invoke()}),zu(n))}(n)};n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(t,i,r,s,o,a)=>{try{return dy(n),t.invokeTask(r,s,o,a)}finally{(n.shouldCoalesceEventChangeDetection&&"eventTask"===s.type||n.shouldCoalesceRunChangeDetection)&&e(),hy(n)}},onInvoke:(t,i,r,s,o,a,l)=>{try{return dy(n),t.invoke(r,s,o,a,l)}finally{n.shouldCoalesceRunChangeDetection&&e(),hy(n)}},onHasTask:(t,i,r,s)=>{t.hasTask(r,s),i===r&&("microTask"==s.change?(n._hasPendingMicrotasks=s.microTask,zu(n),Uu(n)):"macroTask"==s.change&&(n.hasPendingMacrotasks=s.macroTask))},onHandleError:(t,i,r,s)=>(t.handleError(r,s),n.runOutsideAngular(()=>n.onError.emit(s)),!1)})}(r)}static isInAngularZone(){return"undefined"!=typeof Zone&&!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!he.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(he.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(e,t,i){return this._inner.run(e,t,i)}runTask(e,t,i,r){const s=this._inner,o=s.scheduleEventTask("NgZoneEvent: "+r,e,EI,oa,oa);try{return s.runTask(o,t,i)}finally{s.cancelTask(o)}}runGuarded(e,t,i){return this._inner.runGuarded(e,t,i)}runOutsideAngular(e){return this._outer.run(e)}}const EI={};function Uu(n){if(0==n._nesting&&!n.hasPendingMicrotasks&&!n.isStable)try{n._nesting++,n.onMicrotaskEmpty.emit(null)}finally{if(n._nesting--,!n.hasPendingMicrotasks)try{n.runOutsideAngular(()=>n.onStable.emit(null))}finally{n.isStable=!0}}}function zu(n){n.hasPendingMicrotasks=!!(n._hasPendingMicrotasks||(n.shouldCoalesceEventChangeDetection||n.shouldCoalesceRunChangeDetection)&&-1!==n.lastRequestAnimationFrameId)}function dy(n){n._nesting++,n.isStable&&(n.isStable=!1,n.onUnstable.emit(null))}function hy(n){n._nesting--,Uu(n)}class SI{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new be,this.onMicrotaskEmpty=new be,this.onStable=new be,this.onError=new be}run(e,t,i){return e.apply(t,i)}runGuarded(e,t,i){return e.apply(t,i)}runOutsideAngular(e){return e()}runTask(e,t,i,r){return e.apply(t,i)}}let Gu=(()=>{class n{constructor(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.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:()=>{he.assertNotInAngularZone(),$u(()=>{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())$u(()=>{for(;0!==this._callbacks.length;){let t=this._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(this._didWork)}this._didWork=!1});else{let t=this.getPendingTasks();this._callbacks=this._callbacks.filter(i=>!i.updateCb||!i.updateCb(t)||(clearTimeout(i.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(t=>({source:t.source,creationLocation:t.creationLocation,data:t.data})):[]}addCallback(t,i,r){let s=-1;i&&i>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(o=>o.timeoutId!==s),t(this._didWork,this.getPendingTasks())},i)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:r})}whenStable(t,i,r){if(r&&!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(t,i,r),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,i,r){return[]}}return n.\u0275fac=function(t){return new(t||n)(D(he))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),AI=(()=>{class n{constructor(){this._applications=new Map,Wu.addToWindow(this)}registerApplication(t,i){this._applications.set(t,i)}unregisterApplication(t){this._applications.delete(t)}unregisterAllApplications(){this._applications.clear()}getTestability(t){return this._applications.get(t)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(t,i=!0){return Wu.findTestabilityInTree(this,t,i)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();class TI{addToWindow(e){}findTestabilityInTree(e,t,i){return null}}let Wu=new TI,Ei=null;const fy=new A("AllowMultipleToken"),py=new A("PlatformOnDestroy");function my(n,e,t=[]){const i=`Platform: ${e}`,r=new A(i);return(s=[])=>{let o=qu();if(!o||o.injector.get(fy,!1)){const a=[...t,...s,{provide:r,useValue:!0}];n?n(a):function xI(n){if(Ei&&!Ei.get(fy,!1))throw new M(400,"");Ei=n;const e=n.get(gy),t=n.get(uy,null);t&&t.forEach(i=>i())}(function NI(n=[],e){return vt.create({name:e,providers:[{provide:nu,useValue:"platform"},{provide:py,useValue:()=>Ei=null},...n]})}(a,i))}return function RI(n){const e=qu();if(!e)throw new M(401,"");return e}()}}function qu(){var n;return null!==(n=null==Ei?void 0:Ei.get(gy))&&void 0!==n?n:null}let gy=(()=>{class n{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,i){const a=function kI(n,e){let t;return t="noop"===n?new SI:("zone.js"===n?void 0:n)||new he({enableLongStackTrace:!1,shouldCoalesceEventChangeDetection:!!(null==e?void 0:e.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==e?void 0:e.ngZoneRunCoalescing)}),t}(i?i.ngZone:void 0,{ngZoneEventCoalescing:i&&i.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:i&&i.ngZoneRunCoalescing||!1}),l=[{provide:he,useValue:a}];return a.run(()=>{const c=vt.create({providers:l,parent:this.injector,name:t.moduleType.name}),u=t.create(c),d=u.injector.get(us,null);if(!d)throw new M(402,"");return a.runOutsideAngular(()=>{const h=a.onError.subscribe({next:f=>{d.handleError(f)}});u.onDestroy(()=>{Ku(this._modules,u),h.unsubscribe()})}),function PI(n,e,t){try{const i=t();return qo(i)?i.catch(r=>{throw e.runOutsideAngular(()=>n.handleError(r)),r}):i}catch(i){throw e.runOutsideAngular(()=>n.handleError(i)),i}}(d,a,()=>{const h=u.injector.get(Bu);return h.runInitializers(),h.donePromise.then(()=>(function cA(n){Mt(n,"Expected localeId to be defined"),"string"==typeof n&&(t_=n.toLowerCase().replace(/_/g,"-"))}(u.injector.get(kn,Qo)||Qo),this._moduleDoBootstrap(u),u))})})}bootstrapModule(t,i=[]){const r=_y({},i);return function FI(n,e,t){const i=new Su(t);return Promise.resolve(i)}(0,0,t).then(s=>this.bootstrapModuleFactory(s,r))}_moduleDoBootstrap(t){const i=t.injector.get(aa);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(r=>i.bootstrap(r));else{if(!t.instance.ngDoBootstrap)throw new M(403,"");t.instance.ngDoBootstrap(i)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new M(404,"");this._modules.slice().forEach(i=>i.destroy()),this._destroyListeners.forEach(i=>i());const t=this._injector.get(py,null);null==t||t(),this._destroyed=!0}get destroyed(){return this._destroyed}}return n.\u0275fac=function(t){return new(t||n)(D(vt))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"platform"}),n})();function _y(n,e){return Array.isArray(e)?e.reduce(_y,n):Object.assign(Object.assign({},n),e)}let aa=(()=>{class n{constructor(t,i,r,s){this._zone=t,this._injector=i,this._exceptionHandler=r,this._initStatus=s,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 o=new _e(l=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{l.next(this._stable),l.complete()})}),a=new _e(l=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{he.assertNotInAngularZone(),$u(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,l.next(!0))})})});const u=this._zone.onUnstable.subscribe(()=>{he.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{l.next(!1)}))});return()=>{c.unsubscribe(),u.unsubscribe()}});this.isStable=Un(o,a.pipe(function xC(){return n=>Qh()(function IC(n,e){return function(i){let r;if(r="function"==typeof n?n:function(){return n},"function"==typeof e)return i.lift(new FC(r,e));const s=Object.create(i,SC);return s.source=i,s.subjectFactory=r,s}}(OC)(n))}()))}bootstrap(t,i){if(!this._initStatus.done)throw new M(405,"");let r;r=t instanceof S_?t:this._injector.get(vi).resolveComponentFactory(t),this.componentTypes.push(r.componentType);const s=function OI(n){return n.isBoundToModule}(r)?void 0:this._injector.get(Mr),a=r.create(vt.NULL,[],i||r.selector,s),l=a.location.nativeElement,c=a.injector.get(Gu,null),u=c&&a.injector.get(AI);return c&&u&&u.registerApplication(l,c),a.onDestroy(()=>{this.detachView(a.hostView),Ku(this.components,a),u&&u.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new M(101,"");try{this._runningTick=!0;for(let t of this._views)t.detectChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const i=t;this._views.push(i),i.attachToAppRef(this)}detachView(t){const i=t;Ku(this._views,i),i.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(gI,[]).concat(this._bootstrapListeners).forEach(r=>r(t))}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return n.\u0275fac=function(t){return new(t||n)(D(he),D(vt),D(us),D(Bu))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function Ku(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}let vy=!0,wi=(()=>{class n{}return n.__NG_ELEMENT_ID__=BI,n})();function BI(n){return function jI(n,e,t){if(lo(n)&&!t){const i=Tt(n.index,e);return new ws(i,i)}return 47&n.type?new ws(e[16],e):null}(Ge(),v(),16==(16&n))}class wy{constructor(){}supports(e){return ps(e)}create(e){return new WI(e)}}const GI=(n,e)=>e;class WI{constructor(e){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=e||GI}forEachItem(e){let t;for(t=this._itHead;null!==t;t=t._next)e(t)}forEachOperation(e){let t=this._itHead,i=this._removalsHead,r=0,s=null;for(;t||i;){const o=!i||t&&t.currentIndex<Sy(i,r,s)?t:i,a=Sy(o,r,s),l=o.currentIndex;if(o===i)r--,i=i._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{s||(s=[]);const c=a-r,u=l-r;if(c!=u){for(let h=0;h<c;h++){const f=h<s.length?s[h]:s[h]=0,p=f+h;u<=p&&p<c&&(s[h]=f+1)}s[o.previousIndex]=u-c}}a!==l&&e(o,a,l)}}forEachPreviousItem(e){let t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachMovedItem(e){let t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}forEachIdentityChange(e){let t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}diff(e){if(null==e&&(e=[]),!ps(e))throw new M(900,"");return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let r,s,o,t=this._itHead,i=!1;if(Array.isArray(e)){this.length=e.length;for(let a=0;a<this.length;a++)s=e[a],o=this._trackByFn(a,s),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,s,o,a)),Object.is(t.item,s)||this._addIdentityChange(t,s)):(t=this._mismatch(t,s,o,a),i=!0),t=t._next}else r=0,function KS(n,e){if(Array.isArray(n))for(let t=0;t<n.length;t++)e(n[t]);else{const t=n[lr()]();let i;for(;!(i=t.next()).done;)e(i.value)}}(e,a=>{o=this._trackByFn(r,a),null!==t&&Object.is(t.trackById,o)?(i&&(t=this._verifyReinsertion(t,a,o,r)),Object.is(t.item,a)||this._addIdentityChange(t,a)):(t=this._mismatch(t,a,o,r),i=!0),t=t._next,r++}),this.length=r;return this._truncate(t),this.collection=e,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(e,t,i,r){let s;return null===e?s=this._itTail:(s=e._prev,this._remove(e)),null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,s,r)):null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(i,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,s,r)):e=this._addAfter(new qI(t,i),s,r),e}_verifyReinsertion(e,t,i,r){let s=null===this._unlinkedRecords?null:this._unlinkedRecords.get(i,null);return null!==s?e=this._reinsertAfter(s,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}_truncate(e){for(;null!==e;){const t=e._next;this._addToRemovals(this._unlink(e)),e=t}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(e,t,i){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);const r=e._prevRemoved,s=e._nextRemoved;return null===r?this._removalsHead=s:r._nextRemoved=s,null===s?this._removalsTail=r:s._prevRemoved=r,this._insertAfter(e,t,i),this._addToMoves(e,i),e}_moveAfter(e,t,i){return this._unlink(e),this._insertAfter(e,t,i),this._addToMoves(e,i),e}_addAfter(e,t,i){return this._insertAfter(e,t,i),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}_insertAfter(e,t,i){const r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new My),this._linkedRecords.put(e),e.currentIndex=i,e}_remove(e){return this._addToRemovals(this._unlink(e))}_unlink(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);const t=e._prev,i=e._next;return null===t?this._itHead=i:t._next=i,null===i?this._itTail=t:i._prev=t,e}_addToMoves(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}_addToRemovals(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new My),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}_addIdentityChange(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}}class qI{constructor(e,t){this.item=e,this.trackById=t,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 KI{constructor(){this._head=null,this._tail=null}add(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}get(e,t){let i;for(i=this._head;null!==i;i=i._nextDup)if((null===t||t<=i.currentIndex)&&Object.is(i.trackById,e))return i;return null}remove(e){const t=e._prevDup,i=e._nextDup;return null===t?this._head=i:t._nextDup=i,null===i?this._tail=t:i._prevDup=t,null===this._head}}class My{constructor(){this.map=new Map}put(e){const t=e.trackById;let i=this.map.get(t);i||(i=new KI,this.map.set(t,i)),i.add(e)}get(e,t){const r=this.map.get(e);return r?r.get(e,t):null}remove(e){const t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Sy(n,e,t){const i=n.previousIndex;if(null===i)return i;let r=0;return t&&i<t.length&&(r=t[i]),i+e+r}class Ay{constructor(){}supports(e){return e instanceof Map||lu(e)}create(){return new YI}}class YI{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(e){let t;for(t=this._mapHead;null!==t;t=t._next)e(t)}forEachPreviousItem(e){let t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}forEachChangedItem(e){let t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}forEachAddedItem(e){let t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}forEachRemovedItem(e){let t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}diff(e){if(e){if(!(e instanceof Map||lu(e)))throw new M(900,"")}else e=new Map;return this.check(e)?this:null}onDestroy(){}check(e){this._reset();let t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(i,r)=>{if(t&&t.key===r)this._maybeAddToChanges(t,i),this._appendAfter=t,t=t._next;else{const s=this._getOrCreateRecordForKey(r,i);t=this._insertBeforeOrAppend(t,s)}}),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(let i=t;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(e,t){if(e){const i=e._prev;return t._next=e,t._prev=i,e._prev=t,i&&(i._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}_getOrCreateRecordForKey(e,t){if(this._records.has(e)){const r=this._records.get(e);this._maybeAddToChanges(r,t);const s=r._prev,o=r._next;return s&&(s._next=o),o&&(o._prev=s),r._next=null,r._prev=null,r}const i=new ZI(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i}_reset(){if(this.isDirty){let e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}_addToAdditions(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}_addToChanges(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}_forEach(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(i=>t(e[i],i))}}class ZI{constructor(e){this.key=e,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 Ty(){return new ua([new wy])}let ua=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(null!=i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Ty()),deps:[[n,new Io,new To]]}}find(t){const i=this.factories.find(r=>r.supports(t));if(null!=i)return i;throw new M(901,"")}}return n.\u0275prov=O({token:n,providedIn:"root",factory:Ty}),n})();function Iy(){return new Fs([new Ay])}let Fs=(()=>{class n{constructor(t){this.factories=t}static create(t,i){if(i){const r=i.factories.slice();t=t.concat(r)}return new n(t)}static extend(t){return{provide:n,useFactory:i=>n.create(t,i||Iy()),deps:[[n,new Io,new To]]}}find(t){const i=this.factories.find(s=>s.supports(t));if(i)return i;throw new M(901,"")}}return n.\u0275prov=O({token:n,providedIn:"root",factory:Iy}),n})();const JI=my(null,"core",[]);let eF=(()=>{class n{constructor(t){}}return n.\u0275fac=function(t){return new(t||n)(D(aa))},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})(),da=null;function Mn(){return da}const fe=new A("DocumentToken");let Os=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:function(){return function rF(){return D(Fy)}()},providedIn:"platform"}),n})(),Fy=(()=>{class n extends Os{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=window.location,this._history=window.history}getBaseHrefFromDOM(){return Mn().getBaseHref(this._doc)}onPopState(t){const i=Mn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("popstate",t,!1),()=>i.removeEventListener("popstate",t)}onHashChange(t){const i=Mn().getGlobalEventTarget(this._doc,"window");return i.addEventListener("hashchange",t,!1),()=>i.removeEventListener("hashchange",t)}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(t){this.location.pathname=t}pushState(t,i,r){Oy()?this._history.pushState(t,i,r):this.location.hash=r}replaceState(t,i,r){Oy()?this._history.replaceState(t,i,r):this.location.hash=r}forward(){this._history.forward()}back(){this._history.back()}historyGo(t=0){this._history.go(t)}getState(){return this._history.state}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:function(){return function sF(){return new Fy(D(fe))}()},providedIn:"platform"}),n})();function Oy(){return!!window.history.pushState}function xy(n,e){if(0==n.length)return e;if(0==e.length)return n;let t=0;return n.endsWith("/")&&t++,e.startsWith("/")&&t++,2==t?n+e.substring(1):1==t?n+e:n+"/"+e}function Ry(n){const e=n.match(/#|\?|$/),t=e&&e.index||n.length;return n.slice(0,t-("/"===n[t-1]?1:0))+n.slice(t)}function Si(n){return n&&"?"!==n[0]?"?"+n:n}let Ju=(()=>{class n{historyGo(t){throw new Error("Not implemented")}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:function(){return function oF(n){const e=D(fe).location;return new lF(D(Os),e&&e.origin||"")}()},providedIn:"root"}),n})();const aF=new A("appBaseHref");let lF=(()=>{class n extends Ju{constructor(t,i){if(super(),this._platformLocation=t,this._removeListenerFns=[],null==i&&(i=this._platformLocation.getBaseHrefFromDOM()),null==i)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=i}ngOnDestroy(){for(;this._removeListenerFns.length;)this._removeListenerFns.pop()()}onPopState(t){this._removeListenerFns.push(this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t))}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return xy(this._baseHref,t)}path(t=!1){const i=this._platformLocation.pathname+Si(this._platformLocation.search),r=this._platformLocation.hash;return r&&t?`${i}${r}`:i}pushState(t,i,r,s){const o=this.prepareExternalUrl(r+Si(s));this._platformLocation.pushState(t,i,o)}replaceState(t,i,r,s){const o=this.prepareExternalUrl(r+Si(s));this._platformLocation.replaceState(t,i,o)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformLocation).historyGo)||void 0===r||r.call(i,t)}}return n.\u0275fac=function(t){return new(t||n)(D(Os),D(aF,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),Ny=(()=>{class n{constructor(t,i){this._subject=new be,this._urlChangeListeners=[],this._platformStrategy=t;const r=this._platformStrategy.getBaseHref();this._platformLocation=i,this._baseHref=Ry(ky(r)),this._platformStrategy.onPopState(s=>{this._subject.emit({url:this.path(!0),pop:!0,state:s.state,type:s.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,i=""){return this.path()==this.normalize(t+Si(i))}normalize(t){return n.stripTrailingSlash(function uF(n,e){return n&&e.startsWith(n)?e.substring(n.length):e}(this._baseHref,ky(t)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,i="",r=null){this._platformStrategy.pushState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Si(i)),r)}replaceState(t,i="",r=null){this._platformStrategy.replaceState(r,"",t,i),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Si(i)),r)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}historyGo(t=0){var i,r;null===(r=(i=this._platformStrategy).historyGo)||void 0===r||r.call(i,t)}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(i=>{this._notifyUrlChangeListeners(i.url,i.state)}))}_notifyUrlChangeListeners(t="",i){this._urlChangeListeners.forEach(r=>r(t,i))}subscribe(t,i,r){return this._subject.subscribe({next:t,error:i,complete:r})}}return n.normalizeQueryParams=Si,n.joinWithSlash=xy,n.stripTrailingSlash=Ry,n.\u0275fac=function(t){return new(t||n)(D(Ju),D(Os))},n.\u0275prov=O({token:n,factory:function(){return function cF(){return new Ny(D(Ju),D(Os))}()},providedIn:"root"}),n})();function ky(n){return n.replace(/\/index.html$/,"")}let zy=(()=>{class n{constructor(t,i,r,s){this._iterableDiffers=t,this._keyValueDiffers=i,this._ngEl=r,this._renderer=s,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(ps(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){const t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}_applyKeyValueChanges(t){t.forEachAddedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachChangedItem(i=>this._toggleClass(i.key,i.currentValue)),t.forEachRemovedItem(i=>{i.previousValue&&this._toggleClass(i.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(i=>{if("string"!=typeof i.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${ne(i.item)}`);this._toggleClass(i.item,!0)}),t.forEachRemovedItem(i=>this._toggleClass(i.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!0)):Object.keys(t).forEach(i=>this._toggleClass(i,!!t[i])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(i=>this._toggleClass(i,!1)):Object.keys(t).forEach(i=>this._toggleClass(i,!1)))}_toggleClass(t,i){(t=t.trim())&&t.split(/\s+/g).forEach(r=>{i?this._renderer.addClass(this._ngEl.nativeElement,r):this._renderer.removeClass(this._ngEl.nativeElement,r)})}}return n.\u0275fac=function(t){return new(t||n)(_(ua),_(Fs),_(Re),_(bi))},n.\u0275dir=I({type:n,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),n})();class YF{constructor(e,t,i,r){this.$implicit=e,this.ngForOf=t,this.index=i,this.count=r}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 Gy=(()=>{class n{constructor(t,i,r){this._viewContainer=t,this._template=i,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(t){this._ngForOf=t,this._ngForOfDirty=!0}set ngForTrackBy(t){this._trackByFn=t}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(t){t&&(this._template=t)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const t=this._ngForOf;!this._differ&&t&&(this._differ=this._differs.find(t).create(this.ngForTrackBy))}if(this._differ){const t=this._differ.diff(this._ngForOf);t&&this._applyChanges(t)}}_applyChanges(t){const i=this._viewContainer;t.forEachOperation((r,s,o)=>{if(null==r.previousIndex)i.createEmbeddedView(this._template,new YF(r.item,this._ngForOf,-1,-1),null===o?void 0:o);else if(null==o)i.remove(null===s?void 0:s);else if(null!==s){const a=i.get(s);i.move(a,o),Wy(a,r)}});for(let r=0,s=i.length;r<s;r++){const a=i.get(r).context;a.index=r,a.count=s,a.ngForOf=this._ngForOf}t.forEachIdentityChange(r=>{Wy(i.get(r.currentIndex),r)})}static ngTemplateContextGuard(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn),_(ua))},n.\u0275dir=I({type:n,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),n})();function Wy(n,e){n.context.$implicit=e.item}let Da=(()=>{class n{constructor(t,i){this._viewContainer=t,this._context=new ZF,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=i}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){qy("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){qy("ngIfElse",t),this._elseTemplateRef=t,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(t,i){return!0}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn))},n.\u0275dir=I({type:n,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),n})();class ZF{constructor(){this.$implicit=null,this.ngIf=null}}function qy(n,e){if(e&&!e.createEmbeddedView)throw new Error(`${n} must be a TemplateRef, but received '${ne(e)}'.`)}const Ky="browser";class dd{constructor(e,t){this._viewContainerRef=e,this._templateRef=t,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(e){e&&!this._created?this.create():!e&&this._created&&this.destroy()}}let wa=(()=>{class n{constructor(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}set ngSwitch(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)}_addCase(){return this._caseCount++}_addDefault(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)}_matchCase(t){const i=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||i,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),i}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let i=0;i<this._defaultViews.length;i++)this._defaultViews[i].enforceState(t)}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),n})(),Jy=(()=>{class n{constructor(t,i,r){this.ngSwitch=r,r._addCase(),this._view=new dd(t,i)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return n.\u0275fac=function(t){return new(t||n)(_(ln),_(wn),_(wa,9))},n.\u0275dir=I({type:n,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),n})(),tv=(()=>{class n{constructor(t,i,r){this._ngEl=t,this._differs=i,this._renderer=r,this._ngStyle=null,this._differ=null}set ngStyle(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())}ngDoCheck(){if(this._differ){const t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}}_setStyle(t,i){const[r,s]=t.split(".");null!=(i=null!=i&&s?`${i}${s}`:i)?this._renderer.setStyle(this._ngEl.nativeElement,r,i):this._renderer.removeStyle(this._ngEl.nativeElement,r)}_applyChanges(t){t.forEachRemovedItem(i=>this._setStyle(i.key,null)),t.forEachAddedItem(i=>this._setStyle(i.key,i.currentValue)),t.forEachChangedItem(i=>this._setStyle(i.key,i.currentValue))}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(Fs),_(bi))},n.\u0275dir=I({type:n,selectors:[["","ngStyle",""]],inputs:{ngStyle:"ngStyle"}}),n})(),Ma=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})();class pd extends class JO extends class iF{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){!function nF(n){da||(da=n)}(new pd)}onAndCancel(e,t,i){return e.addEventListener(t,i,!1),()=>{e.removeEventListener(t,i,!1)}}dispatchEvent(e,t){e.dispatchEvent(t)}remove(e){e.parentNode&&e.parentNode.removeChild(e)}createElement(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(e){return e.nodeType===Node.ELEMENT_NODE}isShadowRoot(e){return e instanceof DocumentFragment}getGlobalEventTarget(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}getBaseHref(e){const t=function ex(){return ks=ks||document.querySelector("base"),ks?ks.getAttribute("href"):null}();return null==t?null:function tx(n){Sa=Sa||document.createElement("a"),Sa.setAttribute("href",n);const e=Sa.pathname;return"/"===e.charAt(0)?e:`/${e}`}(t)}resetBaseElement(){ks=null}getUserAgent(){return window.navigator.userAgent}getCookie(e){return function qF(n,e){e=encodeURIComponent(e);for(const t of n.split(";")){const i=t.indexOf("="),[r,s]=-1==i?[t,""]:[t.slice(0,i),t.slice(i+1)];if(r.trim()===e)return decodeURIComponent(s)}return null}(document.cookie,e)}}let Sa,ks=null;const rv=new A("TRANSITION_ID"),ix=[{provide:ly,useFactory:function nx(n,e,t){return()=>{t.get(Bu).donePromise.then(()=>{const i=Mn(),r=e.querySelectorAll(`style[ng-transition="${n}"]`);for(let s=0;s<r.length;s++)i.remove(r[s])})}},deps:[rv,fe,vt],multi:!0}];class md{static init(){!function II(n){Wu=n}(new md)}addToWindow(e){re.getAngularTestability=(i,r=!0)=>{const s=e.findTestabilityInTree(i,r);if(null==s)throw new Error("Could not find testability for element.");return s},re.getAllAngularTestabilities=()=>e.getAllTestabilities(),re.getAllAngularRootElements=()=>e.getAllRootElements(),re.frameworkStabilizers||(re.frameworkStabilizers=[]),re.frameworkStabilizers.push(i=>{const r=re.getAllAngularTestabilities();let s=r.length,o=!1;const a=function(l){o=o||l,s--,0==s&&i(o)};r.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(e,t,i){if(null==t)return null;const r=e.getTestability(t);return null!=r?r:i?Mn().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}let rx=(()=>{class n{build(){return new XMLHttpRequest}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const Aa=new A("EventManagerPlugins");let Ta=(()=>{class n{constructor(t,i){this._zone=i,this._eventNameToPlugin=new Map,t.forEach(r=>r.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,i,r){return this._findPluginFor(i).addEventListener(t,i,r)}addGlobalEventListener(t,i,r){return this._findPluginFor(i).addGlobalEventListener(t,i,r)}getZone(){return this._zone}_findPluginFor(t){const i=this._eventNameToPlugin.get(t);if(i)return i;const r=this._plugins;for(let s=0;s<r.length;s++){const o=r[s];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error(`No event manager plugin found for event ${t}`)}}return n.\u0275fac=function(t){return new(t||n)(D(Aa),D(he))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class sv{constructor(e){this._doc=e}addGlobalEventListener(e,t,i){const r=Mn().getGlobalEventTarget(this._doc,e);if(!r)throw new Error(`Unsupported event target ${r} for event ${t}`);return this.addEventListener(r,t,i)}}let ov=(()=>{class n{constructor(){this._stylesSet=new Set}addStyles(t){const i=new Set;t.forEach(r=>{this._stylesSet.has(r)||(this._stylesSet.add(r),i.add(r))}),this.onStylesAdded(i)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),Ps=(()=>{class n extends ov{constructor(t){super(),this._doc=t,this._hostNodes=new Map,this._hostNodes.set(t.head,[])}_addStylesToHost(t,i,r){t.forEach(s=>{const o=this._doc.createElement("style");o.textContent=s,r.push(i.appendChild(o))})}addHost(t){const i=[];this._addStylesToHost(this._stylesSet,t,i),this._hostNodes.set(t,i)}removeHost(t){const i=this._hostNodes.get(t);i&&i.forEach(av),this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach((i,r)=>{this._addStylesToHost(t,r,i)})}ngOnDestroy(){this._hostNodes.forEach(t=>t.forEach(av))}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();function av(n){Mn().remove(n)}const gd={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/",math:"http://www.w3.org/1998/MathML/"},_d=/%COMP%/g;function Ia(n,e,t){for(let i=0;i<e.length;i++){let r=e[i];Array.isArray(r)?Ia(n,r,t):(r=r.replace(_d,n),t.push(r))}return t}function uv(n){return e=>{if("__ngUnwrap__"===e)return n;!1===n(e)&&(e.preventDefault(),e.returnValue=!1)}}let Fa=(()=>{class n{constructor(t,i,r){this.eventManager=t,this.sharedStylesHost=i,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new yd(t)}createRenderer(t,i){if(!t||!i)return this.defaultRenderer;switch(i.encapsulation){case Zt.Emulated:{let r=this.rendererByCompId.get(i.id);return r||(r=new ux(this.eventManager,this.sharedStylesHost,i,this.appId),this.rendererByCompId.set(i.id,r)),r.applyToHost(t),r}case 1:case Zt.ShadowDom:return new dx(this.eventManager,this.sharedStylesHost,t,i);default:if(!this.rendererByCompId.has(i.id)){const r=Ia(i.id,i.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(i.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return n.\u0275fac=function(t){return new(t||n)(D(Ta),D(Ps),D(Is))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class yd{constructor(e){this.eventManager=e,this.data=Object.create(null),this.destroyNode=null}destroy(){}createElement(e,t){return t?document.createElementNS(gd[t]||t,e):document.createElement(e)}createComment(e){return document.createComment(e)}createText(e){return document.createTextNode(e)}appendChild(e,t){e.appendChild(t)}insertBefore(e,t,i){e&&e.insertBefore(t,i)}removeChild(e,t){e&&e.removeChild(t)}selectRootElement(e,t){let i="string"==typeof e?document.querySelector(e):e;if(!i)throw new Error(`The selector "${e}" did not match any elements`);return t||(i.textContent=""),i}parentNode(e){return e.parentNode}nextSibling(e){return e.nextSibling}setAttribute(e,t,i,r){if(r){t=r+":"+t;const s=gd[r];s?e.setAttributeNS(s,t,i):e.setAttribute(t,i)}else e.setAttribute(t,i)}removeAttribute(e,t,i){if(i){const r=gd[i];r?e.removeAttributeNS(r,t):e.removeAttribute(`${i}:${t}`)}else e.removeAttribute(t)}addClass(e,t){e.classList.add(t)}removeClass(e,t){e.classList.remove(t)}setStyle(e,t,i,r){r&(Ft.DashCase|Ft.Important)?e.style.setProperty(t,i,r&Ft.Important?"important":""):e.style[t]=i}removeStyle(e,t,i){i&Ft.DashCase?e.style.removeProperty(t):e.style[t]=""}setProperty(e,t,i){e[t]=i}setValue(e,t){e.nodeValue=t}listen(e,t,i){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,uv(i)):this.eventManager.addEventListener(e,t,uv(i))}}class ux extends yd{constructor(e,t,i,r){super(e),this.component=i;const s=Ia(r+"-"+i.id,i.styles,[]);t.addStyles(s),this.contentAttr=function ax(n){return"_ngcontent-%COMP%".replace(_d,n)}(r+"-"+i.id),this.hostAttr=function lx(n){return"_nghost-%COMP%".replace(_d,n)}(r+"-"+i.id)}applyToHost(e){super.setAttribute(e,this.hostAttr,"")}createElement(e,t){const i=super.createElement(e,t);return super.setAttribute(i,this.contentAttr,""),i}}class dx extends yd{constructor(e,t,i,r){super(e),this.sharedStylesHost=t,this.hostEl=i,this.shadowRoot=i.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const s=Ia(r.id,r.styles,[]);for(let o=0;o<s.length;o++){const a=document.createElement("style");a.textContent=s[o],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(e){return e===this.hostEl?this.shadowRoot:e}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(e,t){return super.appendChild(this.nodeOrShadowRoot(e),t)}insertBefore(e,t,i){return super.insertBefore(this.nodeOrShadowRoot(e),t,i)}removeChild(e,t){return super.removeChild(this.nodeOrShadowRoot(e),t)}parentNode(e){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(e)))}}let hx=(()=>{class n extends sv{constructor(t){super(t)}supports(t){return!0}addEventListener(t,i,r){return t.addEventListener(i,r,!1),()=>this.removeEventListener(t,i,r)}removeEventListener(t,i,r){return t.removeEventListener(i,r)}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const hv=["alt","control","meta","shift"],px={"\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"},fv={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"},mx={alt:n=>n.altKey,control:n=>n.ctrlKey,meta:n=>n.metaKey,shift:n=>n.shiftKey};let gx=(()=>{class n extends sv{constructor(t){super(t)}supports(t){return null!=n.parseEventName(t)}addEventListener(t,i,r){const s=n.parseEventName(i),o=n.eventCallback(s.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Mn().onAndCancel(t,s.domEventName,o))}static parseEventName(t){const i=t.toLowerCase().split("."),r=i.shift();if(0===i.length||"keydown"!==r&&"keyup"!==r)return null;const s=n._normalizeKey(i.pop());let o="";if(hv.forEach(l=>{const c=i.indexOf(l);c>-1&&(i.splice(c,1),o+=l+".")}),o+=s,0!=i.length||0===s.length)return null;const a={};return a.domEventName=r,a.fullKey=o,a}static getEventFullKey(t){let i="",r=function _x(n){let e=n.key;if(null==e){if(e=n.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===n.location&&fv.hasOwnProperty(e)&&(e=fv[e]))}return px[e]||e}(t);return r=r.toLowerCase()," "===r?r="space":"."===r&&(r="dot"),hv.forEach(s=>{s!=r&&mx[s](t)&&(i+=s+".")}),i+=r,i}static eventCallback(t,i,r){return s=>{n.getEventFullKey(s)===t&&r.runGuarded(()=>i(s))}}static _normalizeKey(t){return"esc"===t?"escape":t}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const Dx=my(JI,"browser",[{provide:Hu,useValue:Ky},{provide:uy,useValue:function yx(){pd.makeCurrent(),md.init()},multi:!0},{provide:fe,useFactory:function bx(){return function aE(n){Vl=n}(document),document},deps:[]}]),Cx=[{provide:nu,useValue:"root"},{provide:us,useFactory:function vx(){return new us},deps:[]},{provide:Aa,useClass:hx,multi:!0,deps:[fe,he,Hu]},{provide:Aa,useClass:gx,multi:!0,deps:[fe]},{provide:Fa,useClass:Fa,deps:[Ta,Ps,Is]},{provide:Es,useExisting:Fa},{provide:ov,useExisting:Ps},{provide:Ps,useClass:Ps,deps:[fe]},{provide:Gu,useClass:Gu,deps:[he]},{provide:Ta,useClass:Ta,deps:[Aa,he]},{provide:class QO{},useClass:rx,deps:[]}];let pv=(()=>{class n{constructor(t){if(t)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(t){return{ngModule:n,providers:[{provide:Is,useValue:t.appId},{provide:rv,useExisting:Is},ix]}}}return n.\u0275fac=function(t){return new(t||n)(D(n,12))},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:Cx,imports:[Ma,eF]}),n})();"undefined"!=typeof window&&window;class Rx extends z{constructor(e,t){super()}schedule(e,t=0){return this}}class Oa extends Rx{constructor(e,t){super(e,t),this.scheduler=e,this.work=t,this.pending=!1}schedule(e,t=0){if(this.closed)return this;this.state=e;const i=this.id,r=this.scheduler;return null!=i&&(this.id=this.recycleAsyncId(r,i,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this}requestAsyncId(e,t,i=0){return setInterval(e.flush.bind(e,this),i)}recycleAsyncId(e,t,i=0){if(null!==i&&this.delay===i&&!1===this.pending)return t;clearInterval(t)}execute(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const i=this._execute(e,t);if(i)return i;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(e,t){let r,i=!1;try{this.work(e)}catch(s){i=!0,r=!!s&&s||new Error(s)}if(i)return this.unsubscribe(),r}_unsubscribe(){const e=this.id,t=this.scheduler,i=t.actions,r=i.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&i.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null}}let _v=(()=>{class n{constructor(t,i=n.now){this.SchedulerAction=t,this.now=i}schedule(t,i=0,r){return new this.SchedulerAction(this,t).schedule(r,i)}}return n.now=()=>Date.now(),n})();class dn extends _v{constructor(e,t=_v.now){super(e,()=>dn.delegate&&dn.delegate!==this?dn.delegate.now():t()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(e,t=0,i){return dn.delegate&&dn.delegate!==this?dn.delegate.schedule(e,t,i):super.schedule(e,t,i)}flush(e){const{actions:t}=this;if(this.active)return void t.push(e);let i;this.active=!0;do{if(i=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,i){for(;e=t.shift();)e.unsubscribe();throw i}}}const Px=new class kx extends dn{}(class Nx extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}schedule(e,t=0){return t>0?super.schedule(e,t):(this.delay=t,this.state=e,this.scheduler.flush(this),this)}execute(e,t){return t>0||this.closed?super.execute(e,t):this._execute(e,t)}requestAsyncId(e,t,i=0){return null!==i&&i>0||null===i&&this.delay>0?super.requestAsyncId(e,t,i):e.flush(this)}}),yv=new _e(n=>n.complete());function bd(n){return n?function Lx(n){return new _e(e=>n.schedule(()=>e.complete()))}(n):yv}function xa(...n){let e=n[n.length-1];return jr(e)?(n.pop(),Cl(n,e)):Zh(n)}function Bx({error:n,subscriber:e}){e.error(n)}class Dt{constructor(e,t,i){this.kind=e,this.value=t,this.error=i,this.hasValue="N"===e}observe(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}}do(e,t,i){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return i&&i()}}accept(e,t,i){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,i)}toObservable(){switch(this.kind){case"N":return xa(this.value);case"E":return function Vx(n,e){return new _e(e?t=>e.schedule(Bx,0,{error:n,subscriber:t}):t=>t.error(n))}(this.error);case"C":return bd()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new Dt("N",e):Dt.undefinedValueNotification}static createError(e){return new Dt("E",void 0,e)}static createComplete(){return Dt.completeNotification}}Dt.completeNotification=new Dt("C"),Dt.undefinedValueNotification=new Dt("N",void 0);class Ra extends Ie{constructor(e,t,i=0){super(e),this.scheduler=t,this.delay=i}static dispatch(e){const{notification:t,destination:i}=e;t.observe(i),this.unsubscribe()}scheduleMessage(e){this.destination.add(this.scheduler.schedule(Ra.dispatch,this.delay,new Hx(e,this.destination)))}_next(e){this.scheduleMessage(Dt.createNext(e))}_error(e){this.scheduleMessage(Dt.createError(e)),this.unsubscribe()}_complete(){this.scheduleMessage(Dt.createComplete()),this.unsubscribe()}}class Hx{constructor(e,t){this.notification=e,this.destination=t}}class $x extends we{constructor(e=Number.POSITIVE_INFINITY,t=Number.POSITIVE_INFINITY,i){super(),this.scheduler=i,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=e<1?1:e,this._windowTime=t<1?1:t,t===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(e){const t=this._events;t.push(e),t.length>this._bufferSize&&t.shift(),super.next(e)}nextTimeWindow(e){this._events.push(new Ux(this._getNow(),e)),this._trimBufferThenGetEvents(),super.next(e)}_subscribe(e){const t=this._infiniteTimeWindow,i=t?this._events:this._trimBufferThenGetEvents(),r=this.scheduler,s=i.length;let o;if(this.closed)throw new Vi;if(this.isStopped||this.hasError?o=z.EMPTY:(this.observers.push(e),o=new Hh(this,e)),r&&e.add(e=new Ra(e,r)),t)for(let a=0;a<s&&!e.closed;a++)e.next(i[a]);else for(let a=0;a<s&&!e.closed;a++)e.next(i[a].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),o}_getNow(){return(this.scheduler||Px).now()}_trimBufferThenGetEvents(){const e=this._getNow(),t=this._bufferSize,i=this._windowTime,r=this._events,s=r.length;let o=0;for(;o<s&&!(e-r[o].time<i);)o++;return s>t&&(o=Math.max(o,s-t)),o>0&&r.splice(0,o),r}}class Ux{constructor(e,t){this.time=e,this.value=t}}function Ls(n,e){return"function"==typeof e?t=>t.pipe(Ls((i,r)=>Hr(n(i,r)).pipe($n((s,o)=>e(i,s,r,o))))):t=>t.lift(new zx(n))}class zx{constructor(e){this.project=e}call(e,t){return t.subscribe(new Gx(e,this.project))}}class Gx extends eo{constructor(e,t){super(e),this.project=t,this.index=0}_next(e){let t;const i=this.index++;try{t=this.project(e,i)}catch(r){return void this.destination.error(r)}this._innerSub(t)}_innerSub(e){const t=this.innerSubscription;t&&t.unsubscribe();const i=new Js(this),r=this.destination;r.add(i),this.innerSubscription=to(e,i),this.innerSubscription!==i&&r.add(this.innerSubscription)}_complete(){const{innerSubscription:e}=this;(!e||e.closed)&&super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(e){this.destination.next(e)}}const Na={schedule(n,e){const t=setTimeout(n,e);return()=>clearTimeout(t)},scheduleBeforeRender(n){if("undefined"==typeof window)return Na.schedule(n,0);if(void 0===window.requestAnimationFrame)return Na.schedule(n,16);const e=window.requestAnimationFrame(n);return()=>window.cancelAnimationFrame(e)}};let Dd;function eR(n,e,t){let i=t;return function qx(n){return!!n&&n.nodeType===Node.ELEMENT_NODE}(n)&&e.some((r,s)=>!("*"===r||!function Yx(n,e){if(!Dd){const t=Element.prototype;Dd=t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector}return n.nodeType===Node.ELEMENT_NODE&&Dd.call(n,e)}(n,r)||(i=s,0))),i}class nR{constructor(e,t){this.componentFactory=t.get(vi).resolveComponentFactory(e)}create(e){return new iR(this.componentFactory,e)}}class iR{constructor(e,t){this.componentFactory=e,this.injector=t,this.eventEmitters=new $x(1),this.events=this.eventEmitters.pipe(Ls(i=>Un(...i))),this.componentRef=null,this.viewChangeDetectorRef=null,this.inputChanges=null,this.hasInputChanges=!1,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set(this.componentFactory.inputs.map(({propName:i})=>i)),this.ngZone=this.injector.get(he),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(e){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(e)})}disconnect(){this.runInZone(()=>{null===this.componentRef||null!==this.scheduledDestroyFn||(this.scheduledDestroyFn=Na.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null,this.viewChangeDetectorRef=null)},10))})}getInputValue(e){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(e):this.componentRef.instance[e])}setInputValue(e,t){this.runInZone(()=>{null!==this.componentRef?function Zx(n,e){return n===e||n!=n&&e!=e}(t,this.getInputValue(e))&&(void 0!==t||!this.unchangedInputs.has(e))||(this.recordInputChange(e,t),this.unchangedInputs.delete(e),this.hasInputChanges=!0,this.componentRef.instance[e]=t,this.scheduleDetectChanges()):this.initialInputValues.set(e,t)})}initializeComponent(e){const t=vt.create({providers:[],parent:this.injector}),i=function Jx(n,e){const t=n.childNodes,i=e.map(()=>[]);let r=-1;e.some((s,o)=>"*"===s&&(r=o,!0));for(let s=0,o=t.length;s<o;++s){const a=t[s],l=eR(a,e,r);-1!==l&&i[l].push(a)}return i}(e,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(t,i,e),this.viewChangeDetectorRef=this.componentRef.injector.get(wi),this.implementsOnChanges=function Kx(n){return"function"==typeof n}(this.componentRef.instance.ngOnChanges),this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(aa).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:e})=>{this.initialInputValues.has(e)&&this.setInputValue(e,this.initialInputValues.get(e))}),this.initialInputValues.clear()}initializeOutputs(e){const t=this.componentFactory.outputs.map(({propName:i,templateName:r})=>e.instance[i].pipe($n(o=>({name:r,value:o}))));this.eventEmitters.next(t)}callNgOnChanges(e){if(!this.implementsOnChanges||null===this.inputChanges)return;const t=this.inputChanges;this.inputChanges=null,e.instance.ngOnChanges(t)}markViewForCheck(e){this.hasInputChanges&&(this.hasInputChanges=!1,e.markForCheck())}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Na.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(e,t){if(!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const i=this.inputChanges[e];if(i)return void(i.currentValue=t);const r=this.unchangedInputs.has(e),s=r?void 0:this.getInputValue(e);this.inputChanges[e]=new df(s,t,r)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.markViewForCheck(this.viewChangeDetectorRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(e){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(e):e()}}class rR extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}class vv{}const Ln="*";function aR(n,e){return{type:7,name:n,definitions:e,options:{}}}function lR(n,e=null){return{type:4,styles:e,timings:n}}function bv(n,e=null){return{type:2,steps:n,options:e}}function ka(n){return{type:6,styles:n,offset:null}}function cR(n,e,t){return{type:0,name:n,styles:e,options:t}}function uR(n,e,t=null){return{type:1,expr:n,animation:e,options:t}}function Dv(n){Promise.resolve(null).then(n)}class Vs{constructor(e=0,t=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this._position=0,this.parentPlayer=null,this.totalTime=e+t}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){Dv(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(e=>e()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this._started=!1}setPosition(e){this._position=this.totalTime?e*this.totalTime:1}getPosition(){return this.totalTime?this._position/this.totalTime:1}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class Cv{constructor(e){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;let t=0,i=0,r=0;const s=this.players.length;0==s?Dv(()=>this._onFinish()):this.players.forEach(o=>{o.onDone(()=>{++t==s&&this._onFinish()}),o.onDestroy(()=>{++i==s&&this._onDestroy()}),o.onStart(()=>{++r==s&&this._onStart()})}),this.totalTime=this.players.reduce((o,a)=>Math.max(o,a.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this.players.forEach(e=>e.init())}onStart(e){this._onStartFns.push(e)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(e=>e()),this._onStartFns=[])}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(e=>e.play())}pause(){this.players.forEach(e=>e.pause())}restart(){this.players.forEach(e=>e.restart())}finish(){this._onFinish(),this.players.forEach(e=>e.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(e=>e.destroy()),this._onDestroyFns.forEach(e=>e()),this._onDestroyFns=[])}reset(){this.players.forEach(e=>e.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(e){const t=e*this.totalTime;this.players.forEach(i=>{const r=i.totalTime?Math.min(1,t/i.totalTime):1;i.setPosition(r)})}getPosition(){const e=this.players.reduce((t,i)=>null===t||i.totalTime>t.totalTime?i:t,null);return null!=e?e.getPosition():0}beforeDestroy(){this.players.forEach(e=>{e.beforeDestroy&&e.beforeDestroy()})}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}const Y=!1;function Ev(n){return new M(3e3,Y)}function zR(){return"undefined"!=typeof window&&void 0!==window.document}function Ed(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function ti(n){switch(n.length){case 0:return new Vs;case 1:return n[0];default:return new Cv(n)}}function wv(n,e,t,i,r={},s={}){const o=[],a=[];let l=-1,c=null;if(i.forEach(u=>{const d=u.offset,h=d==l,f=h&&c||{};Object.keys(u).forEach(p=>{let m=p,y=u[p];if("offset"!==p)switch(m=e.normalizePropertyName(m,o),y){case"!":y=r[p];break;case Ln:y=s[p];break;default:y=e.normalizeStyleValue(p,m,y,o)}f[m]=y}),h||a.push(f),c=f,l=d}),o.length)throw function RR(n){return new M(3502,Y)}();return a}function wd(n,e,t,i){switch(e){case"start":n.onStart(()=>i(t&&Md(t,"start",n)));break;case"done":n.onDone(()=>i(t&&Md(t,"done",n)));break;case"destroy":n.onDestroy(()=>i(t&&Md(t,"destroy",n)))}}function Md(n,e,t){const i=t.totalTime,s=Sd(n.element,n.triggerName,n.fromState,n.toState,e||n.phaseName,null==i?n.totalTime:i,!!t.disabled),o=n._data;return null!=o&&(s._data=o),s}function Sd(n,e,t,i,r="",s=0,o){return{element:n,triggerName:e,fromState:t,toState:i,phaseName:r,totalTime:s,disabled:!!o}}function xt(n,e,t){let i;return n instanceof Map?(i=n.get(e),i||n.set(e,i=t)):(i=n[e],i||(i=n[e]=t)),i}function Mv(n){const e=n.indexOf(":");return[n.substring(1,e),n.substr(e+1)]}let Ad=(n,e)=>!1,Sv=(n,e,t)=>[],Av=null;function Td(n){const e=n.parentNode||n.host;return e===Av?null:e}(Ed()||"undefined"!=typeof Element)&&(zR()?(Av=(()=>document.documentElement)(),Ad=(n,e)=>{for(;e;){if(e===n)return!0;e=Td(e)}return!1}):Ad=(n,e)=>n.contains(e),Sv=(n,e,t)=>{if(t)return Array.from(n.querySelectorAll(e));const i=n.querySelector(e);return i?[i]:[]});let Ai=null,Tv=!1;function Iv(n){Ai||(Ai=function WR(){return"undefined"!=typeof document?document.body:null}()||{},Tv=!!Ai.style&&"WebkitAppearance"in Ai.style);let e=!0;return Ai.style&&!function GR(n){return"ebkit"==n.substring(1,6)}(n)&&(e=n in Ai.style,!e&&Tv&&(e="Webkit"+n.charAt(0).toUpperCase()+n.substr(1)in Ai.style)),e}const Fv=Ad,Ov=Sv;let xv=(()=>{class n{validateStyleProperty(t){return Iv(t)}matchesElement(t,i){return!1}containsElement(t,i){return Fv(t,i)}getParentElement(t){return Td(t)}query(t,i,r){return Ov(t,i,r)}computeStyle(t,i,r){return r||""}animate(t,i,r,s,o,a=[],l){return new Vs(r,s)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),Id=(()=>{class n{}return n.NOOP=new xv,n})();const Fd="ng-enter",La="ng-leave",Va="ng-trigger",Ba=".ng-trigger",Nv="ng-animating",Od=".ng-animating";function Ti(n){if("number"==typeof n)return n;const e=n.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:xd(parseFloat(e[1]),e[2])}function xd(n,e){return"s"===e?1e3*n:n}function ja(n,e,t){return n.hasOwnProperty("duration")?n:function YR(n,e,t){let r,s=0,o="";if("string"==typeof n){const a=n.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push(Ev()),{duration:0,delay:0,easing:""};r=xd(parseFloat(a[1]),a[2]);const l=a[3];null!=l&&(s=xd(parseFloat(l),a[4]));const c=a[5];c&&(o=c)}else r=n;if(!t){let a=!1,l=e.length;r<0&&(e.push(function dR(){return new M(3100,Y)}()),a=!0),s<0&&(e.push(function hR(){return new M(3101,Y)}()),a=!0),a&&e.splice(l,0,Ev())}return{duration:r,delay:s,easing:o}}(n,e,t)}function Tr(n,e={}){return Object.keys(n).forEach(t=>{e[t]=n[t]}),e}function ni(n,e,t={}){if(e)for(let i in n)t[i]=n[i];else Tr(n,t);return t}function Pv(n,e,t){return t?e+":"+t+";":""}function Lv(n){let e="";for(let t=0;t<n.style.length;t++){const i=n.style.item(t);e+=Pv(0,i,n.style.getPropertyValue(i))}for(const t in n.style)n.style.hasOwnProperty(t)&&!t.startsWith("_")&&(e+=Pv(0,XR(t),n.style[t]));n.setAttribute("style",e)}function Sn(n,e,t){n.style&&(Object.keys(e).forEach(i=>{const r=Nd(i);t&&!t.hasOwnProperty(i)&&(t[i]=n.style[r]),n.style[r]=e[i]}),Ed()&&Lv(n))}function Ii(n,e){n.style&&(Object.keys(e).forEach(t=>{const i=Nd(t);n.style[i]=""}),Ed()&&Lv(n))}function Bs(n){return Array.isArray(n)?1==n.length?n[0]:bv(n):n}const Rd=new RegExp("{{\\s*(.+?)\\s*}}","g");function Vv(n){let e=[];if("string"==typeof n){let t;for(;t=Rd.exec(n);)e.push(t[1]);Rd.lastIndex=0}return e}function Ha(n,e,t){const i=n.toString(),r=i.replace(Rd,(s,o)=>{let a=e[o];return e.hasOwnProperty(o)||(t.push(function pR(n){return new M(3003,Y)}()),a=""),a.toString()});return r==i?n:r}function $a(n){const e=[];let t=n.next();for(;!t.done;)e.push(t.value),t=n.next();return e}const QR=/-+([a-z0-9])/g;function Nd(n){return n.replace(QR,(...e)=>e[1].toUpperCase())}function XR(n){return n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase()}function Rt(n,e,t){switch(e.type){case 7:return n.visitTrigger(e,t);case 0:return n.visitState(e,t);case 1:return n.visitTransition(e,t);case 2:return n.visitSequence(e,t);case 3:return n.visitGroup(e,t);case 4:return n.visitAnimate(e,t);case 5:return n.visitKeyframes(e,t);case 6:return n.visitStyle(e,t);case 8:return n.visitReference(e,t);case 9:return n.visitAnimateChild(e,t);case 10:return n.visitAnimateRef(e,t);case 11:return n.visitQuery(e,t);case 12:return n.visitStagger(e,t);default:throw function mR(n){return new M(3004,Y)}()}}function Bv(n,e){return window.getComputedStyle(n)[e]}function rN(n,e){const t=[];return"string"==typeof n?n.split(/\s*,\s*/).forEach(i=>function sN(n,e,t){if(":"==n[0]){const l=function oN(n,e){switch(n){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,i)=>parseFloat(i)>parseFloat(t);case":decrement":return(t,i)=>parseFloat(i)<parseFloat(t);default:return e.push(function IR(n){return new M(3016,Y)}()),"* => *"}}(n,t);if("function"==typeof l)return void e.push(l);n=l}const i=n.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return t.push(function TR(n){return new M(3015,Y)}()),e;const r=i[1],s=i[2],o=i[3];e.push(jv(r,o));"<"==s[0]&&!("*"==r&&"*"==o)&&e.push(jv(o,r))}(i,t,e)):t.push(n),t}const Wa=new Set(["true","1"]),qa=new Set(["false","0"]);function jv(n,e){const t=Wa.has(n)||qa.has(n),i=Wa.has(e)||qa.has(e);return(r,s)=>{let o="*"==n||n==r,a="*"==e||e==s;return!o&&t&&"boolean"==typeof r&&(o=r?Wa.has(n):qa.has(n)),!a&&i&&"boolean"==typeof s&&(a=s?Wa.has(e):qa.has(e)),o&&a}}const aN=new RegExp("s*:selfs*,?","g");function kd(n,e,t,i){return new lN(n).build(e,t,i)}class lN{constructor(e){this._driver=e}build(e,t,i){const r=new dN(t);this._resetContextStyleTimingState(r);const s=Rt(this,Bs(e),r);return r.unsupportedCSSPropertiesFound.size&&r.unsupportedCSSPropertiesFound.keys(),s}_resetContextStyleTimingState(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0}visitTrigger(e,t){let i=t.queryCount=0,r=t.depCount=0;const s=[],o=[];return"@"==e.name.charAt(0)&&t.errors.push(function _R(){return new M(3006,Y)}()),e.definitions.forEach(a=>{if(this._resetContextStyleTimingState(t),0==a.type){const l=a,c=l.name;c.toString().split(/\s*,\s*/).forEach(u=>{l.name=u,s.push(this.visitState(l,t))}),l.name=c}else if(1==a.type){const l=this.visitTransition(a,t);i+=l.queryCount,r+=l.depCount,o.push(l)}else t.errors.push(function yR(){return new M(3007,Y)}())}),{type:7,name:e.name,states:s,transitions:o,queryCount:i,depCount:r,options:null}}visitState(e,t){const i=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(i.containsDynamicStyles){const s=new Set,o=r||{};i.styles.forEach(a=>{if(Ka(a)){const l=a;Object.keys(l).forEach(c=>{Vv(l[c]).forEach(u=>{o.hasOwnProperty(u)||s.add(u)})})}}),s.size&&($a(s.values()),t.errors.push(function vR(n,e){return new M(3008,Y)}()))}return{type:0,name:e.name,style:i,options:r?{params:r}:null}}visitTransition(e,t){t.queryCount=0,t.depCount=0;const i=Rt(this,Bs(e.animation),t);return{type:1,matchers:rN(e.expr,t.errors),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:Fi(e.options)}}visitSequence(e,t){return{type:2,steps:e.steps.map(i=>Rt(this,i,t)),options:Fi(e.options)}}visitGroup(e,t){const i=t.currentTime;let r=0;const s=e.steps.map(o=>{t.currentTime=i;const a=Rt(this,o,t);return r=Math.max(r,t.currentTime),a});return t.currentTime=r,{type:3,steps:s,options:Fi(e.options)}}visitAnimate(e,t){const i=function fN(n,e){if(n.hasOwnProperty("duration"))return n;if("number"==typeof n)return Pd(ja(n,e).duration,0,"");const t=n;if(t.split(/\s+/).some(s=>"{"==s.charAt(0)&&"{"==s.charAt(1))){const s=Pd(0,0,"");return s.dynamic=!0,s.strValue=t,s}const r=ja(t,e);return Pd(r.duration,r.delay,r.easing)}(e.timings,t.errors);t.currentAnimateTimings=i;let r,s=e.styles?e.styles:ka({});if(5==s.type)r=this.visitKeyframes(s,t);else{let o=e.styles,a=!1;if(!o){a=!0;const c={};i.easing&&(c.easing=i.easing),o=ka(c)}t.currentTime+=i.duration+i.delay;const l=this.visitStyle(o,t);l.isEmptyStep=a,r=l}return t.currentAnimateTimings=null,{type:4,timings:i,style:r,options:null}}visitStyle(e,t){const i=this._makeStyleAst(e,t);return this._validateStyleAst(i,t),i}_makeStyleAst(e,t){const i=[];Array.isArray(e.styles)?e.styles.forEach(o=>{"string"==typeof o?o==Ln?i.push(o):t.errors.push(function bR(n){return new M(3002,Y)}()):i.push(o)}):i.push(e.styles);let r=!1,s=null;return i.forEach(o=>{if(Ka(o)){const a=o,l=a.easing;if(l&&(s=l,delete a.easing),!r)for(let c in a)if(a[c].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:i,easing:s,offset:e.offset,containsDynamicStyles:r,options:null}}_validateStyleAst(e,t){const i=t.currentAnimateTimings;let r=t.currentTime,s=t.currentTime;i&&s>0&&(s-=i.duration+i.delay),e.styles.forEach(o=>{"string"!=typeof o&&Object.keys(o).forEach(a=>{if(!this._driver.validateStyleProperty(a))return delete o[a],void t.unsupportedCSSPropertiesFound.add(a);const l=t.collectedStyles[t.currentQuerySelector],c=l[a];let u=!0;c&&(s!=r&&s>=c.startTime&&r<=c.endTime&&(t.errors.push(function DR(n,e,t,i,r){return new M(3010,Y)}()),u=!1),s=c.startTime),u&&(l[a]={startTime:s,endTime:r}),t.options&&function ZR(n,e,t){const i=e.params||{},r=Vv(n);r.length&&r.forEach(s=>{i.hasOwnProperty(s)||t.push(function fR(n){return new M(3001,Y)}())})}(o[a],t.options,t.errors)})})}visitKeyframes(e,t){const i={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push(function CR(){return new M(3011,Y)}()),i;let s=0;const o=[];let a=!1,l=!1,c=0;const u=e.steps.map(b=>{const g=this._makeStyleAst(b,t);let C=null!=g.offset?g.offset:function hN(n){if("string"==typeof n)return null;let e=null;if(Array.isArray(n))n.forEach(t=>{if(Ka(t)&&t.hasOwnProperty("offset")){const i=t;e=parseFloat(i.offset),delete i.offset}});else if(Ka(n)&&n.hasOwnProperty("offset")){const t=n;e=parseFloat(t.offset),delete t.offset}return e}(g.styles),T=0;return null!=C&&(s++,T=g.offset=C),l=l||T<0||T>1,a=a||T<c,c=T,o.push(T),g});l&&t.errors.push(function ER(){return new M(3012,Y)}()),a&&t.errors.push(function wR(){return new M(3200,Y)}());const d=e.steps.length;let h=0;s>0&&s<d?t.errors.push(function MR(){return new M(3202,Y)}()):0==s&&(h=1/(d-1));const f=d-1,p=t.currentTime,m=t.currentAnimateTimings,y=m.duration;return u.forEach((b,g)=>{const C=h>0?g==f?1:h*g:o[g],T=C*y;t.currentTime=p+m.delay+T,m.duration=T,this._validateStyleAst(b,t),b.offset=C,i.styles.push(b)}),i}visitReference(e,t){return{type:8,animation:Rt(this,Bs(e.animation),t),options:Fi(e.options)}}visitAnimateChild(e,t){return t.depCount++,{type:9,options:Fi(e.options)}}visitAnimateRef(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:Fi(e.options)}}visitQuery(e,t){const i=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;const[s,o]=function cN(n){const e=!!n.split(/\s*,\s*/).find(t=>":self"==t);return e&&(n=n.replace(aN,"")),n=n.replace(/@\*/g,Ba).replace(/@\w+/g,t=>Ba+"-"+t.substr(1)).replace(/:animating/g,Od),[n,e]}(e.selector);t.currentQuerySelector=i.length?i+" "+s:s,xt(t.collectedStyles,t.currentQuerySelector,{});const a=Rt(this,Bs(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=i,{type:11,selector:s,limit:r.limit||0,optional:!!r.optional,includeSelf:o,animation:a,originalSelector:e.selector,options:Fi(e.options)}}visitStagger(e,t){t.currentQuery||t.errors.push(function SR(){return new M(3013,Y)}());const i="full"===e.timings?{duration:0,delay:0,easing:"full"}:ja(e.timings,t.errors,!0);return{type:12,animation:Rt(this,Bs(e.animation),t),timings:i,options:null}}}class dN{constructor(e){this.errors=e,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,this.unsupportedCSSPropertiesFound=new Set}}function Ka(n){return!Array.isArray(n)&&"object"==typeof n}function Fi(n){return n?(n=Tr(n)).params&&(n.params=function uN(n){return n?Tr(n):null}(n.params)):n={},n}function Pd(n,e,t){return{duration:n,delay:e,easing:t}}function Ld(n,e,t,i,r,s,o=null,a=!1){return{type:1,element:n,keyframes:e,preStyleProps:t,postStyleProps:i,duration:r,delay:s,totalTime:r+s,easing:o,subTimeline:a}}class Ya{constructor(){this._map=new Map}get(e){return this._map.get(e)||[]}append(e,t){let i=this._map.get(e);i||this._map.set(e,i=[]),i.push(...t)}has(e){return this._map.has(e)}clear(){this._map.clear()}}const gN=new RegExp(":enter","g"),yN=new RegExp(":leave","g");function Vd(n,e,t,i,r,s={},o={},a,l,c=[]){return(new vN).buildKeyframes(n,e,t,i,r,s,o,a,l,c)}class vN{buildKeyframes(e,t,i,r,s,o,a,l,c,u=[]){c=c||new Ya;const d=new Bd(e,t,c,r,s,u,[]);d.options=l,d.currentTimeline.setStyles([o],null,d.errors,l),Rt(this,i,d);const h=d.timelines.filter(f=>f.containsAnimation());if(Object.keys(a).length){let f;for(let p=h.length-1;p>=0;p--){const m=h[p];if(m.element===t){f=m;break}}f&&!f.allowOnlyTimelineStyles()&&f.setStyles([a],null,d.errors,l)}return h.length?h.map(f=>f.buildKeyframes()):[Ld(t,[],[],[],0,0,"",!1)]}visitTrigger(e,t){}visitState(e,t){}visitTransition(e,t){}visitAnimateChild(e,t){const i=t.subInstructions.get(t.element);if(i){const r=t.createSubContext(e.options),s=t.currentTimeline.currentTime,o=this._visitSubInstructions(i,r,r.options);s!=o&&t.transformIntoNewTimeline(o)}t.previousNode=e}visitAnimateRef(e,t){const i=t.createSubContext(e.options);i.transformIntoNewTimeline(),this.visitReference(e.animation,i),t.transformIntoNewTimeline(i.currentTimeline.currentTime),t.previousNode=e}_visitSubInstructions(e,t,i){let s=t.currentTimeline.currentTime;const o=null!=i.duration?Ti(i.duration):null,a=null!=i.delay?Ti(i.delay):null;return 0!==o&&e.forEach(l=>{const c=t.appendInstructionToTimeline(l,o,a);s=Math.max(s,c.duration+c.delay)}),s}visitReference(e,t){t.updateOptions(e.options,!0),Rt(this,e.animation,t),t.previousNode=e}visitSequence(e,t){const i=t.subContextCount;let r=t;const s=e.options;if(s&&(s.params||s.delay)&&(r=t.createSubContext(s),r.transformIntoNewTimeline(),null!=s.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=Za);const o=Ti(s.delay);r.delayNextStep(o)}e.steps.length&&(e.steps.forEach(o=>Rt(this,o,r)),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),t.previousNode=e}visitGroup(e,t){const i=[];let r=t.currentTimeline.currentTime;const s=e.options&&e.options.delay?Ti(e.options.delay):0;e.steps.forEach(o=>{const a=t.createSubContext(e.options);s&&a.delayNextStep(s),Rt(this,o,a),r=Math.max(r,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(o=>t.currentTimeline.mergeTimelineCollectedStyles(o)),t.transformIntoNewTimeline(r),t.previousNode=e}_visitTiming(e,t){if(e.dynamic){const i=e.strValue;return ja(t.params?Ha(i,t.params,t.errors):i,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}}visitAnimate(e,t){const i=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;i.delay&&(t.incrementTime(i.delay),r.snapshotCurrentStyles());const s=e.style;5==s.type?this.visitKeyframes(s,t):(t.incrementTime(i.duration),this.visitStyle(s,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e}visitStyle(e,t){const i=t.currentTimeline,r=t.currentAnimateTimings;!r&&i.getCurrentStyleProperties().length&&i.forwardFrame();const s=r&&r.easing||e.easing;e.isEmptyStep?i.applyEmptyStep(s):i.setStyles(e.styles,s,t.errors,t.options),t.previousNode=e}visitKeyframes(e,t){const i=t.currentAnimateTimings,r=t.currentTimeline.duration,s=i.duration,a=t.createSubContext().currentTimeline;a.easing=i.easing,e.styles.forEach(l=>{a.forwardTime((l.offset||0)*s),a.setStyles(l.styles,l.easing,t.errors,t.options),a.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(a),t.transformIntoNewTimeline(r+s),t.previousNode=e}visitQuery(e,t){const i=t.currentTimeline.currentTime,r=e.options||{},s=r.delay?Ti(r.delay):0;s&&(6===t.previousNode.type||0==i&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=Za);let o=i;const a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!r.optional,t.errors);t.currentQueryTotal=a.length;let l=null;a.forEach((c,u)=>{t.currentQueryIndex=u;const d=t.createSubContext(e.options,c);s&&d.delayNextStep(s),c===t.element&&(l=d.currentTimeline),Rt(this,e.animation,d),d.currentTimeline.applyStylesToKeyframe(),o=Math.max(o,d.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(o),l&&(t.currentTimeline.mergeTimelineCollectedStyles(l),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e}visitStagger(e,t){const i=t.parentContext,r=t.currentTimeline,s=e.timings,o=Math.abs(s.duration),a=o*(t.currentQueryTotal-1);let l=o*t.currentQueryIndex;switch(s.duration<0?"reverse":s.easing){case"reverse":l=a-l;break;case"full":l=i.currentStaggerTime}const u=t.currentTimeline;l&&u.delayNextStep(l);const d=u.currentTime;Rt(this,e.animation,t),t.previousNode=e,i.currentStaggerTime=r.currentTime-d+(r.startTime-i.currentTimeline.startTime)}}const Za={};class Bd{constructor(e,t,i,r,s,o,a,l){this._driver=e,this.element=t,this.subInstructions=i,this._enterClassName=r,this._leaveClassName=s,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Za,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=l||new Qa(this._driver,t,0),a.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(e,t){if(!e)return;const i=e;let r=this.options;null!=i.duration&&(r.duration=Ti(i.duration)),null!=i.delay&&(r.delay=Ti(i.delay));const s=i.params;if(s){let o=r.params;o||(o=this.options.params={}),Object.keys(s).forEach(a=>{(!t||!o.hasOwnProperty(a))&&(o[a]=Ha(s[a],o,this.errors))})}}_copyOptions(){const e={};if(this.options){const t=this.options.params;if(t){const i=e.params={};Object.keys(t).forEach(r=>{i[r]=t[r]})}}return e}createSubContext(e=null,t,i){const r=t||this.element,s=new Bd(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return s.previousNode=this.previousNode,s.currentAnimateTimings=this.currentAnimateTimings,s.options=this._copyOptions(),s.updateOptions(e),s.currentQueryIndex=this.currentQueryIndex,s.currentQueryTotal=this.currentQueryTotal,s.parentContext=this,this.subContextCount++,s}transformIntoNewTimeline(e){return this.previousNode=Za,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(e,t,i){const r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=i?i:0)+e.delay,easing:""},s=new bN(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(s),r}incrementTime(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)}delayNextStep(e){e>0&&this.currentTimeline.delayNextStep(e)}invokeQuery(e,t,i,r,s,o){let a=[];if(r&&a.push(this.element),e.length>0){e=(e=e.replace(gN,"."+this._enterClassName)).replace(yN,"."+this._leaveClassName);let c=this._driver.query(this.element,e,1!=i);0!==i&&(c=i<0?c.slice(c.length+i,c.length):c.slice(0,i)),a.push(...c)}return!s&&0==a.length&&o.push(function AR(n){return new M(3014,Y)}()),a}}class Qa{constructor(e,t,i,r){this._driver=e,this.element=t,this.startTime=i,this._elementTimelineStylesLookup=r,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(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,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(e){const t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e}fork(e,t){return this.applyStylesToKeyframe(),new Qa(this._driver,e,t||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(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()}_updateStyle(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(e){e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||Ln,this._currentKeyframe[t]=Ln}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(e,t,i,r){t&&(this._previousKeyframe.easing=t);const s=r&&r.params||{},o=function DN(n,e){const t={};let i;return n.forEach(r=>{"*"===r?(i=i||Object.keys(e),i.forEach(s=>{t[s]=Ln})):ni(r,!1,t)}),t}(e,this._globalTimelineStyles);Object.keys(o).forEach(a=>{const l=Ha(o[a],s,i);this._pendingStyles[a]=l,this._localTimelineStyles.hasOwnProperty(a)||(this._backFill[a]=this._globalTimelineStyles.hasOwnProperty(a)?this._globalTimelineStyles[a]:Ln),this._updateStyle(a,l)})}applyStylesToKeyframe(){const e=this._pendingStyles,t=Object.keys(e);0!=t.length&&(this._pendingStyles={},t.forEach(i=>{this._currentKeyframe[i]=e[i]}),Object.keys(this._localTimelineStyles).forEach(i=>{this._currentKeyframe.hasOwnProperty(i)||(this._currentKeyframe[i]=this._localTimelineStyles[i])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(e=>{const t=this._localTimelineStyles[e];this._pendingStyles[e]=t,this._updateStyle(e,t)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const e=[];for(let t in this._currentKeyframe)e.push(t);return e}mergeTimelineCollectedStyles(e){Object.keys(e._styleSummary).forEach(t=>{const i=this._styleSummary[t],r=e._styleSummary[t];(!i||r.time>i.time)&&this._updateStyle(t,r.value)})}buildKeyframes(){this.applyStylesToKeyframe();const e=new Set,t=new Set,i=1===this._keyframes.size&&0===this.duration;let r=[];this._keyframes.forEach((a,l)=>{const c=ni(a,!0);Object.keys(c).forEach(u=>{const d=c[u];"!"==d?e.add(u):d==Ln&&t.add(u)}),i||(c.offset=l/this.duration),r.push(c)});const s=e.size?$a(e.values()):[],o=t.size?$a(t.values()):[];if(i){const a=r[0],l=Tr(a);a.offset=0,l.offset=1,r=[a,l]}return Ld(this.element,r,s,o,this.duration,this.startTime,this.easing,!1)}}class bN extends Qa{constructor(e,t,i,r,s,o,a=!1){super(e,t,o.delay),this.keyframes=i,this.preStyleProps=r,this.postStyleProps=s,this._stretchStartingKeyframe=a,this.timings={duration:o.duration,delay:o.delay,easing:o.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let e=this.keyframes,{delay:t,duration:i,easing:r}=this.timings;if(this._stretchStartingKeyframe&&t){const s=[],o=i+t,a=t/o,l=ni(e[0],!1);l.offset=0,s.push(l);const c=ni(e[0],!1);c.offset=Uv(a),s.push(c);const u=e.length-1;for(let d=1;d<=u;d++){let h=ni(e[d],!1);h.offset=Uv((t+h.offset*i)/o),s.push(h)}i=o,t=0,r="",e=s}return Ld(this.element,e,this.preStyleProps,this.postStyleProps,i,t,r,!0)}}function Uv(n,e=3){const t=Math.pow(10,e-1);return Math.round(n*t)/t}class jd{}class CN extends jd{normalizePropertyName(e,t){return Nd(e)}normalizeStyleValue(e,t,i,r){let s="";const o=i.toString().trim();if(EN[t]&&0!==i&&"0"!==i)if("number"==typeof i)s="px";else{const a=i.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push(function gR(n,e){return new M(3005,Y)}())}return o+s}}const EN=(()=>function wN(n){const e={};return n.forEach(t=>e[t]=!0),e}("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 zv(n,e,t,i,r,s,o,a,l,c,u,d,h){return{type:0,element:n,triggerName:e,isRemovalTransition:r,fromState:t,fromStyles:s,toState:i,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:u,totalTime:d,errors:h}}const Hd={};class Gv{constructor(e,t,i){this._triggerName=e,this.ast=t,this._stateStyles=i}match(e,t,i,r){return function MN(n,e,t,i,r){return n.some(s=>s(e,t,i,r))}(this.ast.matchers,e,t,i,r)}buildStyles(e,t,i){const r=this._stateStyles["*"],s=this._stateStyles[e],o=r?r.buildStyles(t,i):{};return s?s.buildStyles(t,i):o}build(e,t,i,r,s,o,a,l,c,u){const d=[],h=this.ast.options&&this.ast.options.params||Hd,p=this.buildStyles(i,a&&a.params||Hd,d),m=l&&l.params||Hd,y=this.buildStyles(r,m,d),b=new Set,g=new Map,C=new Map,T="void"===r,U={params:Object.assign(Object.assign({},h),m)},De=u?[]:Vd(e,t,this.ast.animation,s,o,p,y,U,c,d);let Ae=0;if(De.forEach(kt=>{Ae=Math.max(kt.duration+kt.delay,Ae)}),d.length)return zv(t,this._triggerName,i,r,T,p,y,[],[],g,C,Ae,d);De.forEach(kt=>{const Pt=kt.element,Pr=xt(g,Pt,{});kt.preStyleProps.forEach(pn=>Pr[pn]=!0);const Hn=xt(C,Pt,{});kt.postStyleProps.forEach(pn=>Hn[pn]=!0),Pt!==t&&b.add(Pt)});const Nt=$a(b.values());return zv(t,this._triggerName,i,r,T,p,y,De,Nt,g,C,Ae)}}class SN{constructor(e,t,i){this.styles=e,this.defaultParams=t,this.normalizer=i}buildStyles(e,t){const i={},r=Tr(this.defaultParams);return Object.keys(e).forEach(s=>{const o=e[s];null!=o&&(r[s]=o)}),this.styles.styles.forEach(s=>{if("string"!=typeof s){const o=s;Object.keys(o).forEach(a=>{let l=o[a];l.length>1&&(l=Ha(l,r,t));const c=this.normalizer.normalizePropertyName(a,t);l=this.normalizer.normalizeStyleValue(a,c,l,t),i[c]=l})}}),i}}class TN{constructor(e,t,i){this.name=e,this.ast=t,this._normalizer=i,this.transitionFactories=[],this.states={},t.states.forEach(r=>{this.states[r.name]=new SN(r.style,r.options&&r.options.params||{},i)}),Wv(this.states,"true","1"),Wv(this.states,"false","0"),t.transitions.forEach(r=>{this.transitionFactories.push(new Gv(e,r,this.states))}),this.fallbackTransition=function IN(n,e,t){return new Gv(n,{type:1,animation:{type:2,steps:[],options:null},matchers:[(o,a)=>!0],options:null,queryCount:0,depCount:0},e)}(e,this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(e,t,i,r){return this.transitionFactories.find(o=>o.match(e,t,i,r))||null}matchStyles(e,t,i){return this.fallbackTransition.buildStyles(e,t,i)}}function Wv(n,e,t){n.hasOwnProperty(e)?n.hasOwnProperty(t)||(n[t]=n[e]):n.hasOwnProperty(t)&&(n[e]=n[t])}const FN=new Ya;class ON{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._animations={},this._playersById={},this.players=[]}register(e,t){const i=[],s=kd(this._driver,t,i,[]);if(i.length)throw function NR(n){return new M(3503,Y)}();this._animations[e]=s}_buildPlayer(e,t,i){const r=e.element,s=wv(0,this._normalizer,0,e.keyframes,t,i);return this._driver.animate(r,s,e.duration,e.delay,e.easing,[],!0)}create(e,t,i={}){const r=[],s=this._animations[e];let o;const a=new Map;if(s?(o=Vd(this._driver,t,s,Fd,La,{},{},i,FN,r),o.forEach(u=>{const d=xt(a,u.element,{});u.postStyleProps.forEach(h=>d[h]=null)})):(r.push(function kR(){return new M(3300,Y)}()),o=[]),r.length)throw function PR(n){return new M(3504,Y)}();a.forEach((u,d)=>{Object.keys(u).forEach(h=>{u[h]=this._driver.computeStyle(d,h,Ln)})});const c=ti(o.map(u=>{const d=a.get(u.element);return this._buildPlayer(u,{},d)}));return this._playersById[e]=c,c.onDestroy(()=>this.destroy(e)),this.players.push(c),c}destroy(e){const t=this._getPlayer(e);t.destroy(),delete this._playersById[e];const i=this.players.indexOf(t);i>=0&&this.players.splice(i,1)}_getPlayer(e){const t=this._playersById[e];if(!t)throw function LR(n){return new M(3301,Y)}();return t}listen(e,t,i,r){const s=Sd(t,"","","");return wd(this._getPlayer(e),i,s,r),()=>{}}command(e,t,i,r){if("register"==i)return void this.register(e,r[0]);if("create"==i)return void this.create(e,t,r[0]||{});const s=this._getPlayer(e);switch(i){case"play":s.play();break;case"pause":s.pause();break;case"reset":s.reset();break;case"restart":s.restart();break;case"finish":s.finish();break;case"init":s.init();break;case"setPosition":s.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}}const qv="ng-animate-queued",$d="ng-animate-disabled",PN=[],Kv={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},LN={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},qt="__ng_removed";class Ud{constructor(e,t=""){this.namespaceId=t;const i=e&&e.hasOwnProperty("value");if(this.value=function HN(n){return null!=n?n:null}(i?e.value:e),i){const s=Tr(e);delete s.value,this.options=s}else this.options={};this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(e){const t=e.params;if(t){const i=this.options.params;Object.keys(t).forEach(r=>{null==i[r]&&(i[r]=t[r])})}}}const js="void",zd=new Ud(js);class VN{constructor(e,t,i){this.id=e,this.hostElement=t,this._engine=i,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Kt(t,this._hostClassName)}listen(e,t,i,r){if(!this._triggers.hasOwnProperty(t))throw function VR(n,e){return new M(3302,Y)}();if(null==i||0==i.length)throw function BR(n){return new M(3303,Y)}();if(!function $N(n){return"start"==n||"done"==n}(i))throw function jR(n,e){return new M(3400,Y)}();const s=xt(this._elementListeners,e,[]),o={name:t,phase:i,callback:r};s.push(o);const a=xt(this._engine.statesByElement,e,{});return a.hasOwnProperty(t)||(Kt(e,Va),Kt(e,Va+"-"+t),a[t]=zd),()=>{this._engine.afterFlush(()=>{const l=s.indexOf(o);l>=0&&s.splice(l,1),this._triggers[t]||delete a[t]})}}register(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)}_getTrigger(e){const t=this._triggers[e];if(!t)throw function HR(n){return new M(3401,Y)}();return t}trigger(e,t,i,r=!0){const s=this._getTrigger(t),o=new Gd(this.id,t,e);let a=this._engine.statesByElement.get(e);a||(Kt(e,Va),Kt(e,Va+"-"+t),this._engine.statesByElement.set(e,a={}));let l=a[t];const c=new Ud(i,this.id);if(!(i&&i.hasOwnProperty("value"))&&l&&c.absorbOptions(l.options),a[t]=c,l||(l=zd),c.value!==js&&l.value===c.value){if(!function GN(n,e){const t=Object.keys(n),i=Object.keys(e);if(t.length!=i.length)return!1;for(let r=0;r<t.length;r++){const s=t[r];if(!e.hasOwnProperty(s)||n[s]!==e[s])return!1}return!0}(l.params,c.params)){const m=[],y=s.matchStyles(l.value,l.params,m),b=s.matchStyles(c.value,c.params,m);m.length?this._engine.reportError(m):this._engine.afterFlush(()=>{Ii(e,y),Sn(e,b)})}return}const h=xt(this._engine.playersByElement,e,[]);h.forEach(m=>{m.namespaceId==this.id&&m.triggerName==t&&m.queued&&m.destroy()});let f=s.matchTransition(l.value,c.value,e,c.params),p=!1;if(!f){if(!r)return;f=s.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:f,fromState:l,toState:c,player:o,isFallbackTransition:p}),p||(Kt(e,qv),o.onStart(()=>{Ir(e,qv)})),o.onDone(()=>{let m=this.players.indexOf(o);m>=0&&this.players.splice(m,1);const y=this._engine.playersByElement.get(e);if(y){let b=y.indexOf(o);b>=0&&y.splice(b,1)}}),this.players.push(o),h.push(o),o}deregister(e){delete this._triggers[e],this._engine.statesByElement.forEach((t,i)=>{delete t[e]}),this._elementListeners.forEach((t,i)=>{this._elementListeners.set(i,t.filter(r=>r.name!=e))})}clearElementCache(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);const t=this._engine.playersByElement.get(e);t&&(t.forEach(i=>i.destroy()),this._engine.playersByElement.delete(e))}_signalRemovalForInnerTriggers(e,t){const i=this._engine.driver.query(e,Ba,!0);i.forEach(r=>{if(r[qt])return;const s=this._engine.fetchNamespacesByElement(r);s.size?s.forEach(o=>o.triggerLeaveAnimation(r,t,!1,!0)):this.clearElementCache(r)}),this._engine.afterFlushAnimationsDone(()=>i.forEach(r=>this.clearElementCache(r)))}triggerLeaveAnimation(e,t,i,r){const s=this._engine.statesByElement.get(e),o=new Map;if(s){const a=[];if(Object.keys(s).forEach(l=>{if(o.set(l,s[l].value),this._triggers[l]){const c=this.trigger(e,l,js,r);c&&a.push(c)}}),a.length)return this._engine.markElementAsRemoved(this.id,e,!0,t,o),i&&ti(a).onDone(()=>this._engine.processLeaveNode(e)),!0}return!1}prepareLeaveAnimationListeners(e){const t=this._elementListeners.get(e),i=this._engine.statesByElement.get(e);if(t&&i){const r=new Set;t.forEach(s=>{const o=s.name;if(r.has(o))return;r.add(o);const l=this._triggers[o].fallbackTransition,c=i[o]||zd,u=new Ud(js),d=new Gd(this.id,o,e);this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:o,transition:l,fromState:c,toState:u,player:d,isFallbackTransition:!0})})}}removeNode(e,t){const i=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t),this.triggerLeaveAnimation(e,t,!0))return;let r=!1;if(i.totalAnimations){const s=i.players.length?i.playersByQueriedElement.get(e):[];if(s&&s.length)r=!0;else{let o=e;for(;o=o.parentNode;)if(i.statesByElement.get(o)){r=!0;break}}}if(this.prepareLeaveAnimationListeners(e),r)i.markElementAsRemoved(this.id,e,!1,t);else{const s=e[qt];(!s||s===Kv)&&(i.afterFlush(()=>this.clearElementCache(e)),i.destroyInnerAnimations(e),i._onRemovalComplete(e,t))}}insertNode(e,t){Kt(e,this._hostClassName)}drainQueuedTransitions(e){const t=[];return this._queue.forEach(i=>{const r=i.player;if(r.destroyed)return;const s=i.element,o=this._elementListeners.get(s);o&&o.forEach(a=>{if(a.name==i.triggerName){const l=Sd(s,i.triggerName,i.fromState.value,i.toState.value);l._data=e,wd(i.player,a.phase,l,a.callback)}}),r.markedForDestroy?this._engine.afterFlush(()=>{r.destroy()}):t.push(i)}),this._queue=[],t.sort((i,r)=>{const s=i.transition.ast.depCount,o=r.transition.ast.depCount;return 0==s||0==o?s-o:this._engine.driver.containsElement(i.element,r.element)?1:-1})}destroy(e){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,e)}elementContainsData(e){let t=!1;return this._elementListeners.has(e)&&(t=!0),t=!!this._queue.find(i=>i.element===e)||t,t}}class BN{constructor(e,t,i){this.bodyNode=e,this.driver=t,this._normalizer=i,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=(r,s)=>{}}_onRemovalComplete(e,t){this.onRemovalComplete(e,t)}get queuedPlayers(){const e=[];return this._namespaceList.forEach(t=>{t.players.forEach(i=>{i.queued&&e.push(i)})}),e}createNamespace(e,t){const i=new VN(e,t,this);return this.bodyNode&&this.driver.containsElement(this.bodyNode,t)?this._balanceNamespaceList(i,t):(this.newHostElements.set(t,i),this.collectEnterElement(t)),this._namespaceLookup[e]=i}_balanceNamespaceList(e,t){const i=this._namespaceList,r=this.namespacesByHostElement,s=i.length-1;if(s>=0){let o=!1;if(void 0!==this.driver.getParentElement){let a=this.driver.getParentElement(t);for(;a;){const l=r.get(a);if(l){const c=i.indexOf(l);i.splice(c+1,0,e),o=!0;break}a=this.driver.getParentElement(a)}}else for(let a=s;a>=0;a--)if(this.driver.containsElement(i[a].hostElement,t)){i.splice(a+1,0,e),o=!0;break}o||i.unshift(e)}else i.push(e);return r.set(t,e),e}register(e,t){let i=this._namespaceLookup[e];return i||(i=this.createNamespace(e,t)),i}registerTrigger(e,t,i){let r=this._namespaceLookup[e];r&&r.register(t,i)&&this.totalAnimations++}destroy(e,t){if(!e)return;const i=this._fetchNamespace(e);this.afterFlush(()=>{this.namespacesByHostElement.delete(i.hostElement),delete this._namespaceLookup[e];const r=this._namespaceList.indexOf(i);r>=0&&this._namespaceList.splice(r,1)}),this.afterFlushAnimationsDone(()=>i.destroy(t))}_fetchNamespace(e){return this._namespaceLookup[e]}fetchNamespacesByElement(e){const t=new Set,i=this.statesByElement.get(e);if(i){const r=Object.keys(i);for(let s=0;s<r.length;s++){const o=i[r[s]].namespaceId;if(o){const a=this._fetchNamespace(o);a&&t.add(a)}}}return t}trigger(e,t,i,r){if(Xa(t)){const s=this._fetchNamespace(e);if(s)return s.trigger(t,i,r),!0}return!1}insertNode(e,t,i,r){if(!Xa(t))return;const s=t[qt];if(s&&s.setForRemoval){s.setForRemoval=!1,s.setForMove=!0;const o=this.collectedLeaveElements.indexOf(t);o>=0&&this.collectedLeaveElements.splice(o,1)}if(e){const o=this._fetchNamespace(e);o&&o.insertNode(t,i)}r&&this.collectEnterElement(t)}collectEnterElement(e){this.collectedEnterElements.push(e)}markElementAsDisabled(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Kt(e,$d)):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Ir(e,$d))}removeNode(e,t,i,r){if(Xa(t)){const s=e?this._fetchNamespace(e):null;if(s?s.removeNode(t,r):this.markElementAsRemoved(e,t,!1,r),i){const o=this.namespacesByHostElement.get(t);o&&o.id!==e&&o.removeNode(t,r)}}else this._onRemovalComplete(t,r)}markElementAsRemoved(e,t,i,r,s){this.collectedLeaveElements.push(t),t[qt]={namespaceId:e,setForRemoval:r,hasAnimation:i,removedBeforeQueried:!1,previousTriggersValues:s}}listen(e,t,i,r,s){return Xa(t)?this._fetchNamespace(e).listen(t,i,r,s):()=>{}}_buildInstruction(e,t,i,r,s){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,i,r,e.fromState.options,e.toState.options,t,s)}destroyInnerAnimations(e){let t=this.driver.query(e,Ba,!0);t.forEach(i=>this.destroyActiveAnimationsForElement(i)),0!=this.playersByQueriedElement.size&&(t=this.driver.query(e,Od,!0),t.forEach(i=>this.finishActiveQueriedAnimationOnElement(i)))}destroyActiveAnimationsForElement(e){const t=this.playersByElement.get(e);t&&t.forEach(i=>{i.queued?i.markedForDestroy=!0:i.destroy()})}finishActiveQueriedAnimationOnElement(e){const t=this.playersByQueriedElement.get(e);t&&t.forEach(i=>i.finish())}whenRenderingDone(){return new Promise(e=>{if(this.players.length)return ti(this.players).onDone(()=>e());e()})}processLeaveNode(e){var t;const i=e[qt];if(i&&i.setForRemoval){if(e[qt]=Kv,i.namespaceId){this.destroyInnerAnimations(e);const r=this._fetchNamespace(i.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,i.setForRemoval)}(null===(t=e.classList)||void 0===t?void 0:t.contains($d))&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(r=>{this.markElementAsDisabled(r,!1)})}flush(e=-1){let t=[];if(this.newHostElements.size&&(this.newHostElements.forEach((i,r)=>this._balanceNamespaceList(i,r)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let i=0;i<this.collectedEnterElements.length;i++)Kt(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const i=[];try{t=this._flushAnimations(i,e)}finally{for(let r=0;r<i.length;r++)i[r]()}}else for(let i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(i=>i()),this._flushFns=[],this._whenQuietFns.length){const i=this._whenQuietFns;this._whenQuietFns=[],t.length?ti(t).onDone(()=>{i.forEach(r=>r())}):i.forEach(r=>r())}}reportError(e){throw function $R(n){return new M(3402,Y)}()}_flushAnimations(e,t){const i=new Ya,r=[],s=new Map,o=[],a=new Map,l=new Map,c=new Map,u=new Set;this.disabledNodes.forEach(S=>{u.add(S);const F=this.driver.query(S,".ng-animate-queued",!0);for(let N=0;N<F.length;N++)u.add(F[N])});const d=this.bodyNode,h=Array.from(this.statesByElement.keys()),f=Qv(h,this.collectedEnterElements),p=new Map;let m=0;f.forEach((S,F)=>{const N=Fd+m++;p.set(F,N),S.forEach(Q=>Kt(Q,N))});const y=[],b=new Set,g=new Set;for(let S=0;S<this.collectedLeaveElements.length;S++){const F=this.collectedLeaveElements[S],N=F[qt];N&&N.setForRemoval&&(y.push(F),b.add(F),N.hasAnimation?this.driver.query(F,".ng-star-inserted",!0).forEach(Q=>b.add(Q)):g.add(F))}const C=new Map,T=Qv(h,Array.from(b));T.forEach((S,F)=>{const N=La+m++;C.set(F,N),S.forEach(Q=>Kt(Q,N))}),e.push(()=>{f.forEach((S,F)=>{const N=p.get(F);S.forEach(Q=>Ir(Q,N))}),T.forEach((S,F)=>{const N=C.get(F);S.forEach(Q=>Ir(Q,N))}),y.forEach(S=>{this.processLeaveNode(S)})});const U=[],De=[];for(let S=this._namespaceList.length-1;S>=0;S--)this._namespaceList[S].drainQueuedTransitions(t).forEach(N=>{const Q=N.player,et=N.element;if(U.push(Q),this.collectedEnterElements.length){const _t=et[qt];if(_t&&_t.setForMove){if(_t.previousTriggersValues&&_t.previousTriggersValues.has(N.triggerName)){const ki=_t.previousTriggersValues.get(N.triggerName),ai=this.statesByElement.get(N.element);ai&&ai[N.triggerName]&&(ai[N.triggerName].value=ki)}return void Q.destroy()}}const An=!d||!this.driver.containsElement(d,et),Lt=C.get(et),oi=p.get(et),Te=this._buildInstruction(N,i,oi,Lt,An);if(Te.errors&&Te.errors.length)return void De.push(Te);if(An)return Q.onStart(()=>Ii(et,Te.fromStyles)),Q.onDestroy(()=>Sn(et,Te.toStyles)),void r.push(Q);if(N.isFallbackTransition)return Q.onStart(()=>Ii(et,Te.fromStyles)),Q.onDestroy(()=>Sn(et,Te.toStyles)),void r.push(Q);const aC=[];Te.timelines.forEach(_t=>{_t.stretchStartingKeyframe=!0,this.disabledNodes.has(_t.element)||aC.push(_t)}),Te.timelines=aC,i.append(et,Te.timelines),o.push({instruction:Te,player:Q,element:et}),Te.queriedElements.forEach(_t=>xt(a,_t,[]).push(Q)),Te.preStyleProps.forEach((_t,ki)=>{const ai=Object.keys(_t);if(ai.length){let Pi=l.get(ki);Pi||l.set(ki,Pi=new Set),ai.forEach(Lh=>Pi.add(Lh))}}),Te.postStyleProps.forEach((_t,ki)=>{const ai=Object.keys(_t);let Pi=c.get(ki);Pi||c.set(ki,Pi=new Set),ai.forEach(Lh=>Pi.add(Lh))})});if(De.length){const S=[];De.forEach(F=>{S.push(function UR(n,e){return new M(3505,Y)}())}),U.forEach(F=>F.destroy()),this.reportError(S)}const Ae=new Map,Nt=new Map;o.forEach(S=>{const F=S.element;i.has(F)&&(Nt.set(F,F),this._beforeAnimationBuild(S.player.namespaceId,S.instruction,Ae))}),r.forEach(S=>{const F=S.element;this._getPreviousPlayers(F,!1,S.namespaceId,S.triggerName,null).forEach(Q=>{xt(Ae,F,[]).push(Q),Q.destroy()})});const kt=y.filter(S=>Jv(S,l,c)),Pt=new Map;Zv(Pt,this.driver,g,c,Ln).forEach(S=>{Jv(S,l,c)&&kt.push(S)});const Hn=new Map;f.forEach((S,F)=>{Zv(Hn,this.driver,new Set(S),l,"!")}),kt.forEach(S=>{const F=Pt.get(S),N=Hn.get(S);Pt.set(S,Object.assign(Object.assign({},F),N))});const pn=[],Lr=[],Vr={};o.forEach(S=>{const{element:F,player:N,instruction:Q}=S;if(i.has(F)){if(u.has(F))return N.onDestroy(()=>Sn(F,Q.toStyles)),N.disabled=!0,N.overrideTotalTime(Q.totalTime),void r.push(N);let et=Vr;if(Nt.size>1){let Lt=F;const oi=[];for(;Lt=Lt.parentNode;){const Te=Nt.get(Lt);if(Te){et=Te;break}oi.push(Lt)}oi.forEach(Te=>Nt.set(Te,et))}const An=this._buildAnimation(N.namespaceId,Q,Ae,s,Hn,Pt);if(N.setRealPlayer(An),et===Vr)pn.push(N);else{const Lt=this.playersByElement.get(et);Lt&&Lt.length&&(N.parentPlayer=ti(Lt)),r.push(N)}}else Ii(F,Q.fromStyles),N.onDestroy(()=>Sn(F,Q.toStyles)),Lr.push(N),u.has(F)&&r.push(N)}),Lr.forEach(S=>{const F=s.get(S.element);if(F&&F.length){const N=ti(F);S.setRealPlayer(N)}}),r.forEach(S=>{S.parentPlayer?S.syncPlayerEvents(S.parentPlayer):S.destroy()});for(let S=0;S<y.length;S++){const F=y[S],N=F[qt];if(Ir(F,La),N&&N.hasAnimation)continue;let Q=[];if(a.size){let An=a.get(F);An&&An.length&&Q.push(...An);let Lt=this.driver.query(F,Od,!0);for(let oi=0;oi<Lt.length;oi++){let Te=a.get(Lt[oi]);Te&&Te.length&&Q.push(...Te)}}const et=Q.filter(An=>!An.destroyed);et.length?UN(this,F,et):this.processLeaveNode(F)}return y.length=0,pn.forEach(S=>{this.players.push(S),S.onDone(()=>{S.destroy();const F=this.players.indexOf(S);this.players.splice(F,1)}),S.play()}),pn}elementContainsData(e,t){let i=!1;const r=t[qt];return r&&r.setForRemoval&&(i=!0),this.playersByElement.has(t)&&(i=!0),this.playersByQueriedElement.has(t)&&(i=!0),this.statesByElement.has(t)&&(i=!0),this._fetchNamespace(e).elementContainsData(t)||i}afterFlush(e){this._flushFns.push(e)}afterFlushAnimationsDone(e){this._whenQuietFns.push(e)}_getPreviousPlayers(e,t,i,r,s){let o=[];if(t){const a=this.playersByQueriedElement.get(e);a&&(o=a)}else{const a=this.playersByElement.get(e);if(a){const l=!s||s==js;a.forEach(c=>{c.queued||!l&&c.triggerName!=r||o.push(c)})}}return(i||r)&&(o=o.filter(a=>!(i&&i!=a.namespaceId||r&&r!=a.triggerName))),o}_beforeAnimationBuild(e,t,i){const s=t.element,o=t.isRemovalTransition?void 0:e,a=t.isRemovalTransition?void 0:t.triggerName;for(const l of t.timelines){const c=l.element,u=c!==s,d=xt(i,c,[]);this._getPreviousPlayers(c,u,o,a,t.toState).forEach(f=>{const p=f.getRealPlayer();p.beforeDestroy&&p.beforeDestroy(),f.destroy(),d.push(f)})}Ii(s,t.fromStyles)}_buildAnimation(e,t,i,r,s,o){const a=t.triggerName,l=t.element,c=[],u=new Set,d=new Set,h=t.timelines.map(p=>{const m=p.element;u.add(m);const y=m[qt];if(y&&y.removedBeforeQueried)return new Vs(p.duration,p.delay);const b=m!==l,g=function zN(n){const e=[];return Xv(n,e),e}((i.get(m)||PN).map(Ae=>Ae.getRealPlayer())).filter(Ae=>!!Ae.element&&Ae.element===m),C=s.get(m),T=o.get(m),U=wv(0,this._normalizer,0,p.keyframes,C,T),De=this._buildPlayer(p,U,g);if(p.subTimeline&&r&&d.add(m),b){const Ae=new Gd(e,a,m);Ae.setRealPlayer(De),c.push(Ae)}return De});c.forEach(p=>{xt(this.playersByQueriedElement,p.element,[]).push(p),p.onDone(()=>function jN(n,e,t){let i;if(n instanceof Map){if(i=n.get(e),i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&n.delete(e)}}else if(i=n[e],i){if(i.length){const r=i.indexOf(t);i.splice(r,1)}0==i.length&&delete n[e]}return i}(this.playersByQueriedElement,p.element,p))}),u.forEach(p=>Kt(p,Nv));const f=ti(h);return f.onDestroy(()=>{u.forEach(p=>Ir(p,Nv)),Sn(l,t.toStyles)}),d.forEach(p=>{xt(r,p,[]).push(f)}),f}_buildPlayer(e,t,i){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,i):new Vs(e.duration,e.delay)}}class Gd{constructor(e,t,i){this.namespaceId=e,this.triggerName=t,this.element=i,this._player=new Vs,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(e){this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(t=>{this._queuedCallbacks[t].forEach(i=>wd(e,t,void 0,i))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(e.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(e){this.totalTime=e}syncPlayerEvents(e){const t=this._player;t.triggerCallback&&e.onStart(()=>t.triggerCallback("start")),e.onDone(()=>this.finish()),e.onDestroy(()=>this.destroy())}_queueEvent(e,t){xt(this._queuedCallbacks,e,[]).push(t)}onDone(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)}onStart(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)}onDestroy(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)}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(e){this.queued||this._player.setPosition(e)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(e){const t=this._player;t.triggerCallback&&t.triggerCallback(e)}}function Xa(n){return n&&1===n.nodeType}function Yv(n,e){const t=n.style.display;return n.style.display=null!=e?e:"none",t}function Zv(n,e,t,i,r){const s=[];t.forEach(l=>s.push(Yv(l)));const o=[];i.forEach((l,c)=>{const u={};l.forEach(d=>{const h=u[d]=e.computeStyle(c,d,r);(!h||0==h.length)&&(c[qt]=LN,o.push(c))}),n.set(c,u)});let a=0;return t.forEach(l=>Yv(l,s[a++])),o}function Qv(n,e){const t=new Map;if(n.forEach(a=>t.set(a,[])),0==e.length)return t;const r=new Set(e),s=new Map;function o(a){if(!a)return 1;let l=s.get(a);if(l)return l;const c=a.parentNode;return l=t.has(c)?c:r.has(c)?1:o(c),s.set(a,l),l}return e.forEach(a=>{const l=o(a);1!==l&&t.get(l).push(a)}),t}function Kt(n,e){var t;null===(t=n.classList)||void 0===t||t.add(e)}function Ir(n,e){var t;null===(t=n.classList)||void 0===t||t.remove(e)}function UN(n,e,t){ti(t).onDone(()=>n.processLeaveNode(e))}function Xv(n,e){for(let t=0;t<n.length;t++){const i=n[t];i instanceof Cv?Xv(i.players,e):e.push(i)}}function Jv(n,e,t){const i=t.get(n);if(!i)return!1;let r=e.get(n);return r?i.forEach(s=>r.add(s)):e.set(n,i),t.delete(n),!0}class Ja{constructor(e,t,i){this.bodyNode=e,this._driver=t,this._normalizer=i,this._triggerCache={},this.onRemovalComplete=(r,s)=>{},this._transitionEngine=new BN(e,t,i),this._timelineEngine=new ON(e,t,i),this._transitionEngine.onRemovalComplete=(r,s)=>this.onRemovalComplete(r,s)}registerTrigger(e,t,i,r,s){const o=e+"-"+r;let a=this._triggerCache[o];if(!a){const l=[],u=kd(this._driver,s,l,[]);if(l.length)throw function xR(n,e){return new M(3404,Y)}();a=function AN(n,e,t){return new TN(n,e,t)}(r,u,this._normalizer),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(t,r,a)}register(e,t){this._transitionEngine.register(e,t)}destroy(e,t){this._transitionEngine.destroy(e,t)}onInsert(e,t,i,r){this._transitionEngine.insertNode(e,t,i,r)}onRemove(e,t,i,r){this._transitionEngine.removeNode(e,t,r||!1,i)}disableAnimations(e,t){this._transitionEngine.markElementAsDisabled(e,t)}process(e,t,i,r){if("@"==i.charAt(0)){const[s,o]=Mv(i);this._timelineEngine.command(s,t,o,r)}else this._transitionEngine.trigger(e,t,i,r)}listen(e,t,i,r,s){if("@"==i.charAt(0)){const[o,a]=Mv(i);return this._timelineEngine.listen(o,t,a,s)}return this._transitionEngine.listen(e,t,i,r,s)}flush(e=-1){this._transitionEngine.flush(e)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}let qN=(()=>{class n{constructor(t,i,r){this._element=t,this._startStyles=i,this._endStyles=r,this._state=0;let s=n.initialStylesByElement.get(t);s||n.initialStylesByElement.set(t,s={}),this._initialStyles=s}start(){this._state<1&&(this._startStyles&&Sn(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Sn(this._element,this._initialStyles),this._endStyles&&(Sn(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(n.initialStylesByElement.delete(this._element),this._startStyles&&(Ii(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Ii(this._element,this._endStyles),this._endStyles=null),Sn(this._element,this._initialStyles),this._state=3)}}return n.initialStylesByElement=new WeakMap,n})();function Wd(n){let e=null;const t=Object.keys(n);for(let i=0;i<t.length;i++){const r=t[i];KN(r)&&(e=e||{},e[r]=n[r])}return e}function KN(n){return"display"===n||"position"===n}class eb{constructor(e,t,i,r){this.element=e,this.keyframes=t,this.options=i,this._specialStyles=r,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=i.duration,this._delay=i.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(e=>e()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(e,t,i){return e.animate(t,i)}onStart(e){this._onStartFns.push(e)}onDone(e){this._onDoneFns.push(e)}onDestroy(e){this._onDestroyFns.push(e)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(e=>e()),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(e=>e()),this._onDestroyFns=[])}setPosition(e){void 0===this.domPlayer&&this.init(),this.domPlayer.currentTime=e*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const e={};if(this.hasStarted()){const t=this._finalKeyframe;Object.keys(t).forEach(i=>{"offset"!=i&&(e[i]=this._finished?t[i]:Bv(this.element,i))})}this.currentSnapshot=e}triggerCallback(e){const t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(i=>i()),t.length=0}}class YN{validateStyleProperty(e){return Iv(e)}matchesElement(e,t){return!1}containsElement(e,t){return Fv(e,t)}getParentElement(e){return Td(e)}query(e,t,i){return Ov(e,t,i)}computeStyle(e,t,i){return window.getComputedStyle(e)[t]}animate(e,t,i,r,s,o=[]){const l={duration:i,delay:r,fill:0==r?"both":"forwards"};s&&(l.easing=s);const c={},u=o.filter(h=>h instanceof eb);(function JR(n,e){return 0===n||0===e})(i,r)&&u.forEach(h=>{let f=h.currentSnapshot;Object.keys(f).forEach(p=>c[p]=f[p])}),t=function eN(n,e,t){const i=Object.keys(t);if(i.length&&e.length){let s=e[0],o=[];if(i.forEach(a=>{s.hasOwnProperty(a)||o.push(a),s[a]=t[a]}),o.length)for(var r=1;r<e.length;r++){let a=e[r];o.forEach(function(l){a[l]=Bv(n,l)})}}return e}(e,t=t.map(h=>ni(h,!1)),c);const d=function WN(n,e){let t=null,i=null;return Array.isArray(e)&&e.length?(t=Wd(e[0]),e.length>1&&(i=Wd(e[e.length-1]))):e&&(t=Wd(e)),t||i?new qN(n,t,i):null}(e,t);return new eb(e,t,l,d)}}let ZN=(()=>{class n extends vv{constructor(t,i){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(i.body,{id:"0",encapsulation:Zt.None,styles:[],data:{animation:[]}})}build(t){const i=this._nextAnimationId.toString();this._nextAnimationId++;const r=Array.isArray(t)?bv(t):t;return tb(this._renderer,null,i,"register",[r]),new QN(i,this._renderer)}}return n.\u0275fac=function(t){return new(t||n)(D(Es),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class QN extends class oR{}{constructor(e,t){super(),this._id=e,this._renderer=t}create(e,t){return new XN(this._id,e,t||{},this._renderer)}}class XN{constructor(e,t,i,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",i)}_listen(e,t){return this._renderer.listen(this.element,`@@${this.id}:${e}`,t)}_command(e,...t){return tb(this._renderer,this.element,this.id,e,t)}onDone(e){this._listen("done",e)}onStart(e){this._listen("start",e)}onDestroy(e){this._listen("destroy",e)}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(e){this._command("setPosition",e)}getPosition(){var e,t;return null!==(t=null===(e=this._renderer.engine.players[+this.id])||void 0===e?void 0:e.getPosition())&&void 0!==t?t:0}}function tb(n,e,t,i,r){return n.setProperty(e,`@@${t}:${i}`,r)}const nb="@.disabled";let JN=(()=>{class n{constructor(t,i,r){this.delegate=t,this.engine=i,this._zone=r,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),i.onRemovalComplete=(s,o)=>{const a=null==o?void 0:o.parentNode(s);a&&o.removeChild(a,s)}}createRenderer(t,i){const s=this.delegate.createRenderer(t,i);if(!(t&&i&&i.data&&i.data.animation)){let u=this._rendererCache.get(s);return u||(u=new ib("",s,this.engine),this._rendererCache.set(s,u)),u}const o=i.id,a=i.id+"-"+this._currentId;this._currentId++,this.engine.register(a,t);const l=u=>{Array.isArray(u)?u.forEach(l):this.engine.registerTrigger(o,a,t,u.name,u)};return i.data.animation.forEach(l),new ek(this,a,s,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,i,r){t>=0&&t<this._microtaskId?this._zone.run(()=>i(r)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(s=>{const[o,a]=s;o(a)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([i,r]))}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 n.\u0275fac=function(t){return new(t||n)(D(Es),D(Ja),D(he))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();class ib{constructor(e,t,i){this.namespaceId=e,this.delegate=t,this.engine=i,this.destroyNode=this.delegate.destroyNode?r=>t.destroyNode(r):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(e,t){return this.delegate.createElement(e,t)}createComment(e){return this.delegate.createComment(e)}createText(e){return this.delegate.createText(e)}appendChild(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)}insertBefore(e,t,i,r=!0){this.delegate.insertBefore(e,t,i),this.engine.onInsert(this.namespaceId,t,e,r)}removeChild(e,t,i){this.engine.onRemove(this.namespaceId,t,this.delegate,i)}selectRootElement(e,t){return this.delegate.selectRootElement(e,t)}parentNode(e){return this.delegate.parentNode(e)}nextSibling(e){return this.delegate.nextSibling(e)}setAttribute(e,t,i,r){this.delegate.setAttribute(e,t,i,r)}removeAttribute(e,t,i){this.delegate.removeAttribute(e,t,i)}addClass(e,t){this.delegate.addClass(e,t)}removeClass(e,t){this.delegate.removeClass(e,t)}setStyle(e,t,i,r){this.delegate.setStyle(e,t,i,r)}removeStyle(e,t,i){this.delegate.removeStyle(e,t,i)}setProperty(e,t,i){"@"==t.charAt(0)&&t==nb?this.disableAnimations(e,!!i):this.delegate.setProperty(e,t,i)}setValue(e,t){this.delegate.setValue(e,t)}listen(e,t,i){return this.delegate.listen(e,t,i)}disableAnimations(e,t){this.engine.disableAnimations(e,t)}}class ek extends ib{constructor(e,t,i,r){super(t,i,r),this.factory=e,this.namespaceId=t}setProperty(e,t,i){"@"==t.charAt(0)?"."==t.charAt(1)&&t==nb?this.disableAnimations(e,i=void 0===i||!!i):this.engine.process(this.namespaceId,e,t.substr(1),i):this.delegate.setProperty(e,t,i)}listen(e,t,i){if("@"==t.charAt(0)){const r=function tk(n){switch(n){case"body":return document.body;case"document":return document;case"window":return window;default:return n}}(e);let s=t.substr(1),o="";return"@"!=s.charAt(0)&&([s,o]=function nk(n){const e=n.indexOf(".");return[n.substring(0,e),n.substr(e+1)]}(s)),this.engine.listen(this.namespaceId,r,s,o,a=>{this.factory.scheduleListenerCallback(a._data||-1,i,a)})}return this.delegate.listen(e,t,i)}}let ik=(()=>{class n extends Ja{constructor(t,i,r){super(t.body,i,r)}ngOnDestroy(){this.flush()}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(Id),D(jd))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const Hs=new A("AnimationModuleType"),rb=[{provide:vv,useClass:ZN},{provide:jd,useFactory:function rk(){return new CN}},{provide:Ja,useClass:ik},{provide:Es,useFactory:function sk(n,e,t){return new JN(n,e,t)},deps:[Fa,Ja,he]}],sb=[{provide:Id,useFactory:()=>new YN},{provide:Hs,useValue:"BrowserAnimations"},...rb],ok=[{provide:Id,useClass:xv},{provide:Hs,useValue:"NoopAnimations"},...rb];let qd,ak=(()=>{class n{static withConfig(t){return{ngModule:n,providers:t.disableAnimations?ok:sb}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:sb,imports:[pv]}),n})();function Vn(n){return null!=n&&"false"!=`${n}`}function ob(n){return Array.isArray(n)?n:[n]}function $e(n){return null==n?"":"string"==typeof n?n:`${n}px`}function Fr(n){return n instanceof Re?n.nativeElement:n}try{qd="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(n){qd=!1}let Or,hn=(()=>{class n{constructor(t){this._platformId=t,this.isBrowser=this._platformId?function eO(n){return n===Ky}(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!qd)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}}return n.\u0275fac=function(t){return new(t||n)(D(Hu))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Kd=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})();const ab=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function lb(){if(Or)return Or;if("object"!=typeof document||!document)return Or=new Set(ab),Or;let n=document.createElement("input");return Or=new Set(ab.filter(e=>(n.setAttribute("type",e),n.type===e))),Or}let $s,Oi;function tl(n){return function dk(){if(null==$s&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>$s=!0}))}finally{$s=$s||!1}return $s}()?n:!!n.capture}function hk(){if(null==Oi){if("object"!=typeof document||!document||"function"!=typeof Element||!Element)return Oi=!1,Oi;if("scrollBehavior"in document.documentElement.style)Oi=!0;else{const n=Element.prototype.scrollTo;Oi=!!n&&!/\{\s*\[native code\]\s*\}/.test(n.toString())}}return Oi}function Zd(n){return n.composedPath?n.composedPath()[0]:n.target}function Qd(){return"undefined"!=typeof __karma__&&!!__karma__||"undefined"!=typeof jasmine&&!!jasmine||"undefined"!=typeof jest&&!!jest||"undefined"!=typeof Mocha&&!!Mocha}function il(n,e){return new _e(t=>{const i=n.length;if(0===i)return void t.complete();const r=new Array(i);let s=0,o=0;for(let a=0;a<i;a++){const l=Hr(n[a]);let c=!1;t.add(l.subscribe({next:u=>{c||(c=!0,o++),r[a]=u},error:u=>t.error(u),complete:()=>{s++,(s===i||!c)&&(o===i&&t.next(e?e.reduce((u,d,h)=>(u[d]=r[h],u),{}):r),t.complete())}}))}})}let cb=(()=>{class n{constructor(t,i){this._renderer=t,this._elementRef=i,this.onChange=r=>{},this.onTouched=()=>{}}setProperty(t,i){this._renderer.setProperty(this._elementRef.nativeElement,t,i)}registerOnTouched(t){this.onTouched=t}registerOnChange(t){this.onChange=t}setDisabledState(t){this.setProperty("disabled",t)}}return n.\u0275fac=function(t){return new(t||n)(_(bi),_(Re))},n.\u0275dir=I({type:n}),n})(),xi=(()=>{class n extends cb{}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,features:[K]}),n})();const fn=new A("NgValueAccessor"),gk={provide:fn,useExisting:ce(()=>rl),multi:!0},yk=new A("CompositionEventMode");let rl=(()=>{class n extends cb{constructor(t,i,r){super(t,i),this._compositionMode=r,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function _k(){const n=Mn()?Mn().getUserAgent():"";return/android (\d+)/.test(n.toLowerCase())}())}writeValue(t){this.setProperty("value",null==t?"":t)}_handleInput(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}_compositionStart(){this._composing=!0}_compositionEnd(t){this._composing=!1,this._compositionMode&&this.onChange(t)}}return n.\u0275fac=function(t){return new(t||n)(_(bi),_(Re),_(yk,8))},n.\u0275dir=I({type:n,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(t,i){1&t&&qe("input",function(s){return i._handleInput(s.target.value)})("blur",function(){return i.onTouched()})("compositionstart",function(){return i._compositionStart()})("compositionend",function(s){return i._compositionEnd(s.target.value)})},features:[te([gk]),K]}),n})();function ii(n){return null==n||0===n.length}function db(n){return null!=n&&"number"==typeof n.length}const ct=new A("NgValidators"),ri=new A("NgAsyncValidators"),vk=/^(?=.{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 bk{static min(e){return function hb(n){return e=>{if(ii(e.value)||ii(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t<n?{min:{min:n,actual:e.value}}:null}}(e)}static max(e){return function fb(n){return e=>{if(ii(e.value)||ii(n))return null;const t=parseFloat(e.value);return!isNaN(t)&&t>n?{max:{max:n,actual:e.value}}:null}}(e)}static required(e){return function pb(n){return ii(n.value)?{required:!0}:null}(e)}static requiredTrue(e){return function mb(n){return!0===n.value?null:{required:!0}}(e)}static email(e){return function gb(n){return ii(n.value)||vk.test(n.value)?null:{email:!0}}(e)}static minLength(e){return function _b(n){return e=>ii(e.value)||!db(e.value)?null:e.value.length<n?{minlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static maxLength(e){return function yb(n){return e=>db(e.value)&&e.value.length>n?{maxlength:{requiredLength:n,actualLength:e.value.length}}:null}(e)}static pattern(e){return function vb(n){if(!n)return sl;let e,t;return"string"==typeof n?(t="","^"!==n.charAt(0)&&(t+="^"),t+=n,"$"!==n.charAt(n.length-1)&&(t+="$"),e=new RegExp(t)):(t=n.toString(),e=n),i=>{if(ii(i.value))return null;const r=i.value;return e.test(r)?null:{pattern:{requiredPattern:t,actualValue:r}}}}(e)}static nullValidator(e){return null}static compose(e){return Mb(e)}static composeAsync(e){return Sb(e)}}function sl(n){return null}function bb(n){return null!=n}function Db(n){const e=qo(n)?Hr(n):n;return lg(e),e}function Cb(n){let e={};return n.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Eb(n,e){return e.map(t=>t(n))}function wb(n){return n.map(e=>function Dk(n){return!n.validate}(e)?e:t=>e.validate(t))}function Mb(n){if(!n)return null;const e=n.filter(bb);return 0==e.length?null:function(t){return Cb(Eb(t,e))}}function Xd(n){return null!=n?Mb(wb(n)):null}function Sb(n){if(!n)return null;const e=n.filter(bb);return 0==e.length?null:function(t){return function pk(...n){if(1===n.length){const e=n[0];if(J(e))return il(e,null);if(Ue(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return il(t.map(i=>e[i]),t)}}if("function"==typeof n[n.length-1]){const e=n.pop();return il(n=1===n.length&&J(n[0])?n[0]:n,null).pipe($n(t=>e(...t)))}return il(n,null)}(Eb(t,e).map(Db)).pipe($n(Cb))}}function Jd(n){return null!=n?Sb(wb(n)):null}function Ab(n,e){return null===n?[e]:Array.isArray(n)?[...n,e]:[n,e]}function Tb(n){return n._rawValidators}function Ib(n){return n._rawAsyncValidators}function eh(n){return n?Array.isArray(n)?n:[n]:[]}function ol(n,e){return Array.isArray(n)?n.includes(e):n===e}function Fb(n,e){const t=eh(e);return eh(n).forEach(r=>{ol(t,r)||t.push(r)}),t}function Ob(n,e){return eh(e).filter(t=>!ol(n,t))}class xb{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(e){this._rawValidators=e||[],this._composedValidatorFn=Xd(this._rawValidators)}_setAsyncValidators(e){this._rawAsyncValidators=e||[],this._composedAsyncValidatorFn=Jd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(e){this._onDestroyCallbacks.push(e)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(e=>e()),this._onDestroyCallbacks=[]}reset(e){this.control&&this.control.reset(e)}hasError(e,t){return!!this.control&&this.control.hasError(e,t)}getError(e,t){return this.control?this.control.getError(e,t):null}}class Bn extends xb{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}class gt extends xb{get formDirective(){return null}get path(){return null}}let Nb=(()=>{class n extends class Rb{constructor(e){this._cd=e}is(e){var t,i,r;return"submitted"===e?!!(null===(t=this._cd)||void 0===t?void 0:t.submitted):!!(null===(r=null===(i=this._cd)||void 0===i?void 0:i.control)||void 0===r?void 0:r[e])}}{constructor(t){super(t)}}return n.\u0275fac=function(t){return new(t||n)(_(Bn,2))},n.\u0275dir=I({type:n,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,i){2&t&&Ut("ng-untouched",i.is("untouched"))("ng-touched",i.is("touched"))("ng-pristine",i.is("pristine"))("ng-dirty",i.is("dirty"))("ng-valid",i.is("valid"))("ng-invalid",i.is("invalid"))("ng-pending",i.is("pending"))},features:[K]}),n})();function Us(n,e){ih(n,e),e.valueAccessor.writeValue(n.value),function Fk(n,e){e.valueAccessor.registerOnChange(t=>{n._pendingValue=t,n._pendingChange=!0,n._pendingDirty=!0,"change"===n.updateOn&&Pb(n,e)})}(n,e),function xk(n,e){const t=(i,r)=>{e.valueAccessor.writeValue(i),r&&e.viewToModelUpdate(i)};n.registerOnChange(t),e._registerOnDestroy(()=>{n._unregisterOnChange(t)})}(n,e),function Ok(n,e){e.valueAccessor.registerOnTouched(()=>{n._pendingTouched=!0,"blur"===n.updateOn&&n._pendingChange&&Pb(n,e),"submit"!==n.updateOn&&n.markAsTouched()})}(n,e),function Ik(n,e){if(e.valueAccessor.setDisabledState){const t=i=>{e.valueAccessor.setDisabledState(i)};n.registerOnDisabledChange(t),e._registerOnDestroy(()=>{n._unregisterOnDisabledChange(t)})}}(n,e)}function cl(n,e,t=!0){const i=()=>{};e.valueAccessor&&(e.valueAccessor.registerOnChange(i),e.valueAccessor.registerOnTouched(i)),dl(n,e),n&&(e._invokeOnDestroyCallbacks(),n._registerOnCollectionChange(()=>{}))}function ul(n,e){n.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(e)})}function ih(n,e){const t=Tb(n);null!==e.validator?n.setValidators(Ab(t,e.validator)):"function"==typeof t&&n.setValidators([t]);const i=Ib(n);null!==e.asyncValidator?n.setAsyncValidators(Ab(i,e.asyncValidator)):"function"==typeof i&&n.setAsyncValidators([i]);const r=()=>n.updateValueAndValidity();ul(e._rawValidators,r),ul(e._rawAsyncValidators,r)}function dl(n,e){let t=!1;if(null!==n){if(null!==e.validator){const r=Tb(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.validator);s.length!==r.length&&(t=!0,n.setValidators(s))}}if(null!==e.asyncValidator){const r=Ib(n);if(Array.isArray(r)&&r.length>0){const s=r.filter(o=>o!==e.asyncValidator);s.length!==r.length&&(t=!0,n.setAsyncValidators(s))}}}const i=()=>{};return ul(e._rawValidators,i),ul(e._rawAsyncValidators,i),t}function Pb(n,e){n._pendingDirty&&n.markAsDirty(),n.setValue(n._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(n._pendingValue),n._pendingChange=!1}function Lb(n,e){ih(n,e)}function Bb(n,e){n._syncPendingControls(),e.forEach(t=>{const i=t.control;"submit"===i.updateOn&&i._pendingChange&&(t.viewToModelUpdate(i._pendingValue),i._pendingChange=!1)})}function oh(n,e){const t=n.indexOf(e);t>-1&&n.splice(t,1)}const zs="VALID",hl="INVALID",xr="PENDING",Gs="DISABLED";function lh(n){return(fl(n)?n.validators:n)||null}function jb(n){return Array.isArray(n)?Xd(n):n||null}function ch(n,e){return(fl(e)?e.asyncValidators:n)||null}function Hb(n){return Array.isArray(n)?Jd(n):n||null}function fl(n){return null!=n&&!Array.isArray(n)&&"object"==typeof n}const $b=n=>n instanceof hh,uh=n=>n instanceof fh;function Ub(n){return $b(n)?n.value:n.getRawValue()}function zb(n,e){const t=uh(n),i=n.controls;if(!(t?Object.keys(i):i).length)throw new M(1e3,"");if(!i[e])throw new M(1001,"")}function Gb(n,e){uh(n),n._forEachChild((i,r)=>{if(void 0===e[r])throw new M(1002,"")})}class dh{constructor(e,t){this._pendingDirty=!1,this._hasOwnPendingAsyncValidator=!1,this._pendingTouched=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=e,this._rawAsyncValidators=t,this._composedValidatorFn=jb(this._rawValidators),this._composedAsyncValidatorFn=Hb(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(e){this._rawValidators=this._composedValidatorFn=e}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(e){this._rawAsyncValidators=this._composedAsyncValidatorFn=e}get parent(){return this._parent}get valid(){return this.status===zs}get invalid(){return this.status===hl}get pending(){return this.status==xr}get disabled(){return this.status===Gs}get enabled(){return this.status!==Gs}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(e){this._rawValidators=e,this._composedValidatorFn=jb(e)}setAsyncValidators(e){this._rawAsyncValidators=e,this._composedAsyncValidatorFn=Hb(e)}addValidators(e){this.setValidators(Fb(e,this._rawValidators))}addAsyncValidators(e){this.setAsyncValidators(Fb(e,this._rawAsyncValidators))}removeValidators(e){this.setValidators(Ob(e,this._rawValidators))}removeAsyncValidators(e){this.setAsyncValidators(Ob(e,this._rawAsyncValidators))}hasValidator(e){return ol(this._rawValidators,e)}hasAsyncValidator(e){return ol(this._rawAsyncValidators,e)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(e={}){this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(e=>e.markAllAsTouched())}markAsUntouched(e={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}markAsDirty(e={}){this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}markAsPristine(e={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}markAsPending(e={}){this.status=xr,!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}disable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=Gs,this.errors=null,this._forEachChild(i=>{i.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!0))}enable(e={}){const t=this._parentMarkedDirty(e.onlySelf);this.status=zs,this._forEachChild(i=>{i.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach(i=>i(!1))}_updateAncestors(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(e){this._parent=e}updateValueAndValidity(e={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),(this.status===zs||this.status===xr)&&this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}_updateTreeValidity(e={emitEvent:!0}){this._forEachChild(t=>t._updateTreeValidity(e)),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Gs:zs}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(e){if(this.asyncValidator){this.status=xr,this._hasOwnPendingAsyncValidator=!0;const t=Db(this.asyncValidator(this));this._asyncValidationSubscription=t.subscribe(i=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(i,{emitEvent:e})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(e,t={}){this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}get(e){return function Pk(n,e,t){if(null==e||(Array.isArray(e)||(e=e.split(t)),Array.isArray(e)&&0===e.length))return null;let i=n;return e.forEach(r=>{i=uh(i)?i.controls.hasOwnProperty(r)?i.controls[r]:null:(n=>n instanceof Vk)(i)&&i.at(r)||null}),i}(this,e,".")}getError(e,t){const i=t?this.get(t):this;return i&&i.errors?i.errors[e]:null}hasError(e,t){return!!this.getError(e,t)}get root(){let e=this;for(;e._parent;)e=e._parent;return e}_updateControlsErrors(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}_initObservables(){this.valueChanges=new be,this.statusChanges=new be}_calculateStatus(){return this._allControlsDisabled()?Gs:this.errors?hl:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(xr)?xr:this._anyControlsHaveStatus(hl)?hl:zs}_anyControlsHaveStatus(e){return this._anyControls(t=>t.status===e)}_anyControlsDirty(){return this._anyControls(e=>e.dirty)}_anyControlsTouched(){return this._anyControls(e=>e.touched)}_updatePristine(e={}){this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}_updateTouched(e={}){this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}_isBoxedValue(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}_registerOnCollectionChange(e){this._onCollectionChange=e}_setUpdateStrategy(e){fl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}_parentMarkedDirty(e){return!e&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class hh extends dh{constructor(e=null,t,i){super(lh(t),ch(i,t)),this.defaultValue=null,this._onChange=[],this._pendingChange=!1,this._applyFormState(e),this._setUpdateStrategy(t),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator}),fl(t)&&t.initialValueIsDefault&&(this.defaultValue=this._isBoxedValue(e)?e.value:e)}setValue(e,t={}){this.value=this._pendingValue=e,this._onChange.length&&!1!==t.emitModelToViewChange&&this._onChange.forEach(i=>i(this.value,!1!==t.emitViewToModelChange)),this.updateValueAndValidity(t)}patchValue(e,t={}){this.setValue(e,t)}reset(e=this.defaultValue,t={}){this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}_updateValue(){}_anyControls(e){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(e){this._onChange.push(e)}_unregisterOnChange(e){oh(this._onChange,e)}registerOnDisabledChange(e){this._onDisabledChange.push(e)}_unregisterOnDisabledChange(e){oh(this._onDisabledChange,e)}_forEachChild(e){}_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(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}class fh extends dh{constructor(e,t,i){super(lh(t),ch(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}addControl(e,t,i={}){this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}removeControl(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}contains(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}setValue(e,t={}){Gb(this,e),Object.keys(e).forEach(i=>{zb(this,i),this.controls[i].setValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(Object.keys(e).forEach(i=>{this.controls[i]&&this.controls[i].patchValue(e[i],{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e={},t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this._reduceChildren({},(e,t,i)=>(e[i]=Ub(t),e))}_syncPendingControls(){let e=this._reduceChildren(!1,(t,i)=>!!i._syncPendingControls()||t);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){Object.keys(this.controls).forEach(t=>{const i=this.controls[t];i&&e(i,t)})}_setUpControls(){this._forEachChild(e=>{e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(e){for(const t of Object.keys(this.controls)){const i=this.controls[t];if(this.contains(t)&&e(i))return!0}return!1}_reduceValue(){return this._reduceChildren({},(e,t,i)=>((t.enabled||this.disabled)&&(e[i]=t.value),e))}_reduceChildren(e,t){let i=e;return this._forEachChild((r,s)=>{i=t(i,r,s)}),i}_allControlsDisabled(){for(const e of Object.keys(this.controls))if(this.controls[e].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}}class Vk extends dh{constructor(e,t,i){super(lh(t),ch(i,t)),this.controls=e,this._initObservables(),this._setUpdateStrategy(t),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(e){return this.controls[e]}push(e,t={}){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity({emitEvent:t.emitEvent}),this._onCollectionChange()}insert(e,t,i={}){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity({emitEvent:i.emitEvent})}removeAt(e,t={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),this.updateValueAndValidity({emitEvent:t.emitEvent})}setControl(e,t,i={}){this.controls[e]&&this.controls[e]._registerOnCollectionChange(()=>{}),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity({emitEvent:i.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(e,t={}){Gb(this,e),e.forEach((i,r)=>{zb(this,r),this.at(r).setValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t)}patchValue(e,t={}){null!=e&&(e.forEach((i,r)=>{this.at(r)&&this.at(r).patchValue(i,{onlySelf:!0,emitEvent:t.emitEvent})}),this.updateValueAndValidity(t))}reset(e=[],t={}){this._forEachChild((i,r)=>{i.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})}),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}getRawValue(){return this.controls.map(e=>Ub(e))}clear(e={}){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:e.emitEvent}))}_syncPendingControls(){let e=this.controls.reduce((t,i)=>!!i._syncPendingControls()||t,!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}_forEachChild(e){this.controls.forEach((t,i)=>{e(t,i)})}_updateValue(){this.value=this.controls.filter(e=>e.enabled||this.disabled).map(e=>e.value)}_anyControls(e){return this.controls.some(t=>t.enabled&&e(t))}_setUpControls(){this._forEachChild(e=>this._registerControl(e))}_allControlsDisabled(){for(const e of this.controls)if(e.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}}const Bk={provide:gt,useExisting:ce(()=>pl)},Ws=(()=>Promise.resolve(null))();let pl=(()=>{class n extends gt{constructor(t,i){super(),this.submitted=!1,this._directives=new Set,this.ngSubmit=new be,this.form=new fh({},Xd(t),Jd(i))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Ws.then(()=>{const i=this._findContainer(t.path);t.control=i.registerControl(t.name,t.control),Us(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.add(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Ws.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name),this._directives.delete(t)})}addFormGroup(t){Ws.then(()=>{const i=this._findContainer(t.path),r=new fh({});Lb(r,t),i.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Ws.then(()=>{const i=this._findContainer(t.path);i&&i.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,i){Ws.then(()=>{this.form.get(t.path).setValue(i)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,Bb(this.form,this._directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}_findContainer(t){return t.pop(),t.length?this.form.get(t):this.form}}return n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10))},n.\u0275dir=I({type:n,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,i){1&t&&qe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[te([Bk]),K]}),n})();const Uk={provide:fn,useExisting:ce(()=>ph),multi:!0};let ph=(()=>{class n extends xi{writeValue(t){this.setProperty("value",null==t?"":t)}registerOnChange(t){this.onChange=i=>{t(""==i?null:parseFloat(i))}}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,i){1&t&&qe("input",function(s){return i.onChange(s.target.value)})("blur",function(){return i.onTouched()})},features:[te([Uk]),K]}),n})(),Zb=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})();const mh=new A("NgModelWithFormControlWarning"),qk={provide:Bn,useExisting:ce(()=>gh)};let gh=(()=>{class n extends Bn{constructor(t,i,r,s){super(),this._ngModelWarningConfig=s,this.update=new be,this._ngModelWarningSent=!1,this._setValidators(t),this._setAsyncValidators(i),this.valueAccessor=function sh(n,e){if(!e)return null;let t,i,r;return Array.isArray(e),e.forEach(s=>{s.constructor===rl?t=s:function kk(n){return Object.getPrototypeOf(n.constructor)===xi}(s)?i=s:r=s}),r||i||t||null}(0,r)}set isDisabled(t){}ngOnChanges(t){if(this._isControlChanged(t)){const i=t.form.previousValue;i&&cl(i,this,!1),Us(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})}(function rh(n,e){if(!n.hasOwnProperty("model"))return!1;const t=n.model;return!!t.isFirstChange()||!Object.is(e,t.currentValue)})(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.form&&cl(this.form,this,!1)}get path(){return[]}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return n._ngModelWarningSentOnce=!1,n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10),_(fn,10),_(mh,8))},n.\u0275dir=I({type:n,selectors:[["","formControl",""]],inputs:{form:["formControl","form"],isDisabled:["disabled","isDisabled"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[te([qk]),K,en]}),n})();const Kk={provide:gt,useExisting:ce(()=>ml)};let ml=(()=>{class n extends gt{constructor(t,i){super(),this.validators=t,this.asyncValidators=i,this.submitted=!1,this._onCollectionChange=()=>this._updateDomValue(),this.directives=[],this.form=null,this.ngSubmit=new be,this._setValidators(t),this._setAsyncValidators(i)}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations(),this._oldForm=this.form)}ngOnDestroy(){this.form&&(dl(this.form,this),this.form._onCollectionChange===this._onCollectionChange&&this.form._registerOnCollectionChange(()=>{}))}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const i=this.form.get(t.path);return Us(i,t),i.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),i}getControl(t){return this.form.get(t.path)}removeControl(t){cl(t.control||null,t,!1),oh(this.directives,t)}addFormGroup(t){this._setUpFormContainer(t)}removeFormGroup(t){this._cleanUpFormContainer(t)}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){this._setUpFormContainer(t)}removeFormArray(t){this._cleanUpFormContainer(t)}getFormArray(t){return this.form.get(t.path)}updateModel(t,i){this.form.get(t.path).setValue(i)}onSubmit(t){return this.submitted=!0,Bb(this.form,this.directives),this.ngSubmit.emit(t),!1}onReset(){this.resetForm()}resetForm(t){this.form.reset(t),this.submitted=!1}_updateDomValue(){this.directives.forEach(t=>{const i=t.control,r=this.form.get(t.path);i!==r&&(cl(i||null,t),$b(r)&&(Us(r,t),t.control=r))}),this.form._updateTreeValidity({emitEvent:!1})}_setUpFormContainer(t){const i=this.form.get(t.path);Lb(i,t),i.updateValueAndValidity({emitEvent:!1})}_cleanUpFormContainer(t){if(this.form){const i=this.form.get(t.path);i&&function Rk(n,e){return dl(n,e)}(i,t)&&i.updateValueAndValidity({emitEvent:!1})}}_updateRegistrations(){this.form._registerOnCollectionChange(this._onCollectionChange),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{})}_updateValidators(){ih(this.form,this),this._oldForm&&dl(this._oldForm,this)}_checkFormPresent(){}}return n.\u0275fac=function(t){return new(t||n)(_(ct,10),_(ri,10))},n.\u0275dir=I({type:n,selectors:[["","formGroup",""]],hostBindings:function(t,i){1&t&&qe("submit",function(s){return i.onSubmit(s)})("reset",function(){return i.onReset()})},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[te([Kk]),K,en]}),n})(),fP=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[Zb]]}),n})(),pP=(()=>{class n{static withConfig(t){return{ngModule:n,providers:[{provide:mh,useValue:t.warnOnNgModelWithFormControl}]}}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[fP]}),n})();const mP=new A("cdk-dir-doc",{providedIn:"root",factory:function gP(){return ac(fe)}}),_P=/^(ar|ckb|dv|he|iw|fa|nqo|ps|sd|ug|ur|yi|.*[-_](Adlm|Arab|Hebr|Nkoo|Rohg|Thaa))(?!.*[-_](Latn|Cyrl)($|-|_))($|-|_)/i;let Ch=(()=>{class n{constructor(t){if(this.value="ltr",this.change=new be,t){const r=t.documentElement?t.documentElement.dir:null;this.value=function yP(n){const e=(null==n?void 0:n.toLowerCase())||"";return"auto"===e&&"undefined"!=typeof navigator&&(null==navigator?void 0:navigator.language)?_P.test(navigator.language)?"rtl":"ltr":"rtl"===e?"rtl":"ltr"}((t.body?t.body.dir:null)||r||"ltr")}}ngOnDestroy(){this.change.complete()}}return n.\u0275fac=function(t){return new(t||n)(D(mP,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),qs=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})();function Rr(n,...e){return e.length?e.some(t=>n[t]):n.altKey||n.shiftKey||n.ctrlKey||n.metaKey}function si(){}function _D(n,e,t){return function(r){return r.lift(new RP(n,e,t))}}class RP{constructor(e,t,i){this.nextOrObserver=e,this.error=t,this.complete=i}call(e,t){return t.subscribe(new NP(e,this.nextOrObserver,this.error,this.complete))}}class NP extends Ie{constructor(e,t,i,r){super(e),this._tapNext=si,this._tapError=si,this._tapComplete=si,this._tapError=i||si,this._tapComplete=r||si,q(t)?(this._context=this,this._tapNext=t):t&&(this._context=t,this._tapNext=t.next||si,this._tapError=t.error||si,this._tapComplete=t.complete||si)}_next(e){try{this._tapNext.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.next(e)}_error(e){try{this._tapError.call(this._context,e)}catch(t){return void this.destination.error(t)}this.destination.error(e)}_complete(){try{this._tapComplete.call(this._context)}catch(e){return void this.destination.error(e)}return this.destination.complete()}}const gl=new dn(Oa);function wh(n,e=gl){return t=>t.lift(new kP(n,e))}class kP{constructor(e,t){this.dueTime=e,this.scheduler=t}call(e,t){return t.subscribe(new PP(e,this.dueTime,this.scheduler))}}class PP extends Ie{constructor(e,t,i){super(e),this.dueTime=t,this.scheduler=i,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(LP,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:e}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(e)}}clearDebounce(){const e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)}}function LP(n){n.debouncedNext()}function Nr(n,e){return function(i){return i.lift(new VP(n,e))}}class VP{constructor(e,t){this.predicate=e,this.thisArg=t}call(e,t){return t.subscribe(new BP(e,this.predicate,this.thisArg))}}class BP extends Ie{constructor(e,t,i){super(e),this.predicate=t,this.thisArg=i,this.count=0}_next(e){let t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(i){return void this.destination.error(i)}t&&this.destination.next(e)}}class UP extends class $P{constructor(e){this._items=e,this._activeItemIndex=-1,this._activeItem=null,this._wrap=!1,this._letterKeyStream=new we,this._typeaheadSubscription=z.EMPTY,this._vertical=!0,this._allowedModifierKeys=[],this._homeAndEnd=!1,this._skipPredicateFn=t=>t.disabled,this._pressedLetters=[],this.tabOut=new we,this.change=new we,e instanceof As&&e.changes.subscribe(t=>{if(this._activeItem){const r=t.toArray().indexOf(this._activeItem);r>-1&&r!==this._activeItemIndex&&(this._activeItemIndex=r)}})}skipPredicate(e){return this._skipPredicateFn=e,this}withWrap(e=!0){return this._wrap=e,this}withVerticalOrientation(e=!0){return this._vertical=e,this}withHorizontalOrientation(e){return this._horizontal=e,this}withAllowedModifierKeys(e){return this._allowedModifierKeys=e,this}withTypeAhead(e=200){return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(_D(t=>this._pressedLetters.push(t)),wh(e),Nr(()=>this._pressedLetters.length>0),$n(()=>this._pressedLetters.join(""))).subscribe(t=>{const i=this._getItemsArray();for(let r=1;r<i.length+1;r++){const s=(this._activeItemIndex+r)%i.length,o=i[s];if(!this._skipPredicateFn(o)&&0===o.getLabel().toUpperCase().trim().indexOf(t)){this.setActiveItem(s);break}}this._pressedLetters=[]}),this}withHomeAndEnd(e=!0){return this._homeAndEnd=e,this}setActiveItem(e){const t=this._activeItem;this.updateActiveItem(e),this._activeItem!==t&&this.change.next(this._activeItemIndex)}onKeydown(e){const t=e.keyCode,r=["altKey","ctrlKey","metaKey","shiftKey"].every(s=>!e[s]||this._allowedModifierKeys.indexOf(s)>-1);switch(t){case 9:return void this.tabOut.next();case 40:if(this._vertical&&r){this.setNextItemActive();break}return;case 38:if(this._vertical&&r){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&r){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&r){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;case 36:if(this._homeAndEnd&&r){this.setFirstItemActive();break}return;case 35:if(this._homeAndEnd&&r){this.setLastItemActive();break}return;default:return void((r||Rr(e,"shiftKey"))&&(e.key&&1===e.key.length?this._letterKeyStream.next(e.key.toLocaleUpperCase()):(t>=65&&t<=90||t>=48&&t<=57)&&this._letterKeyStream.next(String.fromCharCode(t))))}this._pressedLetters=[],e.preventDefault()}get activeItemIndex(){return this._activeItemIndex}get activeItem(){return this._activeItem}isTyping(){return this._pressedLetters.length>0}setFirstItemActive(){this._setActiveItemByIndex(0,1)}setLastItemActive(){this._setActiveItemByIndex(this._items.length-1,-1)}setNextItemActive(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)}setPreviousItemActive(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)}updateActiveItem(e){const t=this._getItemsArray(),i="number"==typeof e?e:t.indexOf(e),r=t[i];this._activeItem=null==r?null:r,this._activeItemIndex=i}_setActiveItemByDelta(e){this._wrap?this._setActiveInWrapMode(e):this._setActiveInDefaultMode(e)}_setActiveInWrapMode(e){const t=this._getItemsArray();for(let i=1;i<=t.length;i++){const r=(this._activeItemIndex+e*i+t.length)%t.length;if(!this._skipPredicateFn(t[r]))return void this.setActiveItem(r)}}_setActiveInDefaultMode(e){this._setActiveItemByIndex(this._activeItemIndex+e,e)}_setActiveItemByIndex(e,t){const i=this._getItemsArray();if(i[e]){for(;this._skipPredicateFn(i[e]);)if(!i[e+=t])return;this.setActiveItem(e)}}_getItemsArray(){return this._items instanceof As?this._items.toArray():this._items}}{setActiveItem(e){this.activeItem&&this.activeItem.setInactiveStyles(),super.setActiveItem(e),this.activeItem&&this.activeItem.setActiveStyles()}}const DD="cdk-high-contrast-black-on-white",CD="cdk-high-contrast-white-on-black",Mh="cdk-high-contrast-active";let XP=(()=>{class n{constructor(t,i){this._platform=t,this._document=i}getHighContrastMode(){if(!this._platform.isBrowser)return 0;const t=this._document.createElement("div");t.style.backgroundColor="rgb(1,2,3)",t.style.position="absolute",this._document.body.appendChild(t);const i=this._document.defaultView||window,r=i&&i.getComputedStyle?i.getComputedStyle(t):null,s=(r&&r.backgroundColor||"").replace(/ /g,"");switch(t.remove(),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(!this._hasCheckedHighContrastMode&&this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(Mh),t.remove(DD),t.remove(CD),this._hasCheckedHighContrastMode=!0;const i=this.getHighContrastMode();1===i?(t.add(Mh),t.add(DD)):2===i&&(t.add(Mh),t.add(CD))}}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();function JP(n,e){if(1&n&&Jn(0,"mat-pseudo-checkbox",4),2&n){const t=lt();ee("state",t.selected?"checked":"unchecked")("disabled",t.disabled)}}function e1(n,e){if(1&n&&(oe(0,"span",5),Nn(1),de()),2&n){const t=lt();se(1),Dr("(",t.group.label,")")}}const t1=["*"],r1=new A("mat-sanity-checks",{providedIn:"root",factory:function n1(){return!0}});let jn=(()=>{class n{constructor(t,i,r){this._sanityChecks=i,this._document=r,this._hasDoneGlobalChecks=!1,t._applyBodyHighContrastModeCssClasses(),this._hasDoneGlobalChecks||(this._hasDoneGlobalChecks=!0)}_checkIsEnabled(t){return!Qd()&&("boolean"==typeof this._sanityChecks?this._sanityChecks:!!this._sanityChecks[t])}}return n.\u0275fac=function(t){return new(t||n)(D(XP),D(r1,8),D(fe))},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[qs],qs]}),n})();function s1(n,e){return class extends n{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const i=t||this.defaultColor;i!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove(`mat-${this._color}`),i&&this._elementRef.nativeElement.classList.add(`mat-${i}`),this._color=i)}}}function o1(n){return class extends n{constructor(...e){super(...e),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(e){this._disableRipple=Vn(e)}}}function a1(n){return class extends n{constructor(...e){super(...e),this.stateChanges=new we,this.errorState=!1}updateErrorState(){const e=this.errorState,s=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);s!==e&&(this.errorState=s,this.stateChanges.next())}}}let wD=(()=>{class n{isErrorState(t,i){return!!(t&&t.invalid&&(t.touched||i&&i.submitted))}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class c1{constructor(e,t,i){this._renderer=e,this.element=t,this.config=i,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const MD={enterDuration:225,exitDuration:150},Sh=tl({passive:!0}),SD=["mousedown","touchstart"],AD=["mouseup","mouseleave","touchend","touchcancel"];class d1{constructor(e,t,i,r){this._target=e,this._ngZone=t,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,r.isBrowser&&(this._containerElement=Fr(i))}fadeInRipple(e,t,i={}){const r=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),s=Object.assign(Object.assign({},MD),i.animation);i.centered&&(e=r.left+r.width/2,t=r.top+r.height/2);const o=i.radius||function f1(n,e,t){const i=Math.max(Math.abs(n-t.left),Math.abs(n-t.right)),r=Math.max(Math.abs(e-t.top),Math.abs(e-t.bottom));return Math.sqrt(i*i+r*r)}(e,t,r),a=e-r.left,l=t-r.top,c=s.enterDuration,u=document.createElement("div");u.classList.add("mat-ripple-element"),u.style.left=a-o+"px",u.style.top=l-o+"px",u.style.height=2*o+"px",u.style.width=2*o+"px",null!=i.color&&(u.style.backgroundColor=i.color),u.style.transitionDuration=`${c}ms`,this._containerElement.appendChild(u),function h1(n){window.getComputedStyle(n).getPropertyValue("opacity")}(u),u.style.transform="scale(1)";const d=new c1(this,u,i);return d.state=0,this._activeRipples.add(d),i.persistent||(this._mostRecentTransientRipple=d),this._runTimeoutOutsideZone(()=>{const h=d===this._mostRecentTransientRipple;d.state=1,!i.persistent&&(!h||!this._isPointerDown)&&d.fadeOut()},c),d}fadeOutRipple(e){const t=this._activeRipples.delete(e);if(e===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!t)return;const i=e.element,r=Object.assign(Object.assign({},MD),e.config.animation);i.style.transitionDuration=`${r.exitDuration}ms`,i.style.opacity="0",e.state=2,this._runTimeoutOutsideZone(()=>{e.state=3,i.remove()},r.exitDuration)}fadeOutAll(){this._activeRipples.forEach(e=>e.fadeOut())}fadeOutAllNonPersistent(){this._activeRipples.forEach(e=>{e.config.persistent||e.fadeOut()})}setupTriggerEvents(e){const t=Fr(e);!t||t===this._triggerElement||(this._removeTriggerEvents(),this._triggerElement=t,this._registerEvents(SD))}handleEvent(e){"mousedown"===e.type?this._onMousedown(e):"touchstart"===e.type?this._onTouchStart(e):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(AD),this._pointerUpEventsRegistered=!0)}_onMousedown(e){const t=function YP(n){return 0===n.buttons||0===n.offsetX&&0===n.offsetY}(e),i=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;!this._target.rippleDisabled&&!t&&!i&&(this._isPointerDown=!0,this.fadeInRipple(e.clientX,e.clientY,this._target.rippleConfig))}_onTouchStart(e){if(!this._target.rippleDisabled&&!function ZP(n){const e=n.touches&&n.touches[0]||n.changedTouches&&n.changedTouches[0];return!(!e||-1!==e.identifier||null!=e.radiusX&&1!==e.radiusX||null!=e.radiusY&&1!==e.radiusY)}(e)){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const t=e.changedTouches;for(let i=0;i<t.length;i++)this.fadeInRipple(t[i].clientX,t[i].clientY,this._target.rippleConfig)}}_onPointerUp(){!this._isPointerDown||(this._isPointerDown=!1,this._activeRipples.forEach(e=>{!e.config.persistent&&(1===e.state||e.config.terminateOnPointerUp&&0===e.state)&&e.fadeOut()}))}_runTimeoutOutsideZone(e,t=0){this._ngZone.runOutsideAngular(()=>setTimeout(e,t))}_registerEvents(e){this._ngZone.runOutsideAngular(()=>{e.forEach(t=>{this._triggerElement.addEventListener(t,this,Sh)})})}_removeTriggerEvents(){this._triggerElement&&(SD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Sh)}),this._pointerUpEventsRegistered&&AD.forEach(e=>{this._triggerElement.removeEventListener(e,this,Sh)}))}}const p1=new A("mat-ripple-global-options");let m1=(()=>{class n{constructor(t,i,r,s,o){this._elementRef=t,this._animationMode=o,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new d1(this,i,t,r)}get disabled(){return this._disabled}set disabled(t){t&&this.fadeOutAllNonPersistent(),this._disabled=t,this._setupTriggerEventsIfEnabled()}get trigger(){return this._trigger||this._elementRef.nativeElement}set trigger(t){this._trigger=t,this._setupTriggerEventsIfEnabled()}ngOnInit(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()}ngOnDestroy(){this._rippleRenderer._removeTriggerEvents()}fadeOutAll(){this._rippleRenderer.fadeOutAll()}fadeOutAllNonPersistent(){this._rippleRenderer.fadeOutAllNonPersistent()}get rippleConfig(){return{centered:this.centered,radius:this.radius,color:this.color,animation:Object.assign(Object.assign(Object.assign({},this._globalOptions.animation),"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:{}),this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp}}get rippleDisabled(){return this.disabled||!!this._globalOptions.disabled}_setupTriggerEventsIfEnabled(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)}launch(t,i=0,r){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,i,Object.assign(Object.assign({},this.rippleConfig),r)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(he),_(hn),_(p1,8),_(Hs,8))},n.\u0275dir=I({type:n,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,i){2&t&&Ut("mat-ripple-unbounded",i.unbounded)},inputs:{color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],radius:["matRippleRadius","radius"],animation:["matRippleAnimation","animation"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"]},exportAs:["matRipple"]}),n})(),g1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[jn,Kd],jn]}),n})(),_1=(()=>{class n{constructor(t){this._animationMode=t,this.state="unchecked",this.disabled=!1}}return n.\u0275fac=function(t){return new(t||n)(_(Hs,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-pseudo-checkbox"]],hostAttrs:[1,"mat-pseudo-checkbox"],hostVars:8,hostBindings:function(t,i){2&t&&Ut("mat-pseudo-checkbox-indeterminate","indeterminate"===i.state)("mat-pseudo-checkbox-checked","checked"===i.state)("mat-pseudo-checkbox-disabled",i.disabled)("_mat-animation-noopable","NoopAnimations"===i._animationMode)},inputs:{state:"state",disabled:"disabled"},decls:0,vars:0,template:function(t,i){},styles:['.mat-pseudo-checkbox{width:16px;height:16px;border:2px solid;border-radius:2px;cursor:pointer;display:inline-block;vertical-align:middle;box-sizing:border-box;position:relative;flex-shrink:0;transition:border-color 90ms cubic-bezier(0, 0, 0.2, 0.1),background-color 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox::after{position:absolute;opacity:0;content:"";border-bottom:2px solid currentColor;transition:opacity 90ms cubic-bezier(0, 0, 0.2, 0.1)}.mat-pseudo-checkbox.mat-pseudo-checkbox-checked,.mat-pseudo-checkbox.mat-pseudo-checkbox-indeterminate{border-color:transparent}._mat-animation-noopable.mat-pseudo-checkbox{transition:none;animation:none}._mat-animation-noopable.mat-pseudo-checkbox::after{transition:none}.mat-pseudo-checkbox-disabled{cursor:default}.mat-pseudo-checkbox-indeterminate::after{top:5px;left:1px;width:10px;opacity:1;border-radius:2px}.mat-pseudo-checkbox-checked::after{top:2.4px;left:1px;width:8px;height:3px;border-left:2px solid currentColor;transform:rotate(-45deg);opacity:1;box-sizing:content-box}\n'],encapsulation:2,changeDetection:0}),n})(),y1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[jn]]}),n})();const TD=new A("MAT_OPTION_PARENT_COMPONENT"),ID=new A("MatOptgroup");let v1=0;class FD{constructor(e,t=!1){this.source=e,this.isUserInput=t}}let b1=(()=>{class n{constructor(t,i,r,s){this._element=t,this._changeDetectorRef=i,this._parent=r,this.group=s,this._selected=!1,this._active=!1,this._disabled=!1,this._mostRecentViewValue="",this.id="mat-option-"+v1++,this.onSelectionChange=new be,this._stateChanges=new we}get multiple(){return this._parent&&this._parent.multiple}get selected(){return this._selected}get disabled(){return this.group&&this.group.disabled||this._disabled}set disabled(t){this._disabled=Vn(t)}get disableRipple(){return!(!this._parent||!this._parent.disableRipple)}get active(){return this._active}get viewValue(){return(this._getHostElement().textContent||"").trim()}select(){this._selected||(this._selected=!0,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}deselect(){this._selected&&(this._selected=!1,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent())}focus(t,i){const r=this._getHostElement();"function"==typeof r.focus&&r.focus(i)}setActiveStyles(){this._active||(this._active=!0,this._changeDetectorRef.markForCheck())}setInactiveStyles(){this._active&&(this._active=!1,this._changeDetectorRef.markForCheck())}getLabel(){return this.viewValue}_handleKeydown(t){(13===t.keyCode||32===t.keyCode)&&!Rr(t)&&(this._selectViaInteraction(),t.preventDefault())}_selectViaInteraction(){this.disabled||(this._selected=!this.multiple||!this._selected,this._changeDetectorRef.markForCheck(),this._emitSelectionChangeEvent(!0))}_getAriaSelected(){return this.selected||!this.multiple&&null}_getTabIndex(){return this.disabled?"-1":"0"}_getHostElement(){return this._element.nativeElement}ngAfterViewChecked(){if(this._selected){const t=this.viewValue;t!==this._mostRecentViewValue&&(this._mostRecentViewValue=t,this._stateChanges.next())}}ngOnDestroy(){this._stateChanges.complete()}_emitSelectionChangeEvent(t=!1){this.onSelectionChange.emit(new FD(this,t))}}return n.\u0275fac=function(t){!function sg(){throw new Error("invalid")}()},n.\u0275dir=I({type:n,inputs:{value:"value",id:"id",disabled:"disabled"},outputs:{onSelectionChange:"onSelectionChange"}}),n})(),OD=(()=>{class n extends b1{constructor(t,i,r,s){super(t,i,r,s)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(wi),_(TD,8),_(ID,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-option"]],hostAttrs:["role","option",1,"mat-option","mat-focus-indicator"],hostVars:12,hostBindings:function(t,i){1&t&&qe("click",function(){return i._selectViaInteraction()})("keydown",function(s){return i._handleKeydown(s)}),2&t&&(Zo("id",i.id),at("tabindex",i._getTabIndex())("aria-selected",i._getAriaSelected())("aria-disabled",i.disabled.toString()),Ut("mat-selected",i.selected)("mat-option-multiple",i.multiple)("mat-active",i.active)("mat-option-disabled",i.disabled))},exportAs:["matOption"],features:[K],ngContentSelectors:t1,decls:5,vars:4,consts:[["class","mat-option-pseudo-checkbox",3,"state","disabled",4,"ngIf"],[1,"mat-option-text"],["class","cdk-visually-hidden",4,"ngIf"],["mat-ripple","",1,"mat-option-ripple",3,"matRippleTrigger","matRippleDisabled"],[1,"mat-option-pseudo-checkbox",3,"state","disabled"],[1,"cdk-visually-hidden"]],template:function(t,i){1&t&&(Ko(),Qe(0,JP,1,2,"mat-pseudo-checkbox",0),oe(1,"span",1),sn(2),de(),Qe(3,e1,2,1,"span",2),Jn(4,"div",3)),2&t&&(ee("ngIf",i.multiple),se(3),ee("ngIf",i.group&&i.group._inert),se(1),ee("matRippleTrigger",i._getHostElement())("matRippleDisabled",i.disabled||i.disableRipple))},directives:[_1,Da,m1],styles:[".mat-option{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative;cursor:pointer;outline:none;display:flex;flex-direction:row;max-width:100%;box-sizing:border-box;align-items:center;-webkit-tap-highlight-color:transparent}.mat-option[disabled]{cursor:default}[dir=rtl] .mat-option{text-align:right}.mat-option .mat-icon{margin-right:16px;vertical-align:middle}.mat-option .mat-icon svg{vertical-align:top}[dir=rtl] .mat-option .mat-icon{margin-left:16px;margin-right:0}.mat-option[aria-disabled=true]{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:default}.mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:32px}[dir=rtl] .mat-optgroup .mat-option:not(.mat-option-multiple){padding-left:16px;padding-right:32px}.cdk-high-contrast-active .mat-option{margin:0 1px}.cdk-high-contrast-active .mat-option.mat-active{border:solid 1px currentColor;margin:0}.cdk-high-contrast-active .mat-option[aria-disabled=true]{opacity:.5}.mat-option-text{display:inline-block;flex-grow:1;overflow:hidden;text-overflow:ellipsis}.mat-option .mat-option-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-option-pseudo-checkbox{margin-right:8px}[dir=rtl] .mat-option-pseudo-checkbox{margin-left:8px;margin-right:0}\n"],encapsulation:2,changeDetection:0}),n})(),xD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[g1,Ma,jn,y1]]}),n})(),RD=(()=>{class n{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),E1=(()=>{class n{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,i)=>this._cleanupObserver(i))}observe(t){const i=Fr(t);return new _e(r=>{const o=this._observeElement(i).subscribe(r);return()=>{o.unsubscribe(),this._unobserveElement(i)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const i=new we,r=this._mutationObserverFactory.create(s=>i.next(s));r&&r.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:r,stream:i,count:1})}return this._observedElements.get(t).stream}_unobserveElement(t){this._observedElements.has(t)&&(this._observedElements.get(t).count--,this._observedElements.get(t).count||this._cleanupObserver(t))}_cleanupObserver(t){if(this._observedElements.has(t)){const{observer:i,stream:r}=this._observedElements.get(t);i&&i.disconnect(),r.complete(),this._observedElements.delete(t)}}}return n.\u0275fac=function(t){return new(t||n)(D(RD))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),w1=(()=>{class n{constructor(t,i,r){this._contentObserver=t,this._elementRef=i,this._ngZone=r,this.event=new be,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=Vn(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function lk(n,e=0){return function ck(n){return!isNaN(parseFloat(n))&&!isNaN(Number(n))}(n)?Number(n):e}(t),this._subscribe()}ngAfterContentInit(){!this._currentSubscription&&!this.disabled&&this._subscribe()}ngOnDestroy(){this._unsubscribe()}_subscribe(){this._unsubscribe();const t=this._contentObserver.observe(this._elementRef);this._ngZone.runOutsideAngular(()=>{this._currentSubscription=(this.debounce?t.pipe(wh(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){var t;null===(t=this._currentSubscription)||void 0===t||t.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)(_(E1),_(Re),_(he))},n.\u0275dir=I({type:n,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),n})(),M1=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:[RD]}),n})();function kr(n,e,t,i){return q(t)&&(i=t,t=void 0),i?kr(n,e,t).pipe($n(r=>J(r)?i(...r):i(r))):new _e(r=>{ND(n,e,function s(o){r.next(arguments.length>1?Array.prototype.slice.call(arguments):o)},r,t)})}function ND(n,e,t,i,r){let s;if(function T1(n){return n&&"function"==typeof n.addEventListener&&"function"==typeof n.removeEventListener}(n)){const o=n;n.addEventListener(e,t,r),s=()=>o.removeEventListener(e,t,r)}else if(function A1(n){return n&&"function"==typeof n.on&&"function"==typeof n.off}(n)){const o=n;n.on(e,t),s=()=>o.off(e,t)}else if(function S1(n){return n&&"function"==typeof n.addListener&&"function"==typeof n.removeListener}(n)){const o=n;n.addListener(e,t),s=()=>o.removeListener(e,t)}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(let o=0,a=n.length;o<a;o++)ND(n[o],e,t,i,r)}i.add(s)}function kD(...n){return function I1(){return Yh(1)}()(xa(...n))}function _l(...n){const e=n[n.length-1];return jr(e)?(n.pop(),t=>kD(n,t,e)):t=>kD(n,t)}function yl(n){return e=>e.lift(new F1(n))}class F1{constructor(e){this.notifier=e}call(e,t){const i=new O1(e),r=to(this.notifier,new Js(i));return r&&!i.seenValue?(i.add(r),t.subscribe(i)):i}}class O1 extends eo{constructor(e){super(e),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}const x1=(()=>{function n(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return n.prototype=Object.create(Error.prototype),n})();function Ys(n){return e=>0===n?bd():e.lift(new R1(n))}class R1{constructor(e){if(this.total=e,this.total<0)throw new x1}call(e,t){return t.subscribe(new N1(e,this.total))}}class N1 extends Ie{constructor(e,t){super(e),this.total=t,this.count=0}_next(e){const t=this.total,i=++this.count;i<=t&&(this.destination.next(e),i===t&&(this.destination.complete(),this.unsubscribe()))}}const k1=["connectionContainer"],P1=["inputContainer"],L1=["label"];function V1(n,e){1&n&&(gs(0),oe(1,"div",14),Jn(2,"div",15)(3,"div",16)(4,"div",17),de(),oe(5,"div",18),Jn(6,"div",15)(7,"div",16)(8,"div",17),de(),_s())}function B1(n,e){if(1&n){const t=pu();oe(0,"div",19),qe("cdkObserveContent",function(){return Ul(t),lt().updateOutlineGap()}),sn(1,1),de()}2&n&&ee("cdkObserveContentDisabled","outline"!=lt().appearance)}function j1(n,e){if(1&n&&(gs(0),sn(1,2),oe(2,"span"),Nn(3),de(),_s()),2&n){const t=lt(2);se(3),br(t._control.placeholder)}}function H1(n,e){1&n&&sn(0,3,["*ngSwitchCase","true"])}function $1(n,e){1&n&&(oe(0,"span",23),Nn(1," *"),de())}function U1(n,e){if(1&n){const t=pu();oe(0,"label",20,21),qe("cdkObserveContent",function(){return Ul(t),lt().updateOutlineGap()}),Qe(2,j1,4,1,"ng-container",12),Qe(3,H1,1,0,"ng-content",12),Qe(4,$1,2,0,"span",22),de()}if(2&n){const t=lt();Ut("mat-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-form-field-empty",t._control.empty&&!t._shouldAlwaysFloat())("mat-accent","accent"==t.color)("mat-warn","warn"==t.color),ee("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),at("for",t._control.id)("aria-owns",t._control.id),se(2),ee("ngSwitchCase",!1),se(1),ee("ngSwitchCase",!0),se(1),ee("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function z1(n,e){1&n&&(oe(0,"div",24),sn(1,4),de())}function G1(n,e){if(1&n&&(oe(0,"div",25),Jn(1,"span",26),de()),2&n){const t=lt();se(1),Ut("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function W1(n,e){1&n&&(oe(0,"div"),sn(1,5),de()),2&n&&ee("@transitionMessages",lt()._subscriptAnimationState)}function q1(n,e){if(1&n&&(oe(0,"div",30),Nn(1),de()),2&n){const t=lt(2);ee("id",t._hintLabelId),se(1),br(t.hintLabel)}}function K1(n,e){if(1&n&&(oe(0,"div",27),Qe(1,q1,2,2,"div",28),sn(2,6),Jn(3,"div",29),sn(4,7),de()),2&n){const t=lt();ee("@transitionMessages",t._subscriptAnimationState),se(1),ee("ngIf",t.hintLabel)}}const Y1=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Z1=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Q1=0;const PD=new A("MatError");let X1=(()=>{class n{constructor(t,i){this.id="mat-error-"+Q1++,t||i.nativeElement.setAttribute("aria-live","polite")}}return n.\u0275fac=function(t){return new(t||n)(function wo(n){return function VE(n,e){if("class"===e)return n.classes;if("style"===e)return n.styles;const t=n.attrs;if(t){const i=t.length;let r=0;for(;r<i;){const s=t[r];if(Ff(s))break;if(0===s)r+=2;else if("number"==typeof s)for(r++;r<i&&"string"==typeof t[r];)r++;else{if(s===e)return t[r+1];r+=2}}}return null}(Ge(),n)}("aria-live"),_(Re))},n.\u0275dir=I({type:n,selectors:[["mat-error"]],hostAttrs:["aria-atomic","true",1,"mat-error"],hostVars:1,hostBindings:function(t,i){2&t&&at("id",i.id)},inputs:{id:"id"},features:[te([{provide:PD,useExisting:n}])]}),n})();const J1={transitionMessages:aR("transitionMessages",[cR("enter",ka({opacity:1,transform:"translateY(0%)"})),uR("void => enter",[ka({opacity:0,transform:"translateY(-5px)"}),lR("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Ah=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n}),n})(),eL=0;const LD=new A("MatHint");let tL=(()=>{class n{constructor(){this.align="start",this.id="mat-hint-"+eL++}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,i){2&t&&(at("id",i.id)("align",null),Ut("mat-form-field-hint-end","end"===i.align))},inputs:{align:"align",id:"id"},features:[te([{provide:LD,useExisting:n}])]}),n})(),Th=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-label"]]}),n})(),nL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275dir=I({type:n,selectors:[["mat-placeholder"]]}),n})();const iL=new A("MatPrefix"),rL=new A("MatSuffix");let VD=0;const oL=s1(class{constructor(n){this._elementRef=n}},"primary"),aL=new A("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Ih=new A("MatFormField");let lL=(()=>{class n extends oL{constructor(t,i,r,s,o,a,l){super(t),this._changeDetectorRef=i,this._dir=r,this._defaults=s,this._platform=o,this._ngZone=a,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new we,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+VD++,this._labelId="mat-form-field-label-"+VD++,this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==l,this.appearance=s&&s.appearance?s.appearance:"legacy",this._hideRequiredMarker=!(!s||null==s.hideRequiredMarker)&&s.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const i=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&i!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=Vn(t)}_shouldAlwaysFloat(){return"always"===this.floatLabel&&!this._showAlwaysAnimate}_canLabelFloat(){return"never"!==this.floatLabel}get hintLabel(){return this._hintLabel}set hintLabel(t){this._hintLabel=t,this._processHints()}get floatLabel(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel}set floatLabel(t){t!==this._floatLabel&&(this._floatLabel=t||this._getDefaultFloatLabelState(),this._changeDetectorRef.markForCheck())}get _control(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic}set _control(t){this._explicitFormFieldControl=t}getLabelId(){return this._hasFloatingLabel()?this._labelId:null}getConnectedOverlayOrigin(){return this._connectionContainerRef||this._elementRef}ngAfterContentInit(){this._validateControlChild();const t=this._control;t.controlType&&this._elementRef.nativeElement.classList.add(`mat-form-field-type-${t.controlType}`),t.stateChanges.pipe(_l(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(yl(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(yl(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),Un(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(_l(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(_l(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(yl(this._destroyed)).subscribe(()=>{"function"==typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>this.updateOutlineGap())}):this.updateOutlineGap()})}ngAfterContentChecked(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()}ngAfterViewInit(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()}ngOnDestroy(){this._destroyed.next(),this._destroyed.complete()}_shouldForward(t){const i=this._control?this._control.ngControl:null;return i&&i[t]}_hasPlaceholder(){return!!(this._control&&this._control.placeholder||this._placeholderChild)}_hasLabel(){return!(!this._labelChildNonStatic&&!this._labelChildStatic)}_shouldLabelFloat(){return this._canLabelFloat()&&(this._control&&this._control.shouldLabelFloat||this._shouldAlwaysFloat())}_hideControlPlaceholder(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()}_hasFloatingLabel(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()}_getDisplayedMessages(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"}_animateAndLockLabel(){this._hasFloatingLabel()&&this._canLabelFloat()&&(this._animationsEnabled&&this._label&&(this._showAlwaysAnimate=!0,kr(this._label.nativeElement,"transitionend").pipe(Ys(1)).subscribe(()=>{this._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())}_validatePlaceholders(){}_processHints(){this._validateHints(),this._syncDescribedByIds()}_validateHints(){}_getDefaultFloatLabelState(){return this._defaults&&this._defaults.floatLabel||"auto"}_syncDescribedByIds(){if(this._control){let t=[];if(this._control.userAriaDescribedBy&&"string"==typeof this._control.userAriaDescribedBy&&t.push(...this._control.userAriaDescribedBy.split(" ")),"hint"===this._getDisplayedMessages()){const i=this._hintChildren?this._hintChildren.find(s=>"start"===s.align):null,r=this._hintChildren?this._hintChildren.find(s=>"end"===s.align):null;i?t.push(i.id):this._hintLabel&&t.push(this._hintLabelId),r&&t.push(r.id)}else this._errorChildren&&t.push(...this._errorChildren.map(i=>i.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null,i=this._connectionContainerRef.nativeElement,r=".mat-form-field-outline-start",s=".mat-form-field-outline-gap";if("outline"!==this.appearance||!this._platform.isBrowser)return;if(!t||!t.children.length||!t.textContent.trim()){const u=i.querySelectorAll(`${r}, ${s}`);for(let d=0;d<u.length;d++)u[d].style.width="0";return}if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let o=0,a=0;const l=i.querySelectorAll(r),c=i.querySelectorAll(s);if(this._label&&this._label.nativeElement.children.length){const u=i.getBoundingClientRect();if(0===u.width&&0===u.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const d=this._getStartEnd(u),h=t.children,f=this._getStartEnd(h[0].getBoundingClientRect());let p=0;for(let m=0;m<h.length;m++)p+=h[m].offsetWidth;o=Math.abs(f-d)-5,a=p>0?.75*p+10:0}for(let u=0;u<l.length;u++)l[u].style.width=`${o}px`;for(let u=0;u<c.length;u++)c[u].style.width=`${a}px`;this._outlineGapCalculationNeededOnStable=this._outlineGapCalculationNeededImmediately=!1}_getStartEnd(t){return this._dir&&"rtl"===this._dir.value?t.right:t.left}_isAttachedToDOM(){const t=this._elementRef.nativeElement;if(t.getRootNode){const i=t.getRootNode();return i&&i!==t}return document.documentElement.contains(t)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(wi),_(Ch,8),_(aL,8),_(hn),_(he),_(Hs,8))},n.\u0275cmp=ci({type:n,selectors:[["mat-form-field"]],contentQueries:function(t,i,r){if(1&t&&(zt(r,Ah,5),zt(r,Ah,7),zt(r,Th,5),zt(r,Th,7),zt(r,nL,5),zt(r,PD,5),zt(r,LD,5),zt(r,iL,5),zt(r,rL,5)),2&t){let s;Xe(s=Je())&&(i._controlNonStatic=s.first),Xe(s=Je())&&(i._controlStatic=s.first),Xe(s=Je())&&(i._labelChildNonStatic=s.first),Xe(s=Je())&&(i._labelChildStatic=s.first),Xe(s=Je())&&(i._placeholderChild=s.first),Xe(s=Je())&&(i._errorChildren=s),Xe(s=Je())&&(i._hintChildren=s),Xe(s=Je())&&(i._prefixChildren=s),Xe(s=Je())&&(i._suffixChildren=s)}},viewQuery:function(t,i){if(1&t&&(Ci(k1,7),Ci(P1,5),Ci(L1,5)),2&t){let r;Xe(r=Je())&&(i._connectionContainerRef=r.first),Xe(r=Je())&&(i._inputContainerRef=r.first),Xe(r=Je())&&(i._label=r.first)}},hostAttrs:[1,"mat-form-field"],hostVars:40,hostBindings:function(t,i){2&t&&Ut("mat-form-field-appearance-standard","standard"==i.appearance)("mat-form-field-appearance-fill","fill"==i.appearance)("mat-form-field-appearance-outline","outline"==i.appearance)("mat-form-field-appearance-legacy","legacy"==i.appearance)("mat-form-field-invalid",i._control.errorState)("mat-form-field-can-float",i._canLabelFloat())("mat-form-field-should-float",i._shouldLabelFloat())("mat-form-field-has-label",i._hasFloatingLabel())("mat-form-field-hide-placeholder",i._hideControlPlaceholder())("mat-form-field-disabled",i._control.disabled)("mat-form-field-autofilled",i._control.autofilled)("mat-focused",i._control.focused)("ng-untouched",i._shouldForward("untouched"))("ng-touched",i._shouldForward("touched"))("ng-pristine",i._shouldForward("pristine"))("ng-dirty",i._shouldForward("dirty"))("ng-valid",i._shouldForward("valid"))("ng-invalid",i._shouldForward("invalid"))("ng-pending",i._shouldForward("pending"))("_mat-animation-noopable",!i._animationsEnabled)},inputs:{color:"color",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel",floatLabel:"floatLabel"},exportAs:["matFormField"],features:[te([{provide:Ih,useExisting:n}]),K],ngContentSelectors:Z1,decls:15,vars:8,consts:[[1,"mat-form-field-wrapper"],[1,"mat-form-field-flex",3,"click"],["connectionContainer",""],[4,"ngIf"],["class","mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent",4,"ngIf"],[1,"mat-form-field-infix"],["inputContainer",""],[1,"mat-form-field-label-wrapper"],["class","mat-form-field-label",3,"cdkObserveContentDisabled","id","mat-empty","mat-form-field-empty","mat-accent","mat-warn","ngSwitch","cdkObserveContent",4,"ngIf"],["class","mat-form-field-suffix",4,"ngIf"],["class","mat-form-field-underline",4,"ngIf"],[1,"mat-form-field-subscript-wrapper",3,"ngSwitch"],[4,"ngSwitchCase"],["class","mat-form-field-hint-wrapper",4,"ngSwitchCase"],[1,"mat-form-field-outline"],[1,"mat-form-field-outline-start"],[1,"mat-form-field-outline-gap"],[1,"mat-form-field-outline-end"],[1,"mat-form-field-outline","mat-form-field-outline-thick"],[1,"mat-form-field-prefix",3,"cdkObserveContentDisabled","cdkObserveContent"],[1,"mat-form-field-label",3,"cdkObserveContentDisabled","id","ngSwitch","cdkObserveContent"],["label",""],["class","mat-placeholder-required mat-form-field-required-marker","aria-hidden","true",4,"ngIf"],["aria-hidden","true",1,"mat-placeholder-required","mat-form-field-required-marker"],[1,"mat-form-field-suffix"],[1,"mat-form-field-underline"],[1,"mat-form-field-ripple"],[1,"mat-form-field-hint-wrapper"],["class","mat-hint",3,"id",4,"ngIf"],[1,"mat-form-field-hint-spacer"],[1,"mat-hint",3,"id"]],template:function(t,i){1&t&&(Ko(Y1),oe(0,"div",0)(1,"div",1,2),qe("click",function(s){return i._control.onContainerClick&&i._control.onContainerClick(s)}),Qe(3,V1,9,0,"ng-container",3),Qe(4,B1,2,1,"div",4),oe(5,"div",5,6),sn(7),oe(8,"span",7),Qe(9,U1,5,16,"label",8),de()(),Qe(10,z1,2,0,"div",9),de(),Qe(11,G1,2,4,"div",10),oe(12,"div",11),Qe(13,W1,2,1,"div",12),Qe(14,K1,5,2,"div",13),de()()),2&t&&(se(3),ee("ngIf","outline"==i.appearance),se(1),ee("ngIf",i._prefixChildren.length),se(5),ee("ngIf",i._hasFloatingLabel()),se(1),ee("ngIf",i._suffixChildren.length),se(1),ee("ngIf","outline"!=i.appearance),se(1),ee("ngSwitch",i._getDisplayedMessages()),se(1),ee("ngSwitchCase","error"),se(1),ee("ngSwitchCase","hint"))},directives:[Da,w1,wa,Jy],styles:[".mat-form-field{display:inline-block;position:relative;text-align:left}[dir=rtl] .mat-form-field{text-align:right}.mat-form-field-wrapper{position:relative}.mat-form-field-flex{display:inline-flex;align-items:baseline;box-sizing:border-box;width:100%}.mat-form-field-prefix,.mat-form-field-suffix{white-space:nowrap;flex:none;position:relative}.mat-form-field-infix{display:block;position:relative;flex:auto;min-width:0;width:180px}.cdk-high-contrast-active .mat-form-field-infix{border-image:linear-gradient(transparent, transparent)}.mat-form-field-label-wrapper{position:absolute;left:0;box-sizing:content-box;width:100%;height:100%;overflow:hidden;pointer-events:none}[dir=rtl] .mat-form-field-label-wrapper{left:auto;right:0}.mat-form-field-label{position:absolute;left:0;font:inherit;pointer-events:none;width:100%;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;transform-origin:0 0;transition:transform 400ms cubic-bezier(0.25, 0.8, 0.25, 1),color 400ms cubic-bezier(0.25, 0.8, 0.25, 1),width 400ms cubic-bezier(0.25, 0.8, 0.25, 1);display:none}[dir=rtl] .mat-form-field-label{transform-origin:100% 0;left:auto;right:0}.mat-form-field-empty.mat-form-field-label,.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-label{display:block}.mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-form-field-autofill-control:-webkit-autofill+.mat-form-field-label-wrapper .mat-form-field-label{display:block;transition:none}.mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:none}.mat-form-field-can-float .mat-input-server:focus+.mat-form-field-label-wrapper .mat-form-field-label,.mat-form-field-can-float .mat-input-server[placeholder]:not(:placeholder-shown)+.mat-form-field-label-wrapper .mat-form-field-label{display:block}.mat-form-field-label:not(.mat-form-field-empty){transition:none}.mat-form-field-underline{position:absolute;width:100%;pointer-events:none;transform:scale3d(1, 1.0001, 1)}.mat-form-field-ripple{position:absolute;left:0;width:100%;transform-origin:50%;transform:scaleX(0.5);opacity:0;transition:background-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2)}.mat-form-field.mat-focused .mat-form-field-ripple,.mat-form-field.mat-form-field-invalid .mat-form-field-ripple{opacity:1;transform:none;transition:transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1),opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1),background-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-subscript-wrapper{position:absolute;box-sizing:border-box;width:100%;overflow:hidden}.mat-form-field-subscript-wrapper .mat-icon,.mat-form-field-label-wrapper .mat-icon{width:1em;height:1em;font-size:inherit;vertical-align:baseline}.mat-form-field-hint-wrapper{display:flex}.mat-form-field-hint-spacer{flex:1 0 1em}.mat-error{display:block}.mat-form-field-control-wrapper{position:relative}.mat-form-field-hint-end{order:1}.mat-form-field._mat-animation-noopable .mat-form-field-label,.mat-form-field._mat-animation-noopable .mat-form-field-ripple{transition:none}\n",'.mat-form-field-appearance-fill .mat-form-field-flex{border-radius:4px 4px 0 0;padding:.75em .75em 0 .75em}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-flex{outline:solid 1px}.cdk-high-contrast-active .mat-form-field-appearance-fill.mat-focused .mat-form-field-flex{outline:dashed 3px}.mat-form-field-appearance-fill .mat-form-field-underline::before{content:"";display:block;position:absolute;bottom:0;height:1px;width:100%}.mat-form-field-appearance-fill .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-fill .mat-form-field-ripple{height:0}.mat-form-field-appearance-fill:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-fill._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}.mat-form-field-appearance-fill .mat-form-field-subscript-wrapper{padding:0 1em}\n','.mat-input-element{font:inherit;background:transparent;color:currentColor;border:none;outline:none;padding:0;margin:0;width:100%;max-width:100%;vertical-align:bottom;text-align:inherit;box-sizing:content-box}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element,.mat-input-element::-webkit-search-cancel-button,.mat-input-element::-webkit-search-decoration,.mat-input-element::-webkit-search-results-button,.mat-input-element::-webkit-search-results-decoration{-webkit-appearance:none}.mat-input-element::-webkit-contacts-auto-fill-button,.mat-input-element::-webkit-caps-lock-indicator,.mat-input-element:not([type=password])::-webkit-credentials-auto-fill-button{visibility:hidden}.mat-input-element[type=date],.mat-input-element[type=datetime],.mat-input-element[type=datetime-local],.mat-input-element[type=month],.mat-input-element[type=week],.mat-input-element[type=time]{line-height:1}.mat-input-element[type=date]::after,.mat-input-element[type=datetime]::after,.mat-input-element[type=datetime-local]::after,.mat-input-element[type=month]::after,.mat-input-element[type=week]::after,.mat-input-element[type=time]::after{content:" ";white-space:pre;width:1px}.mat-input-element::-webkit-inner-spin-button,.mat-input-element::-webkit-calendar-picker-indicator,.mat-input-element::-webkit-clear-button{font-size:.75em}.mat-input-element::placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{opacity:0}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.cdk-high-contrast-active .mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{opacity:0}textarea.mat-input-element{resize:vertical;overflow:auto}textarea.mat-input-element.cdk-textarea-autosize{resize:none}textarea.mat-input-element{padding:2px 0;margin:-2px 0}select.mat-input-element{-moz-appearance:none;-webkit-appearance:none;position:relative;background-color:transparent;display:inline-flex;box-sizing:border-box;padding-top:1em;top:-1em;margin-bottom:-1em}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}.mat-form-field-type-mat-native-select .mat-form-field-infix::after{content:"";width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;position:absolute;top:50%;right:0;margin-top:-2.5px;pointer-events:none}[dir=rtl] .mat-form-field-type-mat-native-select .mat-form-field-infix::after{right:auto;left:0}.mat-form-field-type-mat-native-select .mat-input-element{padding-right:15px}[dir=rtl] .mat-form-field-type-mat-native-select .mat-input-element{padding-right:0;padding-left:15px}.mat-form-field-type-mat-native-select .mat-form-field-label-wrapper{max-width:calc(100% - 10px)}.mat-form-field-type-mat-native-select.mat-form-field-appearance-outline .mat-form-field-infix::after{margin-top:-5px}.mat-form-field-type-mat-native-select.mat-form-field-appearance-fill .mat-form-field-infix::after{margin-top:-10px}\n',".mat-form-field-appearance-legacy .mat-form-field-label{transform:perspective(100px)}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon{width:1em}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button{font:inherit;vertical-align:baseline}.mat-form-field-appearance-legacy .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-icon-button .mat-icon{font-size:inherit}.mat-form-field-appearance-legacy .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-legacy .mat-form-field-ripple{top:0;height:2px;overflow:hidden}.cdk-high-contrast-active .mat-form-field-appearance-legacy .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-legacy.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-legacy.mat-form-field-invalid:not(.mat-focused) .mat-form-field-ripple{height:1px}\n",".mat-form-field-appearance-outline .mat-form-field-wrapper{margin:.25em 0}.mat-form-field-appearance-outline .mat-form-field-flex{padding:0 .75em 0 .75em;margin-top:-0.25em;position:relative}.mat-form-field-appearance-outline .mat-form-field-prefix,.mat-form-field-appearance-outline .mat-form-field-suffix{top:.25em}.mat-form-field-appearance-outline .mat-form-field-outline{display:flex;position:absolute;top:.25em;left:0;right:0;bottom:0;pointer-events:none}.mat-form-field-appearance-outline .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-end{border:1px solid currentColor;min-width:5px}.mat-form-field-appearance-outline .mat-form-field-outline-start{border-radius:5px 0 0 5px;border-right-style:none}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-start{border-right-style:solid;border-left-style:none;border-radius:0 5px 5px 0}.mat-form-field-appearance-outline .mat-form-field-outline-end{border-radius:0 5px 5px 0;border-left-style:none;flex-grow:1}[dir=rtl] .mat-form-field-appearance-outline .mat-form-field-outline-end{border-left-style:solid;border-right-style:none;border-radius:5px 0 0 5px}.mat-form-field-appearance-outline .mat-form-field-outline-gap{border-radius:.000001px;border:1px solid currentColor;border-left-style:none;border-right-style:none}.mat-form-field-appearance-outline.mat-form-field-can-float.mat-form-field-should-float .mat-form-field-outline-gap{border-top-color:transparent}.mat-form-field-appearance-outline .mat-form-field-outline-thick{opacity:0}.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-start,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-end,.mat-form-field-appearance-outline .mat-form-field-outline-thick .mat-form-field-outline-gap{border-width:2px}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline{opacity:0;transition:opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick,.mat-form-field-appearance-outline.mat-form-field-invalid .mat-form-field-outline-thick{opacity:1}.cdk-high-contrast-active .mat-form-field-appearance-outline.mat-focused .mat-form-field-outline-thick{border:3px dashed}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline{opacity:0;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-outline:not(.mat-form-field-disabled) .mat-form-field-flex:hover .mat-form-field-outline-thick{opacity:1}.mat-form-field-appearance-outline .mat-form-field-subscript-wrapper{padding:0 1em}.mat-form-field-appearance-outline._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-start,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-end,.mat-form-field-appearance-outline._mat-animation-noopable .mat-form-field-outline-gap{transition:none}\n",".mat-form-field-appearance-standard .mat-form-field-flex{padding-top:.75em}.mat-form-field-appearance-standard .mat-form-field-underline{height:1px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-underline{height:0;border-top:solid 1px}.mat-form-field-appearance-standard .mat-form-field-ripple{bottom:0;height:2px}.cdk-high-contrast-active .mat-form-field-appearance-standard .mat-form-field-ripple{height:0;border-top:solid 2px}.mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{background-position:0;background-color:transparent}.cdk-high-contrast-active .mat-form-field-appearance-standard.mat-form-field-disabled .mat-form-field-underline{border-top-style:dotted;border-top-width:2px}.mat-form-field-appearance-standard:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{opacity:1;transform:none;transition:opacity 600ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-form-field-appearance-standard._mat-animation-noopable:not(.mat-form-field-disabled) .mat-form-field-flex:hover~.mat-form-field-underline .mat-form-field-ripple{transition:none}\n"],encapsulation:2,data:{animation:[J1.transitionMessages]},changeDetection:0}),n})(),Fh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[Ma,jn,M1],jn]}),n})();const jD=tl({passive:!0});let cL=(()=>{class n{constructor(t,i){this._platform=t,this._ngZone=i,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return yv;const i=Fr(t),r=this._monitoredElements.get(i);if(r)return r.subject;const s=new we,o="cdk-text-field-autofilled",a=l=>{"cdk-text-field-autofill-start"!==l.animationName||i.classList.contains(o)?"cdk-text-field-autofill-end"===l.animationName&&i.classList.contains(o)&&(i.classList.remove(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!1}))):(i.classList.add(o),this._ngZone.run(()=>s.next({target:l.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{i.addEventListener("animationstart",a,jD),i.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(i,{subject:s,unlisten:()=>{i.removeEventListener("animationstart",a,jD)}}),s}stopMonitoring(t){const i=Fr(t),r=this._monitoredElements.get(i);r&&(r.unlisten(),r.subject.complete(),i.classList.remove("cdk-text-field-autofill-monitored"),i.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(i))}ngOnDestroy(){this._monitoredElements.forEach((t,i)=>this.stopMonitoring(i))}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(he))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),HD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[Kd]]}),n})();const uL=new A("MAT_INPUT_VALUE_ACCESSOR"),dL=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let hL=0;const fL=a1(class{constructor(n,e,t,i){this._defaultErrorStateMatcher=n,this._parentForm=e,this._parentFormGroup=t,this.ngControl=i}});let $D=(()=>{class n extends fL{constructor(t,i,r,s,o,a,l,c,u,d){super(a,s,o,r),this._elementRef=t,this._platform=i,this._autofillMonitor=c,this._formField=d,this._uid="mat-input-"+hL++,this.focused=!1,this.stateChanges=new we,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(p=>lb().has(p));const h=this._elementRef.nativeElement,f=h.nodeName.toLowerCase();this._inputValueAccessor=l||h,this._previousNativeValue=this.value,this.id=this.id,i.IOS&&u.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",p=>{const m=p.target;!m.value&&0===m.selectionStart&&0===m.selectionEnd&&(m.setSelectionRange(1,1),m.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===f,this._isTextarea="textarea"===f,this._isInFormField=!!d,this._isNativeSelect&&(this.controlType=h.multiple?"mat-native-select-multiple":"mat-native-select")}get disabled(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled}set disabled(t){this._disabled=Vn(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){var t,i,r,s;return null!==(s=null!==(t=this._required)&&void 0!==t?t:null===(r=null===(i=this.ngControl)||void 0===i?void 0:i.control)||void 0===r?void 0:r.hasValidator(bk.required))&&void 0!==s&&s}set required(t){this._required=Vn(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&lb().has(this._type)&&(this._elementRef.nativeElement.type=this._type)}get value(){return this._inputValueAccessor.value}set value(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())}get readonly(){return this._readonly}set readonly(t){this._readonly=Vn(t)}ngAfterViewInit(){this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(t=>{this.autofilled=t.isAutofilled,this.stateChanges.next()})}ngOnChanges(){this.stateChanges.next()}ngOnDestroy(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)}ngDoCheck(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue(),this._dirtyCheckPlaceholder()}focus(t){this._elementRef.nativeElement.focus(t)}_focusChanged(t){t!==this.focused&&(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,i;const r=(null===(i=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===i?void 0:i.call(t))?null:this.placeholder;if(r!==this._previousPlaceholder){const s=this._elementRef.nativeElement;this._previousPlaceholder=r,r?s.setAttribute("placeholder",r):s.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){dL.indexOf(this._type)}_isNeverEmpty(){return this._neverEmptyInputTypes.indexOf(this._type)>-1}_isBadInput(){let t=this._elementRef.nativeElement.validity;return t&&t.badInput}get empty(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)}get shouldLabelFloat(){if(this._isNativeSelect){const t=this._elementRef.nativeElement,i=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&i&&i.label)}return this.focused||!this.empty}setDescribedByIds(t){t.length?this._elementRef.nativeElement.setAttribute("aria-describedby",t.join(" ")):this._elementRef.nativeElement.removeAttribute("aria-describedby")}onContainerClick(){this.focused||this.focus()}_isInlineSelect(){const t=this._elementRef.nativeElement;return this._isNativeSelect&&(t.multiple||t.size>1)}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(hn),_(Bn,10),_(pl,8),_(ml,8),_(wD),_(uL,10),_(cL),_(he),_(Ih,8))},n.\u0275dir=I({type:n,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:12,hostBindings:function(t,i){1&t&&qe("focus",function(){return i._focusChanged(!0)})("blur",function(){return i._focusChanged(!1)})("input",function(){return i._onInput()}),2&t&&(Zo("disabled",i.disabled)("required",i.required),at("id",i.id)("data-placeholder",i.placeholder)("name",i.name||null)("readonly",i.readonly&&!i._isNativeSelect||null)("aria-invalid",i.empty&&i.required?null:i.errorState)("aria-required",i.required),Ut("mat-input-server",i._isServer)("mat-native-select-inline",i._isInlineSelect()))},inputs:{disabled:"disabled",id:"id",placeholder:"placeholder",name:"name",required:"required",type:"type",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"],value:"value",readonly:"readonly"},exportAs:["matInput"],features:[te([{provide:Ah,useExisting:n}]),K,en]}),n})(),pL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:[wD],imports:[[HD,Fh,jn],HD,Fh]}),n})(),mL=(()=>{class n{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new hh(""),this.onEnter$=new we,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(wh(100)).subscribe(()=>{var t;this.shouldValueChange(this.formControl.value)&&(null===(t=this.onEnter)||void 0===t||t.call(this,{value:this.modifyValueBeforeChange(this.formControl.value)}))}),this.valueChanges$=this.formControl.valueChanges.pipe(Nr(t=>(this.valueCanBeChanged=this.shouldValueChange(t),this.valueCanBeChanged))).subscribe(t=>{this.updateOnBlur||this.triggerValueChange(t)})}triggerValueChange(t){this.onValueChange&&this.onValueChange({value:this.modifyValueBeforeChange(t)})}onEnterKeydown(t){this.onEnter$.next()}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var i;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(i=this.input)||void 0===i?void 0:i.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe(),this.onEnter$&&this.onEnter$.unsubscribe()}}return n.\u0275fac=function(t){return new(t||n)},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),gL=(()=>{class n extends mL{constructor(){super(...arguments),this.filteredSuggestions=[]}ngOnChanges(t){super.ngOnChanges(t),this.filter()}ngOnInit(){super.ngOnInit(),this.autocompleteChanges$=this.formControl.valueChanges.subscribe(()=>this.filter())}ngOnDestroy(){super.ngOnDestroy(),this.autocompleteChanges$&&this.autocompleteChanges$.unsubscribe()}get suggestionStyle(){return 1!==this.filteredSuggestions.length||this.filteredSuggestions[0]?null:{display:"none"}}filter(){var t;const i=`${this.formControl.value||""}`.toLowerCase();this.filteredSuggestions=(null===(t=this.suggestions)||void 0===t?void 0:t.filter(r=>{var s,o;return(null===(o=null===(s=r.label)||void 0===s?void 0:s.toLowerCase())||void 0===o?void 0:o.includes(i))||""}))||[],this.filteredSuggestions=this.filteredSuggestions.length?this.filteredSuggestions:[null]}triggerFocus(){var t;null===(t=this.onFocus)||void 0===t||t.call(this)}optionSelected(t){this.onEnter$.next()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();var _L=Bh(959);new class bL extends dn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class vL extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=requestAnimationFrame(()=>e.flush(null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(cancelAnimationFrame(t),e.scheduled=void 0)}});let CL=1;const EL=Promise.resolve(),vl={};function UD(n){return n in vl&&(delete vl[n],!0)}const zD={setImmediate(n){const e=CL++;return vl[e]=!0,EL.then(()=>UD(e)&&n()),e},clearImmediate(n){UD(n)}};new class ML extends dn{flush(e){this.active=!0,this.scheduled=void 0;const{actions:t}=this;let i,r=-1,s=t.length;e=e||t.shift();do{if(i=e.execute(e.state,e.delay))break}while(++r<s&&(e=t.shift()));if(this.active=!1,i){for(;++r<s&&(e=t.shift());)e.unsubscribe();throw i}}}(class wL extends Oa{constructor(e,t){super(e,t),this.scheduler=e,this.work=t}requestAsyncId(e,t,i=0){return null!==i&&i>0?super.requestAsyncId(e,t,i):(e.actions.push(this),e.scheduled||(e.scheduled=zD.setImmediate(e.flush.bind(e,null))))}recycleAsyncId(e,t,i=0){if(null!==i&&i>0||null===i&&this.delay>0)return super.recycleAsyncId(e,t,i);0===e.actions.length&&(zD.clearImmediate(t),e.scheduled=void 0)}});class TL{constructor(e){this.durationSelector=e}call(e,t){return t.subscribe(new IL(e,this.durationSelector))}}class IL extends eo{constructor(e,t){super(e),this.durationSelector=t,this.hasValue=!1}_next(e){if(this.value=e,this.hasValue=!0,!this.throttled){let t;try{const{durationSelector:r}=this;t=r(e)}catch(r){return this.destination.error(r)}const i=to(t,new Js(this));!i||i.closed?this.clearThrottle():this.add(this.throttled=i)}}clearThrottle(){const{value:e,hasValue:t,throttled:i}=this;i&&(this.remove(i),this.throttled=void 0,i.unsubscribe()),t&&(this.value=void 0,this.hasValue=!1,this.destination.next(e))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function GD(n){return!J(n)&&n-parseFloat(n)+1>=0}function OL(n){const{index:e,period:t,subscriber:i}=n;if(i.next(e),!i.closed){if(-1===t)return i.complete();n.index=e+1,this.schedule(n,t)}}function WD(n,e=gl){return function AL(n){return function(t){return t.lift(new TL(n))}}(()=>function FL(n=0,e,t){let i=-1;return GD(e)?i=Number(e)<1?1:Number(e):jr(e)&&(t=e),jr(t)||(t=gl),new _e(r=>{const s=GD(n)?n:+n-t.now();return t.schedule(OL,s,{index:0,period:i,subscriber:r})})}(n,e))}let RL=(()=>{class n{constructor(t,i,r){this._ngZone=t,this._platform=i,this._scrolled=new we,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=r}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const i=this.scrollContainers.get(t);i&&(i.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new _e(i=>{this._globalSubscription||this._addGlobalListener();const r=t>0?this._scrolled.pipe(WD(t)).subscribe(i):this._scrolled.subscribe(i);return this._scrolledCount++,()=>{r.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):xa()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,i)=>this.deregister(i)),this._scrolled.complete()}ancestorScrolled(t,i){const r=this.getAncestorScrollContainers(t);return this.scrolled(i).pipe(Nr(s=>!s||r.indexOf(s)>-1))}getAncestorScrollContainers(t){const i=[];return this.scrollContainers.forEach((r,s)=>{this._scrollableContainsElement(s,t)&&i.push(s)}),i}_getWindow(){return this._document.defaultView||window}_scrollableContainsElement(t,i){let r=Fr(i),s=t.getElementRef().nativeElement;do{if(r==s)return!0}while(r=r.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>kr(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return n.\u0275fac=function(t){return new(t||n)(D(he),D(hn),D(fe,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),Oh=(()=>{class n{constructor(t,i,r){this._platform=t,this._change=new we,this._changeListener=s=>{this._change.next(s)},this._document=r,i.runOutsideAngular(()=>{if(t.isBrowser){const s=this._getWindow();s.addEventListener("resize",this._changeListener),s.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._viewportSize=null)})}ngOnDestroy(){if(this._platform.isBrowser){const t=this._getWindow();t.removeEventListener("resize",this._changeListener),t.removeEventListener("orientationchange",this._changeListener)}this._change.complete()}getViewportSize(){this._viewportSize||this._updateViewportSize();const t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t}getViewportRect(){const t=this.getViewportScrollPosition(),{width:i,height:r}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+i,height:r,width:i}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._document,i=this._getWindow(),r=t.documentElement,s=r.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||i.scrollY||r.scrollTop||0,left:-s.left||t.body.scrollLeft||i.scrollX||r.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(WD(t)):this._change}_getWindow(){return this._document.defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return n.\u0275fac=function(t){return new(t||n)(D(hn),D(he),D(fe,8))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),xh=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})(),qD=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({imports:[[qs,Kd,xh],qs,xh]}),n})();class Rh{attach(e){return this._attachedHost=e,e.attach(this)}detach(){let e=this._attachedHost;null!=e&&(this._attachedHost=null,e.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(e){this._attachedHost=e}}class kL extends Rh{constructor(e,t,i,r){super(),this.component=e,this.viewContainerRef=t,this.injector=i,this.componentFactoryResolver=r}}class KD extends Rh{constructor(e,t,i){super(),this.templateRef=e,this.viewContainerRef=t,this.context=i}get origin(){return this.templateRef.elementRef}attach(e,t=this.context){return this.context=t,super.attach(e)}detach(){return this.context=void 0,super.detach()}}class PL extends Rh{constructor(e){super(),this.element=e instanceof Re?e.nativeElement:e}}class VL extends class LL{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(e){return e instanceof kL?(this._attachedPortal=e,this.attachComponentPortal(e)):e instanceof KD?(this._attachedPortal=e,this.attachTemplatePortal(e)):this.attachDomPortal&&e instanceof PL?(this._attachedPortal=e,this.attachDomPortal(e)):void 0}detach(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()}dispose(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0}setDisposeFn(e){this._disposeFn=e}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(e,t,i,r,s){super(),this.outletElement=e,this._componentFactoryResolver=t,this._appRef=i,this._defaultInjector=r,this.attachDomPortal=o=>{const a=o.element,l=this._document.createComment("dom-portal");a.parentNode.insertBefore(l,a),this.outletElement.appendChild(a),this._attachedPortal=o,super.setDisposeFn(()=>{l.parentNode&&l.parentNode.replaceChild(a,l)})},this._document=s}attachComponentPortal(e){const i=(e.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(e.component);let r;return e.viewContainerRef?(r=e.viewContainerRef.createComponent(i,e.viewContainerRef.length,e.injector||e.viewContainerRef.injector),this.setDisposeFn(()=>r.destroy())):(r=i.create(e.injector||this._defaultInjector),this._appRef.attachView(r.hostView),this.setDisposeFn(()=>{this._appRef.detachView(r.hostView),r.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(r)),this._attachedPortal=e,r}attachTemplatePortal(e){let t=e.viewContainerRef,i=t.createEmbeddedView(e.templateRef,e.context);return i.rootNodes.forEach(r=>this.outletElement.appendChild(r)),i.detectChanges(),this.setDisposeFn(()=>{let r=t.indexOf(i);-1!==r&&t.remove(r)}),this._attachedPortal=e,i}dispose(){super.dispose(),this.outletElement.remove()}_getComponentRootNode(e){return e.hostView.rootNodes[0]}}let BL=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({}),n})();const YD=hk();class jL{constructor(e,t){this._viewportRuler=e,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=t}attach(){}enable(){if(this._canBeEnabled()){const e=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=e.style.left||"",this._previousHTMLStyles.top=e.style.top||"",e.style.left=$e(-this._previousScrollPosition.left),e.style.top=$e(-this._previousScrollPosition.top),e.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const e=this._document.documentElement,i=e.style,r=this._document.body.style,s=i.scrollBehavior||"",o=r.scrollBehavior||"";this._isEnabled=!1,i.left=this._previousHTMLStyles.left,i.top=this._previousHTMLStyles.top,e.classList.remove("cdk-global-scrollblock"),YD&&(i.scrollBehavior=r.scrollBehavior="auto"),window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),YD&&(i.scrollBehavior=s,r.scrollBehavior=o)}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,i=this._viewportRuler.getViewportSize();return t.scrollHeight>i.height||t.scrollWidth>i.width}}class HL{constructor(e,t,i,r){this._scrollDispatcher=e,this._ngZone=t,this._viewportRuler=i,this._config=r,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(e){this._overlayRef=e}enable(){if(this._scrollSubscription)return;const e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class ZD{enable(){}disable(){}attach(){}}function Nh(n,e){return e.some(t=>n.bottom<t.top||n.top>t.bottom||n.right<t.left||n.left>t.right)}function QD(n,e){return e.some(t=>n.top<t.top||n.bottom>t.bottom||n.left<t.left||n.right>t.right)}class $L{constructor(e,t,i,r){this._scrollDispatcher=e,this._viewportRuler=t,this._ngZone=i,this._config=r,this._scrollSubscription=null}attach(e){this._overlayRef=e}enable(){this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(()=>{if(this._overlayRef.updatePosition(),this._config&&this._config.autoClose){const t=this._overlayRef.overlayElement.getBoundingClientRect(),{width:i,height:r}=this._viewportRuler.getViewportSize();Nh(t,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(this.disable(),this._ngZone.run(()=>this._overlayRef.detach()))}}))}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}let UL=(()=>{class n{constructor(t,i,r,s){this._scrollDispatcher=t,this._viewportRuler=i,this._ngZone=r,this.noop=()=>new ZD,this.close=o=>new HL(this._scrollDispatcher,this._ngZone,this._viewportRuler,o),this.block=()=>new jL(this._viewportRuler,this._document),this.reposition=o=>new $L(this._scrollDispatcher,this._viewportRuler,this._ngZone,o),this._document=s}}return n.\u0275fac=function(t){return new(t||n)(D(RL),D(Oh),D(he),D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();class XD{constructor(e){if(this.scrollStrategy=new ZD,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,e){const t=Object.keys(e);for(const i of t)void 0!==e[i]&&(this[i]=e[i])}}}class zL{constructor(e,t){this.connectionPair=e,this.scrollableViewProperties=t}}class GL{constructor(e,t,i,r,s,o,a,l,c){this._portalOutlet=e,this._host=t,this._pane=i,this._config=r,this._ngZone=s,this._keyboardDispatcher=o,this._document=a,this._location=l,this._outsideClickDispatcher=c,this._backdropElement=null,this._backdropClick=new we,this._attachments=new we,this._detachments=new we,this._locationChanges=z.EMPTY,this._backdropClickHandler=u=>this._backdropClick.next(u),this._keydownEvents=new we,this._outsidePointerEvents=new we,r.scrollStrategy&&(this._scrollStrategy=r.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=r.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(e){let t=this._portalOutlet.attach(e);return!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._positionStrategy&&this._positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._scrollStrategy&&this._scrollStrategy.enable(),this._ngZone.onStable.pipe(Ys(1)).subscribe(()=>{this.hasAttached()&&this.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),this._config.disposeOnNavigation&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher.add(this),t}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const e=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher.remove(this),e}dispose(){var e;const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this._disposeBackdrop(this._backdropElement),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher.remove(this),null===(e=this._host)||void 0===e||e.remove(),this._previousHostParent=this._pane=this._host=null,t&&this._detachments.next(),this._detachments.complete()}hasAttached(){return this._portalOutlet.hasAttached()}backdropClick(){return this._backdropClick}attachments(){return this._attachments}detachments(){return this._detachments}keydownEvents(){return this._keydownEvents}outsidePointerEvents(){return this._outsidePointerEvents}getConfig(){return this._config}updatePosition(){this._positionStrategy&&this._positionStrategy.apply()}updatePositionStrategy(e){e!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=e,this.hasAttached()&&(e.attach(this),this.updatePosition()))}updateSize(e){this._config=Object.assign(Object.assign({},this._config),e),this._updateElementSize()}setDirection(e){this._config=Object.assign(Object.assign({},this._config),{direction:e}),this._updateElementDirection()}addPanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!0)}removePanelClass(e){this._pane&&this._toggleClasses(this._pane,e,!1)}getDirection(){const e=this._config.direction;return e?"string"==typeof e?e:e.value:"ltr"}updateScrollStrategy(e){e!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=e,this.hasAttached()&&(e.attach(this),e.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const e=this._pane.style;e.width=$e(this._config.width),e.height=$e(this._config.height),e.minWidth=$e(this._config.minWidth),e.minHeight=$e(this._config.minHeight),e.maxWidth=$e(this._config.maxWidth),e.maxHeight=$e(this._config.maxHeight)}_togglePointerEvents(e){this._pane.style.pointerEvents=e?"":"none"}_attachBackdrop(){const e="cdk-overlay-backdrop-showing";this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",this._backdropClickHandler),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(()=>{requestAnimationFrame(()=>{this._backdropElement&&this._backdropElement.classList.add(e)})}):this._backdropElement.classList.add(e)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){const e=this._backdropElement;if(!e)return;let t;const i=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",i),this._disposeBackdrop(e)),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),clearTimeout(t)};e.classList.remove("cdk-overlay-backdrop-showing"),this._ngZone.runOutsideAngular(()=>{e.addEventListener("transitionend",i)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(i,500))}_toggleClasses(e,t,i){const r=ob(t||[]).filter(s=>!!s);r.length&&(i?e.classList.add(...r):e.classList.remove(...r))}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const e=this._ngZone.onStable.pipe(yl(Un(this._attachments,this._detachments))).subscribe(()=>{(!this._pane||!this._host||0===this._pane.children.length)&&(this._pane&&this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1),this._host&&this._host.parentElement&&(this._previousHostParent=this._host.parentElement,this._host.remove()),e.unsubscribe())})})}_disposeScrollStrategy(){const e=this._scrollStrategy;e&&(e.disable(),e.detach&&e.detach())}_disposeBackdrop(e){e&&(e.remove(),this._backdropElement===e&&(this._backdropElement=null))}}let kh=(()=>{class n{constructor(t,i){this._platform=i,this._document=t}ngOnDestroy(){var t;null===(t=this._containerElement)||void 0===t||t.remove()}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container";if(this._platform.isBrowser||Qd()){const r=this._document.querySelectorAll(`.${t}[platform="server"], .${t}[platform="test"]`);for(let s=0;s<r.length;s++)r[s].remove()}const i=this._document.createElement("div");i.classList.add(t),Qd()?i.setAttribute("platform","test"):this._platform.isBrowser||i.setAttribute("platform","server"),this._document.body.appendChild(i),this._containerElement=i}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(hn))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})();const JD="cdk-overlay-connected-position-bounding-box",WL=/([A-Za-z%]+)$/;class qL{constructor(e,t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this._scrollables=[],this._preferredPositions=[],this._positionChanges=new we,this._resizeSubscription=z.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(e)}get positions(){return this._preferredPositions}attach(e){this._validatePositions(),e.hostElement.classList.add(JD),this._overlayRef=e,this._boundingBox=e.hostElement,this._pane=e.overlayElement,this._isDisposed=!1,this._isInitialRender=!0,this._lastPosition=null,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(()=>{this._isInitialRender=!0,this.apply()})}apply(){if(this._isDisposed||!this._platform.isBrowser)return;if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)return void this.reapplyLastPosition();this._clearPanelClasses(),this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._originRect,t=this._overlayRect,i=this._viewportRect,r=this._containerRect,s=[];let o;for(let a of this._preferredPositions){let l=this._getOriginPoint(e,r,a),c=this._getOverlayPoint(l,t,a),u=this._getOverlayFit(c,t,i,a);if(u.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,l);this._canFitWithFlexibleDimensions(u,c,i)?s.push({position:a,origin:l,overlayRect:t,boundingBoxRect:this._calculateBoundingBoxRect(l,a)}):(!o||o.overlayFit.visibleArea<u.visibleArea)&&(o={overlayFit:u,overlayPoint:c,originPoint:l,position:a,overlayRect:t})}if(s.length){let a=null,l=-1;for(const c of s){const u=c.boundingBoxRect.width*c.boundingBoxRect.height*(c.position.weight||1);u>l&&(l=u,a=c)}return this._isPushed=!1,void this._applyPosition(a.position,a.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(o.position,o.originPoint);this._applyPosition(o.position,o.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Ni(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(JD),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)}reapplyLastPosition(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect(),this._containerRect=this._overlayContainer.getContainerElement().getBoundingClientRect();const e=this._lastPosition||this._preferredPositions[0],t=this._getOriginPoint(this._originRect,this._containerRect,e);this._applyPosition(e,t)}}withScrollableContainers(e){return this._scrollables=e,this}withPositions(e){return this._preferredPositions=e,-1===e.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(e){return this._viewportMargin=e,this}withFlexibleDimensions(e=!0){return this._hasFlexibleDimensions=e,this}withGrowAfterOpen(e=!0){return this._growAfterOpen=e,this}withPush(e=!0){return this._canPush=e,this}withLockedPosition(e=!0){return this._positionLocked=e,this}setOrigin(e){return this._origin=e,this}withDefaultOffsetX(e){return this._offsetX=e,this}withDefaultOffsetY(e){return this._offsetY=e,this}withTransformOriginOn(e){return this._transformOriginSelector=e,this}_getOriginPoint(e,t,i){let r,s;if("center"==i.originX)r=e.left+e.width/2;else{const o=this._isRtl()?e.right:e.left,a=this._isRtl()?e.left:e.right;r="start"==i.originX?o:a}return t.left<0&&(r-=t.left),s="center"==i.originY?e.top+e.height/2:"top"==i.originY?e.top:e.bottom,t.top<0&&(s-=t.top),{x:r,y:s}}_getOverlayPoint(e,t,i){let r,s;return r="center"==i.overlayX?-t.width/2:"start"===i.overlayX?this._isRtl()?-t.width:0:this._isRtl()?0:-t.width,s="center"==i.overlayY?-t.height/2:"top"==i.overlayY?0:-t.height,{x:e.x+r,y:e.y+s}}_getOverlayFit(e,t,i,r){const s=tC(t);let{x:o,y:a}=e,l=this._getOffset(r,"x"),c=this._getOffset(r,"y");l&&(o+=l),c&&(a+=c);let h=0-a,f=a+s.height-i.height,p=this._subtractOverflows(s.width,0-o,o+s.width-i.width),m=this._subtractOverflows(s.height,h,f),y=p*m;return{visibleArea:y,isCompletelyWithinViewport:s.width*s.height===y,fitsInViewportVertically:m===s.height,fitsInViewportHorizontally:p==s.width}}_canFitWithFlexibleDimensions(e,t,i){if(this._hasFlexibleDimensions){const r=i.bottom-t.y,s=i.right-t.x,o=eC(this._overlayRef.getConfig().minHeight),a=eC(this._overlayRef.getConfig().minWidth),c=e.fitsInViewportHorizontally||null!=a&&a<=s;return(e.fitsInViewportVertically||null!=o&&o<=r)&&c}return!1}_pushOverlayOnScreen(e,t,i){if(this._previousPushAmount&&this._positionLocked)return{x:e.x+this._previousPushAmount.x,y:e.y+this._previousPushAmount.y};const r=tC(t),s=this._viewportRect,o=Math.max(e.x+r.width-s.width,0),a=Math.max(e.y+r.height-s.height,0),l=Math.max(s.top-i.top-e.y,0),c=Math.max(s.left-i.left-e.x,0);let u=0,d=0;return u=r.width<=s.width?c||-o:e.x<this._viewportMargin?s.left-i.left-e.x:0,d=r.height<=s.height?l||-a:e.y<this._viewportMargin?s.top-i.top-e.y:0,this._previousPushAmount={x:u,y:d},{x:e.x+u,y:e.y+d}}_applyPosition(e,t){if(this._setTransformOrigin(e),this._setOverlayElementStyles(t,e),this._setBoundingBoxStyles(t,e),e.panelClass&&this._addPanelClasses(e.panelClass),this._lastPosition=e,this._positionChanges.observers.length){const i=this._getScrollVisibility(),r=new zL(e,i);this._positionChanges.next(r)}this._isInitialRender=!1}_setTransformOrigin(e){if(!this._transformOriginSelector)return;const t=this._boundingBox.querySelectorAll(this._transformOriginSelector);let i,r=e.overlayY;i="center"===e.overlayX?"center":this._isRtl()?"start"===e.overlayX?"right":"left":"start"===e.overlayX?"left":"right";for(let s=0;s<t.length;s++)t[s].style.transformOrigin=`${i} ${r}`}_calculateBoundingBoxRect(e,t){const i=this._viewportRect,r=this._isRtl();let s,o,a,u,d,h;if("top"===t.overlayY)o=e.y,s=i.height-o+this._viewportMargin;else if("bottom"===t.overlayY)a=i.height-e.y+2*this._viewportMargin,s=i.height-a+this._viewportMargin;else{const f=Math.min(i.bottom-e.y+i.top,e.y),p=this._lastBoundingBoxSize.height;s=2*f,o=e.y-f,s>p&&!this._isInitialRender&&!this._growAfterOpen&&(o=e.y-p/2)}if("end"===t.overlayX&&!r||"start"===t.overlayX&&r)h=i.width-e.x+this._viewportMargin,u=e.x-this._viewportMargin;else if("start"===t.overlayX&&!r||"end"===t.overlayX&&r)d=e.x,u=i.right-e.x;else{const f=Math.min(i.right-e.x+i.left,e.x),p=this._lastBoundingBoxSize.width;u=2*f,d=e.x-f,u>p&&!this._isInitialRender&&!this._growAfterOpen&&(d=e.x-p/2)}return{top:o,left:d,bottom:a,right:h,width:u,height:s}}_setBoundingBoxStyles(e,t){const i=this._calculateBoundingBoxRect(e,t);!this._isInitialRender&&!this._growAfterOpen&&(i.height=Math.min(i.height,this._lastBoundingBoxSize.height),i.width=Math.min(i.width,this._lastBoundingBoxSize.width));const r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right=r.maxHeight=r.maxWidth="",r.width=r.height="100%";else{const s=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=$e(i.height),r.top=$e(i.top),r.bottom=$e(i.bottom),r.width=$e(i.width),r.left=$e(i.left),r.right=$e(i.right),r.alignItems="center"===t.overlayX?"center":"end"===t.overlayX?"flex-end":"flex-start",r.justifyContent="center"===t.overlayY?"center":"bottom"===t.overlayY?"flex-end":"flex-start",s&&(r.maxHeight=$e(s)),o&&(r.maxWidth=$e(o))}this._lastBoundingBoxSize=i,Ni(this._boundingBox.style,r)}_resetBoundingBoxStyles(){Ni(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Ni(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(e,t){const i={},r=this._hasExactPosition(),s=this._hasFlexibleDimensions,o=this._overlayRef.getConfig();if(r){const u=this._viewportRuler.getViewportScrollPosition();Ni(i,this._getExactOverlayY(t,e,u)),Ni(i,this._getExactOverlayX(t,e,u))}else i.position="static";let a="",l=this._getOffset(t,"x"),c=this._getOffset(t,"y");l&&(a+=`translateX(${l}px) `),c&&(a+=`translateY(${c}px)`),i.transform=a.trim(),o.maxHeight&&(r?i.maxHeight=$e(o.maxHeight):s&&(i.maxHeight="")),o.maxWidth&&(r?i.maxWidth=$e(o.maxWidth):s&&(i.maxWidth="")),Ni(this._pane.style,i)}_getExactOverlayY(e,t,i){let r={top:"",bottom:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),"bottom"===e.overlayY?r.bottom=this._document.documentElement.clientHeight-(s.y+this._overlayRect.height)+"px":r.top=$e(s.y),r}_getExactOverlayX(e,t,i){let o,r={left:"",right:""},s=this._getOverlayPoint(t,this._overlayRect,e);return this._isPushed&&(s=this._pushOverlayOnScreen(s,this._overlayRect,i)),o=this._isRtl()?"end"===e.overlayX?"left":"right":"end"===e.overlayX?"right":"left","right"===o?r.right=this._document.documentElement.clientWidth-(s.x+this._overlayRect.width)+"px":r.left=$e(s.x),r}_getScrollVisibility(){const e=this._getOriginRect(),t=this._pane.getBoundingClientRect(),i=this._scrollables.map(r=>r.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:QD(e,i),isOriginOutsideView:Nh(e,i),isOverlayClipped:QD(t,i),isOverlayOutsideView:Nh(t,i)}}_subtractOverflows(e,...t){return t.reduce((i,r)=>i-Math.max(r,0),e)}_getNarrowedViewportRect(){const e=this._document.documentElement.clientWidth,t=this._document.documentElement.clientHeight,i=this._viewportRuler.getViewportScrollPosition();return{top:i.top+this._viewportMargin,left:i.left+this._viewportMargin,right:i.left+e-this._viewportMargin,bottom:i.top+t-this._viewportMargin,width:e-2*this._viewportMargin,height:t-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(e,t){return"x"===t?null==e.offsetX?this._offsetX:e.offsetX:null==e.offsetY?this._offsetY:e.offsetY}_validatePositions(){}_addPanelClasses(e){this._pane&&ob(e).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(e=>{this._pane.classList.remove(e)}),this._appliedPanelClasses=[])}_getOriginRect(){const e=this._origin;if(e instanceof Re)return e.nativeElement.getBoundingClientRect();if(e instanceof Element)return e.getBoundingClientRect();const t=e.width||0,i=e.height||0;return{top:e.y,bottom:e.y+i,left:e.x,right:e.x+t,height:i,width:t}}}function Ni(n,e){for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);return n}function eC(n){if("number"!=typeof n&&null!=n){const[e,t]=n.split(WL);return t&&"px"!==t?null:parseFloat(e)}return n||null}function tC(n){return{top:Math.floor(n.top),right:Math.floor(n.right),bottom:Math.floor(n.bottom),left:Math.floor(n.left),width:Math.floor(n.width),height:Math.floor(n.height)}}const nC="cdk-global-overlay-wrapper";class KL{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(e){const t=e.getConfig();this._overlayRef=e,this._width&&!t.width&&e.updateSize({width:this._width}),this._height&&!t.height&&e.updateSize({height:this._height}),e.hostElement.classList.add(nC),this._isDisposed=!1}top(e=""){return this._bottomOffset="",this._topOffset=e,this._alignItems="flex-start",this}left(e=""){return this._rightOffset="",this._leftOffset=e,this._justifyContent="flex-start",this}bottom(e=""){return this._topOffset="",this._bottomOffset=e,this._alignItems="flex-end",this}right(e=""){return this._leftOffset="",this._rightOffset=e,this._justifyContent="flex-end",this}width(e=""){return this._overlayRef?this._overlayRef.updateSize({width:e}):this._width=e,this}height(e=""){return this._overlayRef?this._overlayRef.updateSize({height:e}):this._height=e,this}centerHorizontally(e=""){return this.left(e),this._justifyContent="center",this}centerVertically(e=""){return this.top(e),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement.style,i=this._overlayRef.getConfig(),{width:r,height:s,maxWidth:o,maxHeight:a}=i,l=!("100%"!==r&&"100vw"!==r||o&&"100%"!==o&&"100vw"!==o),c=!("100%"!==s&&"100vh"!==s||a&&"100%"!==a&&"100vh"!==a);e.position=this._cssPosition,e.marginLeft=l?"0":this._leftOffset,e.marginTop=c?"0":this._topOffset,e.marginBottom=this._bottomOffset,e.marginRight=this._rightOffset,l?t.justifyContent="flex-start":"center"===this._justifyContent?t.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?t.justifyContent="flex-end":"flex-end"===this._justifyContent&&(t.justifyContent="flex-start"):t.justifyContent=this._justifyContent,t.alignItems=c?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const e=this._overlayRef.overlayElement.style,t=this._overlayRef.hostElement,i=t.style;t.classList.remove(nC),i.justifyContent=i.alignItems=e.marginTop=e.marginBottom=e.marginLeft=e.marginRight=e.position="",this._overlayRef=null,this._isDisposed=!0}}let YL=(()=>{class n{constructor(t,i,r,s){this._viewportRuler=t,this._document=i,this._platform=r,this._overlayContainer=s}global(){return new KL}flexibleConnectedTo(t){return new qL(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return n.\u0275fac=function(t){return new(t||n)(D(Oh),D(fe),D(hn),D(kh))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),iC=(()=>{class n{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const i=this._attachedOverlays.indexOf(t);i>-1&&this._attachedOverlays.splice(i,1),0===this._attachedOverlays.length&&this.detach()}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),ZL=(()=>{class n extends iC{constructor(t){super(t),this._keydownListener=i=>{const r=this._attachedOverlays;for(let s=r.length-1;s>-1;s--)if(r[s]._keydownEvents.observers.length>0){r[s]._keydownEvents.next(i);break}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),QL=(()=>{class n extends iC{constructor(t,i){super(t),this._platform=i,this._cursorStyleIsSet=!1,this._pointerDownListener=r=>{this._pointerDownEventTarget=Zd(r)},this._clickListener=r=>{const s=Zd(r),o="click"===r.type&&this._pointerDownEventTarget?this._pointerDownEventTarget:s;this._pointerDownEventTarget=null;const a=this._attachedOverlays.slice();for(let l=a.length-1;l>-1;l--){const c=a[l];if(!(c._outsidePointerEvents.observers.length<1)&&c.hasAttached()){if(c.overlayElement.contains(s)||c.overlayElement.contains(o))break;c._outsidePointerEvents.next(r)}}}}add(t){if(super.add(t),!this._isAttached){const i=this._document.body;i.addEventListener("pointerdown",this._pointerDownListener,!0),i.addEventListener("click",this._clickListener,!0),i.addEventListener("auxclick",this._clickListener,!0),i.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=i.style.cursor,i.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0}}detach(){if(this._isAttached){const t=this._document.body;t.removeEventListener("pointerdown",this._pointerDownListener,!0),t.removeEventListener("click",this._clickListener,!0),t.removeEventListener("auxclick",this._clickListener,!0),t.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(t.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1}}}return n.\u0275fac=function(t){return new(t||n)(D(fe),D(hn))},n.\u0275prov=O({token:n,factory:n.\u0275fac,providedIn:"root"}),n})(),XL=0,bl=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this.scrollStrategies=t,this._overlayContainer=i,this._componentFactoryResolver=r,this._positionBuilder=s,this._keyboardDispatcher=o,this._injector=a,this._ngZone=l,this._document=c,this._directionality=u,this._location=d,this._outsideClickDispatcher=h}create(t){const i=this._createHostElement(),r=this._createPaneElement(i),s=this._createPortalOutlet(r),o=new XD(t);return o.direction=o.direction||this._directionality.value,new GL(s,i,r,o,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const i=this._document.createElement("div");return i.id="cdk-overlay-"+XL++,i.classList.add("cdk-overlay-pane"),t.appendChild(i),i}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(aa)),new VL(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return n.\u0275fac=function(t){return new(t||n)(D(UL),D(kh),D(vi),D(YL),D(ZL),D(vt),D(he),D(fe),D(Ch),D(Ny),D(QL))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})();const tV={provide:new A("cdk-connected-overlay-scroll-strategy"),deps:[bl],useFactory:function eV(n){return()=>n.scrollStrategies.reposition()}};let nV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:[bl,tV],imports:[[qs,BL,qD],qD]}),n})();class sV{constructor(e,t){this.delay=e,this.scheduler=t}call(e,t){return t.subscribe(new Ph(e,this.delay,this.scheduler))}}class Ph extends Ie{constructor(e,t,i){super(e),this.delay=t,this.scheduler=i,this.queue=[],this.active=!1,this.errored=!1}static dispatch(e){const t=e.source,i=t.queue,r=e.scheduler,s=e.destination;for(;i.length>0&&i[0].time-r.now()<=0;)i.shift().notification.observe(s);if(i.length>0){const o=Math.max(0,i[0].time-r.now());this.schedule(e,o)}else this.unsubscribe(),t.active=!1}_schedule(e){this.active=!0,this.destination.add(e.schedule(Ph.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))}scheduleNotification(e){if(!0===this.errored)return;const t=this.scheduler,i=new oV(t.now()+this.delay,e);this.queue.push(i),!1===this.active&&this._schedule(t)}_next(e){this.scheduleNotification(Dt.createNext(e))}_error(e){this.errored=!0,this.queue=[],this.destination.error(e),this.unsubscribe()}_complete(){this.scheduleNotification(Dt.createComplete()),this.unsubscribe()}}class oV{constructor(e,t){this.time=e,this.notification=t}}const aV=["panel"];function lV(n,e){if(1&n&&(oe(0,"div",0,1),sn(2),de()),2&n){const t=e.id,i=lt();ee("id",i.id)("ngClass",i._classList),at("aria-label",i.ariaLabel||null)("aria-labelledby",i._getPanelAriaLabelledby(t))}}const cV=["*"];let uV=0;class dV{constructor(e,t){this.source=e,this.option=t}}const hV=o1(class{}),rC=new A("mat-autocomplete-default-options",{providedIn:"root",factory:function fV(){return{autoActiveFirstOption:!1}}});let pV=(()=>{class n extends hV{constructor(t,i,r,s){super(),this._changeDetectorRef=t,this._elementRef=i,this._activeOptionChanges=z.EMPTY,this.showPanel=!1,this._isOpen=!1,this.displayWith=null,this.optionSelected=new be,this.opened=new be,this.closed=new be,this.optionActivated=new be,this._classList={},this.id="mat-autocomplete-"+uV++,this.inertGroups=(null==s?void 0:s.SAFARI)||!1,this._autoActiveFirstOption=!!r.autoActiveFirstOption}get isOpen(){return this._isOpen&&this.showPanel}get autoActiveFirstOption(){return this._autoActiveFirstOption}set autoActiveFirstOption(t){this._autoActiveFirstOption=Vn(t)}set classList(t){this._classList=t&&t.length?function uk(n,e=/\s+/){const t=[];if(null!=n){const i=Array.isArray(n)?n:`${n}`.split(e);for(const r of i){const s=`${r}`.trim();s&&t.push(s)}}return t}(t).reduce((i,r)=>(i[r]=!0,i),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""}ngAfterContentInit(){this._keyManager=new UP(this.options).withWrap(),this._activeOptionChanges=this._keyManager.change.subscribe(t=>{this.isOpen&&this.optionActivated.emit({source:this,option:this.options.toArray()[t]||null})}),this._setVisibility()}ngOnDestroy(){this._activeOptionChanges.unsubscribe()}_setScrollTop(t){this.panel&&(this.panel.nativeElement.scrollTop=t)}_getScrollTop(){return this.panel?this.panel.nativeElement.scrollTop:0}_setVisibility(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()}_emitSelectEvent(t){const i=new dV(this,t);this.optionSelected.emit(i)}_getPanelAriaLabelledby(t){return this.ariaLabel?null:this.ariaLabelledby?(t?t+" ":"")+this.ariaLabelledby:t}_setVisibilityClasses(t){t[this._visibleClass]=this.showPanel,t[this._hiddenClass]=!this.showPanel}}return n.\u0275fac=function(t){return new(t||n)(_(wi),_(Re),_(rC),_(hn))},n.\u0275dir=I({type:n,viewQuery:function(t,i){if(1&t&&(Ci(wn,7),Ci(aV,5)),2&t){let r;Xe(r=Je())&&(i.template=r.first),Xe(r=Je())&&(i.panel=r.first)}},inputs:{ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],displayWith:"displayWith",autoActiveFirstOption:"autoActiveFirstOption",panelWidth:"panelWidth",classList:["class","classList"]},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed",optionActivated:"optionActivated"},features:[K]}),n})(),mV=(()=>{class n extends pV{constructor(){super(...arguments),this._visibleClass="mat-autocomplete-visible",this._hiddenClass="mat-autocomplete-hidden"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275cmp=ci({type:n,selectors:[["mat-autocomplete"]],contentQueries:function(t,i,r){if(1&t&&(zt(r,ID,5),zt(r,OD,5)),2&t){let s;Xe(s=Je())&&(i.optionGroups=s),Xe(s=Je())&&(i.options=s)}},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple"},exportAs:["matAutocomplete"],features:[te([{provide:TD,useExisting:n}]),K],ngContentSelectors:cV,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,i){1&t&&(Ko(),Qe(0,lV,3,4,"ng-template"))},directives:[zy],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}.cdk-high-contrast-active .mat-autocomplete-panel{outline:solid 1px}mat-autocomplete{display:none}\n"],encapsulation:2,changeDetection:0}),n})();const sC=new A("mat-autocomplete-scroll-strategy"),_V={provide:sC,deps:[bl],useFactory:function gV(n){return()=>n.scrollStrategies.reposition()}},yV={provide:fn,useExisting:ce(()=>oC),multi:!0};let vV=(()=>{class n{constructor(t,i,r,s,o,a,l,c,u,d,h){this._element=t,this._overlay=i,this._viewContainerRef=r,this._zone=s,this._changeDetectorRef=o,this._dir=l,this._formField=c,this._document=u,this._viewportRuler=d,this._defaults=h,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=z.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new we,this._windowBlurHandler=()=>{this._canOpenOnNextFocus=this._document.activeElement!==this._element.nativeElement||this.panelOpen},this._onChange=()=>{},this._onTouched=()=>{},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=function yL(n){return new _e(e=>{let t;try{t=n()}catch(r){return void e.error(r)}return(t?Hr(t):bd()).subscribe(e)})}(()=>{const f=this.autocomplete?this.autocomplete.options:null;return f?f.changes.pipe(_l(f),Ls(()=>Un(...f.map(p=>p.onSelectionChange)))):this._zone.onStable.pipe(Ys(1),Ls(()=>this.optionSelections))}),this._scrollStrategy=a}get autocompleteDisabled(){return this._autocompleteDisabled}set autocompleteDisabled(t){this._autocompleteDisabled=Vn(t)}ngAfterViewInit(){const t=this._getWindow();void 0!==t&&this._zone.runOutsideAngular(()=>t.addEventListener("blur",this._windowBlurHandler))}ngOnChanges(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())}ngOnDestroy(){const t=this._getWindow();void 0!==t&&t.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()}get panelOpen(){return this._overlayAttached&&this.autocomplete.showPanel}openPanel(){this._attachOverlay(),this._floatLabel()}closePanel(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())}updatePosition(){this._overlayAttached&&this._overlayRef.updatePosition()}get panelClosingActions(){return Un(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Nr(()=>this._overlayAttached)),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Nr(()=>this._overlayAttached)):xa()).pipe($n(t=>t instanceof FD?t:null))}get activeOption(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null}_getOutsideClickStream(){return Un(kr(this._document,"click"),kr(this._document,"auxclick"),kr(this._document,"touchend")).pipe(Nr(t=>{const i=Zd(t),r=this._formField?this._formField._elementRef.nativeElement:null,s=this.connectedTo?this.connectedTo.elementRef.nativeElement:null;return this._overlayAttached&&i!==this._element.nativeElement&&(!r||!r.contains(i))&&(!s||!s.contains(i))&&!!this._overlayRef&&!this._overlayRef.overlayElement.contains(i)}))}writeValue(t){Promise.resolve().then(()=>this._setTriggerValue(t))}registerOnChange(t){this._onChange=t}registerOnTouched(t){this._onTouched=t}setDisabledState(t){this._element.nativeElement.disabled=t}_handleKeydown(t){const i=t.keyCode;if(27===i&&!Rr(t)&&t.preventDefault(),this.activeOption&&13===i&&this.panelOpen&&!Rr(t))this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){const r=this.autocomplete._keyManager.activeItem,s=38===i||40===i;this.panelOpen||9===i?this.autocomplete._keyManager.onKeydown(t):s&&this._canOpen()&&this.openPanel(),(s||this.autocomplete._keyManager.activeItem!==r)&&this._scrollToOption(this.autocomplete._keyManager.activeItemIndex||0)}}_handleInput(t){let i=t.target,r=i.value;"number"===i.type&&(r=""==r?null:parseFloat(r)),this._previousValue!==r&&(this._previousValue=r,this._onChange(r),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())}_handleFocus(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0}_floatLabel(t=!1){this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)}_resetLabel(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)}_subscribeToClosingActions(){return Un(this._zone.onStable.pipe(Ys(1)),this.autocomplete.options.changes.pipe(_D(()=>this._positionStrategy.reapplyLastPosition()),function rV(n,e=gl){const i=function iV(n){return n instanceof Date&&!isNaN(+n)}(n)?+n-e.now():Math.abs(n);return r=>r.lift(new sV(i,e))}(0))).pipe(Ls(()=>{const r=this.panelOpen;return this._resetActiveItem(),this.autocomplete._setVisibility(),this.panelOpen&&(this._overlayRef.updatePosition(),r!==this.panelOpen&&this.autocomplete.opened.emit()),this.panelClosingActions}),Ys(1)).subscribe(r=>this._setValueAndClose(r))}_destroyPanel(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)}_setTriggerValue(t){const i=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,r=null!=i?i:"";this._formField?this._formField._control.value=r:this._element.nativeElement.value=r,this._previousValue=r}_setValueAndClose(t){const i=t&&t.source;i&&(this._clearPreviousSelectedOption(i),this._setTriggerValue(i.value),this._onChange(i.value),this.autocomplete._emitSelectEvent(i),this._element.nativeElement.focus()),this.closePanel()}_clearPreviousSelectedOption(t){this.autocomplete.options.forEach(i=>{i!==t&&i.selected&&i.deselect()})}_attachOverlay(){var t;let i=this._overlayRef;i?(this._positionStrategy.setOrigin(this._getConnectedElement()),i.updateSize({width:this._getPanelWidth()})):(this._portal=new KD(this.autocomplete.template,this._viewContainerRef,{id:null===(t=this._formField)||void 0===t?void 0:t.getLabelId()}),i=this._overlay.create(this._getOverlayConfig()),this._overlayRef=i,i.keydownEvents().subscribe(s=>{(27===s.keyCode&&!Rr(s)||38===s.keyCode&&Rr(s,"altKey"))&&(this._closeKeyEventStream.next(),this._resetActiveItem(),s.stopPropagation(),s.preventDefault())}),this._viewportSubscription=this._viewportRuler.change().subscribe(()=>{this.panelOpen&&i&&i.updateSize({width:this._getPanelWidth()})})),i&&!i.hasAttached()&&(i.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());const r=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&r!==this.panelOpen&&this.autocomplete.opened.emit()}_getOverlayConfig(){var t;return new XD({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir,panelClass:null===(t=this._defaults)||void 0===t?void 0:t.overlayPanelClass})}_getOverlayPosition(){const t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t}_setStrategyPositions(t){const i=[{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"}],r=this._aboveClass,s=[{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:r},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom",panelClass:r}];let o;o="above"===this.position?s:"below"===this.position?i:[...i,...s],t.withPositions(o)}_getConnectedElement(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element}_getPanelWidth(){return this.autocomplete.panelWidth||this._getHostWidth()}_getHostWidth(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width}_resetActiveItem(){const t=this.autocomplete;t.autoActiveFirstOption?t._keyManager.setFirstItemActive():t._keyManager.setActiveItem(-1)}_canOpen(){const t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled}_getWindow(){var t;return(null===(t=this._document)||void 0===t?void 0:t.defaultView)||window}_scrollToOption(t){const i=this.autocomplete,r=function D1(n,e,t){if(t.length){let i=e.toArray(),r=t.toArray(),s=0;for(let o=0;o<n+1;o++)i[o].group&&i[o].group===r[s]&&s++;return s}return 0}(t,i.options,i.optionGroups);if(0===t&&1===r)i._setScrollTop(0);else if(i.panel){const s=i.options.toArray()[t];if(s){const o=s._getHostElement(),a=function C1(n,e,t,i){return n<t?n:n+e>t+i?Math.max(0,n-i+e):t}(o.offsetTop,o.offsetHeight,i._getScrollTop(),i.panel.nativeElement.offsetHeight);i._setScrollTop(a)}}}}return n.\u0275fac=function(t){return new(t||n)(_(Re),_(bl),_(ln),_(he),_(wi),_(sC),_(Ch,8),_(Ih,9),_(fe,8),_(Oh),_(rC,8))},n.\u0275dir=I({type:n,inputs:{autocomplete:["matAutocomplete","autocomplete"],position:["matAutocompletePosition","position"],connectedTo:["matAutocompleteConnectedTo","connectedTo"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"]},features:[en]}),n})(),oC=(()=>{class n extends vV{constructor(){super(...arguments),this._aboveClass="mat-autocomplete-panel-above"}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275dir=I({type:n,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,i){1&t&&qe("focusin",function(){return i._handleFocus()})("blur",function(){return i._onTouched()})("input",function(s){return i._handleInput(s)})("keydown",function(s){return i._handleKeydown(s)}),2&t&&at("autocomplete",i.autocompleteAttribute)("role",i.autocompleteDisabled?null:"combobox")("aria-autocomplete",i.autocompleteDisabled?null:"list")("aria-activedescendant",i.panelOpen&&i.activeOption?i.activeOption.id:null)("aria-expanded",i.autocompleteDisabled?null:i.panelOpen.toString())("aria-owns",i.autocompleteDisabled||!i.panelOpen||null==i.autocomplete?null:i.autocomplete.id)("aria-haspopup",!i.autocompleteDisabled)},exportAs:["matAutocompleteTrigger"],features:[te([yV]),K]}),n})(),bV=(()=>{class n{}return n.\u0275fac=function(t){return new(t||n)},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:[_V],imports:[[nV,xD,jn,Ma],xh,xD,jn]}),n})();function DV(n,e){if(1&n&&(oe(0,"mat-label"),Nn(1),de()),2&n){const t=lt();se(1),br(t.label)}}function CV(n,e){if(1&n&&(oe(0,"mat-option",6),Nn(1),de()),2&n){const t=e.$implicit,i=lt();ee("value",null==t?null:t.value)("ngStyle",i.suggestionStyle)("disabled",!!i.suggestionStyle),se(1),Dr(" ",null==t?null:t.label," ")}}function EV(n,e){if(1&n&&(oe(0,"mat-error"),Nn(1),de()),2&n){const t=lt();se(1),Dr(" ",t.error," ")}}let wV=(()=>{class n extends gL{constructor(){super(...arguments),this.id=(0,_L.generate)()}}return n.\u0275fac=function(){let e;return function(i){return(e||(e=Ve(n)))(i||n)}}(),n.\u0275cmp=ci({type:n,selectors:[["drayman-number-field-internal"]],viewQuery:function(t,i){if(1&t&&Ci($D,5),2&t){let r;Xe(r=Je())&&(i.input=r.first)}},inputs:{suggestions:"suggestions",onFocus:"onFocus",appearance:"appearance",suggestionsPanelWidth:"suggestionsPanelWidth",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[K],decls:9,vars:12,consts:[[3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","step","any","type","number","autocomplete","off",3,"id","placeholder","formControl","errorStateMatcher","matAutocomplete","blur"],["autoActiveFirstOption","",3,"panelWidth","opened"],["auto","matAutocomplete"],[3,"value","ngStyle","disabled",4,"ngFor","ngForOf"],[3,"value","ngStyle","disabled"]],template:function(t,i){if(1&t&&(oe(0,"mat-form-field",0),Qe(1,DV,2,1,"mat-label",1),oe(2,"input",2),qe("blur",function(){return i.onBlur()}),de(),oe(3,"mat-autocomplete",3,4),qe("opened",function(){return i.triggerFocus()}),Qe(5,CV,2,4,"mat-option",5),de(),oe(6,"mat-hint"),Nn(7),de(),Qe(8,EV,2,1,"mat-error",1),de()),2&t){const r=function Km(n){return function zi(n,e){return n[e]}(function _E(){return P.lFrame.contextLView}(),20+n)}(4);ee("appearance",i.appearance||"outline")("floatLabel","auto"),se(1),ee("ngIf",i.label),se(1),ee("id",i.id)("placeholder",i.placeholder||i.label)("formControl",i.formControl)("errorStateMatcher",i.errorStateMatcher)("matAutocomplete",r),se(1),ee("panelWidth",i.suggestionsPanelWidth),se(2),ee("ngForOf",i.filteredSuggestions),se(2),br(i.helpText),se(1),ee("ngIf",i.error)}},directives:[lL,Da,Th,$D,ph,rl,oC,Nb,gh,mV,Gy,OD,tv,tL,X1],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),n})(),MV=(()=>{class n{constructor(t){this._document=t}ngOnDestroy(){const t=this._containerElement;t&&t.parentNode&&t.parentNode.removeChild(t)}getContainerElement(){return this._containerElement||this._createContainer(),this._containerElement}_createContainer(){const t="cdk-overlay-container",i=this._document.querySelectorAll(`.${t}`);if(null==i?void 0:i.length)this._containerElement=i[0];else{const r=this._document.createElement("div");r.classList.add(t),this._document.body.appendChild(r),this._containerElement=r}}}return n.\u0275fac=function(t){return new(t||n)(D(fe))},n.\u0275prov=O({token:n,factory:n.\u0275fac}),n})(),SV=(()=>{class n{constructor(t){this.injector=t}ngDoBootstrap(){const t=function sR(n,e){const t=function Xx(n,e){return e.get(vi).resolveComponentFactory(n).inputs}(n,e.injector),i=e.strategyFactory||new nR(n,e.injector),r=function Qx(n){const e={};return n.forEach(({propName:t,templateName:i})=>{e[function Wx(n){return n.replace(/[A-Z]/g,e=>`-${e.toLowerCase()}`)}(i)]=t}),e}(t);class s extends rR{constructor(a){super(),this.injector=a}get ngElementStrategy(){if(!this._ngElementStrategy){const a=this._ngElementStrategy=i.create(this.injector||e.injector);t.forEach(({propName:l})=>{if(!this.hasOwnProperty(l))return;const c=this[l];delete this[l],a.setInputValue(l,c)})}return this._ngElementStrategy}attributeChangedCallback(a,l,c,u){this.ngElementStrategy.setInputValue(r[a],c)}connectedCallback(){let a=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),a=!0),this.ngElementStrategy.connect(this),a||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(a=>{const l=new CustomEvent(a.name,{detail:a.value});this.dispatchEvent(l)})}}return s.observedAttributes=Object.keys(r),t.forEach(({propName:o})=>{Object.defineProperty(s.prototype,o,{get(){return this.ngElementStrategy.getInputValue(o)},set(a){this.ngElementStrategy.setInputValue(o,a)},configurable:!0,enumerable:!0})}),s}(wV,{injector:this.injector});customElements.define("drayman-number-field",t)}}return n.\u0275fac=function(t){return new(t||n)(D(vt))},n.\u0275mod=ye({type:n}),n.\u0275inj=ge({providers:[{provide:kh,useClass:MV}],imports:[[pv,ak,pP,Fh,pL,bV]]}),n})();(function VI(){vy=!1})(),Dx().bootstrapModule(SV).catch(n=>console.error(n))})()})();