@drayman/elements 1.22.0 → 1.24.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,(function(e){return t[e]}).bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"+tDz":function(t,e){t.exports=function(t,e,n){for(var s=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*s*n/e.length),r="";;)for(var o=t(i),a=i;a--;)if((r+=e[o[a]&s]||"").length===+n)return r}},0:function(t,e,n){t.exports=n("zUnb")},"2hQo":function(t,e,n){"use strict";var s=n("48Ti"),i=n("58k+"),r=n("+tDz");t.exports=function(t){for(var e,n=0,o="";!e;)o+=r(i,s.get(),1),e=t<Math.pow(16,n+1),n++;return o}},"48Ti":function(t,e,n){"use strict";var s,i,r,o=n("w9cF"),a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){r=!1}function c(t){if(t){if(t!==s){if(t.length!==a.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,n){return e!==n.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. These characters were not unique: "+e.join(", "));s=t,l()}}else s!==a&&(s=a,l())}function h(){return r||(r=function(){s||c(a);for(var t,e=s.split(""),n=[],i=o.nextValue();e.length>0;)i=o.nextValue(),t=Math.floor(i*e.length),n.push(e.splice(t,1)[0]);return n.join("")}())}t.exports={get:function(){return s||a},characters:function(t){return c(t),s},seed:function(t){o.seed(t),i!==t&&(l(),i=t)},lookup:function(t){return h()[t]},shuffled:h}},"58k+":function(t,e,n){"use strict";var s="object"==typeof window&&(window.crypto||window.msCrypto);t.exports=s&&s.getRandomValues?function(t){return s.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],n=0;n<t;n++)e.push(Math.floor(256*Math.random()));return e}},G8Pb:function(t,e,n){"use strict";var s=n("48Ti"),i=n("tDlq"),r=n("gM+Z"),o=n("cHLG")||0;function a(){return i(o)}t.exports=a,t.exports.generate=a,t.exports.seed=function(e){return s.seed(e),t.exports},t.exports.worker=function(e){return o=e,t.exports},t.exports.characters=function(t){return void 0!==t&&s.characters(t),s.shuffled()},t.exports.isValid=r},MIfU:function(t,e,n){"use strict";t.exports=n("G8Pb")},cHLG:function(t,e,n){"use strict";t.exports=0},"gM+Z":function(t,e,n){"use strict";var s=n("48Ti");t.exports=function(t){return!(!t||"string"!=typeof t||t.length<6||new RegExp("[^"+s.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t))}},tDlq:function(t,e,n){"use strict";var s,i,r=n("2hQo");n("48Ti"),t.exports=function(t){var e="",n=Math.floor(.001*(Date.now()-1567752802062));return n===i?s++:(s=0,i=n),e+=r(7),e+=r(t),s>0&&(e+=r(s)),e+r(n)}},w9cF:function(t,e,n){"use strict";var s=1;t.exports={nextValue:function(){return(s=(9301*s+49297)%233280)/233280},seed:function(t){s=t}}},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const s=new f(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function g(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?g:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}function k(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const I=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=O(),R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[_])return s=t,t=>{const e=s[_]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return I(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,s};function V(t,e){return new y(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function M(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[_]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(D(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(R(t))return V(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[P](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(N(t))}class F extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function j(t,e){if(!e.closed)return t instanceof y?t.subscribe(e):N(t)(e)}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(B((n,s)=>M(t(n,s)).pipe(k((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new F(this),n=this.destination;n.add(e);const s=j(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return B(g,t)}function q(t,e){return e?V(t,e):new y(I(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return x(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:$(e)(q(t,n))}function U(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new Z(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return U()(this)}}const G=(()=>{const t=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Y extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,G);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const st=nt("Inject",t=>({token:t})),it=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[mt])||pt(t,t[yt])}function pt(t,e){return e&&e.token===t?e:null}function ft(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const mt=lt({"\u0275prov":lt}),_t=lt({"\u0275inj":lt}),gt=lt({"\u0275provFallback":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return vt(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===Et}const kt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Ot=kt||It||Tt||At,Pt=lt({"\u0275cmp":lt}),Rt=lt({"\u0275dir":lt}),Dt=lt({"\u0275pipe":lt}),Nt=lt({"\u0275mod":lt}),Vt=lt({"\u0275loc":lt}),Mt=lt({"\u0275fac":lt}),Ft=lt({__NG_ELEMENT_ID__:lt});class Lt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const jt=new Lt("INJECTOR",-1),Bt={},Ht=/\n/gm,zt="__source",$t=lt({provide:String,useValue:lt});let qt,Wt=void 0;function Ut(t){const e=Wt;return Wt=t,e}function Qt(t){const e=qt;return qt=t,e}function Zt(t,e=at.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Yt(t,void 0,e):Wt.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return(qt||Zt)(St(t),e)}const Gt=Kt;function Yt(t,e,n){const s=dt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const s=St(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<s.length;e++){const i=s[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof rt||"Self"===i.ngMetadataName||i===rt?n|=at.Self:t=i instanceof st||i===st?i.token:i}e.push(Kt(t,n))}else e.push(Kt(s))}return e}class Jt{get(t,e=Bt){if(e===Bt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function re(t,e,n){let s=ae(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},ue=[];let de=0;function pe(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=de++,n.inputs=ye(t.inputs,e),n.outputs=ye(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(me):null,n})}function fe(t){return we(t)||function(t){return t[Rt]||null}(t)}function me(t){return function(t){return t[Dt]||null}(t)}const _e={};function ge(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{_e[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const be=pe;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Pt]||null}function Ce(t,e){return t.hasOwnProperty(Mt)?t[Mt]:null}function Ee(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}const Se=20,xe=10;function ke(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Ae(t){return 0!=(8&t.flags)}function Ie(t){return 2==(2&t.flags)}function Oe(t){return 1==(1&t.flags)}function Pe(t){return null!==t.template}function Re(t){return 0!=(512&t[2])}class De{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ne(){return Ve}function Ve(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fe),Me}function Me(){const t=Le(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Fe(t,e,n,s){const i=Le(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new De(l&&l.currentValue,e,o===he),t[s]=e}function Le(t){return t.__ngSimpleChanges__||null}Ne.ngInherit=!0;let je=void 0;function Be(t){return!!t.listen}const He={createRenderer:(t,e)=>void 0!==je?je:"undefined"!=typeof document?document:void 0};function ze(t){for(;Array.isArray(t);)t=t[0];return t}function $e(t,e){return ze(e[t+Se])}function qe(t,e){return ze(e[t.index])}function We(t,e){return t.data[e+Se]}function Ue(t,e){const n=e[t];return ke(n)?n:n[0]}function Qe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ze(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ge(t,e){return null===t||null==e?null:t[e]}function Ye(t){t[18]=0}function Xe(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const Je={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function tn(){return Je.bindingsEnabled}function en(){return Je.lFrame.lView}function nn(){return Je.lFrame.tView}function sn(t){Je.lFrame.contextLView=t}function rn(){return Je.lFrame.previousOrParentTNode}function on(t,e){Je.lFrame.previousOrParentTNode=t,Je.lFrame.isParent=e}function an(){return Je.lFrame.isParent}function ln(){Je.lFrame.isParent=!1}function cn(){return Je.checkNoChangesMode}function hn(t){Je.checkNoChangesMode=t}function un(){return Je.lFrame.bindingIndex++}function dn(t,e){const n=Je.lFrame;n.bindingIndex=n.bindingRootIndex=t,pn(e)}function pn(t){Je.lFrame.currentDirectiveIndex=t}function fn(){return Je.lFrame.currentQueryIndex}function mn(t){Je.lFrame.currentQueryIndex=t}function _n(t,e){const n=yn();Je.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function gn(t,e){const n=yn(),s=t[1];Je.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function yn(){const t=Je.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function vn(){const t=Je.lFrame;return Je.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const wn=vn;function Cn(){const t=vn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function En(){return Je.lFrame.selectedIndex}function Sn(t){Je.lFrame.selectedIndex=t}function xn(){const t=Je.lFrame;return We(t.tView,t.selectedIndex)}function kn(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Tn(t,e,n){On(t,e,3,n)}function An(t,e,n,s){(3&t[2])===n&&On(t,e,n,s)}function In(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function On(t,e,n,s){const i=null!=s?s:-1;let r=0;for(let o=void 0!==s?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=s&&r>=s)break}else e[o]<0&&(t[18]+=65536),(r<i||-1==i)&&(Pn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Pn(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Rn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Dn(t,e,n){const s=Be(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];Vn(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Nn(t){return 3===t||4===t||6===t}function Vn(t){return 64===t.charCodeAt(0)}function Mn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Fn(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Fn(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function Ln(t){return-1!==t}function jn(t){return 32767&t}function Bn(t){return t>>16}function Hn(t,e){let n=Bn(t),s=e;for(;n>0;)s=s[15],n--;return s}function zn(t){return"string"==typeof t?t:null==t?"":""+t}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():zn(t)}const qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function Wn(t){return{name:"body",target:t.ownerDocument.body}}function Un(t){return t instanceof Function?t():t}let Qn=!0;function Zn(t){const e=Qn;return Qn=t,e}let Kn=0;function Gn(t,e){const n=Xn(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,Yn(s.data,t),Yn(e,null),Yn(s.blueprint,null));const i=Jn(t,e),r=t.injectorIndex;if(Ln(i)){const t=jn(i),n=Hn(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function Yn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Xn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Jn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function ts(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ft)&&(s=n[Ft]),null==s&&(s=n[Ft]=Kn++);const i=255&s,r=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function es(t,e,n,s=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ft)?t[Ft]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){_n(e,t);try{const t=i();if(null!=t||s&at.Optional)return t;throw new Error(`No provider for ${$n(n)}!`)}finally{wn()}}else if("number"==typeof i){if(-1===i)return new ls(t,e);let r=null,o=Xn(t,e),a=-1,l=s&at.Host?e[16][6]:null;for((-1===o||s&at.SkipSelf)&&(a=-1===o?Jn(t,e):e[o+8],as(s,!1)?(r=e[1],o=jn(a),e=Hn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(os(i,o,t.data)){const t=ss(o,e,n,r,s,l);if(t!==ns)return t}as(s,e[1].data[o+8]===l)&&os(i,o,e)?(r=t,o=jn(a),e=Hn(a,e)):o=-1}}}if(s&at.Optional&&void 0===i&&(i=null),0==(s&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,i,s&at.Optional):Yt(n,i,s&at.Optional)}finally{Qt(r)}}if(s&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${$n(n)}]`)}const ns={};function ss(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=is(a,o,n,null==s?Ie(a)&&Qn:s!=o&&3===a.type,i&at.Host&&r===a);return null!==l?rs(e,o,l,a):ns}function is(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Pe(t)&&t.type===n)return l}return null}function rs(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Rn){const o=i;if(o.resolving)throw new Error("Circular dep for "+$n(r[n]));const a=Zn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),_n(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=Ve(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Zn(a),o.resolving=!1,wn()}}return i}function os(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<<t)}function as(t,e){return!(t&at.Self||t&at.Host&&e)}class ls{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return es(this._tNode,this._lView,t,void 0,e)}}function cs(t){const e=t;if(xt(t))return()=>{const t=cs(St(e));return t?t():null};let n=Ce(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function hs(t){return tt(()=>{const e=t.prototype.constructor,n=e[Mt]||cs(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Mt]||cs(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function us(t){return t.ngDebugContext}function ds(t){return t.ngOriginalError}function ps(t,...e){t.error(...e)}class fs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||ps}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?us(t)?us(t):this._findContext(ds(t)):null}_findOriginalError(t){let e=ds(t);for(;e&&ds(e);)e=ds(e);return e}}class ms{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class _s extends ms{getTypeName(){return"HTML"}}class gs extends ms{getTypeName(){return"Style"}}class ys extends ms{getTypeName(){return"Script"}}class bs extends ms{getTypeName(){return"URL"}}class vs extends ms{getTypeName(){return"ResourceURL"}}function ws(t){return t instanceof ms?t.changingThisBreaksApplicationSecurity:t}function Cs(t,e){const n=Es(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Es(t){return t instanceof ms&&t.getTypeName()||null}let Ss=!0,xs=!1;function ks(){return xs=!0,Ss}class Ts{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class As{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Is=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Os=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ps(t){return(t=String(t)).match(Is)||t.match(Os)?t:(ks()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Rs(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ds(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ns=Rs("area,br,col,hr,img,wbr"),Vs=Rs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ms=Rs("rp,rt"),Fs=Ds(Ms,Vs),Ls=Ds(Ns,Ds(Vs,Rs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ds(Ms,Rs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fs),js=Rs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bs=Rs("srcset"),Hs=Ds(js,Bs,Rs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Rs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zs=Rs("script,style,template");class $s{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ls.hasOwnProperty(e))return this.sanitizedSomething=!0,!zs.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!Hs.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;js[r]&&(o=Ps(o)),Bs[r]&&(s=o,o=(s=String(s)).split(",").map(t=>Ps(t.trim())).join(", ")),this.buf.push(" ",e,'="',Us(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ls.hasOwnProperty(e)&&!Ns.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Us(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ws=/([^\#-~ |!])/g;function Us(t){return t.replace(/&/g,"&amp;").replace(qs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ws,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Qs;function Zs(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ks=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Gs(t,e){t.__ngContext__=e}function Ys(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Xs(){throw new Error("Cannot mix multi providers and regular providers")}function Js(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ti="ng-template";function ei(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==Js(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ni(t){return 0===t.type&&t.tagName!==ti}function si(t,e,n){return e===(0!==t.type||n?t.tagName:ti)}function ii(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Nn(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!si(t,l,n)||""===l&&1===e.length){if(ri(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!ei(t.attrs,c,n)){if(ri(s))return!1;o=!0}continue}const h=oi(8&s?"class":l,i,ni(t),n);if(-1===h){if(ri(s))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Js(e,c,0)||2&s&&c!==t){if(ri(s))return!1;o=!0}}}}else{if(!o&&!ri(s)&&!ri(l))return!1;if(o&&ri(l))continue;o=!1,s=l|1&s}}return ri(s)||o}function ri(t){return 0==(1&t)}function oi(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function ai(t,e,n=!1){for(let s=0;s<e.length;s++)if(ii(t,e[s],n))return!0;return!1}function li(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function ci(t,e){return t?":not("+e.trim()+")":e}function hi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||ri(o)||(e+=ci(r,i),i=""),s=o,r=r||!ri(s);n++}return""!==i&&(e+=ci(r,i)),e}const ui={};function di(t){const e=t[3];return Te(e)?e[3]:e}function pi(t){return mi(t[13])}function fi(t){return mi(t[4])}function mi(t){for(;null!==t&&!Te(t);)t=t[4];return t}function _i(t){gi(nn(),en(),En()+t,cn())}function gi(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Tn(e,s,n)}else{const s=t.preOrderHooks;null!==s&&An(e,s,0,n)}Sn(n)}function yi(t,e){return t<<17|e<<2}function bi(t){return t>>17&32767}function vi(t){return 2|t}function wi(t){return(131068&t)>>2}function Ci(t,e){return-131069&t|e<<2}function Ei(t){return 1|t}function Si(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];mn(i),n.contentQueries(2,e[r],r)}}}function xi(t,e,n){return Be(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ki(t,e,n,s,i,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=i,h[2]=140|s,Ye(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Ti(t,e,n,s,i,r){const o=n+Se,a=t.data[o]||function(t,e,n,s,i,r){const o=rn(),a=an(),l=a?o:o&&o.parent,c=t.data[n]=Li(0,l&&l!==e?l:null,s,n,i,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,s,i,r);return on(a,!0),a}function Ai(t,e,n){gn(e,e[6]);try{const s=t.viewQuery;null!==s&&or(1,s,n);const i=t.template;null!==i&&Pi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Si(t,e),t.staticViewQueries&&or(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)er(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,Cn()}}function Ii(t,e,n,s){const i=e[2];if(256==(256&i))return;gn(e,e[6]);const r=cn();try{Ye(e),Je.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Pi(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&Tn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&An(e,n,0,null),In(e,0)}if(function(t){for(let e=pi(t);null!==e;e=fi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&Xe(s,1),n[2]|=1024}}}(e),function(t){for(let e=pi(t);null!==e;e=fi(e))for(let t=xe;t<e.length;t++){const n=e[t],s=n[1];Ke(n)&&Ii(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Si(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&Tn(e,n)}else{const n=t.contentHooks;null!==n&&An(e,n,1),In(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let s=t.expandoStartIndex,i=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Sn(r),s+=9+n[++t],i=s):s+=o:(null!==o&&(dn(s,i),o(2,e[i])),i++)}}}finally{Sn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)tr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&or(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&Tn(e,n)}else{const n=t.viewHooks;null!==n&&An(e,n,2),In(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Xe(e[3],-1))}finally{Cn()}}function Oi(t,e,n,s){const i=e[10],r=!cn(),o=Ze(e);try{r&&!o&&i.begin&&i.begin(),o&&Ai(t,e,s),Ii(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Pi(t,e,n,s,i){const r=En();try{Sn(-1),2&s&&e.length>Se&&gi(t,e,0,cn()),n(s,i)}finally{Sn(r)}}function Ri(t,e,n){if(Ae(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Di(t,e,n){tn()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Gn(n,e),Gs(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=Pe(s);r&&Gi(e,n,s);const l=rs(e,t,a,n);Gs(l,e),null!==o&&Yi(0,a-i,l,s,0,o),r&&(Ue(n.index,e)[8]=l)}}(t,e,n,qe(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Se,l=Je.lFrame.currentDirectiveIndex;try{Sn(a);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];pn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?qi(s,i):o&&r.push(null)}}finally{Sn(-1),pn(l)}}(t,e,n))}function Ni(t,e,n=qe){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Mi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Mi(t,e,n,s,i,r,o,a,l,c){const h=Se+s,u=h+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:ui);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions: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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Fi(t,e,n,s){const i=lr(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(s,i.length-1)}function Li(t,e,n,s,i,r){return{type:n,index:s,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:r,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}}function ji(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function Bi(t,e,n,s,i,r,o,a){const l=qe(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[s])?(hr(t,n,c,s,i),Ie(e)&&function(t,e){const n=Ue(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(s="class"===(u=s)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=o?o(i,e.tagName||"",s):i,Be(r)?r.setProperty(l,s,i):Vn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}function Hi(t,e,n,s){let i=!1;if(tn()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];ai(n,o.selectors,!1)&&(i||(i=[]),ts(Gn(n,e),t,o.type),Pe(o)?(2&n.flags&&Ys(n),Ui(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){let s=0;i=!0,Zi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Wi(t,n,r.length);let a=!1,l=!1;for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Mn(n.mergedAttrs,c.hostAttrs),Ki(t,e,c),Qi(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Se),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Se),l=!0),zi(t,c),s+=c.hostVars}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||ni(e)?null:Xi(n,i);r.push(c),o=ji(n,l,o),a=ji(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),$i(t,e,s)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Mn(n.mergedAttrs,n.attrs),i}function zi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function $i(t,e,n){for(let s=0;s<n;s++)e.push(ui),t.blueprint.push(ui),t.data.push(null)}function qi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wi(t,e,n){const s=Se-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(s,i,n)}function Ui(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;Pe(e)&&(n[""]=t)}}function Zi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ki(t,e,n){t.data.push(n);const s=n.factory||(n.factory=Ce(n.type)),i=new Rn(s,Pe(n),null);t.blueprint.push(i),e.push(i)}function Gi(t,e,n){const s=qe(e,t),i=Vi(n),r=t[10],o=nr(t,ki(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n)));t[e.index]=o}function Yi(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function Xi(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function Ji(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function tr(t,e){const n=Ue(e,t);if(Ke(n)){const t=n[1];80&n[2]?Ii(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let s=pi(e);null!==s;s=fi(s))for(let e=xe;e<s.length;e++){const n=s[e];if(1024&n[2]){const t=n[1];Ii(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let s=0;s<n.length;s++){const i=Ue(n[s],e);Ke(i)&&i[5]>0&&t(i)}}(n)}}function er(t,e){const n=Ue(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Ai(s,n,n[8])}function nr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sr(t){for(;t;){t[2]|=64;const e=di(t);if(Re(t)&&!e)return t;t=e}return null}function ir(t,e,n){const s=e[10];s.begin&&s.begin();try{Ii(t,e,t.template,n)}catch(i){throw cr(e,i),i}finally{s.end&&s.end()}}function rr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Qe(n),i=s[1];Oi(i,s,i.template,n)}}(t[8])}function or(t,e,n){mn(0),e(t,n)}const ar=(()=>Promise.resolve(null))();function lr(t){return t[7]||(t[7]=[])}function cr(t,e){const n=t[9],s=n?n.get(fs,null):null;s&&s.handleError(e)}function hr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function ur(t,e){const n=e[3];return-1===t.index?Te(n)?n:null:n}function dr(t,e){const n=ur(t,e);return n?Sr(e[11],n[7]):null}function pr(t,e,n,s,i){if(null!=s){let r,o=!1;Te(s)?r=s:ke(s)&&(o=!0,s=s[0]);const a=ze(s);0===t&&null!==n?null==i?Cr(e,n,a):wr(e,n,a,i||null):1===t&&null!==n?wr(e,n,a,i||null):2===t?function(t,e,n){const s=Sr(t,e);s&&function(t,e,n,s){Be(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==ze(n)&&pr(e,t,s,r,i);for(let o=xe;o<n.length;o++){const i=n[o];Ir(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function fr(t,e,n,s){const i=dr(t.node,e);i&&Ir(t,e,e[11],n?1:2,i,s)}function mr(t,e){const n=t[9],s=n.indexOf(e);1024&e[2]&&Xe(e[3],-1),n.splice(s,1)}function _r(t,e){if(t.length<=xe)return;const n=xe+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&mr(i,s),e>0&&(t[n-1][4]=s[4]);const r=se(t,xe+e);fr(s[1],s,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function gr(t,e){if(!(256&e[2])){const n=e[11];Be(n)&&n.destroyNode&&Ir(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return br(t[1],t);for(;e;){let n=null;if(ke(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ke(e)&&br(e[1],e),e=yr(e,t);null===e&&(e=t),ke(e)&&br(e[1],e),n=e&&e[4]}e=n}}(e)}}function yr(t,e){let n;return ke(t)&&(n=t[6])&&2===n.type?ur(n,t):t[3]===e?null:t[3]}function br(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Rn)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const i=n[s+1],r="function"==typeof i?i(e):ze(e[i]),o=t[n[s+2]],a=n[s+3];"boolean"==typeof a?r.removeEventListener(n[s],o,a):a>=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Be(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&Te(e[3])){s!==e[3]&&mr(s,e);const n=e[19];null!==n&&n.detachView(t)}}}function vr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?dr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return qe(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return qe(s,n)}function wr(t,e,n,s){Be(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function Cr(t,e,n){Be(t)?t.appendChild(e,n):e.appendChild(n)}function Er(t,e,n,s){null!==s?wr(t,e,n,s):Cr(t,e,n)}function Sr(t,e){return Be(t)?t.parentNode(e):e.parentNode}function xr(t,e){if(2===t.type){const n=ur(t,e);return null===n?null:Tr(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?qe(t,e):null}function kr(t,e,n,s){const i=vr(t,s,e);if(null!=i){const t=e[11],r=xr(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Er(t,i,n[e],r);else Er(t,i,n,r)}}function Tr(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return function t(e,n){if(null!==n){const s=n.type;if(3===s)return qe(n,e);if(0===s)return Tr(-1,e[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return t(e,s);{const t=e[n.index];return Te(t)?Tr(-1,t):ze(t)}}{const s=e[16],i=s[6],r=di(s),o=i.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,s)}return e[7]}function Ar(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===e&&(a&&Gs(ze(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Ar(t,e,n.child,s,i,r,!1),pr(e,t,i,a,r)):1===l?Or(t,e,s,n,i,r):pr(e,t,i,a,r)),n=o?n.projectionNext:n.next}}function Ir(t,e,n,s,i,r){Ar(n,s,t.node.child,e,i,r,!1)}function Or(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)pr(e,t,i,a[l],r);else Ar(t,e,a,o[3],i,r,!0)}function Pr(t,e,n){Be(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rr(t,e,n){Be(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Dr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,s,i,r=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&i.push(ze(o)),Te(o))for(let e=xe;e<o.length;e++){const n=o[e],s=n[1].firstChild;null!==s&&t(n[1],n,s,i)}const a=s.type;if(4===a||5===a)t(e,n,s.child,i);else if(1===a){const e=n[16],r=e[6].projection[s.projection];if(Array.isArray(r))i.push(...r);else{const n=di(e);t(n[1],n,r,i,!0)}}s=r?s.projectionNext:s.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}gr(this._lView[1],this._lView)}onDestroy(t){Fi(this._lView[1],this._lView,null,t)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ir(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){hn(!0);try{ir(t,e,n)}finally{hn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ir(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Nr extends Dr{constructor(t){super(t),this._view=t}detectChanges(){rr(this._view)}checkNoChanges(){!function(t){hn(!0);try{rr(t)}finally{hn(!1)}}(this._view)}get context(){return null}}let Vr,Mr,Fr;function Lr(t,e,n){return Vr||(Vr=class extends t{}),new Vr(qe(e,n))}function jr(t,e,n,s){return Mr||(Mr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ki(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Ai(e,n,t),new Dr(n)}}),0===n.type?new Mr(s,n,Lr(e,n,s)):null}function Br(t,e,n,s){let i;Fr||(Fr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Lr(e,this._hostTNode,this._hostView)}get injector(){return new ls(this._hostTNode,this._hostView)}get parentInjector(){const t=Jn(this._hostTNode,this._hostView),e=Hn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=Bn(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return Ln(t)&&null!=n?new ls(n,e):new ls(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(te,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new Fr(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=xe+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-xe?(e[4]=n[i],ne(n,xe+s,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(s,n,this._lContainer,i),fr(s,n,!0,Tr(i,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_r(this._lContainer,e);n&&(se(this._lContainer[8],e),gr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_r(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Dr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=s[n.index];if(Te(r))i=r;else{let t;if(4===n.type)t=ze(r);else if(t=s[11].createComment(""),Re(s)){const e=s[11],i=qe(n,s);wr(e,Sr(e,i),t,function(t,e){return Be(t)?t.nextSibling(e):e.nextSibling}(e,i))}else kr(s[1],s,t,n);s[n.index]=i=Ji(r,s,t,n),nr(s,i)}return new Fr(i,n,s)}function Hr(t=!1){return function(t,e,n){if(!n&&Ie(t)){const n=Ue(t.index,e);return new Dr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Dr(e[16],e):null}(rn(),en(),t)}let zr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$r(),t})();const $r=Hr,qr=new Lt("Set Injector scope."),Wr={},Ur={},Qr=[];let Zr=void 0;function Kr(){return void 0===Zr&&(Zr=new Jt),Zr}function Gr(t,e=null,n=null,s){return new Yr(t,n,e||Kr(),s)}class Yr{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(jt,to(void 0,this));const r=this.records.get(qr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:vt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Bt,n=at.Default){this.assertNotDestroyed();const s=Ut(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Lt)&&dt(t);e=n&&this.injectableDefInScope(n)?to(Xr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Kr():this.parent).get(t,e=n&at.Optional&&e===Bt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(vt(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[zt]&&i.unshift(e[zt]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):vt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Ht,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ut(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let s=ft(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=ft(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];ee(s,t=>this.processProvider(t,n,s||Qr))}}this.injectorDefTypes.add(r),this.records.set(r,to(s.factory,Wr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=no(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return eo(t)?to(void 0,t.useValue):to(Jr(t,e,n),Wr)}(t,e,n);if(no(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&Xs()}else{let e=this.records.get(s);e?void 0===e.multi&&Xs():(e=to(void 0,Wr,!0),e.factory=()=>Xt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Ur?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===Wr&&(e.value=Ur,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Xr(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const s=ft(t);if(null!==s)return s.factory;if(t instanceof Lt)throw new Error(`Token ${vt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ie(e,"?");throw new Error(`Can't resolve all parameters for ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[gt]&&t[gt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Jr(t,e,n){let s=void 0;if(no(t)){const e=St(t);return Ce(e)||Xr(e)}if(eo(t))s=()=>St(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Kt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(i)||Xr(i);s=()=>new i(...Xt(t.deps))}var i;return s}function to(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function eo(t){return null!==t&&"object"==typeof t&&$t in t}function no(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,s){const i=Gr(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let io=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Bt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Kt(jt)}),t.__NG_ELEMENT_ID__=-1,t})();function ro(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=wt(i,t):2==r&&(s=wt(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}let oo=null;function ao(){if(!oo){const t=Ot.Symbol;if(t&&t.iterator)oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}}return oo}class lo{constructor(t){this.wrapped=t}static wrap(t){return new lo(t)}static unwrap(t){return lo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof lo}}function co(t){return!!ho(t)&&(Array.isArray(t)||!(t instanceof Map)&&ao()in t)}function ho(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function uo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function po(t,e,n,s){const i=en();return uo(i,un(),e)&&(nn(),function(t,e,n,s,i,r){const o=qe(t,e),a=e[11];if(null==s)Be(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==i?zn(s):i(s,t.tagName||"",n);Be(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(xn(),i,t,e,n,s)),po}function fo(t,e,n,s,i,r,o,a){const l=en(),c=nn(),h=t+Se,u=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,h=Ti(e,n[6],t,0,o||null,Ge(c,a));Hi(e,n,h,Ge(c,l)),kn(e,h);const u=h.tViews=Mi(2,-1,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Li(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,s,i,r,o):c.data[h];on(u,!1);const d=l[11].createComment("");kr(c,l,d,u),Gs(d,l),nr(l,l[h]=Ji(d,l,d,u)),Oe(u)&&Di(c,l,u),null!=o&&Ni(l,u,a)}function mo(t,e=at.Default){const n=en();return null==n?Kt(t,e):es(rn(),n,St(t),e)}function _o(t,e,n){const s=en();return uo(s,un(),e)&&Bi(nn(),xn(),s,t,e,s[11],n,!1),_o}function go(t,e,n,s,i){const r=i?"class":"style";hr(t,n,e.inputs[r],r,s)}function yo(t,e,n,s){const i=en(),r=nn(),o=Se+t,a=i[11],l=i[o]=xi(e,a,Je.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Ge(a,r),c=Ti(e,n[6],t,3,i,l);return Hi(e,n,c,Ge(a,o)),null!==c.attrs&&ro(c,c.attrs,!1),null!==c.mergedAttrs&&ro(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,i,0,e,n,s):r.data[o];on(c,!0);const h=c.mergedAttrs;null!==h&&Dn(a,l,h);const u=c.classes;null!==u&&Rr(a,l,u);const d=c.styles;null!==d&&Pr(a,l,d),kr(r,i,l,c),0===Je.lFrame.elementDepthCount&&Gs(l,i),Je.lFrame.elementDepthCount++,Oe(c)&&(Di(r,i,c),Ri(r,c,i)),null!==s&&Ni(i,c)}function bo(){let t=rn();an()?ln():(t=t.parent,on(t,!1));const e=t;Je.lFrame.elementDepthCount--;const n=nn();n.firstCreatePass&&(kn(n,t),Ae(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&go(n,e,en(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&go(n,e,en(),e.stylesWithoutHost,!1)}function vo(t,e,n,s){yo(t,e,n,s),bo()}function wo(t,e,n){const s=en(),i=nn(),r=t+Se,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Ge(r,s),a=Ti(e,n[6],t,4,"ng-container",o);return null!==o&&ro(a,o,!0),Hi(e,n,a,Ge(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,s,e,n):i.data[r];on(o,!0);const a=s[r]=s[11].createComment("");kr(i,s,a,o),Gs(a,s),Oe(o)&&(Di(i,s,o),Ri(i,o,s)),null!=n&&Ni(s,o)}function Co(){let t=rn();const e=nn();an()?ln():(t=t.parent,on(t,!1)),e.firstCreatePass&&(kn(e,t),Ae(t)&&e.queries.elementEnd(t))}function Eo(){return en()}function So(t){return!!t&&"function"==typeof t.then}function xo(t){return!!t&&"function"==typeof t.subscribe}function ko(t,e,n=!1,s){const i=en(),r=nn(),o=rn();return function(t,e,n,s,i,r,o=!1,a){const l=Oe(s),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=lr(e);let u=!0;if(3===s.type){const d=qe(s,e),p=a?a(d):he,f=p.target||d,m=h.length,_=a?t=>a(ze(t[s.index])).target:s.index;if(Be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Ao(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,_,m,m+1)}}else r=Ao(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,_,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,n,s),ko}function To(t,e,n){try{return!1!==e(n)}catch(s){return cr(t,s),!1}}function Ao(t,e,n,s){return function i(r){if(r===Function)return n;const o=2&t.flags?Ue(t.index,e):e;0==(32&e[2])&&sr(o);let a=To(e,n,r),l=i.__ngNextListenerFn__;for(;l;)a=To(e,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Io(t=1){return function(t){return(Je.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Je.lFrame.contextLView))[8]}(t)}function Oo(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?ai(t,r,!0):li(s,r))return i}else n=i}return n}function Po(t){const e=en()[16][6];if(!e.projection){const n=e.projection=ie(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?Oo(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function Ro(t,e=0,n){const s=en(),i=nn(),r=Ti(i,s[6],t,1,null,n||null);null===r.projection&&(r.projection=e),ln(),function(t,e,n){Or(e[11],0,e,n,vr(t,n,e),xr(n.parent||e[6],e))}(i,s,r)}const Do=[];function No(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?bi(r):wi(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Vo(t[a],e)&&(l=!0,t[a+1]=s?Ei(n):vi(n)),a=s?bi(n):wi(n)}l&&(t[n+1]=s?vi(r):Ei(r))}function Vo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}function Mo(t,e,n){return Lo(t,e,n,!1),Mo}function Fo(t,e){return Lo(t,e,null,!0),Fo}function Lo(t,e,n,s){const i=en(),r=nn(),o=function(t){const e=Je.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[En()+Se],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=Je.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=Bo(n=jo(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=jo(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==wi(s))return t[bi(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=jo(null,t,e,n[1],s),n=Bo(n,e.attrs,s),function(t,e,n,s){t[bi(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=Bo(s,t[r].hostAttrs,n);return Bo(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=bi(o),l=wi(o);t[s]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=bi(t[a+1]);t[s+1]=yi(e,a),0!==e&&(t[e+1]=Ci(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=yi(a,0),0!==a&&(t[a+1]=Ci(t[a+1],s)),a=s;else t[s+1]=yi(l,0),0===a?a=s:t[l+1]=Ci(t[l+1],s),l=s;h&&(t[s+1]=vi(t[s+1])),No(t,c,s,!0),No(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[s+1]=Ei(n[s+1]))}(e,c,t,s,r),o=yi(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}(r,t,o,s),e!==ui&&uo(i,o,e)&&function(t,e,n,s,i,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];zo(1==(1&c)?Ho(l,e,n,i,wi(c),o):void 0)||(zo(r)||function(t){return 2==(2&t)}(c)&&(r=Ho(l,null,n,i,a,o)),function(t,e,n,s,i){const r=Be(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{const e=-1==s.indexOf("-")?void 0:2;null==i?r?t.removeStyle(n,s,e):n.style.removeProperty(s):r?t.setStyle(n,s,i,e):n.style.setProperty(s,i)}}(s,o,$e(En(),n),i,r))}(r,r.data[En()+Se],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=vt(ws(t)))),t}(e,n),s,o)}function jo(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=Bo(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function Bo(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function Ho(t,e,n,s,i,r){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===ui&&(h=c?Do:void 0);let u=c?oe(h,s):l===s?h:void 0;if(r&&!zo(u)&&(u=oe(e,s)),zo(u)&&(a=u,o))return a;const d=t[i+1];i=o?bi(d):wi(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function zo(t){return void 0!==t}function $o(t,e=""){const n=en(),s=nn(),i=t+Se,r=s.firstCreatePass?Ti(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return Be(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);kr(s,n,o,r),on(r,!1)}function qo(t){return Wo("",t,""),qo}function Wo(t,e,n){const s=en(),i=function(t,e,n,s){return uo(t,un(),n)?e+zn(n)+s:ui}(s,t,e,n);return i!==ui&&function(t,e,n){const s=$e(e,t),i=t[11];Be(i)?i.setValue(s,n):s.textContent=n}(s,En(),i),Wo}function Uo(t,e,n){const s=en();return uo(s,un(),e)&&Bi(nn(),xn(),s,t,e,s[11],n,!0),Uo}function Qo(t,e){const n=Qe(t)[1],s=n.data.length-1;kn(n,{directiveStart:s,directiveEnd:s+1})}function Zo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Pe(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=Ko(t.inputs),e.declaredInputs=Ko(t.declaredInputs),e.outputs=Ko(t.outputs);const n=i.hostBindings;n&&Xo(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&Go(t,r),o&&Yo(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Pe(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===Zo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Mn(i.hostAttrs,n=Mn(n,i.hostAttrs))}}(s)}function Ko(t){return t===he?{}:t===ue?[]:t}function Go(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function Yo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function Xo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}function Jo(t,e,n,s,i){if(t=St(t),Array.isArray(t))for(let r=0;r<t.length;r++)Jo(t[r],e,n,s,i);else{const r=nn(),o=en();let a=no(t)?t:St(t.provide),l=Jr(t);const c=rn(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(no(t)||!t.multi){const s=new Rn(l,i,mo),p=na(a,e,i?h:h+d,u);-1===p?(ts(Gn(c,o),r,a),ta(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=na(a,e,h+d,u),f=na(a,e,h,h+d),m=p>=0&&n[p],_=f>=0&&n[f];if(i&&!_||!i&&!m){ts(Gn(c,o),r,a);const h=function(t,e,n,s,i){const r=new Rn(t,n,mo);return r.multi=[],r.index=e,r.componentProviders=0,ea(r,i,s&&!n),r}(i?ia:sa,n.length,i,s,l);!i&&_&&(n[f].providerFactory=h),ta(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else ta(r,t,p>-1?p:f,ea(n[i?f:p],l,!i&&s));!i&&s&&_&&n[f].componentProviders++}}}function ta(t,e,n,s){const i=no(e);if(i||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[s,r]):o[t+1].push(s,r)}else o.push(n,r)}}}function ea(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function na(t,e,n,s){for(let i=n;i<s;i++)if(e[i]===t)return i;return-1}function sa(t,e,n,s){return ra(this.multi,[])}function ia(t,e,n,s){const i=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=rs(n,n[1],this.providerFactory.index,s);r=e.slice(0,t),ra(i,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],ra(i,r);return r}function ra(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function oa(t,e=[]){return n=>{n.providersResolver=(n,s)=>function(t,e,n){const s=nn();if(s.firstCreatePass){const i=Pe(t);Jo(n,s.data,s.blueprint,i,!0),Jo(e,s.data,s.blueprint,i,!1)}}(n,s?s(t):t,e)}}class aa{}class la{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ca=(()=>{class t{}return t.NULL=new la,t})(),ha=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ua(t),t})();const ua=function(t){return Lr(t,rn(),en())};class da{}var pa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ma(),t})();const ma=function(){const t=en(),e=Ue(rn().index,t);return function(t){const e=t[11];if(Be(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ke(e)?e:t)};let _a=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class ga{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ya=new ga("10.1.0");class ba{constructor(){}supports(t){return co(t)}create(t){return new wa(t)}}const va=(t,e)=>e;class wa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||va}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<xa(n,s,i)?e:n,o=xa(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!co(t))throw new Error(`Error trying to diff '${vt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ao()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Ca(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ca{constructor(t,e){this.item=t,this.trackById=e,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 Ea{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Sa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ea,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xa(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class ka{constructor(){}supports(t){return t instanceof Map||ho(t)}create(){return new Ta}}class Ta{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ho(t)))throw new Error(`Error trying to diff '${vt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Aa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Aa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new ba])}),t})(),Oa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new ka])}),t})();const Pa=[new ka],Ra=new Ia([new ba]),Da=new Oa(Pa);let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Va(t,ha),t})();const Va=function(t,e){return jr(t,e,rn(),en())};let Ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fa(t,ha),t})();const Fa=function(t,e){return Br(t,e,rn(),en())},La={};class ja extends ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new za(e,this.ngModule)}}function Ba(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ha=new Lt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qn});class za extends aa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ba(this.componentDef.inputs)}get outputs(){return Ba(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,La,i);return r!==La||s===La?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(da,He),o=i.get(_a,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Be(t))return t.selectRootElement(e,n===ce.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):xi(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:qn,clean:ar,playerHandler:null,flags:0},d=Mi(0,-1,null,1,0,null,null,null,null,null),p=ki(null,d,u,h,null,null,r,a,o,i);let f,m;gn(p,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Ti(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ro(a,l,!0),null!==t&&(Dn(i,t,l),null!==a.classes&&Rr(i,t,a.classes),null!==a.styles&&Pr(i,t,a.styles)));const c=s.createRenderer(t,e),h=ki(n,Vi(e),null,e.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(ts(Gn(a,n),o,e.type),Ui(o,a),Zi(a,n.length,1)),nr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Dn(a,c,["ng-version",ya.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!ri(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Dn(a,c,t),e&&e.length>0&&Rr(a,c,e.join(" "))}if(m=We(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=rn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wi(t,s,1),Ki(t,e,n));const i=rs(e,t,e.length-1,s);Gs(i,e);const r=qe(s,e);return r&&Gs(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=rn();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Sn(a.index-Se);const t=n[1];zi(t,e),$i(t,n,e.hostVars),qi(e,o)}return o}(t,this.componentDef,p,u,[Qo]),Ai(d,p,null)}finally{Cn()}const _=new $a(this.componentType,f,Lr(ha,m,p),p,m);return d.node.child=m,_}}class $a extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Nr(s),function(t,e,n,s){let i=t.node;null==i&&(t.node=i=Li(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new ls(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const qa=void 0;var Wa=["en",[["a","p"],["AM","PM"],qa],[["AM","PM"],qa,qa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qa,"{1} 'at' {0}",qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ua={};function Qa(t){return t in Ua||(Ua[t]=Ot.ng&&Ot.ng.common&&Ot.ng.common.locales&&Ot.ng.common.locales[t]),Ua[t]}var Za=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ka="en-US";let Ga=Ka;function Ya(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ga=t.toLowerCase().replace(/_/g,"-"))}const Xa=new Map;class Ja extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ja(this);const n=Ee(t),s=t[Vt]||null;s&&Ya(s),this._bootstrapComponents=Un(n.bootstrap),this._r3Injector=Gr(t,e,[{provide:te,useValue:this},{provide:ca,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=io.THROW_IF_NOT_FOUND,n=at.Default){return t===io||t===te||t===jt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tl extends class{}{constructor(t){super(),this.moduleType=t,null!==Ee(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${vt(e)} vs ${vt(e.name)}`)})(t,Xa.get(t),e),Xa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ja(this.moduleType,t)}}function el(t,e,n){const s=en(),i=function(t,e){return t[e+Se]}(s,t);return function(t,e){return lo.isWrapped(e)&&(e=lo.unwrap(e),t[Je.lFrame.bindingIndex]=ui),e}(s,function(t,e){return t[1].data[e+Se].pure}(s,t)?function(t,e,n,s,i,r){const o=e+n;return uo(t,o,i)?function(t,e,n){return t[e]=n}(t,o+1,r?s.call(r,i):s(i)):function(t,e){const n=t[e];return n===ui?void 0:n}(t,o+1)}(s,function(){const t=Je.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}const nl=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}};function sl(){return this._results[ao()]()}class il{constructor(){this.dirty=!0,this._results=[],this.changes=new nl,this.length=0;const t=ao(),e=il.prototype;e[t]||(e[t]=sl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?(n===e&&(n=e.slice(0,s)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class rl{constructor(t){this.queryList=t,this.matches=null}clone(){return new rl(this.queryList)}setDirty(){this.queryList.setDirty()}}class ol{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new ol(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Cl(t,e).matches&&this.queries[e].setDirty()}}class al{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class ll{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new ll(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new cl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,hl(e,i)),this.matchTNodeWithReadOption(t,e,is(e,t,i,!1,!1))}else n===Na?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,is(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ha||s===Ma||s===Na&&0===e.type)this.addMatch(e.index,-2);else{const n=is(e,t,s,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function hl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function ul(t,e,n,s){return-1===n?function(t,e){return 3===t.type||4===t.type?Lr(ha,t,e):0===t.type?jr(Na,ha,t,e):null}(e,t):-2===n?function(t,e,n){return n===ha?Lr(ha,e,t):n===Na?jr(Na,ha,e,t):n===Ma?Br(Ma,ha,e,t):void 0}(t,e,s):rs(t,t[1],n,e)}function dl(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:ul(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function pl(t){const e=en(),n=nn(),s=fn();mn(s+1);const i=Cl(n,s);if(t.dirty&&Ze(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?function t(e,n,s,i){const r=e.queries.getByIndex(s),o=r.matches;if(null!==o){const a=dl(e,n,r,s);for(let e=0;e<o.length;e+=2){const s=o[e];if(s>0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const s=e[n];t(s[1],s,r,i)}}}}}return i}(n,e,s,[]):dl(n,e,i,s);t.reset(r),t.notifyOnChanges()}return!0}return!1}function fl(t,e,n){ml(nn(),en(),t,e,n,!1)}function ml(t,e,n,s,i,r){t.firstCreatePass&&(wl(t,new al(n,s,r,i),-1),r&&(t.staticViewQueries=!0)),vl(t,e)}function _l(t,e,n,s){yl(nn(),en(),e,n,s,!1,rn(),t)}function gl(t,e,n,s){yl(nn(),en(),e,n,s,!0,rn(),t)}function yl(t,e,n,s,i,r,o,a){t.firstCreatePass&&(wl(t,new al(n,s,r,i),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),r&&(t.staticContentQueries=!0)),vl(t,e)}function bl(){return t=en(),e=fn(),t[19].queries[e].queryList;var t,e}function vl(t,e){const n=new il;Fi(t,e,n,n.destroy),null===e[19]&&(e[19]=new ol),e[19].queries.push(new rl(n))}function wl(t,e,n){null===t.queries&&(t.queries=new ll),t.queries.track(new cl(e,n))}function Cl(t,e){return t.queries.getByIndex(e)}const El=new Lt("Application Initializer");let Sl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();So(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Kt(El,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const xl=new Lt("AppId"),kl={provide:xl,useFactory:function(){return`${Tl()}${Tl()}${Tl()}`},deps:[]};function Tl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Al=new Lt("Platform Initializer"),Il=new Lt("Platform ID"),Ol=new Lt("appBootstrapListener");let Pl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Rl=new Lt("LocaleId"),Dl=new Lt("DefaultCurrencyCode");class Nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Vl=function(t){return new tl(t)},Ml=Vl,Fl=function(t){return Promise.resolve(Vl(t))},Ll=function(t){const e=Vl(t),n=Un(Ee(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new za(n)),t},[]);return new Nl(e,n)},jl=Ll,Bl=function(t){return Promise.resolve(Ll(t))};let Hl=(()=>{class t{constructor(){this.compileModuleSync=Ml,this.compileModuleAsync=Fl,this.compileModuleAndAllComponentsSync=jl,this.compileModuleAndAllComponentsAsync=Bl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const zl=(()=>Promise.resolve(0))();function $l(t){"undefined"==typeof Zone?zl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ql{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new nl(!1),this.onMicrotaskEmpty=new nl(!1),this.onStable=new nl(!1),this.onError=new nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ot,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Zl(t),Ql(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Zl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return Kl(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Gl(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return Kl(t),e.invoke(s,i,r,o,a)}finally{Gl(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Zl(t),Ql(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ql.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ql.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Ul,Wl,Wl);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Wl(){}const Ul={};function Ql(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Kl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gl(t){t._nesting--,Ql(t)}class Yl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new nl,this.onMicrotaskEmpty=new nl,this.onStable=new nl,this.onError=new nl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,s){return t.apply(e,n)}}let Xl=(()=>{class t{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:()=>{ql.assertNotInAngularZone(),$l(()=>{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())$l(()=>{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(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.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,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,nc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}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,e=!0){return nc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class tc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ec,nc=new tc;const sc=new Lt("AllowMultipleToken");function ic(t,e,n=[]){const s="Platform: "+e,i=new Lt(s);return(e=[])=>{let r=rc();if(!r||r.injector.get(sc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:qr,useValue:"platform"});!function(t){if(ec&&!ec.destroyed&&!ec.injector.get(sc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ec=t.get(oc);const e=t.get(Al,null);e&&e.forEach(t=>t())}(io.create({providers:t,name:s}))}return function(t){const e=rc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function rc(){return ec&&!ec.destroyed?ec:null}let oc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Yl:("zone.js"===t?void 0:t)||new ql({enableLongStackTrace:ks(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:ql,useValue:n}];return n.run(()=>{const e=io.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(fs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>cc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return So(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Sl);return t.runInitializers(),t.donePromise.then(()=>(Ya(i.injector.get(Rl,Ka)||Ka),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const s=new tl(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Kt(io))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ks(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ql.assertNotInAngularZone(),$l(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ql.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof aa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(io.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(Xl,null);return r&&i.injector.get(Jl).registerApplication(i.location.nativeElement,r),this._loadComponent(i),ks()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),cc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Pl),Kt(io),Kt(fs),Kt(ca),Kt(Sl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const hc=ic(null,"core",[{provide:Il,useValue:"unknown"},{provide:oc,deps:[io]},{provide:Jl,deps:[]},{provide:Pl,deps:[]}]),uc=[{provide:lc,useClass:lc,deps:[ql,Pl,io,fs,ca,Sl]},{provide:Ha,deps:[ql],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Sl,useClass:Sl,deps:[[new it,El]]},{provide:Hl,useClass:Hl,deps:[]},kl,{provide:Ia,useFactory:function(){return Ra},deps:[]},{provide:Oa,useFactory:function(){return Da},deps:[]},{provide:Rl,useFactory:function(t){return Ya(t=t||"undefined"!=typeof $localize&&$localize.locale||Ka),t},deps:[[new st(Rl),new it,new ot]]},{provide:Dl,useValue:"USD"}];let dc=(()=>{class t{constructor(t){}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(lc))},providers:uc}),t})();function pc(t){return null!=t&&""+t!="false"}function fc(t){return Array.isArray(t)?t:[t]}function mc(t){return null==t?"":"string"==typeof t?t:t+"px"}function _c(t){return t instanceof ha?t.nativeElement:t}function gc(...t){let e=t[t.length-1];return x(e)?(t.pop(),V(t,e)):q(t)}function yc(t,e,n,i){return s(n)&&(i=n,n=void 0),i?yc(t,e,n).pipe(k(t=>l(t)?i(...t):i(t))):new y(s=>{!function t(e,n,s,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,r),o=()=>t.removeEventListener(n,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,i,r)}i.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class bc extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class vc extends bc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,s=void 0;try{this.work(t)}catch(i){n=!0,s=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let wc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Cc extends wc{constructor(t,e=wc.now){super(t,()=>Cc.delegate&&Cc.delegate!==this?Cc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Cc.delegate&&Cc.delegate!==this?Cc.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Ec=new Cc(vc);class Sc{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new xc(t,this.durationSelector))}}class xc extends L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=j(n,new F(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function kc(t){return!l(t)&&t-parseFloat(t)+1>=0}function Tc(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function Ac(t,e=Ec){return n=()=>function(t=0,e,n){let s=-1;return kc(e)?s=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=Ec),new y(e=>{const i=kc(t)?t:+t-n.now();return n.schedule(Tc,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new Sc(n))};var n}function Ic(t,e){return function(n){return n.lift(new Oc(t,e))}}class Oc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Pc(t,this.predicate,this.thisArg))}}class Pc extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Rc(t){return e=>e.lift(new Dc(t))}class Dc{constructor(t){this.notifier=t}call(t,e){const n=new Nc(t),s=j(this.notifier,new F(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class Nc extends L{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Vc(...t){return $(1)(gc(...t))}function Mc(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Vc(t,n,e)):e=>Vc(t,e)}class Fc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Lc(t,this.project))}}class Lc extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new F(this),s=this.destination;s.add(n),this.innerSubscription=j(t,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class jc extends vc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class Bc extends Cc{}const Hc=new Bc(jc),zc=new y(t=>t.complete());function $c(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):zc}function qc(t,e){return new y(e?n=>e.schedule(Wc,0,{error:t,subscriber:n}):e=>e.error(t))}function Wc({error:t,subscriber:e}){e.error(t)}let Uc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return gc(this.value);case"E":return qc(this.error);case"C":return $c()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Qc extends f{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Qc.dispatch,this.delay,new Zc(t,this.destination)))}_next(t){this.scheduleMessage(Uc.createNext(t))}_error(t){this.scheduleMessage(Uc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Uc.createComplete()),this.unsubscribe()}}class Zc{constructor(t,e){this.notification=t,this.destination=e}}class Kc extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Gc(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),s&&t.add(t=new Qc(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Hc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class Gc{constructor(t,e){this.time=t,this.value=e}}let Yc=null;function Xc(){return Yc}const Jc=new Lt("DocumentToken");let th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:eh,token:t,providedIn:"platform"}),t})();function eh(){return Kt(nh)}let nh=(()=>{class t extends th{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Xc().getLocation(),this._history=Xc().getHistory()}getBaseHrefFromDOM(){return Xc().getBaseHref(this._doc)}onPopState(t){Xc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Xc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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,e,n){sh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){sh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:ih,token:t,providedIn:"platform"}),t})();function sh(){return!!window.history.pushState}function ih(){return new nh(Kt(Jc))}function rh(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function oh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ah(t){return t&&"?"!==t[0]?"?"+t:t}let lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:ch,token:t,providedIn:"root"}),t})();function ch(t){const e=Kt(Jc).location;return new uh(Kt(th),e&&e.origin||"")}const hh=new Lt("appBaseHref");let uh=(()=>{class t extends lh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return rh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ah(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+ah(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+ah(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(th),Kt(hh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),dh=(()=>{class t{constructor(t,e){this._subject=new nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=oh(fh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+ah(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,fh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Kt(lh),Kt(th))},t.normalizeQueryParams=ah,t.joinWithSlash=rh,t.stripTrailingSlash=oh,t.\u0275prov=ht({factory:ph,token:t,providedIn:"root"}),t})();function ph(){return new dh(Kt(lh),Kt(th))}function fh(t){return t.replace(/\/index.html$/,"")}var mh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class _h{}let gh=(()=>{class t extends _h{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Qa(e);if(n)return n;const s=e.split("-")[0];if(n=Qa(s),n)return n;if("en"===s)return Wa;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Za.PluralCase]}(e||this.locale)(t)){case mh.Zero:return"zero";case mh.One:return"one";case mh.Two:return"two";case mh.Few:return"few";case mh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Rl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,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&&(co(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(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+vt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(mo(Ia),mo(Oa),mo(ha),mo(fa))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),bh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new vh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){wh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){wh("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,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(mo(Ma),mo(Na))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class vh{constructor(){this.$implicit=null,this.ngIf=null}}function wh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Ch{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Eh=(()=>{class t{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 e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Sh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Ch(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(mo(Ma),mo(Na),mo(Eh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})();class xh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class kh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Th=new kh,Ah=new xh;let Ih,Oh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(So(e))return Th;if(xo(e))return Ah;throw Error(`InvalidPipeArgument: '${e}' for pipe '${vt(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=Hr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"async",type:t,pure:!1}),t})(),Ph=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:_h,useClass:gh}]}),t})();function Rh(t){return"browser"===t}function Dh(t){return"server"===t}try{Ih="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ov){Ih=!1}let Nh,Vh=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Rh(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&&!Ih)&&"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 t.\u0275fac=function(e){return new(e||t)(Kt(Il))},t.\u0275prov=ht({factory:function(){return new t(Kt(Il))},token:t,providedIn:"root"}),t})(),Mh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const Fh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Lh(){if(Nh)return Nh;if("object"!=typeof document||!document)return Nh=new Set(Fh),Nh;let t=document.createElement("input");return Nh=new Set(Fh.filter(e=>(t.setAttribute("type",e),t.type===e))),Nh}let jh,Bh;function Hh(t){return function(){if(null==jh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jh=!0}))}finally{jh=jh||!1}return jh}()?t:!!t.capture}const zh=new Lt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(Jc)}});let $h=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new nl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Kt(zh,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(zh,8))},token:t,providedIn:"root"}),t})(),qh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Wh=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Ac(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):gc()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ic(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>yc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Vh),Kt(Jc,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Vh),Kt(Jc,8))},token:t,providedIn:"root"}),t})(),Uh=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}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:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ac(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(ql),Kt(Jc,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(ql),Kt(Jc,8))},token:t,providedIn:"root"}),t})(),Qh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Zh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[qh,Mh,Qh],qh,Qh]}),t})();class Kh{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Gh extends Kh{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class Yh extends Kh{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Xh extends Kh{constructor(t){super(),this.element=t instanceof ha?t.nativeElement:t}}class Jh extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Gh?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yh?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Xh?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let tu=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const eu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function nu(t){return e=>0===t?$c():e.lift(new su(t))}class su{constructor(t){if(this.total=t,this.total<0)throw new eu}call(t,e){return e.subscribe(new iu(t,this.total))}}class iu extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}class ru{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mc(-this._previousScrollPosition.left),t.style.top=mc(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class ou{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class au{enable(){}disable(){}attach(){}}function lu(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function cu(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class hu{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,this._scrollSubscription=null}attach(t){this._overlayRef=t}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:e,height:n}=this._viewportRuler.getViewportSize();lu(t,[{width:e,height:n,bottom:n,right:e,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 uu=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new au,this.close=t=>new ou(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ru(this._viewportRuler,this._document),this.reposition=t=>new hu(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wh),Kt(Uh),Kt(ql),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Wh),Kt(Uh),Kt(ql),Kt(Jc))},token:t,providedIn:"root"}),t})();class du{constructor(t){if(this.scrollStrategy=new au,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class pu{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class fu{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let mu=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc))},token:t,providedIn:"root"}),t})(),_u=(()=>{class t extends mu{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);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 t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc))},token:t,providedIn:"root"}),t})(),gu=(()=>{class t extends mu{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();const yu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let bu=(()=>{class t{constructor(t,e){this._platform=e,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=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||yu){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),yu?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();class vu{constructor(t,e,n,s,i,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=i,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);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(nu(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mc(this._config.width),t.height=mc(this._config.height),t.minWidth=mc(this._config.minWidth),t.minHeight=mc(this._config.minHeight),t.maxWidth=mc(this._config.maxWidth),t.maxHeight=mc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),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",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;fc(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Rc(W(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const wu="cdk-overlay-connected-position-bounding-box",Cu=/([A-Za-z%]+)$/;class Eu{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,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 E,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wu),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,s=[];let i;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Su(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wu),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();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){let{x:i,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(i+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-i,i+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=xu(this._overlayRef.getConfig().minHeight),o=xu(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,i=Math.max(t.x+e.width-s.width,0),r=Math.max(t.y+e.height-s.height,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=s.width?a||-i:t.x<this._viewportMargin?s.left-n.left-t.x:0,c=e.height<=s.height?o||-r:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new fu(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let i,r,o,a,l,c;if("top"===e.overlayY)r=t.y,i=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=2*e,r=t.y-e,i>s&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=mc(n.height),s.top=mc(n.top),s.bottom=mc(n.bottom),s.width=mc(n.width),s.left=mc(n.left),s.right=mc(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=mc(t)),i&&(s.maxWidth=mc(i))}this._lastBoundingBoxSize=n,Su(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Su(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Su(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();Su(n,this._getExactOverlayY(e,t,s)),Su(n,this._getExactOverlayX(e,t,s))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(s?n.maxHeight=mc(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=mc(r.maxWidth):i&&(n.maxWidth="")),Su(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=mc(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=mc(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:cu(t,n),isOriginOutsideView:lu(t,n),isOverlayClipped:cu(e,n),isOverlayOutsideView:lu(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&fc(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ha)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Su(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function xu(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Cu);return n&&"px"!==n?null:parseFloat(e)}return t||null}class ku{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new Eu(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const i=new pu(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Tu="cdk-global-overlay-wrapper";class Au{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Tu),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Tu),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Iu=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new Au}connectedTo(t,e,n){return new ku(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Eu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Uh),Kt(Jc),Kt(Vh),Kt(bu))},t.\u0275prov=ht({factory:function(){return new t(Kt(Uh),Kt(Jc),Kt(Vh),Kt(bu))},token:t,providedIn:"root"}),t})(),Ou=0,Pu=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new du(t);return i.direction=i.direction||this._directionality.value,new vu(s,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ou++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(lc)),new Jh(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(uu),Kt(bu),Kt(ca),Kt(Iu),Kt(_u),Kt(io),Kt(ql),Kt(Jc),Kt($h),Kt(dh),Kt(gu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ru={provide:new Lt("cdk-connected-overlay-scroll-strategy"),deps:[Pu],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Du=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Pu,Ru],imports:[[qh,tu,Zh],Zh]}),t})();const Nu=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Vu={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Vu.schedule(t,0);if(void 0===window.requestAnimationFrame)return Vu.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Mu(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Nu.call(t,e)}(t,e)||(s=n,0))),s}class Fu{constructor(t,e){this.componentFactory=e.get(ca).resolveComponentFactory(t)}create(t){return new Lu(this.componentFactory,t)}}class Lu{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Kc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?s=>s.pipe(t((t,s)=>M(e(t,s)).pipe(k((e,i)=>n(t,e,s,i))))):t=>t.lift(new Fc(e))}(t=>W(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(ql),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Vu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=e)!==(s=this.getInputValue(t))&&(n==n||s==s)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=io.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Mu(t,e,i);-1!==o&&s[o].push(t)}return s}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(lc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(k(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Vu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new De(i,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class ju extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Bu(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}class Hu extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}function zu(t,e=Ec){return n=>n.lift(new $u(t,e))}class $u{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new qu(t,this.dueTime,this.scheduler))}}class qu extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Wu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Wu(t){t.debouncedNext()}function Uu(){}function Qu(t,e,n){return function(s){return s.lift(new Zu(t,e,n))}}class Zu{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Ku(t,this.nextOrObserver,this.error,this.complete))}}class Ku extends f{constructor(t,e,n,i){super(t),this._tapNext=Uu,this._tapError=Uu,this._tapComplete=Uu,this._tapError=n||Uu,this._tapComplete=i||Uu,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Uu,this._tapError=e.error||Uu,this._tapComplete=e.complete||Uu)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Gu={provide:Ol,useFactory:function(t,e){return()=>{if(Rh(e)){const e=Array.from(t.querySelectorAll(`[class*=${Yu}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(Yu+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[Jc,Il],multi:!0},Yu="flex-layout-";let Xu=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Gu]}),t})();class Ju{constructor(t=!1,e="all",n="",s="",i=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=s,this.priority=i,this.property=""}clone(){return new Ju(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let td=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const s=this.stylesheet.get(t);s?s.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let s="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(s=t+"")}return s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ed={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},nd=new Lt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ed}),sd=new Lt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),id=new Lt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function rd(t,e){return t=t?t.clone():new Ju,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const od="inline",ad=["row","column","row-reverse","column-reverse"];function ld(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let cd=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,s=n.shouldCache;let i=this.styleCache.get(t);i&&s||(i=n.buildStyles(t,e),s&&this.styleCache.set(t,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,s]=this.styler.getFlowDirection(t);if(!s&&e){const e=function(t){let[e,n,s]=function(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return ad.find(t=>t===e)||(e=ad[0]),n===od&&(n=s!==od?s:"",s=od),[e,ld(n),!!s]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=be({type:t,features:[Ne]}),t})();const hd=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ud="(orientation: portrait) and (max-width: 599.9px)",dd="(orientation: landscape) and (max-width: 959.9px)",pd="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",fd="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",md="(orientation: portrait) and (min-width: 840px)",_d="(orientation: landscape) and (min-width: 1280px)",gd={HANDSET:`${ud}, ${dd}`,TABLET:`${pd} , ${fd}`,WEB:`${md}, ${_d} `,HANDSET_PORTRAIT:""+ud,TABLET_PORTRAIT:pd+" ",WEB_PORTRAIT:""+md,HANDSET_LANDSCAPE:""+dd,TABLET_LANDSCAPE:""+fd,WEB_LANDSCAPE:""+_d},yd=[{alias:"handset",priority:2e3,mediaQuery:gd.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:gd.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:gd.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:gd.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:gd.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:gd.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:gd.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:gd.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:gd.WEB_PORTRAIT,overlapping:!0}],bd=/(\.|-|_)/g;function vd(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const wd=new Lt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Gt(id),e=Gt(nd),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(s=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(bd,"|").split("|").map(vd).join(""),t.overlapping=!!t.overlapping)}),s;var s}((e.disableDefaultBps?[]:hd).concat(e.addOrientationBps?yd:[]),n)}});function Cd(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Ed(t,e){return(t.priority||0)-(e.priority||0)}let Sd=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Ed)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(Kt(wd))},t.\u0275prov=ht({factory:function(){return new t(Kt(wd))},token:t,providedIn:"root"}),t})(),xd=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new Hu(new Ju(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(Ic(n=>!e||t.indexOf(n.mediaQuery)>-1));return W(new y(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!kd[t]);if(n.length>0){const t=n.join(", ");try{const s=e.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(s),n.forEach(t=>kd[t]=s)}catch(s){console.error(s)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Ju(e.matches,t)))};let s=this.registry.get(t);s||(s=this.buildMQL(t),s.addListener(e),this.pendingRemoveListenerFns.push(()=>s.removeListener(e)),this.registry.set(t,s)),s.matches&&n.push(new Ju(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Rh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Il),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Il),Kt(Jc))},token:t,providedIn:"root"}),t})();const kd={},Td="print",Ad={alias:Td,mediaQuery:Td,priority:1e3};let Id=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Od,this.deactivations=[]}withPrintQuery(t){return[...t,Td]}isPrintEvent(t){return t.mediaQuery.startsWith(Td)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Cd)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),rd(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Ju(!0,Td))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Cd))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Sd),Kt(nd),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Sd),Kt(nd),Kt(Jc))},token:t,providedIn:"root"}),t})();class Od{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(Ad),t.sort(Cd),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Td)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function Pd(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let Rd=(()=>{class t{constructor(t,e,n,s){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=s}applyStyleToElement(t,e,n=null){let s={};"string"==typeof e&&(s[e]=n,e=s),s=this.layoutConfig.disableVendorPrefixes?e:Pd(e),this._applyMultiValueStyleToElement(s,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:Pd(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Dh(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Rh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let s="";return t&&((s=this.lookupInlineStyle(t,e))||(Rh(this._platformId)?n||(s=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,e)))),s?s.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const s=t[n],i=Array.isArray(s)?s:[s];i.sort();for(let t of i)t=t?t+"":"",Rh(this._platformId)||!this._serverModuleLoaded?Rh(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const s=this._readStyleAttribute(t);s[e]=n||"",this._writeStyleAttribute(t,s)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const s=t[n].trim();if(s.length>0){const t=s.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+s);e[s.substr(0,t).trim()]=s.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const s in e)e[s]&&(n+=s+":"+e[s]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(td),Kt(sd),Kt(Il),Kt(nd))},t.\u0275prov=ht({factory:function(){return new t(Kt(td),Kt(sd),Kt(Il),Kt(nd))},token:t,providedIn:"root"}),t})(),Dd=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=rd(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Cd),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Cd),this.updateStyles()))}init(t,e,n,s,i=[]){Nd(this.updateMap,t,e,n),Nd(this.clearMap,t,e,s),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)}getValue(t,e,n){const s=this.elementMap.get(t);if(s){const t=void 0!==n?s.get(n):this.getActivatedValues(s,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,s){let i=this.elementMap.get(t);if(i){const r=(i.get(s)||new Map).set(e,n);i.set(s,r),this.elementMap.set(t,i)}else i=(new Map).set(s,(new Map).set(e,n)),this.elementMap.set(t,i);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Ic(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let s=this.getActivatedValues(t);s&&s.forEach((t,s)=>{this.updateElement(e,s,t),n.delete(s)}),n.forEach(n=>{if(s=this.getActivatedValues(t,n),s){const t=s.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const s=n.get(e);s&&(s(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const s=this.updateMap.get(t);if(s){const i=s.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const s=this.getActivatedValues(n,e);s&&(e?this.updateElement(t,e,s.get(e)):s.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let s=this.watcherMap.get(t);if(s||(s=new Map,this.watcherMap.set(t,s)),!s.get(e)){const i=W(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});s.set(e,i)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let s=0;s<this.activatedBreakpoints.length;s++){const n=t.get(this.activatedBreakpoints[s].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Qu(this.hook.interceptEvents(this)),Ic(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Kt(xd),Kt(Sd),Kt(Id))},t.\u0275prov=ht({factory:function(){return new t(Kt(xd),Kt(Sd),Kt(Id))},token:t,providedIn:"root"}),t})();function Nd(t,e,n,s){if(void 0!==s){let i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,s)}}class Vd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Vd,Yc||(Yc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Fd||(Fd=document.querySelector("base"),Fd)?Fd.getAttribute("href"):null;return null==e?null:(n=e,Md||(Md=document.createElement("a")),Md.setAttribute("href",n),"/"===Md.pathname.charAt(0)?Md.pathname:"/"+Md.pathname);var n}resetBaseElement(){Fd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Md,Fd=null;const Ld=new Lt("TRANSITION_ID"),jd=[{provide:El,useFactory:function(t,e,n){return()=>{n.get(Sl).donePromise.then(()=>{const n=Xc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Ld,Jc,io],multi:!0}];class Bd{static init(){var t;t=new Bd,nc=t}addToWindow(t){Ot.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(t=>{const e=Ot.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Xc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Hd=new Lt("EventManagerPlugins");let zd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Hd),Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $d{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=Xc().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let qd=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Wd=(()=>{class t extends qd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Xc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ud={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/"},Qd=/%COMP%/g;function Zd(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?Zd(t,i,n):(i=i.replace(Qd,t),n.push(i))}return n}function Kd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Gd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Yd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Xd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new Jd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Zd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Kt(zd),Kt(Wd),Kt(xl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Yd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ud[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const i=Ud[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=Ud[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&pa.DashCase?t.style.setProperty(e,n,s&pa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&pa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Kd(n)):this.eventManager.addEventListener(t,e,Kd(n))}}class Xd extends Yd{constructor(t,e,n,s){super(t),this.component=n;const i=Zd(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Qd,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Qd,s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Jd extends Yd{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=Zd(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let tp=(()=>{class t extends $d{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ep=["alt","control","meta","shift"],np={"\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"},sp={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"},ip={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let rp=(()=>{class t extends $d{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xc().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(ep.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&sp.hasOwnProperty(e)&&(e=sp[e]))}return np[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ep.forEach(s=>{s!=n&&(0,ip[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),op=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Kt(ap)},token:t,providedIn:"root"}),t})(),ap=(()=>{class t extends op{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Ks.NONE:return e;case Ks.HTML:return Cs(e,"HTML")?ws(e):function(t,e){let n=null;try{Qs=Qs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(Ov){return!1}}()?new Ts:new As(t)}(t);let s=e?String(e):"";n=Qs.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Qs.getInertBodyElement(s)}while(s!==r);const o=new $s,a=o.sanitizeChildren(Zs(n)||n);return ks()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Zs(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case Ks.STYLE:return Cs(e,"Style")?ws(e):e;case Ks.SCRIPT:if(Cs(e,"Script"))return ws(e);throw new Error("unsafe value used in a script context");case Ks.URL:return Es(e),Cs(e,"URL")?ws(e):Ps(String(e));case Ks.RESOURCE_URL:if(Cs(e,"ResourceURL"))return ws(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new _s(t)}bypassSecurityTrustStyle(t){return new gs(t)}bypassSecurityTrustScript(t){return new ys(t)}bypassSecurityTrustUrl(t){return new bs(t)}bypassSecurityTrustResourceUrl(t){return new vs(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return t=Kt(jt),new ap(t.get(Jc));var t},token:t,providedIn:"root"}),t})();const lp=ic(hc,"browser",[{provide:Il,useValue:"browser"},{provide:Al,useValue:function(){Vd.makeCurrent(),Bd.init()},multi:!0},{provide:Jc,useFactory:function(){return function(t){je=t}(document),document},deps:[]}]),cp=[[],{provide:qr,useValue:"root"},{provide:fs,useFactory:function(){return new fs},deps:[]},{provide:Hd,useClass:tp,multi:!0,deps:[Jc,ql,Il]},{provide:Hd,useClass:rp,multi:!0,deps:[Jc]},[],{provide:Gd,useClass:Gd,deps:[zd,Wd,xl]},{provide:da,useExisting:Gd},{provide:qd,useExisting:Wd},{provide:Wd,useClass:Wd,deps:[Jc]},{provide:Xl,useClass:Xl,deps:[ql]},{provide:zd,useClass:zd,deps:[Hd,ql]},[]];let hp=(()=>{class t{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(e){return{ngModule:t,providers:[{provide:xl,useValue:e.appId},{provide:Ld,useExisting:xl},jd]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(t,12))},providers:cp,imports:[Ph,dc]}),t})();"undefined"!=typeof window&&window;let up=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu]]}),t})();const dp="inline",pp=["row","column","row-reverse","column-reverse"];function fp(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let mp=(()=>{class t extends class{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}{buildStyles(t){return function(t){let[e,n,s]=function(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return pp.find(t=>t===e)||(e=pp[0]),n===dp&&(n=s!==dp?s:"",s=dp),[e,fp(n),!!s]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(t)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"});const e=hs(t);return t})();const _p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let gp=(()=>{class t extends cd{constructor(t,e,n,s){super(t,n,e,s),this.DIRECTIVE_KEY="layout",this.styleCache=bp,this.init()}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Rd),mo(mp),mo(Dd))},t.\u0275dir=be({type:t,features:[Zo]}),t})(),yp=(()=>{class t extends gp{constructor(){super(...arguments),this.inputs=_p}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Zo]});const e=hs(t);return t})();const bp=new Map;let vp=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu,qh]]}),t})(),wp=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu]]}),t})(),Cp=(()=>{class t{constructor(t,e){Dh(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:nd,useValue:Object.assign(Object.assign({},ed),e)},{provide:id,useValue:n,multi:!0},{provide:sd,useValue:!0}]:[{provide:nd,useValue:Object.assign(Object.assign({},ed),e)},{provide:id,useValue:n,multi:!0}]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sd),Kt(Il))},imports:[[vp,up,wp],vp,up,wp]}),t})();function Ep(...t){if(1===t.length){const e=t[0];if(l(e))return Sp(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Sp(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Sp(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(k(t=>e(...t)))}return Sp(t,null)}function Sp(t,e){return new y(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=M(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}const xp=new Lt("NgValueAccessor"),kp={provide:xp,useExisting:Et(()=>Tp),multi:!0};let Tp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[oa([kp])]}),t})();const Ap={provide:xp,useExisting:Et(()=>Op),multi:!0},Ip=new Lt("CompositionEventMode");let Op=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Xc()?Xc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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 t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha),mo(Ip,8))},t.\u0275dir=be({type:t,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,e){1&t&&ko("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[oa([Ap])]}),t})(),Pp=(()=>{class t{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}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),Rp=(()=>{class t extends Pp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Dp(e||t)},t.\u0275dir=be({type:t,features:[Zo]}),t})();const Dp=hs(Rp);class Np extends Pp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let Vp=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(mo(Np,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Fo("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Zo]}),t})();function Mp(t){return null==t||0===t.length}function Fp(t){return null!=t&&"number"==typeof t.length}const Lp=new Lt("NgValidators"),jp=new Lt("NgAsyncValidators"),Bp=/^(?=.{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 Hp{static min(t){return e=>{if(Mp(e.value)||Mp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Mp(e.value)||Mp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Mp(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Mp(t.value)||Bp.test(t.value)?null:{email:!0}}static minLength(t){return e=>Mp(e.value)||!Fp(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>Fp(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Hp.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Mp(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(zp);return 0==e.length?null:function(t){return qp(Wp(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(zp);return 0==e.length?null:function(t){return Ep(Wp(t,e).map($p)).pipe(k(qp))}}}function zp(t){return null!=t}function $p(t){const e=So(t)?M(t):t;return xo(e),e}function qp(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Wp(t,e){return e.map(e=>e(t))}function Up(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const Qp={provide:xp,useExisting:Et(()=>Zp),multi:!0};let Zp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ko("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[oa([Qp])]}),t})();const Kp={provide:xp,useExisting:Et(()=>Yp),multi:!0};let Gp=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Yp=(()=>{class t{constructor(t,e,n,s){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Np),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha),mo(Gp),mo(io))},t.\u0275dir=be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oa([Kp])]}),t})();const Xp={provide:xp,useExisting:Et(()=>Jp),multi:!0};let Jp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[oa([Xp])]}),t})();const tf={provide:xp,useExisting:Et(()=>ef),multi:!0};let ef=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[oa([tf])]}),t})();const nf={provide:xp,useExisting:Et(()=>sf),multi:!0};let sf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const s=t.item(e),i=this._getOptionValue(s.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const s=t.item(e);if(s.selected){const t=this._getOptionValue(s.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[oa([nf])]}),t})();function rf(t,e){t.validator=Hp.compose([t.validator,e.validator]),t.asyncValidator=Hp.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&of(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&of(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function of(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function af(t,e){t.validator=Hp.compose([t.validator,e.validator]),t.asyncValidator=Hp.composeAsync([t.asyncValidator,e.asyncValidator])}function lf(t){return null!=t?Hp.compose(Up(t)):null}function cf(t){return null!=t?Hp.composeAsync(Up(t)):null}const hf=[Tp,Jp,Zp,ef,sf,Yp];function uf(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function df(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const pf="VALID",ff="INVALID",mf="PENDING",_f="DISABLED";function gf(t){return(wf(t)?t.validators:t)||null}function yf(t){return Array.isArray(t)?lf(t):t||null}function bf(t,e){return(wf(e)?e.asyncValidators:t)||null}function vf(t){return Array.isArray(t)?cf(t):t||null}function wf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Cf{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=yf(this._rawValidators),this._composedAsyncValidatorFn=vf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===pf}get invalid(){return this.status===ff}get pending(){return this.status==mf}get disabled(){return this.status===_f}get enabled(){return this.status!==_f}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=yf(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vf(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=mf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=_f,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=pf,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==pf&&this.status!==mf||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_f:pf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=mf,this._hasOwnPendingAsyncValidator=!0;const e=$p(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof Sf?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof xf&&s.at(t)||null}),s}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new nl,this.statusChanges=new nl}_calculateStatus(){return this._allControlsDisabled()?_f:this.errors?ff:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mf)?mf:this._anyControlsHaveStatus(ff)?ff:pf}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){wf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ef extends Cf{constructor(t=null,e,n){super(gf(e),bf(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Sf extends Cf{constructor(t,e,n){super(gf(e),bf(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Ef?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class xf extends Cf{constructor(t,e,n){super(gf(e),bf(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ef?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const kf={provide:Rp,useExisting:Et(()=>Af)},Tf=(()=>Promise.resolve(null))();let Af=(()=>{class t extends Rp{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new nl,this.form=new Sf({},lf(t),cf(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Tf.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),rf(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Tf.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),df(this._directives,t)})}addFormGroup(t){Tf.then(()=>{const e=this._findContainer(t.path),n=new Sf({});af(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Tf.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Tf.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,uf(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 t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ko("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oa([kf]),Zo]}),t})();const If=new Lt("NgModelWithFormControlWarning"),Of={provide:Np,useExisting:Et(()=>Pf)};let Pf=(()=>{class t extends Np{constructor(t,e,n,s){super(),this._ngModelWarningConfig=s,this.update=new nl,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,s=void 0,i=void 0;return e.forEach(t=>{var e;t.constructor===Op?n=t:(e=t,hf.some(t=>e.constructor===t)?s=t:i=t)}),i||s||n||null}(0,n)}set isDisabled(t){}ngOnChanges(e){var n,s;this._isControlChanged(e)&&(rf(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(e,this.viewModel)&&(n=t,this,s=this._ngModelWarningConfig,ks()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return lf(this._rawValidators)}get asyncValidator(){return cf(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10),mo(xp,10),mo(If,8))},t.\u0275dir=be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[oa([Of]),Zo,Ne]}),t._ngModelWarningSentOnce=!1,t})();const Rf={provide:Rp,useExisting:Et(()=>Df)};let Df=(()=>{class t extends Rp{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new nl}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return rf(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){df(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);af(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);af(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,uf(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 e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&rf(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=lf(this._validators);this.form.validator=Hp.compose([this.form.validator,t]);const e=cf(this._asyncValidators);this.form.asyncValidator=Hp.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10))},t.\u0275dir=be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ko("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oa([Rf]),Zo,Ne]}),t})(),Nf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Vf=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let s=null,i=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Sf(n,{asyncValidators:i,updateOn:r,validators:s})}control(t,e,n){return new Ef(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new xf(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Ef||t instanceof Sf||t instanceof xf?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Mf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Gp],imports:[Nf]}),t})(),Ff=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:If,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Vf,Gp],imports:[Nf]}),t})(),Lf=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),jf=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=_c(t);return new y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new E,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,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:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Lf))},t.\u0275prov=ht({factory:function(){return new t(Kt(Lf))},token:t,providedIn:"root"}),t})(),Bf=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):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(zu(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(mo(jf),mo(ha),mo(ql))},t.\u0275dir=be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Hf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Lf]}),t})();function zf(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const $f="cdk-describedby-message-container",qf="cdk-describedby-host";let Wf=0;const Uf=new Map;let Qf=null,Zf=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Uf.set(e,{messageElement:e,referenceCount:0})):Uf.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Uf.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Qf&&0===Qf.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(qf);Qf&&this._deleteMessagesContainer(),Uf.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Qf.appendChild(e),Uf.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+Wf++)}_deleteMessageElement(t){const e=Uf.get(t),n=e&&e.messageElement;Qf&&n&&Qf.removeChild(n),Uf.delete(t)}_createMessagesContainer(){if(!Qf){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById($f);e&&e.parentNode&&e.parentNode.removeChild(e),Qf=this._document.createElement("div"),Qf.id=$f,Qf.classList.add("cdk-visually-hidden"),Qf.setAttribute("aria-hidden",t+""),this._document.body.appendChild(Qf)}}_deleteMessagesContainer(){Qf&&Qf.parentNode&&(Qf.parentNode.removeChild(Qf),Qf=null)}_removeCdkDescribedByReferenceIds(t){const e=zf(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Uf.get(e);!function(t,e,n){const s=zf(t,e);s.some(t=>t.trim()==n.trim())||(s.push(n.trim()),t.setAttribute(e,s.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(qf,""),n.referenceCount++}_removeMessageReference(t,e){const n=Uf.get(e);n.referenceCount--,function(t,e,n){const s=zf(t,e).filter(t=>t!=n.trim());s.length?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(qf)}_isElementDescribedByMessage(t,e){const n=zf(t,"aria-describedby"),s=Uf.get(e),i=s&&s.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),s=t.getAttribute("aria-label");return!(!n||s&&s.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();function Kf(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const Gf=new Lt("cdk-focus-monitor-default-options"),Yf=Hh({passive:!0,capture:!0});let Xf=(()=>{class t{constructor(t,e,n,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Kf(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Jf(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Jf(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return gc(null);const n=_c(t),s=function(t){if(function(){if(null==Bh){const t="undefined"!=typeof document?document.head:null;Bh=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Bh}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const r={checkChildren:e,subject:new E,rootNode:s};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=_c(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const s=_c(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Jf(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==Jf(t))return;const s=this._getFocusOrigin(t);this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yf)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Yf),t.addEventListener("mousedown",this._documentMousedownListener,Yf),t.addEventListener("touchstart",this._documentTouchstartListener,Yf),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yf),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Yf),t.removeEventListener("mousedown",this._documentMousedownListener,Yf),t.removeEventListener("touchstart",this._documentTouchstartListener,Yf),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Vh),Kt(Jc,8),Kt(Gf,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Vh),Kt(Jc,8),Kt(Gf,8))},token:t,providedIn:"root"}),t})();function Jf(t){return t.composedPath?t.composedPath()[0]:t.target}const tm="cdk-high-contrast-black-on-white",em="cdk-high-contrast-white-on-black",nm="cdk-high-contrast-active";let sm=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}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 e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(nm),t.remove(tm),t.remove(em);const e=this.getHighContrastMode();1===e?(t.add(nm),t.add(tm)):2===e&&(t.add(nm),t.add(em))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(Jc))},token:t,providedIn:"root"}),t})(),im=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sm))},imports:[[Mh,Hf]]}),t})();const rm=new ga("10.2.0");class om{}const am="*";function lm(t,e){return{type:7,name:t,definitions:e,options:{}}}function cm(t,e=null){return{type:4,styles:e,timings:t}}function hm(t,e=null){return{type:2,steps:t,options:e}}function um(t){return{type:6,styles:t,offset:null}}function dm(t,e,n){return{type:0,name:t,styles:e,options:n}}function pm(t){return{type:5,steps:t}}function fm(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function mm(t){Promise.resolve(null).then(t)}class _m{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){mm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class gm{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const i=this.players.length;0==i?mm(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ym(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bm(t){switch(t.length){case 0:return new _m;case 1:return t[0];default:return new gm(t)}}function vm(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case am:a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function wm(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&Cm(n,"start",t)));break;case"done":t.onDone(()=>s(n&&Cm(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&Cm(n,"destroy",t)))}}function Cm(t,e,n){const s=n.totalTime,i=Em(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function Em(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Sm(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function xm(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let km=(t,e)=>!1,Tm=(t,e)=>!1,Am=(t,e,n)=>[];const Im=ym();(Im||"undefined"!=typeof Element)&&(km=(t,e)=>t.contains(e),Tm=(()=>{if(Im||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Tm}})(),Am=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let Om=null,Pm=!1;function Rm(t){Om||(Om=("undefined"!=typeof document?document.body:null)||{},Pm=!!Om.style&&"WebkitAppearance"in Om.style);let e=!0;return Om.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Om.style,!e&&Pm)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Om.style),e}const Dm=Tm,Nm=km,Vm=Am;function Mm(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let Fm=(()=>{class t{validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new _m(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Lm=(()=>{class t{}return t.NOOP=new Fm,t})();const jm="ng-enter",Bm="ng-leave",Hm="ng-trigger",zm=".ng-trigger",$m="ng-animating",qm=".ng-animating";function Wm(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Um(parseFloat(e[1]),e[2])}function Um(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Qm(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=Um(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=Um(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function Zm(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Km(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else Zm(t,n);return n}function Gm(t,e,n){return n?e+":"+n+";":""}function Ym(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=Gm(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Gm(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Xm(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=o_(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),ym()&&Ym(t))}function Jm(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=o_(e);t.style[n]=""}),ym()&&Ym(t))}function t_(t){return Array.isArray(t)?1==t.length?t[0]:hm(t):t}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function n_(t){let e=[];if("string"==typeof t){let n;for(;n=e_.exec(t);)e.push(n[1]);e_.lastIndex=0}return e}function s_(t,e,n){const s=t.toString(),i=s.replace(e_,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),i=""),i.toString()});return i==s?t:i}function i_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const r_=/-+([a-z0-9])/g;function o_(t){return t.replace(r_,(...t)=>t[1].toUpperCase())}function a_(t,e){return 0===t||0===e}function l_(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach((function(e){n[e]=h_(t,e)}))}}return e}function c_(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function h_(t,e){return window.getComputedStyle(t)[e]}const u_="*";function d_(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(m_(i,o)),"<"!=r[0]||i==u_&&o==u_||e.push(m_(o,i))}(t,n,e)):n.push(t),n}const p_=new Set(["true","1"]),f_=new Set(["false","0"]);function m_(t,e){const n=p_.has(t)||f_.has(t),s=p_.has(e)||f_.has(e);return(i,r)=>{let o=t==u_||t==i,a=e==u_||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?p_.has(t):f_.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?p_.has(e):f_.has(e)),o&&a}}const __=new RegExp("s*:selfs*,?","g");function g_(t,e,n){return new y_(t).build(e,n)}class y_{constructor(t){this._driver=t}build(t,e){const n=new b_(e);return this._resetContextStyleTimingState(n),c_(this,t_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(v_(t)){const e=t;Object.keys(e).forEach(t=>{n_(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=i_(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=c_(this,t_(t.animation),e);return{type:1,matchers:d_(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:w_(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>c_(this,t,e)),options:w_(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=c_(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:w_(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return C_(Qm(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=C_(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||Qm(s,e),C_(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:um({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=um(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==am?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(v_(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=n_(t);i.length&&i.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(v_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(v_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=h>0?s==u?1:h*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:c_(this,t_(t.animation),e),options:w_(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:w_(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:w_(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(__,"")),[t=t.replace(/@\*/g,zm).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,qm),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Sm(e.collectedStyles,e.currentQuerySelector,{});const o=c_(this,t_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:w_(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qm(t.timings,e.errors,!0);return{type:12,animation:c_(this,t_(t.animation),e),timings:n,options:null}}}class b_{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function v_(t){return!Array.isArray(t)&&"object"==typeof t}function w_(t){var e;return t?(t=Zm(t)).params&&(t.params=(e=t.params)?Zm(e):null):t={},t}function C_(t,e,n){return{duration:t,delay:e,easing:n}}function E_(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class S_{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const x_=new RegExp(":enter","g"),k_=new RegExp(":leave","g");function T_(t,e,n,s,i,r={},o={},a,l,c=[]){return(new A_).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class A_{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new S_;const h=new O_(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),c_(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[E_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?Wm(n.duration):null,r=null!=n.delay?Wm(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),c_(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=I_);const t=Wm(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>c_(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?Wm(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),c_(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Qm(e.params?s_(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?Wm(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=I_);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),c_(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;c_(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const I_={};class O_{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=I_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new P_(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=Wm(n.duration)),null!=n.delay&&(s.delay=Wm(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=s_(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,i=new O_(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=I_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new R_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(x_,"."+this._enterClassName)).replace(k_,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class P_{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new P_(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||am,this._currentKeyframe[t]=am}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=am})):Km(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=s_(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:am),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=Km(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==am&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?i_(t.values()):[],r=e.size?i_(e.values()):[];if(n){const t=s[0],e=Zm(t);t.offset=0,e.offset=1,s=[t,e]}return E_(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class R_ extends P_{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=Km(t[0],!1);a.offset=0,i.push(a);const l=Km(t[0],!1);l.offset=D_(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=Km(t[s],!1);o.offset=D_((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return E_(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function D_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class N_{}class V_ extends N_{normalizePropertyName(t,e){return o_(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(M_[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const M_=(()=>function(t){const e={};return t.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 F_(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const L_={};class j_{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||L_,d=this.buildStyles(n,o&&o.params||L_,h),p=a&&a.params||L_,f=this.buildStyles(s,p,h),m=new Set,_=new Map,g=new Map,y="void"===s,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:T_(t,e,this.ast.animation,i,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return F_(e,this._triggerName,n,s,y,d,f,[],[],_,g,w,h);v.forEach(t=>{const n=t.element,s=Sm(_,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Sm(g,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const C=i_(m.values());return F_(e,this._triggerName,n,s,y,d,f,v,C,_,g,w)}}class B_{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=Zm(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=s_(r,s,e)),n[t]=r})}}),n}}class H_{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new B_(t.style,t.options&&t.options.params||{})}),z_(this.states,"true","1"),z_(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new j_(t,e,this.states))}),this.fallbackTransition=new j_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function z_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const $_=new S_;class q_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=g_(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,i=vm(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=T_(this._driver,e,i,jm,Bm,{},{},n,$_,s),r.forEach(t=>{const e=Sm(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,am)})});const a=bm(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,s){const i=Em(e,"","","");return wm(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const W_="ng-animate-queued",U_="ng-animate-disabled",Q_=".ng-animate-disabled",Z_=[],K_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},G_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Y_{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=Zm(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const X_="void",J_=new Y_(X_);class tg{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ag(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=Sm(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=Sm(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ag(t,Hm),ag(t,"ng-trigger-"+e),a[e]=J_),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new ng(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(ag(t,Hm),ag(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Y_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=J_),l.value!==X_&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Jm(t,n),Xm(t,s)})}return}const c=Sm(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(ag(t,W_),r.onStart(()=>{lg(t,W_)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,zm,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,X_,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&bm(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const i=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||J_,o=new Y_(X_),a=new ng(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==K_||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ag(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=Em(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,wm(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class eg{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new tg(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(sg(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!sg(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ag(t,U_)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),lg(t,U_))}removeNode(t,e,n,s){if(sg(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return sg(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,zm,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,qm,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return bm(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=K_,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Q_)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Q_,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ag(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bm(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new S_,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=og(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=jm+f++;p.set(e,n),t.forEach(t=>ag(t,n))});const m=[],_=new Set,g=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const t=this.collectedLeaveElements[O],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),_.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>_.add(t)):g.add(t))}const y=new Map,b=og(u,Array.from(_));b.forEach((t,e)=>{const n=Bm+f++;y.set(e,n),t.forEach(t=>ag(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>lg(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>lg(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Jm(i,f.fromStyles)),e.onDestroy(()=>Xm(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>Jm(i,f.fromStyles)),e.onDestroy(()=>Xm(i,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Sm(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Sm(C,e,[]).push(t),t.destroy()})});const S=m.filter(t=>hg(t,a,l)),x=new Map;rg(x,this.driver,g,l,am).forEach(t=>{hg(t,a,l)&&S.push(t)});const k=new Map;d.forEach((t,e)=>{rg(k,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=k.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],A=[],I={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Xm(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=I;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,i,k,x);if(r.setRealPlayer(n),t===I)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=bm(e)),s.push(r)}}else Jm(e,o.fromStyles),r.onDestroy(()=>Xm(e,o.toStyles)),A.push(r),c.has(e)&&s.push(r)}),A.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=bm(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O<m.length;O++){const t=m[O],e=t.__ng_removed;if(lg(t,Bm),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,qm,!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?cg(this,t,s):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==X_;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Sm(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Jm(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new _m(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const i=e[s];i instanceof gm?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||Z_).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),_=r.get(u),g=vm(0,this._normalizer,0,e.keyframes,m,_),y=this._buildPlayer(e,g,f);if(e.subTimeline&&s&&h.add(u),p){const e=new ng(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Sm(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>ag(t,$m));const d=bm(u);return d.onDestroy(()=>{c.forEach(t=>lg(t,$m)),Xm(a,e.toStyles)}),h.forEach(t=>{Sm(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new _m(t.duration,t.delay)}}class ng{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new _m,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>wm(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Sm(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function sg(t){return t&&1===t.nodeType}function ig(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function rg(t,e,n,s,i){const r=[];n.forEach(t=>r.push(ig(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=G_,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>ig(t,r[a++])),o}function og(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=i.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:s.has(o)?1:t(o),i.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function ag(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function lg(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function cg(t,e,n){bm(n).onDone(()=>t.processLeaveNode(e))}function hg(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class ug{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new eg(t,e,n),this._timelineEngine=new q_(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=g_(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new H_(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=xm(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=xm(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function dg(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=fg(e[0]),e.length>1&&(s=fg(e[e.length-1]))):e&&(n=fg(e)),n||s?new pg(t,n,s):null}let pg=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Xm(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xm(this._element,this._initialStyles),this._endStyles&&(Xm(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Jm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jm(this._element,this._endStyles),this._endStyles=null),Xm(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function fg(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];mg(i)&&(e=e||{},e[i]=t[i])}return e}function mg(t){return"display"===t||"position"===t}const _g="animation",gg="animationend";class yg{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Sg(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Eg(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Cg(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){bg(this._element,this._name,"paused")}resume(){bg(this._element,this._name,"running")}setPosition(t){const e=vg(this._element,this._name);this._position=t*this._duration,Eg(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Cg(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Sg(t,"").split(","),s=wg(n,e);s>=0&&(n.splice(s,1),Eg(t,"",n.join(",")))}(this._element,this._name))}}function bg(t,e,n){Eg(t,"PlayState",n,vg(t,e))}function vg(t,e){const n=Sg(t,"");return n.indexOf(",")>0?wg(n.split(","),e):wg([n],e)}function wg(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Cg(t,e,n){n?t.removeEventListener(gg,e):t.addEventListener(gg,e)}function Eg(t,e,n,s){const i=_g+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function Sg(t,e){return t.style[_g+e]}class xg{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new yg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:h_(this.element,n))})}this.currentSnapshot=t}}class kg extends _m{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Mm(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Tg{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Mm(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=i+"}\n"}),s+="}\n";const r=document.createElement("style");return r.innerHTML=s,r}animate(t,e,n,s,i,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof xg),l={};a_(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=l_(t,e,l));if(0==n)return new kg(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=dg(t,e),p=new xg(t,e,h,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Ag{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:h_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ig{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Og().toString()),this._cssKeyframesDriver=new Tg}validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof Ag);a_(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=dg(t,e=l_(t,e=e.map(t=>Km(t,!1)),l));return new Ag(t,e,a,h)}}function Og(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Pg=(()=>{class t extends om{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?hm(t):t;return Ng(this._renderer,null,e,"register",[n]),new Rg(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(da),Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Rg extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Dg(this._id,t,e||{},this._renderer)}}class Dg{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ng(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Ng(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const Vg="@",Mg="@.disabled";let Fg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Lg("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new jg(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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 t.\u0275fac=function(e){return new(e||t)(Kt(da),Kt(ug),Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Lg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Vg&&e==Mg?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class jg extends Lg{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Vg?"."==e.charAt(1)&&e==Mg?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Vg){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return i.charAt(0)!=Vg&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Bg=(()=>{class t extends ug{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Lm),Kt(N_))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Hg=new Lt("AnimationModuleType"),zg=[{provide:Lm,useFactory:function(){return"function"==typeof Og()?new Ig:new Tg}},{provide:Hg,useValue:"BrowserAnimations"},{provide:om,useClass:Pg},{provide:N_,useFactory:function(){return new V_}},{provide:ug,useClass:Bg},{provide:da,useFactory:function(t,e,n){return new Fg(t,e,n)},deps:[Gd,ug,ql]}];let $g=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:zg,imports:[hp]}),t})();const qg=new ga("10.2.0"),Wg=new Lt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ug,Qg=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return ks()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qg.full!==rm.full&&console.warn("The Angular Material version ("+qg.full+") does not match the Angular CDK version ("+rm.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sm),Kt(Wg,8),Kt(Jc,8))},imports:[[qh],qh]}),t})();function Zg(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t)}}}function Kg(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function Gg(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=pc(t)}}}function Yg(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new E}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{Ug="undefined"!=typeof Intl}catch(Ov){Ug=!1}let Xg=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Jg{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ty={enterDuration:450,exitDuration:400},ey=Hh({passive:!0}),ny=["mousedown","touchstart"],sy=["mouseup","mouseleave","touchend","touchcancel"];class iy{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=_c(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},ty),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+i*i)}(t,e,s),o=t-s.left,a=e-s.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Jg(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign(Object.assign({},ty),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=_c(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ny))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sy),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Kf(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,ey)})})}_removeTriggerEvents(){this._triggerElement&&(ny.forEach(t=>{this._triggerElement.removeEventListener(t,this,ey)}),this._pointerUpEventsRegistered&&sy.forEach(t=>{this._triggerElement.removeEventListener(t,this,ey)}))}}const ry=new Lt("mat-ripple-global-options");let oy=(()=>{class t{constructor(t,e,n,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new iy(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(ql),mo(Vh),mo(ry,8),mo(Hg,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Fo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),ay=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Qg,Mh],Qg]}),t})();const ly=new Lt("mat-label-global-options"),cy=["mat-button",""],hy=["*"],uy=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class dy{constructor(t){this._elementRef=t}}const py=Kg(Zg(Gg(dy)));let fy=(()=>{class t extends py{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of uy)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Xf),mo(Hg,8))},t.\u0275cmp=pe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&fl(oy,!0),2&t&&pl(n=bl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(po("disabled",e.disabled||null),Fo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Zo],attrs:cy,ngContentSelectors:hy,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Po(),yo(0,"span",0),Ro(1),bo(),vo(2,"span",1),vo(3,"span",2)),2&t&&(_i(2),Fo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),_o("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[oy],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),my=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ay,Qg],Qg]}),t})();const _y=["underline"],gy=["connectionContainer"],yy=["inputContainer"],by=["label"];function vy(t,e){1&t&&(wo(0),yo(1,"div",14),vo(2,"div",15),vo(3,"div",16),vo(4,"div",17),bo(),yo(5,"div",18),vo(6,"div",15),vo(7,"div",16),vo(8,"div",17),bo(),Co())}function wy(t,e){1&t&&(yo(0,"div",19),Ro(1,1),bo())}function Cy(t,e){if(1&t&&(wo(0),Ro(1,2),yo(2,"span"),$o(3),bo(),Co()),2&t){const t=Io(2);_i(3),qo(t._control.placeholder)}}function Ey(t,e){1&t&&Ro(0,3,["*ngSwitchCase","true"])}function Sy(t,e){1&t&&(yo(0,"span",23),$o(1," *"),bo())}function xy(t,e){if(1&t){const t=Eo();yo(0,"label",20,21),ko("cdkObserveContent",(function(){return sn(t),Io().updateOutlineGap()})),fo(2,Cy,4,1,"ng-container",12),fo(3,Ey,1,0,"ng-content",12),fo(4,Sy,2,0,"span",22),bo()}if(2&t){const t=Io();Fo("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),_o("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),po("for",t._control.id)("aria-owns",t._control.id),_i(2),_o("ngSwitchCase",!1),_i(1),_o("ngSwitchCase",!0),_i(1),_o("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function ky(t,e){1&t&&(yo(0,"div",24),Ro(1,4),bo())}function Ty(t,e){if(1&t&&(yo(0,"div",25,26),vo(2,"span",27),bo()),2&t){const t=Io();_i(2),Fo("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Ay(t,e){1&t&&(yo(0,"div"),Ro(1,5),bo()),2&t&&_o("@transitionMessages",Io()._subscriptAnimationState)}function Iy(t,e){if(1&t&&(yo(0,"div",31),$o(1),bo()),2&t){const t=Io(2);_o("id",t._hintLabelId),_i(1),qo(t.hintLabel)}}function Oy(t,e){if(1&t&&(yo(0,"div",28),fo(1,Iy,2,2,"div",29),Ro(2,6),vo(3,"div",30),Ro(4,7),bo()),2&t){const t=Io();_o("@transitionMessages",t._subscriptAnimationState),_i(1),_o("ngIf",t.hintLabel)}}const Py=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ry=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Dy=0;const Ny=new Lt("MatError");let Vy=(()=>{class t{constructor(){this.id="mat-error-"+Dy++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&po("id",e.id)},inputs:{id:"id"},features:[oa([{provide:Ny,useExisting:t}])]}),t})();const My={transitionMessages:lm("transitionMessages",[dm("enter",um({opacity:1,transform:"translateY(0%)"})),fm("void => enter",[um({opacity:0,transform:"translateY(-100%)"}),cm("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),Ly=0;const jy=new Lt("MatHint");let By=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Ly++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(po("id",e.id)("align",null),Fo("mat-right","end"==e.align))},inputs:{align:"align",id:"id"},features:[oa([{provide:jy,useExisting:t}])]}),t})(),Hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-label"]]}),t})(),zy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-placeholder"]]}),t})();const $y=new Lt("MatPrefix"),qy=new Lt("MatSuffix");let Wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","matSuffix",""]],features:[oa([{provide:qy,useExisting:t}])]}),t})(),Uy=0;class Qy{constructor(t){this._elementRef=t}}const Zy=Kg(Qy,"primary"),Ky=new Lt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Gy=new Lt("MatFormField");let Yy=(()=>{class t extends Zy{constructor(t,e,n,s,i,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=s,this._defaults=i,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Uy++,this._labelId="mat-form-field-label-"+Uy++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=pc(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(Mc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Rc(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Rc(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Mc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Mc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Rc(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 e=this._control?this._control.ngControl:null;return e&&e[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,yc(this._label.nativeElement,"transitionend").pipe(nu(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||this._labelOptions.float||"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 e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const s=this._connectionContainerRef.nativeElement,i=s.querySelectorAll(".mat-form-field-outline-start"),r=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const i=s.getBoundingClientRect();if(0===i.width&&0===i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(i),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t<o.length;t++)l+=o[t].offsetWidth;e=Math.abs(a-r)-5,n=l>0?.75*l+10:0}for(let o=0;o<i.length;o++)i[o].style.width=e+"px";for(let o=0;o<r.length;o++)r[o].style.width=n+"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 e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(zr),mo(ly,8),mo($h,8),mo(Ky,8),mo(Vh),mo(ql),mo(Hg,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var s;1&t&&(_l(n,Fy,!0),gl(n,Fy,!0),_l(n,Hy,!0),gl(n,Hy,!0),_l(n,zy,!0),_l(n,Ny,!0),_l(n,jy,!0),_l(n,$y,!0),_l(n,qy,!0)),2&t&&(pl(s=bl())&&(e._controlNonStatic=s.first),pl(s=bl())&&(e._controlStatic=s.first),pl(s=bl())&&(e._labelChildNonStatic=s.first),pl(s=bl())&&(e._labelChildStatic=s.first),pl(s=bl())&&(e._placeholderChild=s.first),pl(s=bl())&&(e._errorChildren=s),pl(s=bl())&&(e._hintChildren=s),pl(s=bl())&&(e._prefixChildren=s),pl(s=bl())&&(e._suffixChildren=s))},viewQuery:function(t,e){var n,s;1&t&&(fl(_y,!0),s=gy,!0,ml(nn(),en(),s,true,undefined,!0),fl(yy,!0),fl(by,!0)),2&t&&(pl(n=bl())&&(e.underlineRef=n.first),pl(n=bl())&&(e._connectionContainerRef=n.first),pl(n=bl())&&(e._inputContainerRef=n.first),pl(n=bl())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&Fo("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[oa([{provide:Gy,useExisting:t}]),Zo],ngContentSelectors:Ry,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",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"],[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"],["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,e){1&t&&(Po(Py),yo(0,"div",0),yo(1,"div",1,2),ko("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),fo(3,vy,9,0,"ng-container",3),fo(4,wy,2,0,"div",4),yo(5,"div",5,6),Ro(7),yo(8,"span",7),fo(9,xy,5,16,"label",8),bo(),bo(),fo(10,ky,2,0,"div",9),bo(),fo(11,Ty,3,4,"div",10),yo(12,"div",11),fo(13,Ay,2,1,"div",12),fo(14,Oy,5,2,"div",13),bo(),bo()),2&t&&(_i(3),_o("ngIf","outline"==e.appearance),_i(1),_o("ngIf",e._prefixChildren.length),_i(5),_o("ngIf",e._hasFloatingLabel()),_i(1),_o("ngIf",e._suffixChildren.length),_i(1),_o("ngIf","outline"!=e.appearance),_i(1),_o("ngSwitch",e._getDisplayedMessages()),_i(1),_o("ngSwitchCase","error"),_i(1),_o("ngSwitchCase","hint"))},directives:[bh,Eh,Sh,Bf],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:scaleX(1);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._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}.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;border-top:solid 2px}.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}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display: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::-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;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}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::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.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);-ms-transform:none}.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}.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: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:[My.transitionMessages]},changeDetection:0}),t})(),Xy=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Ph,Qg,Hf],Qg]}),t})();class Jy{constructor(t){this.selector=t}call(t,e){return e.subscribe(new tb(t,this.selector,this.caught))}}class tb extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new F(this);this.add(s);const i=j(n,s);i!==s&&this.add(i)}}}class eb{constructor(t){this.callback=t}call(t,e){return e.subscribe(new nb(t,this.callback))}}class nb extends f{constructor(t,e){super(t),this.add(new u(e))}}class sb{}class ib{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ib?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ib;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ib?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class rb{encodeKey(t){return ob(t)}encodeValue(t){return ob(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function ob(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class ab{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new rb,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ab({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function lb(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function cb(t){return"undefined"!=typeof Blob&&t instanceof Blob}function hb(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ub{constructor(t,e,n,s){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new ib),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new ab,this.urlWithParams=e}serializeBody(){return null===this.body?null:lb(this.body)||cb(this.body)||hb(this.body)||"string"==typeof this.body?this.body:this.body instanceof ab?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||hb(this.body)?null:cb(this.body)?this.body.type||null:lb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ab?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ub(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var db=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class pb extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new ib,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=db.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new pb({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function fb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let mb=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof ub)s=t;else{let i=void 0;i=n.headers instanceof ib?n.headers:new ib(n.headers);let r=void 0;n.params&&(r=n.params instanceof ab?n.params:new ab({fromObject:n.params})),s=new ub(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=gc(s).pipe(B(t=>this.handler.handle(t),void 0,1));if(t instanceof ub||"events"===n.observe)return i;const r=i.pipe(Ic(t=>t instanceof pb));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(k(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(k(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new ab).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,fb(n,e))}post(t,e,n={}){return this.request("POST",t,fb(n,e))}put(t,e,n={}){return this.request("PUT",t,fb(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(sb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const _b=["*"];function gb(t){return Error(`Unable to find icon with the name "${t}"`)}function yb(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function bb(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class vb{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let wb=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,s){return this._addSvgIconConfig(t,e,new vb(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(Ks.HTML,n);if(!i)throw bb(n);return this._addSvgIconConfig(t,e,new vb("",i,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new vb(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(Ks.HTML,e);if(!s)throw bb(e);return this._addSvgIconSetConfig(t,new vb("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Ks.RESOURCE_URL,t);if(!e)throw yb(t);const n=this._cachedIconsByUrl.get(e);return n?gc(Cb(n)):this._loadSvgIconFromConfig(new vb(t,null)).pipe(Qu(t=>this._cachedIconsByUrl.set(e,t)),k(t=>Cb(t)))}getNamedSvgIcon(t,e=""){const n=Eb(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):qc(gb(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?gc(Cb(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(k(t=>Cb(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?gc(n):Ep(e.filter(t=>!t.svgText).map(t=>{return this._loadSvgIconSetFromConfig(t).pipe((e=e=>{const n=this._sanitizer.sanitize(Ks.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),gc(null)},function(t){const n=new Jy(e),s=t.lift(n);return n.caught=s}));var e})).pipe(k(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw gb(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Qu(e=>t.svgText=e),k(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?gc(null):this._fetchIcon(t).pipe(Qu(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const i=s.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(i),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let s=0;s<n.length;s++){const{name:t,value:i}=n[s];"id"!==t&&e.setAttribute(t,i)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,i=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(Ks.RESOURCE_URL,n);if(!r)throw yb(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:i}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new eb(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Eb(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(Kt(mb,8),Kt(op),Kt(Jc,8),Kt(fs))},t.\u0275prov=ht({factory:function(){return new t(Kt(mb,8),Kt(op),Kt(Jc,8),Kt(fs))},token:t,providedIn:"root"}),t})();function Cb(t){return t.cloneNode(!0)}function Eb(t,e){return t+":"+e}class Sb{constructor(t){this._elementRef=t}}const xb=Kg(Sb),kb=new Lt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(Jc),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Tb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ab=Tb.map(t=>`[${t}]`).join(", "),Ib=/^url\(['"]?#(.*?)['"]?\)$/;let Ob=(()=>{class t extends xb{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=pc(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(nu(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let s=0;s<e.length;s++)e[s].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Ab),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)Tb.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(Ib):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(wb),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Nn(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(rn(),"aria-hidden")),mo(kb),mo(fs))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(po("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Fo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Zo,Ne],ngContentSelectors:_b,decls:1,vars:0,template:function(t,e){1&t&&(Po(),Ro(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Pb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Qg],Qg]}),t})();const Rb=Hh({passive:!0});let Db=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return zc;const e=_c(t),n=this._monitoredElements.get(e);if(n)return n.subject;const s=new E,i="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(i)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(i)&&(e.classList.remove(i),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!1}))):(e.classList.add(i),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,Rb),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:s,unlisten:()=>{e.removeEventListener("animationstart",r,Rb)}}),s}stopMonitoring(t){const e=_c(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(ql))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(ql))},token:t,providedIn:"root"}),t})(),Nb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Mh]]}),t})();const Vb=new Lt("MAT_INPUT_VALUE_ACCESSOR"),Mb=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Fb=0;class Lb{constructor(t,e,n,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=s}}const jb=Yg(Lb);let Bb=(()=>{class t extends jb{constructor(t,e,n,s,i,r,o,a,l,c){super(r,s,i,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+Fb++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Lh().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,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=pc(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=pc(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Lh().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=pc(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.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Mb.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,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.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()}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Vh),mo(Np,10),mo(Af,8),mo(Df,8),mo(Xg),mo(Vb,10),mo(Db),mo(ql),mo(Gy,8))},t.\u0275dir=be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ko("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Uo("disabled",e.disabled)("required",e.required),po("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Fo("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[oa([{provide:Fy,useExisting:t}]),Zo,Ne]}),t})(),Hb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Xg],imports:[[Nb,Xy],Nb,Xy]}),t})();class zb extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class $b extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qb(t,e,n,s,i=new $b(t,n,s)){if(!i.closed)return e instanceof y?e.subscribe(i):N(e)(i)}const Wb={};class Ub{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Qb(t,this.resultSelector))}}class Qb extends zb{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Wb),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(qb(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===Wb?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class Zb{constructor(t){this.total=t}call(t,e){return e.subscribe(new Kb(t,this.total))}}class Kb extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Gb=new Set;let Yb,Xb=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jb}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Gb.has(t))try{Yb||(Yb=document.createElement("style"),Yb.setAttribute("type","text/css"),document.head.appendChild(Yb)),Yb.sheet&&(Yb.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Gb.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh))},token:t,providedIn:"root"}),t})();function Jb(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let tv=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ev(fc(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return x(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new Ub(e))}(ev(fc(t)).map(t=>this._registerQuery(t).observable));return e=Vc(e.pipe(nu(1)),e.pipe(t=>t.lift(new Zb(1)),zu(0))),e.pipe(k(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Mc(e),k(({matches:e})=>({query:t,matches:e})),Rc(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Xb),Kt(ql))},t.\u0275prov=ht({factory:function(){return new t(Kt(Xb),Kt(ql))},token:t,providedIn:"root"}),t})();function ev(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const nv={tooltipState:lm("state",[dm("initial, void, hidden",um({opacity:0,transform:"scale(0)"})),dm("visible",um({transform:"scale(1)"})),fm("* => visible",cm("200ms cubic-bezier(0, 0, 0.2, 1)",pm([um({opacity:0,transform:"scale(0)",offset:0}),um({opacity:.5,transform:"scale(0.99)",offset:.5}),um({opacity:1,transform:"scale(1)",offset:1})]))),fm("* => hidden",cm("100ms cubic-bezier(0, 0, 0.2, 1)",um({opacity:0})))])},sv=Hh({passive:!0}),iv=new Lt("mat-tooltip-scroll-strategy"),rv={provide:iv,deps:[Pu],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},ov=new Lt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let av=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=s,this._ngZone=i,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),i.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Rc(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,sv)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Gh(lv,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Rc(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Rc(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Rc(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:s,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:s,originY:i}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:s,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:s,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(nu(1),Rc(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,sv)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(mo(Pu),mo(ha),mo(Wh),mo(Ma),mo(ql),mo(Vh),mo(Zf),mo(Xf),mo(iv),mo($h,8),mo(ov,8))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),lv=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(mo(zr),mo(tv))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ko("click",(function(){return e._handleBodyInteraction()}),!1,Wn),2&t&&Mo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(yo(0,"div",0),ko("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=nn();let s;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,s.onDestroy)):s=n.data[21];const i=s.factory||(s.factory=Ce(s.type)),r=Qt(mo),o=Zn(!1),a=i();Zn(o),Qt(r),function(t,e,n,s){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=s}(n,en(),0,a)}(),$o(2),bo()),2&t&&(Fo("mat-tooltip-handset",null==(n=el(1,5,e._isHandset))?null:n.matches),_o("ngClass",e.tooltipClass)("@state",e._visibility),_i(2),qo(e.message))},directives:[yh],pipes:[Oh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[nv.tooltipState]},changeDetection:0}),t})(),cv=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[rv],imports:[[im,Ph,Du,Qg],Qg,Qh]}),t})(),hv=(()=>{class t{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",e=this._document.querySelectorAll("."+t);if(null==e?void 0:e.length)this._containerElement=e[0];else{const e=this._document.createElement("div");e.classList.add(t),this._document.body.appendChild(e),this._containerElement=e}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const uv=new Lt("config"),dv=new Lt("NEW_CONFIG"),pv=new Lt("INITIAL_CONFIG"),fv={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},mv=["Hh:m0:s0","Hh:m0","m0:s0"],_v=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let gv=(()=>{class t{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,s)=>{const i=t.split(n),r=i.length>1?`${n}${i[1]}`:"";let o=i[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(o="-"===o[0]?"-"+o.slice(1,o.length).slice(0,a.length):o.slice(0,a.length));const l=/(\d+)(\d{3})/;for(;e&&l.test(o);)o=o.replace(l,"$1"+e+"$2");return void 0===s?o+r:0===s?o:o+r.substr(0,s+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkAndRemoveSuffix=t=>{var e,n,s;for(let i=(null===(e=this.suffix)||void 0===e?void 0:e.length)-1;i>=0;i--){const e=this.suffix.substr(i,null===(n=this.suffix)||void 0===n?void 0:n.length);if(t.includes(e)&&(i-1<0||!t.includes(this.suffix.substr(i-1,null===(s=this.suffix)||void 0===s?void 0:s.length))))return t.replace(e,"")}return t},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const s=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),i=t.match(s);i&&i[0].length-1>e&&(t=t.substring(0,t.length-(i[0].length-1-e))),0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,e){const[n,s]=e;return this.customPattern=s,this.applyMask(t,n)}applyMask(t,e,n=0,s=!1,i=!1,r=(()=>{})){if(null==t||void 0===e)return"";let o=0,a="",l=!1,c=!1,h=1,u=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const d=t.toString().split("");"IP"===e&&(this.ipError=!!(d.filter(t=>"."===t).length<3&&d.length<7),e="099.099.099.099");const p=[];for(let y=0;y<t.length;y++)t[y].match("\\d")&&p.push(t[y]);if("CPF_CNPJ"===e&&(this.cpfCnpjError=!(11===p.length||14===p.length),e=p.length>11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}a=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const s=this._charToRegExpExpression(this.thousandSeparator),i=this._charToRegExpExpression(this.decimalMarker),r='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(s,"").replace(i,""),o=new RegExp("["+r+"]");t.match(o)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),u=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(s,"g"),"");a=this._formatWithSeparators(u,this.thousandSeparator,this.decimalMarker,l);const d=a.indexOf(",")-t.indexOf(","),p=a.length-t.length;if(p>0&&","!==a[n]){c=!0;let t=0;do{this._shift.add(n+t),t++}while(t<p)}else 0!==d&&n>0&&!(a.indexOf(",")>=n&&n>3)||!(a.indexOf(".")>=n&&n>3)&&p<=0?(this._shift.clear(),c=!0,h=p,this._shift.add(n+=p)):this._shift.clear()}else for(let y=0,b=d[0];y<d.length&&o!==e.length;y++,b=d[y])if(this._checkSymbolMask(b,e[o])&&"?"===e[o+1])a+=b,o+=2;else if("*"===e[o+1]&&l&&this._checkSymbolMask(b,e[o+2]))a+=b,o+=3,l=!1;else if(this._checkSymbolMask(b,e[o])&&"*"===e[o+1])a+=b,l=!0;else if("?"===e[o+1]&&this._checkSymbolMask(b,e[o+2]))a+=b,o+=3;else if(this._checkSymbolMask(b,e[o])){if("H"===e[o]&&Number(b)>2){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("h"===e[o]&&"2"===a&&Number(b)>3){o+=1,y--;continue}if("m"===e[o]&&Number(b)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("s"===e[o]&&Number(b)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}const n=31;if("d"===e[o]&&(Number(b)>3&&this.leadZeroDateTime||Number(t.slice(o,o+2))>n||"/"===t[o+1])){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("M"===e[o]){const s=12,i=0===o&&(Number(b)>2||Number(t.slice(o,o+2))>s||"/"===t[o+1]),r=t.slice(o-3,o-1).includes("/")&&("/"===t[o-2]&&Number(t.slice(o-1,o+1))>s&&"/"!==t[o]||"/"===t[o]||"/"===t[o-3]&&Number(t.slice(o-2,o))>s&&"/"!==t[o-1]||"/"===t[o-1]),l=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"===t[o-1]&&(Number(t.slice(o,o+2))>s||"/"===t[o+1]),c=Number(t.slice(o-3,o-1))>n&&!t.slice(o-3,o-1).includes("/")&&!t.slice(o-2,o).includes("/")&&Number(t.slice(o-2,o))>s,h=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"!==t[o-1]&&Number(t.slice(o-1,o+1))>s;if(Number(b)>1&&this.leadZeroDateTime||i||r||l||c||h){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}}a+=b,o++}else-1!==this.maskSpecialCharacters.indexOf(e[o])?(a+=e[o],o++,this._shiftStep(e,o,d.length),y--):this.maskSpecialCharacters.indexOf(b)>-1&&this.maskAvailablePatterns[e[o]]&&this.maskAvailablePatterns[e[o]].optional?(d[o]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(a+=d[o]),o++,y--):"*"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(b)===this.maskExpression[o+2]&&l||"?"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(b)===this.maskExpression[o+2]&&l?(o+=3,a+=b):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(b)<0&&b!==this.placeHolderCharacter&&(u=!0);a.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(a+=e[e.length-1]);let f=n+1;for(;this._shift.has(f);)h++,f++;let m=s?o:this._shift.has(n)?h:0;u&&m--,r(m,c),h<0&&this._shift.clear();let _=!1;i&&(_=d.every(t=>this.maskSpecialCharacters.includes(t)));let g=`${this.prefix}${_?"":a}${this.suffix}`;return 0===a.length&&(g=`${this.prefix}${a}`),g}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||t.match("\\s")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}_shiftStep(t,e,n){const s=/[*?]/g.test(t.slice(0,e))?n:e;this._shift.add(s+this.prefix.length||0)}}return t.\u0275fac=function(e){return new(e||t)(Kt(uv))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yv=(()=>{class t extends gv{constructor(t,e,n,s){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{}}applyMask(t,e,n=0,s=!1,i=!1,r=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const o=t&&"number"==typeof this.selStart?t[this.selStart]:"";let a="";if(this.hiddenInput&&!this.writingValue){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,o):t.length<e.length&&(e.length-t.length==1?e.splice(this.selStart-1,1):e.splice(this.selStart,this.selEnd-this.selStart))):e=[],a=this.actualValue.length&&e.length<=t.length?this.shiftTypedSymbols(e.join("")):t}a=Boolean(a)&&a.length?a:t;const l=super.applyMask(a,e,n,s,i,r);if(this.actualValue=this.getActualValue(l),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(t=>t!==this.decimalMarker)),this.formControlResult(l),!this.showMaskTyped)return this.hiddenInput&&l&&l.length?this.hideInput(l,this.maskExpression):l;const c=l.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const t=this._numberSkipedSymbols(l);return l+h.slice(c+t)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?l+h:l+h.slice(c)}_numberSkipedSymbols(t){const e=/(^|\D)(\d\D)/g;let n=e.exec(t),s=0;for(;null!=n;)s+=1,n=e.exec(t);return s}applyValueChanges(t=0,e,n,s=(()=>{})){const i=this._elementRef.nativeElement;i.value=this.applyMask(i.value,this.maskExpression,t,e,n,s),i!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,s)=>{if(this.maskSpecialCharacters.includes(t[s+1])&&t[s+1]!==this.maskExpression[s+1])return e=n,t[s+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,e]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,e))}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n<t.length;n++)t[n].match("\\d")&&e.push(t[n]);return e.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const s=[];for(let i=0;i<t.length;i++)t[i].match("\\d")&&s.push(t[i]);return s.length<=3?e.slice(s.length,e.length):s.length>3&&s.length<=6?e.slice(s.length+1,e.length):s.length>6&&s.length<=9?e.slice(s.length+2,e.length):s.length>9&&s.length<11?e.slice(s.length+3,e.length):11===s.length?"":12===s.length?n.slice(17===t.length?16:15,n.length):s.length>12&&s.length<=14?n.slice(s.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const e=Number(t);return Number.isNaN(e)?t:e}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>"\\"+t).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(uv),Kt(ha),Kt(fa))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),bv=(()=>{class t{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:s,prefix:i,suffix:r,thousandSeparator:o,decimalMarker:a,dropSpecialCharacters:l,hiddenInput:c,showMaskTyped:h,placeHolderCharacter:u,shownMaskExpression:d,showTemplate:p,clearIfNotMatch:f,validation:m,separatorLimit:_,allowNegativeNumbers:g,leadZeroDateTime:y}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),i&&(this._maskService.prefix=i.currentValue),r&&(this._maskService.suffix=r.currentValue),o&&(this._maskService.thousandSeparator=o.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),u&&(this._maskService.placeHolderCharacter=u.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),p&&(this._maskService.showTemplate=p.currentValue),f&&(this._maskService.clearIfNotMatch=f.currentValue),m&&(this._maskService.validation=m.currentValue),_&&(this._maskService.separatorLimit=_.currentValue),g&&(this._maskService.allowNegativeNumbers=g.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),y&&(this._maskService.leadZeroDateTime=y.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(_v.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(mv.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const n=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-e:this._maskValue.length-e;if(t.toString().length<n)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const e=t.target;if(this._inputValue=e.value,this._setMask(),!this._maskValue)return void this.onChange(e.value);const n=1===e.selectionStart?e.selectionStart+this._maskService.prefix.length:e.selectionStart;let s=0,i=!1;if(this._maskService.applyValueChanges(n,this._justPasted,"Backspace"===this._code,(t,e)=>{this._justPasted=!1,s=t,i=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let r=this._position?this._inputValue.length+n+s:n+("Backspace"!==this._code||i?s:0);r>this._getActualInputLength()&&(r=this._getActualInputLength()),e.setSelectionRange(r,r),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){var e;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const n=t.target;if(this._inputValue=n.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===n.value.length&&(n.selectionStart=n.selectionEnd),8===t.keyCode&&0!==n.selectionStart)if(this.specialCharacters=(null===(e=this.specialCharacters)||void 0===e?void 0:e.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&n.selectionStart<=this.prefix.length)n.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==n.selectionStart&&1!==n.selectionStart)for(;this.specialCharacters.includes(this._inputValue[n.selectionStart-1].toString())&&(this.prefix.length>=1&&n.selectionStart>this.prefix.length||0===this.prefix.length);)n.setSelectionRange(n.selectionStart-1,n.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,n)}this.suffixCheckOnPressDelete(t.keyCode,n),this._maskService.prefix.length&&n.selectionStart<=this._maskService.prefix.length&&n.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const s=n.selectionStart;8!==t.keyCode||n.readOnly||0!==s||n.selectionEnd!==n.value.length||0===n.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<n.selectionStart?n.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(n.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=n.selectionStart,this._maskService.selEnd=n.selectionEnd}writeValue(t){return e=this,void 0,s=function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),this._inputValue=t,this._setMask(),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{a(s.next(t))}catch(e){i(e)}}function o(t){try{a(s.throw(t))}catch(e){i(e)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(r,o)}a((s=s.apply(e,[])).next())}));var e,n,s}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,e){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===e.selectionStart&&e.setSelectionRange(e.selectionStart-1,e.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((e,n,s)=>{if(this._start="{"===n?s:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=s;const i=Number(t.slice(this._start+1,this._end));return e+new Array(i+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<e||t.length<=e-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return t.\u0275fac=function(e){return new(e||t)(mo(Jc),mo(yv),mo(uv))},t.\u0275dir=be({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,e){1&t&&ko("paste",(function(){return e.onPaste()}))("input",(function(t){return e.onInput(t)}))("blur",(function(){return e.onBlur()}))("click",(function(t){return e.onFocus(t)}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[oa([{provide:xp,useExisting:Et(()=>t),multi:!0},{provide:Lp,useExisting:Et(()=>t),multi:!0},yv]),Ne]}),t})(),vv=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:dv,useValue:e},{provide:pv,useValue:fv},{provide:uv,useFactory:wv,deps:[pv,dv]},gv]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function wv(t,e){return Object.assign(Object.assign({},t),e instanceof Function?e():e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;let Cv=(()=>{class t{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Ef(""),this.valueCanBeChanged=!1}ngOnInit(){this.valueChanges$=this.formControl.valueChanges.pipe(Ic(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)})}onBlur(){this.updateOnBlur&&this.shouldValueChange(this.formControl.value)&&this.triggerValueChange(this.formControl.value)}ngOnChanges(t){var e;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(e=this.input)||void 0===e?void 0:e.focused)&&this.formControl.setValue(this.value,{emitEvent:!1})}modifyValueBeforeChange(t){return t}shouldValueChange(t){return!0}ngOnDestroy(){this.valueChanges$&&this.valueChanges$.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var Ev=n("MIfU");function Sv(t,e){if(1&t&&(yo(0,"mat-label"),$o(1),bo()),2&t){const t=Io();_i(1),qo(t.label)}}function xv(t,e){if(1&t){const t=Eo();yo(0,"button",5),ko("click",(function(){return sn(t),Io().setCurrentTime()})),yo(1,"mat-icon"),$o(2,"access_time"),bo(),bo()}2&t&&_o("disabled",Io().disabled)}function kv(t,e){if(1&t&&(yo(0,"mat-error"),$o(1),bo()),2&t){const t=Io();_i(1),Wo(" ",t.error," ")}}let Tv=(()=>{class t extends Cv{constructor(){super(...arguments),this.id=Object(Ev.generate)()}ngOnChanges(t){this.updateOnBlur=!1,super.ngOnChanges(t)}setCurrentTime(){const t=new Date,e=t.getHours(),n=`${e<10?"0":""}${e}`,s=t.getMinutes();this.formControl.setValue(`${n}:${s<10?"0":""}${s}`)}shouldValueChange(t){return!t||t.match(/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)}}return t.\u0275fac=function(e){return Av(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-timepicker-internal"]],viewQuery:function(t,e){var n;1&t&&fl(Bb,!0),2&t&&pl(n=bl())&&(e.input=n.first)},inputs:{showNowButton:"showNowButton",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[Zo,Ne],decls:8,vars:11,consts:[["aria-label","Timepicker field",3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","autocomplete","off","mask","Hh:m0",3,"id","formControl","errorStateMatcher","leadZeroDateTime","dropSpecialCharacters","blur"],["fxLayout","row","matSuffix",""],["aria-label","Now","class","mat-datepicker-toggle","mat-icon-button","","matTooltip","Now",3,"disabled","click",4,"ngIf"],["aria-label","Now","mat-icon-button","","matTooltip","Now",1,"mat-datepicker-toggle",3,"disabled","click"]],template:function(t,e){1&t&&(yo(0,"mat-form-field",0),fo(1,Sv,2,1,"mat-label",1),yo(2,"input",2),ko("blur",(function(){return e.onBlur()})),bo(),yo(3,"div",3),fo(4,xv,3,1,"button",4),bo(),yo(5,"mat-hint"),$o(6),bo(),fo(7,kv,2,1,"mat-error",1),bo()),2&t&&(_o("appearance",e.appearance||"outline")("floatLabel","auto"),_i(1),_o("ngIf",e.label),_i(1),_o("id",e.id)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("leadZeroDateTime",!0)("dropSpecialCharacters",!1),_i(2),_o("ngIf",e.showNowButton),_i(2),qo(e.helpText),_i(1),_o("ngIf",e.error))},directives:[Yy,bh,Bb,bv,Op,Vp,Pf,yp,Wy,By,Hy,fy,av,Ob,Vy],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),t})();const Av=hs(Tv);let Iv=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(ca).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Fu(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends ju{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=s.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?i.forEach(([t])=>delete this[t]):Bu(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,s){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(i),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),Bu(n,r.prototype),r}(Tv,{injector:this.injector});customElements.define("drayman-timepicker",t)}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(io))},providers:[{provide:bu,useClass:hv}],imports:[[hp,$g,Xy,Hb,Ff,Mf,Pb,Cp,my,cv,vv.forRoot()]]}),t})();(function(){if(xs)throw new Error("Cannot enable prod mode after platform setup.");Ss=!1})(),lp().bootstrapModule(Iv).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});
1
+ !function(t){var e={};function n(s){if(e[s])return e[s].exports;var i=e[s]={i:s,l:!1,exports:{}};return t[s].call(i.exports,i,i.exports,n),i.l=!0,i.exports}n.m=t,n.c=e,n.d=function(t,e,s){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:s})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var s=Object.create(null);if(n.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var i in t)n.d(s,i,(function(e){return t[e]}).bind(null,i));return s},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=0)}({"+tDz":function(t,e){t.exports=function(t,e,n){for(var s=(2<<Math.log(e.length-1)/Math.LN2)-1,i=-~(1.6*s*n/e.length),r="";;)for(var o=t(i),a=i;a--;)if((r+=e[o[a]&s]||"").length===+n)return r}},0:function(t,e,n){t.exports=n("zUnb")},"2hQo":function(t,e,n){"use strict";var s=n("48Ti"),i=n("58k+"),r=n("+tDz");t.exports=function(t){for(var e,n=0,o="";!e;)o+=r(i,s.get(),1),e=t<Math.pow(16,n+1),n++;return o}},"48Ti":function(t,e,n){"use strict";var s,i,r,o=n("w9cF"),a="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ_-";function l(){r=!1}function c(t){if(t){if(t!==s){if(t.length!==a.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. You submitted "+t.length+" characters: "+t);var e=t.split("").filter((function(t,e,n){return e!==n.lastIndexOf(t)}));if(e.length)throw new Error("Custom alphabet for shortid must be "+a.length+" unique characters. These characters were not unique: "+e.join(", "));s=t,l()}}else s!==a&&(s=a,l())}function h(){return r||(r=function(){s||c(a);for(var t,e=s.split(""),n=[],i=o.nextValue();e.length>0;)i=o.nextValue(),t=Math.floor(i*e.length),n.push(e.splice(t,1)[0]);return n.join("")}())}t.exports={get:function(){return s||a},characters:function(t){return c(t),s},seed:function(t){o.seed(t),i!==t&&(l(),i=t)},lookup:function(t){return h()[t]},shuffled:h}},"58k+":function(t,e,n){"use strict";var s="object"==typeof window&&(window.crypto||window.msCrypto);t.exports=s&&s.getRandomValues?function(t){return s.getRandomValues(new Uint8Array(t))}:function(t){for(var e=[],n=0;n<t;n++)e.push(Math.floor(256*Math.random()));return e}},G8Pb:function(t,e,n){"use strict";var s=n("48Ti"),i=n("tDlq"),r=n("gM+Z"),o=n("cHLG")||0;function a(){return i(o)}t.exports=a,t.exports.generate=a,t.exports.seed=function(e){return s.seed(e),t.exports},t.exports.worker=function(e){return o=e,t.exports},t.exports.characters=function(t){return void 0!==t&&s.characters(t),s.shuffled()},t.exports.isValid=r},MIfU:function(t,e,n){"use strict";t.exports=n("G8Pb")},cHLG:function(t,e,n){"use strict";t.exports=0},"gM+Z":function(t,e,n){"use strict";var s=n("48Ti");t.exports=function(t){return!(!t||"string"!=typeof t||t.length<6||new RegExp("[^"+s.get().replace(/[|\\{}()[\]^$+*?.-]/g,"\\$&")+"]").test(t))}},tDlq:function(t,e,n){"use strict";var s,i,r=n("2hQo");n("48Ti"),t.exports=function(t){var e="",n=Math.floor(.001*(Date.now()-1567752802062));return n===i?s++:(s=0,i=n),e+=r(7),e+=r(t),s>0&&(e+=r(s)),e+r(n)}},w9cF:function(t,e,n){"use strict";var s=1;t.exports={nextValue:function(){return(s=(9301*s+49297)%233280)/233280},seed:function(t){s=t}}},zUnb:function(t,e,n){"use strict";function s(t){return"function"==typeof t}n.r(e);let i=!1;const r={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){if(t){const t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=t},get useDeprecatedSynchronousErrorHandling(){return i}};function o(t){setTimeout(()=>{throw t},0)}const a={closed:!0,next(t){},error(t){if(r.useDeprecatedSynchronousErrorHandling)throw t;o(t)},complete(){}},l=(()=>Array.isArray||(t=>t&&"number"==typeof t.length))();function c(t){return null!==t&&"object"==typeof t}const h=(()=>{function t(t){return Error.call(this),this.message=t?`${t.length} errors occurred during unsubscription:\n${t.map((t,e)=>`${e+1}) ${t.toString()}`).join("\n ")}`:"",this.name="UnsubscriptionError",this.errors=t,this}return t.prototype=Object.create(Error.prototype),t})();let u=(()=>{class t{constructor(t){this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._ctorUnsubscribe=!0,this._unsubscribe=t)}unsubscribe(){let e;if(this.closed)return;let{_parentOrParents:n,_ctorUnsubscribe:i,_unsubscribe:r,_subscriptions:o}=this;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof t)n.remove(this);else if(null!==n)for(let t=0;t<n.length;++t)n[t].remove(this);if(s(r)){i&&(this._unsubscribe=void 0);try{r.call(this)}catch(a){e=a instanceof h?d(a.errors):[a]}}if(l(o)){let t=-1,n=o.length;for(;++t<n;){const n=o[t];if(c(n))try{n.unsubscribe()}catch(a){e=e||[],a instanceof h?e=e.concat(d(a.errors)):e.push(a)}}}if(e)throw new h(e)}add(e){let n=e;if(!e)return t.EMPTY;switch(typeof e){case"function":n=new t(e);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof t)){const e=n;n=new t,n._subscriptions=[e]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}let{_parentOrParents:s}=n;if(null===s)n._parentOrParents=this;else if(s instanceof t){if(s===this)return n;n._parentOrParents=[s,this]}else{if(-1!==s.indexOf(this))return n;s.push(this)}const i=this._subscriptions;return null===i?this._subscriptions=[n]:i.push(n),n}remove(t){const e=this._subscriptions;if(e){const n=e.indexOf(t);-1!==n&&e.splice(n,1)}}}return t.EMPTY=function(t){return t.closed=!0,t}(new t),t})();function d(t){return t.reduce((t,e)=>t.concat(e instanceof h?e.errors:e),[])}const p=(()=>"function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random())();class f extends u{constructor(t,e,n){switch(super(),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=a;break;case 1:if(!t){this.destination=a;break}if("object"==typeof t){t instanceof f?(this.syncErrorThrowable=t.syncErrorThrowable,this.destination=t,t.add(this)):(this.syncErrorThrowable=!0,this.destination=new m(this,t));break}default:this.syncErrorThrowable=!0,this.destination=new m(this,t,e,n)}}[p](){return this}static create(t,e,n){const s=new f(t,e,n);return s.syncErrorThrowable=!1,s}next(t){this.isStopped||this._next(t)}error(t){this.isStopped||(this.isStopped=!0,this._error(t))}complete(){this.isStopped||(this.isStopped=!0,this._complete())}unsubscribe(){this.closed||(this.isStopped=!0,super.unsubscribe())}_next(t){this.destination.next(t)}_error(t){this.destination.error(t),this.unsubscribe()}_complete(){this.destination.complete(),this.unsubscribe()}_unsubscribeAndRecycle(){const{_parentOrParents:t}=this;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=t,this}}class m extends f{constructor(t,e,n,i){let r;super(),this._parentSubscriber=t;let o=this;s(e)?r=e:e&&(r=e.next,n=e.error,i=e.complete,e!==a&&(o=Object.create(e),s(o.unsubscribe)&&this.add(o.unsubscribe.bind(o)),o.unsubscribe=this.unsubscribe.bind(this))),this._context=o,this._next=r,this._error=n,this._complete=i}next(t){if(!this.isStopped&&this._next){const{_parentSubscriber:e}=this;r.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}}error(t){if(!this.isStopped){const{_parentSubscriber:e}=this,{useDeprecatedSynchronousErrorHandling:n}=r;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):o(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;o(t)}}}complete(){if(!this.isStopped){const{_parentSubscriber:t}=this;if(this._complete){const e=()=>this._complete.call(this._context);r.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}}__tryOrUnsub(t,e){try{t.call(this._context,e)}catch(n){if(this.unsubscribe(),r.useDeprecatedSynchronousErrorHandling)throw n;o(n)}}__tryOrSetError(t,e,n){if(!r.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(s){return r.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=s,t.syncErrorThrown=!0,!0):(o(s),!0)}return!1}_unsubscribe(){const{_parentSubscriber:t}=this;this._context=null,this._parentSubscriber=null,t.unsubscribe()}}const _=(()=>"function"==typeof Symbol&&Symbol.observable||"@@observable")();function g(t){return t}let y=(()=>{class t{constructor(t){this._isScalar=!1,t&&(this._subscribe=t)}lift(e){const n=new t;return n.source=this,n.operator=e,n}subscribe(t,e,n){const{operator:s}=this,i=function(t,e,n){if(t){if(t instanceof f)return t;if(t[p])return t[p]()}return t||e||n?new f(t,e,n):new f(a)}(t,e,n);if(i.add(s?s.call(i,this.source):this.source||r.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),r.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}_trySubscribe(t){try{return this._subscribe(t)}catch(e){r.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),function(t){for(;t;){const{closed:e,destination:n,isStopped:s}=t;if(e||s)return!1;t=n&&n instanceof f?n:null}return!0}(t)?t.error(e):console.warn(e)}}forEach(t,e){return new(e=b(e))((e,n)=>{let s;s=this.subscribe(e=>{try{t(e)}catch(i){n(i),s&&s.unsubscribe()}},n,e)})}_subscribe(t){const{source:e}=this;return e&&e.subscribe(t)}[_](){return this}pipe(...t){return 0===t.length?this:(0===(e=t).length?g:1===e.length?e[0]:function(t){return e.reduce((t,e)=>e(t),t)})(this);var e}toPromise(t){return new(t=b(t))((t,e)=>{let n;this.subscribe(t=>n=t,t=>e(t),()=>t(n))})}}return t.create=e=>new t(e),t})();function b(t){if(t||(t=r.Promise||Promise),!t)throw new Error("no Promise impl found");return t}const v=(()=>{function t(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return t.prototype=Object.create(Error.prototype),t})();class w extends u{constructor(t,e){super(),this.subject=t,this.subscriber=e,this.closed=!1}unsubscribe(){if(this.closed)return;this.closed=!0;const t=this.subject,e=t.observers;if(this.subject=null,!e||0===e.length||t.isStopped||t.closed)return;const n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}class C extends f{constructor(t){super(t),this.destination=t}}let E=(()=>{class t extends y{constructor(){super(),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}[p](){return new C(this)}lift(t){const e=new S(this,this);return e.operator=t,e}next(t){if(this.closed)throw new v;if(!this.isStopped){const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].next(t)}}error(t){if(this.closed)throw new v;this.hasError=!0,this.thrownError=t,this.isStopped=!0;const{observers:e}=this,n=e.length,s=e.slice();for(let i=0;i<n;i++)s[i].error(t);this.observers.length=0}complete(){if(this.closed)throw new v;this.isStopped=!0;const{observers:t}=this,e=t.length,n=t.slice();for(let s=0;s<e;s++)n[s].complete();this.observers.length=0}unsubscribe(){this.isStopped=!0,this.closed=!0,this.observers=null}_trySubscribe(t){if(this.closed)throw new v;return super._trySubscribe(t)}_subscribe(t){if(this.closed)throw new v;return this.hasError?(t.error(this.thrownError),u.EMPTY):this.isStopped?(t.complete(),u.EMPTY):(this.observers.push(t),new w(this,t))}asObservable(){const t=new y;return t.source=this,t}}return t.create=(t,e)=>new S(t,e),t})();class S extends E{constructor(t,e){super(),this.destination=t,this.source=e}next(t){const{destination:e}=this;e&&e.next&&e.next(t)}error(t){const{destination:e}=this;e&&e.error&&this.destination.error(t)}complete(){const{destination:t}=this;t&&t.complete&&this.destination.complete()}_subscribe(t){const{source:e}=this;return e?this.source.subscribe(t):u.EMPTY}}function x(t){return t&&"function"==typeof t.schedule}function k(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new T(t,e))}}class T{constructor(t,e){this.project=t,this.thisArg=e}call(t,e){return e.subscribe(new A(t,this.project,this.thisArg))}}class A extends f{constructor(t,e,n){super(t),this.project=e,this.count=0,this.thisArg=n||this}_next(t){let e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}const I=t=>e=>{for(let n=0,s=t.length;n<s&&!e.closed;n++)e.next(t[n]);e.complete()};function O(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}const P=O(),R=t=>t&&"number"==typeof t.length&&"function"!=typeof t;function D(t){return!!t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}const N=t=>{if(t&&"function"==typeof t[_])return s=t,t=>{const e=s[_]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(t)};if(R(t))return I(t);if(D(t))return n=t,t=>(n.then(e=>{t.closed||(t.next(e),t.complete())},e=>t.error(e)).then(null,o),t);if(t&&"function"==typeof t[P])return e=t,t=>{const n=e[P]();for(;;){let e;try{e=n.next()}catch(s){return t.error(s),t}if(e.done){t.complete();break}if(t.next(e.value),t.closed)break}return"function"==typeof n.return&&t.add(()=>{n.return&&n.return()}),t};{const e=c(t)?"an invalid object":`'${t}'`;throw new TypeError(`You provided ${e} where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.`)}var e,n,s};function V(t,e){return new y(n=>{const s=new u;let i=0;return s.add(e.schedule((function(){i!==t.length?(n.next(t[i++]),n.closed||s.add(this.schedule())):n.complete()}))),s})}function M(t,e){return e?function(t,e){if(null!=t){if(function(t){return t&&"function"==typeof t[_]}(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>{const i=t[_]();s.add(i.subscribe({next(t){s.add(e.schedule(()=>n.next(t)))},error(t){s.add(e.schedule(()=>n.error(t)))},complete(){s.add(e.schedule(()=>n.complete()))}}))})),s})}(t,e);if(D(t))return function(t,e){return new y(n=>{const s=new u;return s.add(e.schedule(()=>t.then(t=>{s.add(e.schedule(()=>{n.next(t),s.add(e.schedule(()=>n.complete()))}))},t=>{s.add(e.schedule(()=>n.error(t)))}))),s})}(t,e);if(R(t))return V(t,e);if(function(t){return t&&"function"==typeof t[P]}(t)||"string"==typeof t)return function(t,e){if(!t)throw new Error("Iterable cannot be null");return new y(n=>{const s=new u;let i;return s.add(()=>{i&&"function"==typeof i.return&&i.return()}),s.add(e.schedule(()=>{i=t[P](),s.add(e.schedule((function(){if(n.closed)return;let t,e;try{const n=i.next();t=n.value,e=n.done}catch(s){return void n.error(s)}e?n.complete():(n.next(t),this.schedule())})))})),s})}(t,e)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}(t,e):t instanceof y?t:new y(N(t))}class F extends f{constructor(t){super(),this.parent=t}_next(t){this.parent.notifyNext(t)}_error(t){this.parent.notifyError(t),this.unsubscribe()}_complete(){this.parent.notifyComplete(),this.unsubscribe()}}class L extends f{notifyNext(t){this.destination.next(t)}notifyError(t){this.destination.error(t)}notifyComplete(){this.destination.complete()}}function j(t,e){if(!e.closed)return t instanceof y?t.subscribe(e):N(t)(e)}function B(t,e,n=Number.POSITIVE_INFINITY){return"function"==typeof e?s=>s.pipe(B((n,s)=>M(t(n,s)).pipe(k((t,i)=>e(n,t,s,i))),n)):("number"==typeof e&&(n=e),e=>e.lift(new H(t,n)))}class H{constructor(t,e=Number.POSITIVE_INFINITY){this.project=t,this.concurrent=e}call(t,e){return e.subscribe(new z(t,this.project,this.concurrent))}}class z extends L{constructor(t,e,n=Number.POSITIVE_INFINITY){super(t),this.project=e,this.concurrent=n,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}_next(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)}_tryNext(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this.active++,this._innerSub(e)}_innerSub(t){const e=new F(this),n=this.destination;n.add(e);const s=j(t,e);s!==e&&n.add(s)}_complete(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}notifyNext(t){this.destination.next(t)}notifyComplete(){const t=this.buffer;this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}function $(t=Number.POSITIVE_INFINITY){return B(g,t)}function q(t,e){return e?V(t,e):new y(I(t))}function W(...t){let e=Number.POSITIVE_INFINITY,n=null,s=t[t.length-1];return x(s)?(n=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof s&&(e=t.pop()),null===n&&1===t.length&&t[0]instanceof y?t[0]:$(e)(q(t,n))}function U(){return function(t){return t.lift(new Q(t))}}class Q{constructor(t){this.connectable=t}call(t,e){const{connectable:n}=this;n._refCount++;const s=new Z(t,n),i=e.subscribe(s);return s.closed||(s.connection=n.connect()),i}}class Z extends f{constructor(t,e){super(t),this.connectable=e}_unsubscribe(){const{connectable:t}=this;if(!t)return void(this.connection=null);this.connectable=null;const e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);const{connection:n}=this,s=t._connection;this.connection=null,!s||n&&s!==n||s.unsubscribe()}}class K extends y{constructor(t,e){super(),this.source=t,this.subjectFactory=e,this._refCount=0,this._isComplete=!1}_subscribe(t){return this.getSubject().subscribe(t)}getSubject(){const t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject}connect(){let t=this._connection;return t||(this._isComplete=!1,t=this._connection=new u,t.add(this.source.subscribe(new Y(this.getSubject(),this))),t.closed&&(this._connection=null,t=u.EMPTY)),t}refCount(){return U()(this)}}const G=(()=>{const t=K.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}})();class Y extends C{constructor(t,e){super(t),this.connectable=e}_error(t){this._unsubscribe(),super._error(t)}_complete(){this.connectable._isComplete=!0,this._unsubscribe(),super._complete()}_unsubscribe(){const t=this.connectable;if(t){this.connectable=null;const e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}}}function X(){return new E}function J(){return t=>{return U()((e=X,function(t){let n;n="function"==typeof e?e:function(){return e};const s=Object.create(t,G);return s.source=t,s.subjectFactory=n,s})(t));var e}}function tt(t){return{toString:t}.toString()}const et="__parameters__";function nt(t,e,n){return tt(()=>{const s=function(t){return function(...e){if(t){const n=t(...e);for(const t in n)this[t]=n[t]}}}(e);function i(...t){if(this instanceof i)return s.apply(this,t),this;const e=new i(...t);return n.annotation=e,n;function n(t,n,s){const i=t.hasOwnProperty(et)?t[et]:Object.defineProperty(t,et,{value:[]})[et];for(;i.length<=s;)i.push(null);return(i[s]=i[s]||[]).push(e),t}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=t,i.annotationCls=i,i})}const st=nt("Inject",t=>({token:t})),it=nt("Optional"),rt=nt("Self"),ot=nt("SkipSelf");var at=function(t){return t[t.Default=0]="Default",t[t.Host=1]="Host",t[t.Self=2]="Self",t[t.SkipSelf=4]="SkipSelf",t[t.Optional=8]="Optional",t}({});function lt(t){for(let e in t)if(t[e]===lt)return e;throw Error("Could not find renamed property on target object.")}function ct(t,e){for(const n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}function ht(t){return{token:t.token,providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function ut(t){return{factory:t.factory,providers:t.providers||[],imports:t.imports||[]}}function dt(t){return pt(t,t[mt])||pt(t,t[yt])}function pt(t,e){return e&&e.token===t?e:null}function ft(t){return t&&(t.hasOwnProperty(_t)||t.hasOwnProperty(bt))?t[_t]:null}const mt=lt({"\u0275prov":lt}),_t=lt({"\u0275inj":lt}),gt=lt({"\u0275provFallback":lt}),yt=lt({ngInjectableDef:lt}),bt=lt({ngInjectorDef:lt});function vt(t){if("string"==typeof t)return t;if(Array.isArray(t))return"["+t.map(vt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;const e=t.toString();if(null==e)return""+e;const n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function wt(t,e){return null==t||""===t?null===e?"":e:null==e||""===e?t:t+" "+e}const Ct=lt({__forward_ref__:lt});function Et(t){return t.__forward_ref__=Et,t.toString=function(){return vt(this())},t}function St(t){return xt(t)?t():t}function xt(t){return"function"==typeof t&&t.hasOwnProperty(Ct)&&t.__forward_ref__===Et}const kt="undefined"!=typeof globalThis&&globalThis,Tt="undefined"!=typeof window&&window,At="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,It="undefined"!=typeof global&&global,Ot=kt||It||Tt||At,Pt=lt({"\u0275cmp":lt}),Rt=lt({"\u0275dir":lt}),Dt=lt({"\u0275pipe":lt}),Nt=lt({"\u0275mod":lt}),Vt=lt({"\u0275loc":lt}),Mt=lt({"\u0275fac":lt}),Ft=lt({__NG_ELEMENT_ID__:lt});class Lt{constructor(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof e?this.__NG_ELEMENT_ID__=e:void 0!==e&&(this.\u0275prov=ht({token:this,providedIn:e.providedIn||"root",factory:e.factory}))}toString(){return"InjectionToken "+this._desc}}const jt=new Lt("INJECTOR",-1),Bt={},Ht=/\n/gm,zt="__source",$t=lt({provide:String,useValue:lt});let qt,Wt=void 0;function Ut(t){const e=Wt;return Wt=t,e}function Qt(t){const e=qt;return qt=t,e}function Zt(t,e=at.Default){if(void 0===Wt)throw new Error("inject() must be called from an injection context");return null===Wt?Yt(t,void 0,e):Wt.get(t,e&at.Optional?null:void 0,e)}function Kt(t,e=at.Default){return(qt||Zt)(St(t),e)}const Gt=Kt;function Yt(t,e,n){const s=dt(t);if(s&&"root"==s.providedIn)return void 0===s.value?s.value=s.factory():s.value;if(n&at.Optional)return null;if(void 0!==e)return e;throw new Error(`Injector: NOT_FOUND [${vt(t)}]`)}function Xt(t){const e=[];for(let n=0;n<t.length;n++){const s=St(t[n]);if(Array.isArray(s)){if(0===s.length)throw new Error("Arguments array must have arguments.");let t=void 0,n=at.Default;for(let e=0;e<s.length;e++){const i=s[e];i instanceof it||"Optional"===i.ngMetadataName||i===it?n|=at.Optional:i instanceof ot||"SkipSelf"===i.ngMetadataName||i===ot?n|=at.SkipSelf:i instanceof rt||"Self"===i.ngMetadataName||i===rt?n|=at.Self:t=i instanceof st||i===st?i.token:i}e.push(Kt(t,n))}else e.push(Kt(s))}return e}class Jt{get(t,e=Bt){if(e===Bt){const e=new Error(`NullInjectorError: No provider for ${vt(t)}!`);throw e.name="NullInjectorError",e}return e}}class te{}function ee(t,e){t.forEach(t=>Array.isArray(t)?ee(t,e):e(t))}function ne(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function se(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function ie(t,e){const n=[];for(let s=0;s<t;s++)n.push(e);return n}function re(t,e,n){let s=ae(t,e);return s>=0?t[1|s]=n:(s=~s,function(t,e,n,s){let i=t.length;if(i==e)t.push(n,s);else if(1===i)t.push(s,t[0]),t[0]=n;else{for(i--,t.push(t[i-1],t[i]);i>e;)t[i]=t[i-2],i--;t[e]=n,t[e+1]=s}}(t,s,e,n)),s}function oe(t,e){const n=ae(t,e);if(n>=0)return t[1|n]}function ae(t,e){return function(t,e,n){let s=0,i=t.length>>1;for(;i!==s;){const n=s+(i-s>>1),r=t[n<<1];if(e===r)return n<<1;r>e?i=n:s=n+1}return~(i<<1)}(t,e)}var le=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ce=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});const he={},ue=[];let de=0;function pe(t){return tt(()=>{const e={},n={type:t.type,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:e,inputs:null,outputs:null,exportAs:t.exportAs||null,onPush:t.changeDetection===le.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||ue,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ce.Emulated,id:"c",styles:t.styles||ue,_:null,setInput:null,schemas:t.schemas||null,tView:null},s=t.directives,i=t.features,r=t.pipes;return n.id+=de++,n.inputs=ye(t.inputs,e),n.outputs=ye(t.outputs),i&&i.forEach(t=>t(n)),n.directiveDefs=s?()=>("function"==typeof s?s():s).map(fe):null,n.pipeDefs=r?()=>("function"==typeof r?r():r).map(me):null,n})}function fe(t){return we(t)||function(t){return t[Rt]||null}(t)}function me(t){return function(t){return t[Dt]||null}(t)}const _e={};function ge(t){const e={type:t.type,bootstrap:t.bootstrap||ue,declarations:t.declarations||ue,imports:t.imports||ue,exports:t.exports||ue,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&tt(()=>{_e[t.id]=t.type}),e}function ye(t,e){if(null==t)return he;const n={};for(const s in t)if(t.hasOwnProperty(s)){let i=t[s],r=i;Array.isArray(i)&&(r=i[1],i=i[0]),n[i]=s,e&&(e[i]=r)}return n}const be=pe;function ve(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function we(t){return t[Pt]||null}function Ce(t,e){return t.hasOwnProperty(Mt)?t[Mt]:null}function Ee(t,e){const n=t[Nt]||null;if(!n&&!0===e)throw new Error(`Type ${vt(t)} does not have '\u0275mod' property.`);return n}const Se=20,xe=10;function ke(t){return Array.isArray(t)&&"object"==typeof t[1]}function Te(t){return Array.isArray(t)&&!0===t[1]}function Ae(t){return 0!=(8&t.flags)}function Ie(t){return 2==(2&t.flags)}function Oe(t){return 1==(1&t.flags)}function Pe(t){return null!==t.template}function Re(t){return 0!=(512&t[2])}class De{constructor(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}isFirstChange(){return this.firstChange}}function Ne(){return Ve}function Ve(t){return t.type.prototype.ngOnChanges&&(t.setInput=Fe),Me}function Me(){const t=Le(this),e=null==t?void 0:t.current;if(e){const n=t.previous;if(n===he)t.previous=e;else for(let t in e)n[t]=e[t];t.current=null,this.ngOnChanges(e)}}function Fe(t,e,n,s){const i=Le(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:he,current:null}),r=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[n],l=o[a];r[a]=new De(l&&l.currentValue,e,o===he),t[s]=e}function Le(t){return t.__ngSimpleChanges__||null}Ne.ngInherit=!0;let je=void 0;function Be(t){return!!t.listen}const He={createRenderer:(t,e)=>void 0!==je?je:"undefined"!=typeof document?document:void 0};function ze(t){for(;Array.isArray(t);)t=t[0];return t}function $e(t,e){return ze(e[t+Se])}function qe(t,e){return ze(e[t.index])}function We(t,e){return t.data[e+Se]}function Ue(t,e){const n=e[t];return ke(n)?n:n[0]}function Qe(t){const e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ze(t){return 4==(4&t[2])}function Ke(t){return 128==(128&t[2])}function Ge(t,e){return null===t||null==e?null:t[e]}function Ye(t){t[18]=0}function Xe(t,e){t[5]+=e;let n=t,s=t[3];for(;null!==s&&(1===e&&1===n[5]||-1===e&&0===n[5]);)s[5]+=e,n=s,s=s[3]}const Je={lFrame:bn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function tn(){return Je.bindingsEnabled}function en(){return Je.lFrame.lView}function nn(){return Je.lFrame.tView}function sn(t){Je.lFrame.contextLView=t}function rn(){return Je.lFrame.previousOrParentTNode}function on(t,e){Je.lFrame.previousOrParentTNode=t,Je.lFrame.isParent=e}function an(){return Je.lFrame.isParent}function ln(){Je.lFrame.isParent=!1}function cn(){return Je.checkNoChangesMode}function hn(t){Je.checkNoChangesMode=t}function un(){return Je.lFrame.bindingIndex++}function dn(t,e){const n=Je.lFrame;n.bindingIndex=n.bindingRootIndex=t,pn(e)}function pn(t){Je.lFrame.currentDirectiveIndex=t}function fn(){return Je.lFrame.currentQueryIndex}function mn(t){Je.lFrame.currentQueryIndex=t}function _n(t,e){const n=yn();Je.lFrame=n,n.previousOrParentTNode=e,n.lView=t}function gn(t,e){const n=yn(),s=t[1];Je.lFrame=n,n.previousOrParentTNode=e,n.lView=t,n.tView=s,n.contextLView=t,n.bindingIndex=s.bindingStartIndex}function yn(){const t=Je.lFrame,e=null===t?null:t.child;return null===e?bn(t):e}function bn(t){const e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function vn(){const t=Je.lFrame;return Je.lFrame=t.parent,t.previousOrParentTNode=null,t.lView=null,t}const wn=vn;function Cn(){const t=vn();t.isParent=!0,t.tView=null,t.selectedIndex=0,t.contextLView=null,t.elementDepthCount=0,t.currentDirectiveIndex=-1,t.currentNamespace=null,t.bindingRootIndex=-1,t.bindingIndex=-1,t.currentQueryIndex=0}function En(){return Je.lFrame.selectedIndex}function Sn(t){Je.lFrame.selectedIndex=t}function xn(){const t=Je.lFrame;return We(t.tView,t.selectedIndex)}function kn(t,e){for(let n=e.directiveStart,s=e.directiveEnd;n<s;n++){const e=t.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:i,ngAfterViewInit:r,ngAfterViewChecked:o,ngOnDestroy:a}=e;s&&(t.contentHooks||(t.contentHooks=[])).push(-n,s),i&&((t.contentHooks||(t.contentHooks=[])).push(n,i),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,i)),r&&(t.viewHooks||(t.viewHooks=[])).push(-n,r),o&&((t.viewHooks||(t.viewHooks=[])).push(n,o),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,o)),null!=a&&(t.destroyHooks||(t.destroyHooks=[])).push(n,a)}}function Tn(t,e,n){On(t,e,3,n)}function An(t,e,n,s){(3&t[2])===n&&On(t,e,n,s)}function In(t,e){let n=t[2];(3&n)===e&&(n&=2047,n+=1,t[2]=n)}function On(t,e,n,s){const i=null!=s?s:-1;let r=0;for(let o=void 0!==s?65535&t[18]:0;o<e.length;o++)if("number"==typeof e[o+1]){if(r=e[o],null!=s&&r>=s)break}else e[o]<0&&(t[18]+=65536),(r<i||-1==i)&&(Pn(t,n,e,o),t[18]=(4294901760&t[18])+o+2),o++}function Pn(t,e,n,s){const i=n[s]<0,r=n[s+1],o=t[i?-n[s]:n[s]];i?t[2]>>11<t[18]>>16&&(3&t[2])===e&&(t[2]+=2048,r.call(o)):r.call(o)}class Rn{constructor(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}function Dn(t,e,n){const s=Be(t);let i=0;for(;i<n.length;){const r=n[i];if("number"==typeof r){if(0!==r)break;i++;const o=n[i++],a=n[i++],l=n[i++];s?t.setAttribute(e,a,l,o):e.setAttributeNS(o,a,l)}else{const o=r,a=n[++i];Vn(o)?s&&t.setProperty(e,o,a):s?t.setAttribute(e,o,a):e.setAttribute(o,a),i++}}return i}function Nn(t){return 3===t||4===t||6===t}function Vn(t){return 64===t.charCodeAt(0)}function Mn(t,e){if(null===e||0===e.length);else if(null===t||0===t.length)t=e.slice();else{let n=-1;for(let s=0;s<e.length;s++){const i=e[s];"number"==typeof i?n=i:0===n||Fn(t,n,i,null,-1===n||2===n?e[++s]:null)}}return t}function Fn(t,e,n,s,i){let r=0,o=t.length;if(-1===e)o=-1;else for(;r<t.length;){const n=t[r++];if("number"==typeof n){if(n===e){o=-1;break}if(n>e){o=r-1;break}}}for(;r<t.length;){const e=t[r];if("number"==typeof e)break;if(e===n){if(null===s)return void(null!==i&&(t[r+1]=i));if(s===t[r+1])return void(t[r+2]=i)}r++,null!==s&&r++,null!==i&&r++}-1!==o&&(t.splice(o,0,e),r=o+1),t.splice(r++,0,n),null!==s&&t.splice(r++,0,s),null!==i&&t.splice(r++,0,i)}function Ln(t){return-1!==t}function jn(t){return 32767&t}function Bn(t){return t>>16}function Hn(t,e){let n=Bn(t),s=e;for(;n>0;)s=s[15],n--;return s}function zn(t){return"string"==typeof t?t:null==t?"":""+t}function $n(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():zn(t)}const qn=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ot))();function Wn(t){return{name:"body",target:t.ownerDocument.body}}function Un(t){return t instanceof Function?t():t}let Qn=!0;function Zn(t){const e=Qn;return Qn=t,e}let Kn=0;function Gn(t,e){const n=Xn(t,e);if(-1!==n)return n;const s=e[1];s.firstCreatePass&&(t.injectorIndex=e.length,Yn(s.data,t),Yn(e,null),Yn(s.blueprint,null));const i=Jn(t,e),r=t.injectorIndex;if(Ln(i)){const t=jn(i),n=Hn(i,e),s=n[1].data;for(let i=0;i<8;i++)e[r+i]=n[t+i]|s[t+i]}return e[r+8]=i,r}function Yn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function Xn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Jn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;let n=e[6],s=1;for(;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,s++;return n?n.injectorIndex|s<<16:-1}function ts(t,e,n){!function(t,e,n){let s;"string"==typeof n?s=n.charCodeAt(0)||0:n.hasOwnProperty(Ft)&&(s=n[Ft]),null==s&&(s=n[Ft]=Kn++);const i=255&s,r=1<<i,o=64&i,a=32&i,l=e.data;128&i?o?a?l[t+7]|=r:l[t+6]|=r:a?l[t+5]|=r:l[t+4]|=r:o?a?l[t+3]|=r:l[t+2]|=r:a?l[t+1]|=r:l[t]|=r}(t,e,n)}function es(t,e,n,s=at.Default,i){if(null!==t){const i=function(t){if("string"==typeof t)return t.charCodeAt(0)||0;const e=t.hasOwnProperty(Ft)?t[Ft]:void 0;return"number"==typeof e&&e>0?255&e:e}(n);if("function"==typeof i){_n(e,t);try{const t=i();if(null!=t||s&at.Optional)return t;throw new Error(`No provider for ${$n(n)}!`)}finally{wn()}}else if("number"==typeof i){if(-1===i)return new ls(t,e);let r=null,o=Xn(t,e),a=-1,l=s&at.Host?e[16][6]:null;for((-1===o||s&at.SkipSelf)&&(a=-1===o?Jn(t,e):e[o+8],as(s,!1)?(r=e[1],o=jn(a),e=Hn(a,e)):o=-1);-1!==o;){a=e[o+8];const t=e[1];if(os(i,o,t.data)){const t=ss(o,e,n,r,s,l);if(t!==ns)return t}as(s,e[1].data[o+8]===l)&&os(i,o,e)?(r=t,o=jn(a),e=Hn(a,e)):o=-1}}}if(s&at.Optional&&void 0===i&&(i=null),0==(s&(at.Self|at.Host))){const t=e[9],r=Qt(void 0);try{return t?t.get(n,i,s&at.Optional):Yt(n,i,s&at.Optional)}finally{Qt(r)}}if(s&at.Optional)return i;throw new Error(`NodeInjector: NOT_FOUND [${$n(n)}]`)}const ns={};function ss(t,e,n,s,i,r){const o=e[1],a=o.data[t+8],l=is(a,o,n,null==s?Ie(a)&&Qn:s!=o&&3===a.type,i&at.Host&&r===a);return null!==l?rs(e,o,l,a):ns}function is(t,e,n,s,i){const r=t.providerIndexes,o=e.data,a=1048575&r,l=t.directiveStart,c=r>>20,h=i?a+c:t.directiveEnd;for(let u=s?a:a+c;u<h;u++){const t=o[u];if(u<l&&n===t||u>=l&&t.type===n)return u}if(i){const t=o[l];if(t&&Pe(t)&&t.type===n)return l}return null}function rs(t,e,n,s){let i=t[n];const r=e.data;if(i instanceof Rn){const o=i;if(o.resolving)throw new Error("Circular dep for "+$n(r[n]));const a=Zn(o.canSeeViewProviders);let l;o.resolving=!0,o.injectImpl&&(l=Qt(o.injectImpl)),_n(t,s);try{i=t[n]=o.factory(void 0,r,t,s),e.firstCreatePass&&n>=s.directiveStart&&function(t,e,n){const{ngOnChanges:s,ngOnInit:i,ngDoCheck:r}=e.type.prototype;if(s){const s=Ve(e);(n.preOrderHooks||(n.preOrderHooks=[])).push(t,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,s)}i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-t,i),r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,r))}(n,r[n],e)}finally{o.injectImpl&&Qt(l),Zn(a),o.resolving=!1,wn()}}return i}function os(t,e,n){const s=64&t,i=32&t;let r;return r=128&t?s?i?n[e+7]:n[e+6]:i?n[e+5]:n[e+4]:s?i?n[e+3]:n[e+2]:i?n[e+1]:n[e],!!(r&1<<t)}function as(t,e){return!(t&at.Self||t&at.Host&&e)}class ls{constructor(t,e){this._tNode=t,this._lView=e}get(t,e){return es(this._tNode,this._lView,t,void 0,e)}}function cs(t){const e=t;if(xt(t))return()=>{const t=cs(St(e));return t?t():null};let n=Ce(e);if(null===n){const t=ft(e);n=t&&t.factory}return n||null}function hs(t){return tt(()=>{const e=t.prototype.constructor,n=e[Mt]||cs(e),s=Object.prototype;let i=Object.getPrototypeOf(t.prototype).constructor;for(;i&&i!==s;){const t=i[Mt]||cs(i);if(t&&t!==n)return t;i=Object.getPrototypeOf(i)}return t=>new t})}function us(t){return t.ngDebugContext}function ds(t){return t.ngOriginalError}function ps(t,...e){t.error(...e)}class fs{constructor(){this._console=console}handleError(t){const e=this._findOriginalError(t),n=this._findContext(t),s=function(t){return t.ngErrorLogger||ps}(t);s(this._console,"ERROR",t),e&&s(this._console,"ORIGINAL ERROR",e),n&&s(this._console,"ERROR CONTEXT",n)}_findContext(t){return t?us(t)?us(t):this._findContext(ds(t)):null}_findOriginalError(t){let e=ds(t);for(;e&&ds(e);)e=ds(e);return e}}class ms{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}class _s extends ms{getTypeName(){return"HTML"}}class gs extends ms{getTypeName(){return"Style"}}class ys extends ms{getTypeName(){return"Script"}}class bs extends ms{getTypeName(){return"URL"}}class vs extends ms{getTypeName(){return"ResourceURL"}}function ws(t){return t instanceof ms?t.changingThisBreaksApplicationSecurity:t}function Cs(t,e){const n=Es(t);if(null!=n&&n!==e){if("ResourceURL"===n&&"URL"===e)return!0;throw new Error(`Required a safe ${e}, got a ${n} (see http://g.co/ng/security#xss)`)}return n===e}function Es(t){return t instanceof ms&&t.getTypeName()||null}let Ss=!0,xs=!1;function ks(){return xs=!0,Ss}class Ts{getInertBodyElement(t){t="<body><remove></remove>"+t;try{const e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(e){return null}}}class As{constructor(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){const t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);const e=this.inertDocument.createElement("body");t.appendChild(e)}}getInertBodyElement(t){const e=this.inertDocument.createElement("template");if("content"in e)return e.innerHTML=t,e;const n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n}stripCustomNsAttrs(t){const e=t.attributes;for(let s=e.length-1;0<s;s--){const n=e.item(s).name;"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||t.removeAttribute(n)}let n=t.firstChild;for(;n;)n.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(n),n=n.nextSibling}}const Is=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,Os=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Ps(t){return(t=String(t)).match(Is)||t.match(Os)?t:(ks()&&console.warn(`WARNING: sanitizing unsafe URL value ${t} (see http://g.co/ng/security#xss)`),"unsafe:"+t)}function Rs(t){const e={};for(const n of t.split(","))e[n]=!0;return e}function Ds(...t){const e={};for(const n of t)for(const t in n)n.hasOwnProperty(t)&&(e[t]=!0);return e}const Ns=Rs("area,br,col,hr,img,wbr"),Vs=Rs("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ms=Rs("rp,rt"),Fs=Ds(Ms,Vs),Ls=Ds(Ns,Ds(Vs,Rs("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Ds(Ms,Rs("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Fs),js=Rs("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Bs=Rs("srcset"),Hs=Ds(js,Bs,Rs("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Rs("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),zs=Rs("script,style,template");class $s{constructor(){this.sanitizedSomething=!1,this.buf=[]}sanitizeChildren(t){let e=t.firstChild,n=!0;for(;e;)if(e.nodeType===Node.ELEMENT_NODE?n=this.startElement(e):e.nodeType===Node.TEXT_NODE?this.chars(e.nodeValue):this.sanitizedSomething=!0,n&&e.firstChild)e=e.firstChild;else for(;e;){e.nodeType===Node.ELEMENT_NODE&&this.endElement(e);let t=this.checkClobberedElement(e,e.nextSibling);if(t){e=t;break}e=this.checkClobberedElement(e,e.parentNode)}return this.buf.join("")}startElement(t){const e=t.nodeName.toLowerCase();if(!Ls.hasOwnProperty(e))return this.sanitizedSomething=!0,!zs.hasOwnProperty(e);this.buf.push("<"),this.buf.push(e);const n=t.attributes;for(let i=0;i<n.length;i++){const t=n.item(i),e=t.name,r=e.toLowerCase();if(!Hs.hasOwnProperty(r)){this.sanitizedSomething=!0;continue}let o=t.value;js[r]&&(o=Ps(o)),Bs[r]&&(s=o,o=(s=String(s)).split(",").map(t=>Ps(t.trim())).join(", ")),this.buf.push(" ",e,'="',Us(o),'"')}var s;return this.buf.push(">"),!0}endElement(t){const e=t.nodeName.toLowerCase();Ls.hasOwnProperty(e)&&!Ns.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))}chars(t){this.buf.push(Us(t))}checkClobberedElement(t,e){if(e&&(t.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return e}}const qs=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ws=/([^\#-~ |!])/g;function Us(t){return t.replace(/&/g,"&amp;").replace(qs,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Ws,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(/</g,"&lt;").replace(/>/g,"&gt;")}let Qs;function Zs(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Ks=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({});function Gs(t,e){t.__ngContext__=e}function Ys(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function Xs(){throw new Error("Cannot mix multi providers and regular providers")}function Js(t,e,n){let s=t.length;for(;;){const i=t.indexOf(e,n);if(-1===i)return i;if(0===i||t.charCodeAt(i-1)<=32){const n=e.length;if(i+n===s||t.charCodeAt(i+n)<=32)return i}n=i+1}}const ti="ng-template";function ei(t,e,n){let s=0;for(;s<t.length;){let i=t[s++];if(n&&"class"===i){if(i=t[s],-1!==Js(i.toLowerCase(),e,0))return!0}else if(1===i){for(;s<t.length&&"string"==typeof(i=t[s++]);)if(i.toLowerCase()===e)return!0;return!1}}return!1}function ni(t){return 0===t.type&&t.tagName!==ti}function si(t,e,n){return e===(0!==t.type||n?t.tagName:ti)}function ii(t,e,n){let s=4;const i=t.attrs||[],r=function(t){for(let e=0;e<t.length;e++)if(Nn(t[e]))return e;return t.length}(i);let o=!1;for(let a=0;a<e.length;a++){const l=e[a];if("number"!=typeof l){if(!o)if(4&s){if(s=2|1&s,""!==l&&!si(t,l,n)||""===l&&1===e.length){if(ri(s))return!1;o=!0}}else{const c=8&s?l:e[++a];if(8&s&&null!==t.attrs){if(!ei(t.attrs,c,n)){if(ri(s))return!1;o=!0}continue}const h=oi(8&s?"class":l,i,ni(t),n);if(-1===h){if(ri(s))return!1;o=!0;continue}if(""!==c){let t;t=h>r?"":i[h+1].toLowerCase();const e=8&s?t:null;if(e&&-1!==Js(e,c,0)||2&s&&c!==t){if(ri(s))return!1;o=!0}}}}else{if(!o&&!ri(s)&&!ri(l))return!1;if(o&&ri(l))continue;o=!1,s=l|1&s}}return ri(s)||o}function ri(t){return 0==(1&t)}function oi(t,e,n,s){if(null===e)return-1;let i=0;if(s||!n){let n=!1;for(;i<e.length;){const s=e[i];if(s===t)return i;if(3===s||6===s)n=!0;else{if(1===s||2===s){let t=e[++i];for(;"string"==typeof t;)t=e[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=n?1:2}return-1}return function(t,e){let n=t.indexOf(4);if(n>-1)for(n++;n<t.length;){const s=t[n];if("number"==typeof s)return-1;if(s===e)return n;n++}return-1}(e,t)}function ai(t,e,n=!1){for(let s=0;s<e.length;s++)if(ii(t,e[s],n))return!0;return!1}function li(t,e){t:for(let n=0;n<e.length;n++){const s=e[n];if(t.length===s.length){for(let e=0;e<t.length;e++)if(t[e]!==s[e])continue t;return!0}}return!1}function ci(t,e){return t?":not("+e.trim()+")":e}function hi(t){let e=t[0],n=1,s=2,i="",r=!1;for(;n<t.length;){let o=t[n];if("string"==typeof o)if(2&s){const e=t[++n];i+="["+o+(e.length>0?'="'+e+'"':"")+"]"}else 8&s?i+="."+o:4&s&&(i+=" "+o);else""===i||ri(o)||(e+=ci(r,i),i=""),s=o,r=r||!ri(s);n++}return""!==i&&(e+=ci(r,i)),e}const ui={};function di(t){const e=t[3];return Te(e)?e[3]:e}function pi(t){return mi(t[13])}function fi(t){return mi(t[4])}function mi(t){for(;null!==t&&!Te(t);)t=t[4];return t}function _i(t){gi(nn(),en(),En()+t,cn())}function gi(t,e,n,s){if(!s)if(3==(3&e[2])){const s=t.preOrderCheckHooks;null!==s&&Tn(e,s,n)}else{const s=t.preOrderHooks;null!==s&&An(e,s,0,n)}Sn(n)}function yi(t,e){return t<<17|e<<2}function bi(t){return t>>17&32767}function vi(t){return 2|t}function wi(t){return(131068&t)>>2}function Ci(t,e){return-131069&t|e<<2}function Ei(t){return 1|t}function Si(t,e){const n=t.contentQueries;if(null!==n)for(let s=0;s<n.length;s+=2){const i=n[s],r=n[s+1];if(-1!==r){const n=t.data[r];mn(i),n.contentQueries(2,e[r],r)}}}function xi(t,e,n){return Be(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function ki(t,e,n,s,i,r,o,a,l,c){const h=e.blueprint.slice();return h[0]=i,h[2]=140|s,Ye(h),h[3]=h[15]=t,h[8]=n,h[10]=o||t&&t[10],h[11]=a||t&&t[11],h[12]=l||t&&t[12]||null,h[9]=c||t&&t[9]||null,h[6]=r,h[16]=2==e.type?t[16]:h,h}function Ti(t,e,n,s,i,r){const o=n+Se,a=t.data[o]||function(t,e,n,s,i,r){const o=rn(),a=an(),l=a?o:o&&o.parent,c=t.data[n]=Li(0,l&&l!==e?l:null,s,n,i,r);return null===t.firstChild&&(t.firstChild=c),o&&(!a||null!=o.child||null===c.parent&&2!==o.type?a||(o.next=c):o.child=c),c}(t,e,o,s,i,r);return on(a,!0),a}function Ai(t,e,n){gn(e,e[6]);try{const s=t.viewQuery;null!==s&&or(1,s,n);const i=t.template;null!==i&&Pi(t,e,i,1,n),t.firstCreatePass&&(t.firstCreatePass=!1),t.staticContentQueries&&Si(t,e),t.staticViewQueries&&or(2,t.viewQuery,n);const r=t.components;null!==r&&function(t,e){for(let n=0;n<e.length;n++)er(t,e[n])}(e,r)}catch(s){throw t.firstCreatePass&&(t.incompleteFirstPass=!0),s}finally{e[2]&=-5,Cn()}}function Ii(t,e,n,s){const i=e[2];if(256==(256&i))return;gn(e,e[6]);const r=cn();try{Ye(e),Je.lFrame.bindingIndex=t.bindingStartIndex,null!==n&&Pi(t,e,n,2,s);const o=3==(3&i);if(!r)if(o){const n=t.preOrderCheckHooks;null!==n&&Tn(e,n,null)}else{const n=t.preOrderHooks;null!==n&&An(e,n,0,null),In(e,0)}if(function(t){for(let e=pi(t);null!==e;e=fi(e)){if(!e[2])continue;const t=e[9];for(let e=0;e<t.length;e++){const n=t[e],s=n[3];0==(1024&n[2])&&Xe(s,1),n[2]|=1024}}}(e),function(t){for(let e=pi(t);null!==e;e=fi(e))for(let t=xe;t<e.length;t++){const n=e[t],s=n[1];Ke(n)&&Ii(s,n,s.template,n[8])}}(e),null!==t.contentQueries&&Si(t,e),!r)if(o){const n=t.contentCheckHooks;null!==n&&Tn(e,n)}else{const n=t.contentHooks;null!==n&&An(e,n,1),In(e,1)}!function(t,e){try{const n=t.expandoInstructions;if(null!==n){let s=t.expandoStartIndex,i=-1,r=-1;for(let t=0;t<n.length;t++){const o=n[t];"number"==typeof o?o<=0?(r=0-o,Sn(r),s+=9+n[++t],i=s):s+=o:(null!==o&&(dn(s,i),o(2,e[i])),i++)}}}finally{Sn(-1)}}(t,e);const a=t.components;null!==a&&function(t,e){for(let n=0;n<e.length;n++)tr(t,e[n])}(e,a);const l=t.viewQuery;if(null!==l&&or(2,l,s),!r)if(o){const n=t.viewCheckHooks;null!==n&&Tn(e,n)}else{const n=t.viewHooks;null!==n&&An(e,n,2),In(e,2)}!0===t.firstUpdatePass&&(t.firstUpdatePass=!1),r||(e[2]&=-73),1024&e[2]&&(e[2]&=-1025,Xe(e[3],-1))}finally{Cn()}}function Oi(t,e,n,s){const i=e[10],r=!cn(),o=Ze(e);try{r&&!o&&i.begin&&i.begin(),o&&Ai(t,e,s),Ii(t,e,n,s)}finally{r&&!o&&i.end&&i.end()}}function Pi(t,e,n,s,i){const r=En();try{Sn(-1),2&s&&e.length>Se&&gi(t,e,0,cn()),n(s,i)}finally{Sn(r)}}function Ri(t,e,n){if(Ae(e)){const s=e.directiveEnd;for(let i=e.directiveStart;i<s;i++){const e=t.data[i];e.contentQueries&&e.contentQueries(1,n[i],i)}}}function Di(t,e,n){tn()&&(function(t,e,n,s){const i=n.directiveStart,r=n.directiveEnd;t.firstCreatePass||Gn(n,e),Gs(s,e);const o=n.initialInputs;for(let a=i;a<r;a++){const s=t.data[a],r=Pe(s);r&&Gi(e,n,s);const l=rs(e,t,a,n);Gs(l,e),null!==o&&Yi(0,a-i,l,s,0,o),r&&(Ue(n.index,e)[8]=l)}}(t,e,n,qe(n,e)),128==(128&n.flags)&&function(t,e,n){const s=n.directiveStart,i=n.directiveEnd,r=t.expandoInstructions,o=t.firstCreatePass,a=n.index-Se,l=Je.lFrame.currentDirectiveIndex;try{Sn(a);for(let n=s;n<i;n++){const s=t.data[n],i=e[n];pn(n),null!==s.hostBindings||0!==s.hostVars||null!==s.hostAttrs?qi(s,i):o&&r.push(null)}}finally{Sn(-1),pn(l)}}(t,e,n))}function Ni(t,e,n=qe){const s=e.localNames;if(null!==s){let i=e.index+1;for(let r=0;r<s.length;r+=2){const o=s[r+1],a=-1===o?n(e,t):t[o];t[i++]=a}}}function Vi(t){const e=t.tView;return null===e||e.incompleteFirstPass?t.tView=Mi(1,-1,t.template,t.decls,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery,t.schemas,t.consts):e}function Mi(t,e,n,s,i,r,o,a,l,c){const h=Se+s,u=h+i,d=function(t,e){const n=[];for(let s=0;s<e;s++)n.push(s<t?null:ui);return n}(h,u),p="function"==typeof c?c():c;return d[1]={type:t,id:e,blueprint:d,template:n,queries:null,viewQuery:a,node:null,data:d.slice().fill(null,h),bindingStartIndex:h,expandoStartIndex:u,expandoInstructions: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 r?r():r,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:l,consts:p,incompleteFirstPass:!1}}function Fi(t,e,n,s){const i=lr(e);i.push(n),t.firstCreatePass&&function(t){return t.cleanup||(t.cleanup=[])}(t).push(s,i.length-1)}function Li(t,e,n,s,i,r){return{type:n,index:s,injectorIndex:e?e.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:r,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}}function ji(t,e,n){for(let s in t)if(t.hasOwnProperty(s)){const i=t[s];(n=null===n?{}:n).hasOwnProperty(s)?n[s].push(e,i):n[s]=[e,i]}return n}function Bi(t,e,n,s,i,r,o,a){const l=qe(e,n);let c,h=e.inputs;var u;!a&&null!=h&&(c=h[s])?(hr(t,n,c,s,i),Ie(e)&&function(t,e){const n=Ue(e,t);16&n[2]||(n[2]|=64)}(n,e.index)):3===e.type&&(s="class"===(u=s)?"className":"for"===u?"htmlFor":"formaction"===u?"formAction":"innerHtml"===u?"innerHTML":"readonly"===u?"readOnly":"tabindex"===u?"tabIndex":u,i=null!=o?o(i,e.tagName||"",s):i,Be(r)?r.setProperty(l,s,i):Vn(s)||(l.setProperty?l.setProperty(s,i):l[s]=i))}function Hi(t,e,n,s){let i=!1;if(tn()){const r=function(t,e,n){const s=t.directiveRegistry;let i=null;if(s)for(let r=0;r<s.length;r++){const o=s[r];ai(n,o.selectors,!1)&&(i||(i=[]),ts(Gn(n,e),t,o.type),Pe(o)?(2&n.flags&&Ys(n),Ui(t,n),i.unshift(o)):i.push(o))}return i}(t,e,n),o=null===s?null:{"":-1};if(null!==r){let s=0;i=!0,Zi(n,t.data.length,r.length);for(let t=0;t<r.length;t++){const e=r[t];e.providersResolver&&e.providersResolver(e)}Wi(t,n,r.length);let a=!1,l=!1;for(let i=0;i<r.length;i++){const c=r[i];n.mergedAttrs=Mn(n.mergedAttrs,c.hostAttrs),Ki(t,e,c),Qi(t.data.length-1,c,o),null!==c.contentQueries&&(n.flags|=8),null===c.hostBindings&&null===c.hostAttrs&&0===c.hostVars||(n.flags|=128);const h=c.type.prototype;!a&&(h.ngOnChanges||h.ngOnInit||h.ngDoCheck)&&((t.preOrderHooks||(t.preOrderHooks=[])).push(n.index-Se),a=!0),l||!h.ngOnChanges&&!h.ngDoCheck||((t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(n.index-Se),l=!0),zi(t,c),s+=c.hostVars}!function(t,e){const n=e.directiveEnd,s=t.data,i=e.attrs,r=[];let o=null,a=null;for(let l=e.directiveStart;l<n;l++){const t=s[l],n=t.inputs,c=null===i||ni(e)?null:Xi(n,i);r.push(c),o=ji(n,l,o),a=ji(t.outputs,l,a)}null!==o&&(o.hasOwnProperty("class")&&(e.flags|=16),o.hasOwnProperty("style")&&(e.flags|=32)),e.initialInputs=r,e.inputs=o,e.outputs=a}(t,n),$i(t,e,s)}o&&function(t,e,n){if(e){const s=t.localNames=[];for(let t=0;t<e.length;t+=2){const i=n[e[t+1]];if(null==i)throw new Error(`Export of name '${e[t+1]}' not found!`);s.push(e[t],i)}}}(n,s,o)}return n.mergedAttrs=Mn(n.mergedAttrs,n.attrs),i}function zi(t,e){const n=t.expandoInstructions;n.push(e.hostBindings),0!==e.hostVars&&n.push(e.hostVars)}function $i(t,e,n){for(let s=0;s<n;s++)e.push(ui),t.blueprint.push(ui),t.data.push(null)}function qi(t,e){null!==t.hostBindings&&t.hostBindings(1,e)}function Wi(t,e,n){const s=Se-e.index,i=t.data.length-(1048575&e.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(s,i,n)}function Ui(t,e){e.flags|=2,(t.components||(t.components=[])).push(e.index)}function Qi(t,e,n){if(n){if(e.exportAs)for(let s=0;s<e.exportAs.length;s++)n[e.exportAs[s]]=t;Pe(e)&&(n[""]=t)}}function Zi(t,e,n){t.flags|=1,t.directiveStart=e,t.directiveEnd=e+n,t.providerIndexes=e}function Ki(t,e,n){t.data.push(n);const s=n.factory||(n.factory=Ce(n.type)),i=new Rn(s,Pe(n),null);t.blueprint.push(i),e.push(i)}function Gi(t,e,n){const s=qe(e,t),i=Vi(n),r=t[10],o=nr(t,ki(t,i,null,n.onPush?64:16,s,e,r,r.createRenderer(s,n)));t[e.index]=o}function Yi(t,e,n,s,i,r){const o=r[e];if(null!==o){const t=s.setInput;for(let e=0;e<o.length;){const i=o[e++],r=o[e++],a=o[e++];null!==t?s.setInput(n,a,i,r):n[r]=a}}}function Xi(t,e){let n=null,s=0;for(;s<e.length;){const i=e[s];if(0!==i)if(5!==i){if("number"==typeof i)break;t.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,t[i],e[s+1])),s+=2}else s+=2;else s+=4}return n}function Ji(t,e,n,s){return new Array(t,!0,!1,e,null,0,s,n,null,null)}function tr(t,e){const n=Ue(e,t);if(Ke(n)){const t=n[1];80&n[2]?Ii(t,n,t.template,n[8]):n[5]>0&&function t(e){for(let s=pi(e);null!==s;s=fi(s))for(let e=xe;e<s.length;e++){const n=s[e];if(1024&n[2]){const t=n[1];Ii(t,n,t.template,n[8])}else n[5]>0&&t(n)}const n=e[1].components;if(null!==n)for(let s=0;s<n.length;s++){const i=Ue(n[s],e);Ke(i)&&i[5]>0&&t(i)}}(n)}}function er(t,e){const n=Ue(e,t),s=n[1];!function(t,e){for(let n=e.length;n<t.blueprint.length;n++)e.push(t.blueprint[n])}(s,n),Ai(s,n,n[8])}function nr(t,e){return t[13]?t[14][4]=e:t[13]=e,t[14]=e,e}function sr(t){for(;t;){t[2]|=64;const e=di(t);if(Re(t)&&!e)return t;t=e}return null}function ir(t,e,n){const s=e[10];s.begin&&s.begin();try{Ii(t,e,t.template,n)}catch(i){throw cr(e,i),i}finally{s.end&&s.end()}}function rr(t){!function(t){for(let e=0;e<t.components.length;e++){const n=t.components[e],s=Qe(n),i=s[1];Oi(i,s,i.template,n)}}(t[8])}function or(t,e,n){mn(0),e(t,n)}const ar=(()=>Promise.resolve(null))();function lr(t){return t[7]||(t[7]=[])}function cr(t,e){const n=t[9],s=n?n.get(fs,null):null;s&&s.handleError(e)}function hr(t,e,n,s,i){for(let r=0;r<n.length;){const o=n[r++],a=n[r++],l=e[o],c=t.data[o];null!==c.setInput?c.setInput(l,i,s,a):l[a]=i}}function ur(t,e){const n=e[3];return-1===t.index?Te(n)?n:null:n}function dr(t,e){const n=ur(t,e);return n?Sr(e[11],n[7]):null}function pr(t,e,n,s,i){if(null!=s){let r,o=!1;Te(s)?r=s:ke(s)&&(o=!0,s=s[0]);const a=ze(s);0===t&&null!==n?null==i?Cr(e,n,a):wr(e,n,a,i||null):1===t&&null!==n?wr(e,n,a,i||null):2===t?function(t,e,n){const s=Sr(t,e);s&&function(t,e,n,s){Be(t)?t.removeChild(e,n,s):e.removeChild(n)}(t,s,e,n)}(e,a,o):3===t&&e.destroyNode(a),null!=r&&function(t,e,n,s,i){const r=n[7];r!==ze(n)&&pr(e,t,s,r,i);for(let o=xe;o<n.length;o++){const i=n[o];Ir(i[1],i,t,e,s,r)}}(e,t,r,n,i)}}function fr(t,e,n,s){const i=dr(t.node,e);i&&Ir(t,e,e[11],n?1:2,i,s)}function mr(t,e){const n=t[9],s=n.indexOf(e);1024&e[2]&&Xe(e[3],-1),n.splice(s,1)}function _r(t,e){if(t.length<=xe)return;const n=xe+e,s=t[n];if(s){const i=s[17];null!==i&&i!==t&&mr(i,s),e>0&&(t[n-1][4]=s[4]);const r=se(t,xe+e);fr(s[1],s,!1,null);const o=r[19];null!==o&&o.detachView(r[1]),s[3]=null,s[4]=null,s[2]&=-129}return s}function gr(t,e){if(!(256&e[2])){const n=e[11];Be(n)&&n.destroyNode&&Ir(t,e,n,3,null,null),function(t){let e=t[13];if(!e)return br(t[1],t);for(;e;){let n=null;if(ke(e))n=e[13];else{const t=e[10];t&&(n=t)}if(!n){for(;e&&!e[4]&&e!==t;)ke(e)&&br(e[1],e),e=yr(e,t);null===e&&(e=t),ke(e)&&br(e[1],e),n=e&&e[4]}e=n}}(e)}}function yr(t,e){let n;return ke(t)&&(n=t[6])&&2===n.type?ur(n,t):t[3]===e?null:t[3]}function br(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){let n;if(null!=t&&null!=(n=t.destroyHooks))for(let s=0;s<n.length;s+=2){const t=e[n[s]];if(!(t instanceof Rn)){const e=n[s+1];if(Array.isArray(e))for(let n=0;n<e.length;n+=2)e[n+1].call(t[e[n]]);else e.call(t)}}}(t,e),function(t,e){const n=t.cleanup;if(null!==n){const t=e[7];for(let s=0;s<n.length-1;s+=2)if("string"==typeof n[s]){const i=n[s+1],r="function"==typeof i?i(e):ze(e[i]),o=t[n[s+2]],a=n[s+3];"boolean"==typeof a?r.removeEventListener(n[s],o,a):a>=0?t[a]():t[-a].unsubscribe(),s+=2}else n[s].call(t[n[s+1]]);e[7]=null}}(t,e);const n=e[6];n&&3===n.type&&Be(e[11])&&e[11].destroy();const s=e[17];if(null!==s&&Te(e[3])){s!==e[3]&&mr(s,e);const n=e[19];null!==n&&n.detachView(t)}}}function vr(t,e,n){let s=e.parent;for(;null!=s&&(4===s.type||5===s.type);)s=(e=s).parent;if(null==s){const t=n[6];return 2===t.type?dr(t,n):n[0]}if(e&&5===e.type&&4&e.flags)return qe(e,n).parentNode;if(2&s.flags){const e=t.data,n=e[e[s.index].directiveStart].encapsulation;if(n!==ce.ShadowDom&&n!==ce.Native)return null}return qe(s,n)}function wr(t,e,n,s){Be(t)?t.insertBefore(e,n,s):e.insertBefore(n,s,!0)}function Cr(t,e,n){Be(t)?t.appendChild(e,n):e.appendChild(n)}function Er(t,e,n,s){null!==s?wr(t,e,n,s):Cr(t,e,n)}function Sr(t,e){return Be(t)?t.parentNode(e):e.parentNode}function xr(t,e){if(2===t.type){const n=ur(t,e);return null===n?null:Tr(n.indexOf(e,xe)-xe,n)}return 4===t.type||5===t.type?qe(t,e):null}function kr(t,e,n,s){const i=vr(t,s,e);if(null!=i){const t=e[11],r=xr(s.parent||e[6],e);if(Array.isArray(n))for(let e=0;e<n.length;e++)Er(t,i,n[e],r);else Er(t,i,n,r)}}function Tr(t,e){const n=xe+t+1;if(n<e.length){const t=e[n],s=t[1].firstChild;if(null!==s)return function t(e,n){if(null!==n){const s=n.type;if(3===s)return qe(n,e);if(0===s)return Tr(-1,e[n.index]);if(4===s||5===s){const s=n.child;if(null!==s)return t(e,s);{const t=e[n.index];return Te(t)?Tr(-1,t):ze(t)}}{const s=e[16],i=s[6],r=di(s),o=i.projection[n.projection];return null!=o?t(r,o):t(e,n.next)}}return null}(t,s)}return e[7]}function Ar(t,e,n,s,i,r,o){for(;null!=n;){const a=s[n.index],l=n.type;o&&0===e&&(a&&Gs(ze(a),s),n.flags|=4),64!=(64&n.flags)&&(4===l||5===l?(Ar(t,e,n.child,s,i,r,!1),pr(e,t,i,a,r)):1===l?Or(t,e,s,n,i,r):pr(e,t,i,a,r)),n=o?n.projectionNext:n.next}}function Ir(t,e,n,s,i,r){Ar(n,s,t.node.child,e,i,r,!1)}function Or(t,e,n,s,i,r){const o=n[16],a=o[6].projection[s.projection];if(Array.isArray(a))for(let l=0;l<a.length;l++)pr(e,t,i,a[l],r);else Ar(t,e,a,o[3],i,r,!0)}function Pr(t,e,n){Be(t)?t.setAttribute(e,"style",n):e.style.cssText=n}function Rr(t,e,n){Be(t)?""===n?t.removeAttribute(e,"class"):t.setAttribute(e,"class",n):e.className=n}class Dr{constructor(t,e){this._lView=t,this._cdRefInjectingView=e,this._appRef=null,this._viewContainerRef=null}get rootNodes(){const t=this._lView;return null==t[0]?function t(e,n,s,i,r=!1){for(;null!==s;){const o=n[s.index];if(null!==o&&i.push(ze(o)),Te(o))for(let e=xe;e<o.length;e++){const n=o[e],s=n[1].firstChild;null!==s&&t(n[1],n,s,i)}const a=s.type;if(4===a||5===a)t(e,n,s.child,i);else if(1===a){const e=n[16],r=e[6].projection[s.projection];if(Array.isArray(r))i.push(...r);else{const n=di(e);t(n[1],n,r,i,!0)}}s=r?s.projectionNext:s.next}return i}(t[1],t,t[6].child,[]):[]}get context(){return this._lView[8]}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){const t=this._viewContainerRef.indexOf(this);t>-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}gr(this._lView[1],this._lView)}onDestroy(t){Fi(this._lView[1],this._lView,null,t)}markForCheck(){sr(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){ir(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(t,e,n){hn(!0);try{ir(t,e,n)}finally{hn(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t}detachFromAppRef(){var t;this._appRef=null,Ir(this._lView[1],t=this._lView,t[11],2,null,null)}attachToAppRef(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class Nr extends Dr{constructor(t){super(t),this._view=t}detectChanges(){rr(this._view)}checkNoChanges(){!function(t){hn(!0);try{rr(t)}finally{hn(!1)}}(this._view)}get context(){return null}}let Vr,Mr,Fr;function Lr(t,e,n){return Vr||(Vr=class extends t{}),new Vr(qe(e,n))}function jr(t,e,n,s){return Mr||(Mr=class extends t{constructor(t,e,n){super(),this._declarationView=t,this._declarationTContainer=e,this.elementRef=n}createEmbeddedView(t){const e=this._declarationTContainer.tViews,n=ki(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];const s=this._declarationView[19];return null!==s&&(n[19]=s.createEmbeddedView(e)),Ai(e,n,t),new Dr(n)}}),0===n.type?new Mr(s,n,Lr(e,n,s)):null}function Br(t,e,n,s){let i;Fr||(Fr=class extends t{constructor(t,e,n){super(),this._lContainer=t,this._hostTNode=e,this._hostView=n}get element(){return Lr(e,this._hostTNode,this._hostView)}get injector(){return new ls(this._hostTNode,this._hostView)}get parentInjector(){const t=Jn(this._hostTNode,this._hostView),e=Hn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){const t=n.parent.injectorIndex;let e=n.parent;for(;null!=e.parent&&t==e.parent.injectorIndex;)e=e.parent;return e}let s=Bn(t),i=e,r=e[6];for(;s>1;)i=i[15],r=i[6],s--;return r}(t,this._hostView,this._hostTNode);return Ln(t)&&null!=n?new ls(n,e):new ls(null,this._hostView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null}get length(){return this._lContainer.length-xe}createEmbeddedView(t,e,n){const s=t.createEmbeddedView(e||{});return this.insert(s,n),s}createComponent(t,e,n,s,i){const r=n||this.parentInjector;if(!i&&null==t.ngModule&&r){const t=r.get(te,null);t&&(i=t)}const o=t.create(r,s,void 0,i);return this.insert(o.hostView,e),o}insert(t,e){const n=t._lView,s=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Te(n[3])){const e=this.indexOf(t);if(-1!==e)this.detach(e);else{const e=n[3],s=new Fr(e,e[6],e[3]);s.detach(s.indexOf(t))}}const i=this._adjustIndex(e);return function(t,e,n,s){const i=xe+s,r=n.length;s>0&&(n[i-1][4]=e),s<r-xe?(e[4]=n[i],ne(n,xe+s,e)):(n.push(e),e[4]=null),e[3]=n;const o=e[17];null!==o&&n!==o&&function(t,e){const n=t[9];e[16]!==e[3][3][16]&&(t[2]=!0),null===n?t[9]=[e]:n.push(e)}(o,e);const a=e[19];null!==a&&a.insertView(t),e[2]|=128}(s,n,this._lContainer,i),fr(s,n,!0,Tr(i,this._lContainer)),t.attachToViewContainerRef(this),ne(this._lContainer[8],i,t),t}move(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(t,e)}indexOf(t){const e=this._lContainer[8];return null!==e?e.indexOf(t):-1}remove(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_r(this._lContainer,e);n&&(se(this._lContainer[8],e),gr(n[1],n))}detach(t){this.allocateContainerIfNeeded();const e=this._adjustIndex(t,-1),n=_r(this._lContainer,e);return n&&null!=se(this._lContainer[8],e)?new Dr(n):null}_adjustIndex(t,e=0){return null==t?this.length+e:t}allocateContainerIfNeeded(){null===this._lContainer[8]&&(this._lContainer[8]=[])}});const r=s[n.index];if(Te(r))i=r;else{let t;if(4===n.type)t=ze(r);else if(t=s[11].createComment(""),Re(s)){const e=s[11],i=qe(n,s);wr(e,Sr(e,i),t,function(t,e){return Be(t)?t.nextSibling(e):e.nextSibling}(e,i))}else kr(s[1],s,t,n);s[n.index]=i=Ji(r,s,t,n),nr(s,i)}return new Fr(i,n,s)}function Hr(t=!1){return function(t,e,n){if(!n&&Ie(t)){const n=Ue(t.index,e);return new Dr(n,n)}return 3===t.type||0===t.type||4===t.type||5===t.type?new Dr(e[16],e):null}(rn(),en(),t)}let zr=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>$r(),t})();const $r=Hr,qr=new Lt("Set Injector scope."),Wr={},Ur={},Qr=[];let Zr=void 0;function Kr(){return void 0===Zr&&(Zr=new Jt),Zr}function Gr(t,e=null,n=null,s){return new Yr(t,n,e||Kr(),s)}class Yr{constructor(t,e,n,s=null){this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];e&&ee(e,n=>this.processProvider(n,t,e)),ee([t],t=>this.processInjectorType(t,[],i)),this.records.set(jt,to(void 0,this));const r=this.records.get(qr);this.scope=null!=r?r.value:null,this.source=s||("object"==typeof t?null:vt(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,e=Bt,n=at.Default){this.assertNotDestroyed();const s=Ut(this);try{if(!(n&at.SkipSelf)){let e=this.records.get(t);if(void 0===e){const n=("function"==typeof(i=t)||"object"==typeof i&&i instanceof Lt)&&dt(t);e=n&&this.injectableDefInScope(n)?to(Xr(t),Wr):null,this.records.set(t,e)}if(null!=e)return this.hydrate(t,e)}return(n&at.Self?Kr():this.parent).get(t,e=n&at.Optional&&e===Bt?null:e)}catch(r){if("NullInjectorError"===r.name){if((r.ngTempTokenPath=r.ngTempTokenPath||[]).unshift(vt(t)),s)throw r;return function(t,e,n,s){const i=t.ngTempTokenPath;throw e[zt]&&i.unshift(e[zt]),t.message=function(t,e,n,s=null){t=t&&"\n"===t.charAt(0)&&"\u0275"==t.charAt(1)?t.substr(2):t;let i=vt(e);if(Array.isArray(e))i=e.map(vt).join(" -> ");else if("object"==typeof e){let t=[];for(let n in e)if(e.hasOwnProperty(n)){let s=e[n];t.push(n+":"+("string"==typeof s?JSON.stringify(s):vt(s)))}i=`{${t.join(", ")}}`}return`${n}${s?"("+s+")":""}[${i}]: ${t.replace(Ht,"\n ")}`}("\n"+t.message,i,n,s),t.ngTokenPath=i,t.ngTempTokenPath=null,t}(r,t,"R3InjectorError",this.source)}throw r}finally{Ut(s)}var i}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((e,n)=>t.push(vt(n))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,e,n){if(!(t=St(t)))return!1;let s=ft(t);const i=null==s&&t.ngModule||void 0,r=void 0===i?t:i,o=-1!==n.indexOf(r);if(void 0!==i&&(s=ft(i)),null==s)return!1;if(null!=s.imports&&!o){let t;n.push(r);try{ee(s.imports,s=>{this.processInjectorType(s,e,n)&&(void 0===t&&(t=[]),t.push(s))})}finally{}if(void 0!==t)for(let e=0;e<t.length;e++){const{ngModule:n,providers:s}=t[e];ee(s,t=>this.processProvider(t,n,s||Qr))}}this.injectorDefTypes.add(r),this.records.set(r,to(s.factory,Wr));const a=s.providers;if(null!=a&&!o){const e=t;ee(a,t=>this.processProvider(t,e,a))}return void 0!==i&&void 0!==t.providers}processProvider(t,e,n){let s=no(t=St(t))?t:St(t&&t.provide);const i=function(t,e,n){return eo(t)?to(void 0,t.useValue):to(Jr(t,e,n),Wr)}(t,e,n);if(no(t)||!0!==t.multi){const t=this.records.get(s);t&&void 0!==t.multi&&Xs()}else{let e=this.records.get(s);e?void 0===e.multi&&Xs():(e=to(void 0,Wr,!0),e.factory=()=>Xt(e.multi),this.records.set(s,e)),s=t,e.multi.push(t)}this.records.set(s,i)}hydrate(t,e){var n;return e.value===Ur?function(t){throw new Error("Cannot instantiate cyclic dependency! "+t)}(vt(t)):e.value===Wr&&(e.value=Ur,e.value=e.factory()),"object"==typeof e.value&&e.value&&null!==(n=e.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(e.value),e.value}injectableDefInScope(t){return!!t.providedIn&&("string"==typeof t.providedIn?"any"===t.providedIn||t.providedIn===this.scope:this.injectorDefTypes.has(t.providedIn))}}function Xr(t){const e=dt(t),n=null!==e?e.factory:Ce(t);if(null!==n)return n;const s=ft(t);if(null!==s)return s.factory;if(t instanceof Lt)throw new Error(`Token ${vt(t)} is missing a \u0275prov definition.`);if(t instanceof Function)return function(t){const e=t.length;if(e>0){const n=ie(e,"?");throw new Error(`Can't resolve all parameters for ${vt(t)}: (${n.join(", ")}).`)}const n=function(t){const e=t&&(t[mt]||t[yt]||t[gt]&&t[gt]());if(e){const n=function(t){if(t.hasOwnProperty("name"))return t.name;const e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),e}return null}(t);return null!==n?()=>n.factory(t):()=>new t}(t);throw new Error("unreachable")}function Jr(t,e,n){let s=void 0;if(no(t)){const e=St(t);return Ce(e)||Xr(e)}if(eo(t))s=()=>St(t.useValue);else if((i=t)&&i.useFactory)s=()=>t.useFactory(...Xt(t.deps||[]));else if(function(t){return!(!t||!t.useExisting)}(t))s=()=>Kt(St(t.useExisting));else{const i=St(t&&(t.useClass||t.provide));if(i||function(t,e,n){let s="";throw t&&e&&(s=` - only instances of Provider and Type are allowed, got: [${e.map(t=>t==n?"?"+n+"?":"...").join(", ")}]`),new Error(`Invalid provider for the NgModule '${vt(t)}'`+s)}(e,n,t),!function(t){return!!t.deps}(t))return Ce(i)||Xr(i);s=()=>new i(...Xt(t.deps))}var i;return s}function to(t,e,n=!1){return{factory:t,value:e,multi:n?[]:void 0}}function eo(t){return null!==t&&"object"==typeof t&&$t in t}function no(t){return"function"==typeof t}const so=function(t,e,n){return function(t,e=null,n=null,s){const i=Gr(t,e,n,s);return i._resolveInjectorDefTypes(),i}({name:n},e,t,n)};let io=(()=>{class t{static create(t,e){return Array.isArray(t)?so(t,e,""):so(t.providers,t.parent,t.name||"")}}return t.THROW_IF_NOT_FOUND=Bt,t.NULL=new Jt,t.\u0275prov=ht({token:t,providedIn:"any",factory:()=>Kt(jt)}),t.__NG_ELEMENT_ID__=-1,t})();function ro(t,e,n){let s=n?t.styles:null,i=n?t.classes:null,r=0;if(null!==e)for(let o=0;o<e.length;o++){const t=e[o];"number"==typeof t?r=t:1==r?i=wt(i,t):2==r&&(s=wt(s,t+": "+e[++o]+";"))}n?t.styles=s:t.stylesWithoutHost=s,n?t.classes=i:t.classesWithoutHost=i}let oo=null;function ao(){if(!oo){const t=Ot.Symbol;if(t&&t.iterator)oo=t.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let e=0;e<t.length;++e){const n=t[e];"entries"!==n&&"size"!==n&&Map.prototype[n]===Map.prototype.entries&&(oo=n)}}}return oo}class lo{constructor(t){this.wrapped=t}static wrap(t){return new lo(t)}static unwrap(t){return lo.isWrapped(t)?t.wrapped:t}static isWrapped(t){return t instanceof lo}}function co(t){return!!ho(t)&&(Array.isArray(t)||!(t instanceof Map)&&ao()in t)}function ho(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function uo(t,e,n){return!Object.is(t[e],n)&&(t[e]=n,!0)}function po(t,e,n,s){const i=en();return uo(i,un(),e)&&(nn(),function(t,e,n,s,i,r){const o=qe(t,e),a=e[11];if(null==s)Be(a)?a.removeAttribute(o,n,r):o.removeAttribute(n);else{const e=null==i?zn(s):i(s,t.tagName||"",n);Be(a)?a.setAttribute(o,n,e,r):r?o.setAttributeNS(r,n,e):o.setAttribute(n,e)}}(xn(),i,t,e,n,s)),po}function fo(t,e,n,s,i,r,o,a){const l=en(),c=nn(),h=t+Se,u=c.firstCreatePass?function(t,e,n,s,i,r,o,a,l){const c=e.consts,h=Ti(e,n[6],t,0,o||null,Ge(c,a));Hi(e,n,h,Ge(c,l)),kn(e,h);const u=h.tViews=Mi(2,-1,s,i,r,e.directiveRegistry,e.pipeRegistry,null,e.schemas,c),d=Li(0,null,2,-1,null,null);return d.injectorIndex=h.injectorIndex,u.node=d,null!==e.queries&&(e.queries.template(e,h),u.queries=e.queries.embeddedTView(h)),h}(t,c,l,e,n,s,i,r,o):c.data[h];on(u,!1);const d=l[11].createComment("");kr(c,l,d,u),Gs(d,l),nr(l,l[h]=Ji(d,l,d,u)),Oe(u)&&Di(c,l,u),null!=o&&Ni(l,u,a)}function mo(t,e=at.Default){const n=en();return null==n?Kt(t,e):es(rn(),n,St(t),e)}function _o(t,e,n){const s=en();return uo(s,un(),e)&&Bi(nn(),xn(),s,t,e,s[11],n,!1),_o}function go(t,e,n,s,i){const r=i?"class":"style";hr(t,n,e.inputs[r],r,s)}function yo(t,e,n,s){const i=en(),r=nn(),o=Se+t,a=i[11],l=i[o]=xi(e,a,Je.lFrame.currentNamespace),c=r.firstCreatePass?function(t,e,n,s,i,r,o){const a=e.consts,l=Ge(a,r),c=Ti(e,n[6],t,3,i,l);return Hi(e,n,c,Ge(a,o)),null!==c.attrs&&ro(c,c.attrs,!1),null!==c.mergedAttrs&&ro(c,c.mergedAttrs,!0),null!==e.queries&&e.queries.elementStart(e,c),c}(t,r,i,0,e,n,s):r.data[o];on(c,!0);const h=c.mergedAttrs;null!==h&&Dn(a,l,h);const u=c.classes;null!==u&&Rr(a,l,u);const d=c.styles;null!==d&&Pr(a,l,d),kr(r,i,l,c),0===Je.lFrame.elementDepthCount&&Gs(l,i),Je.lFrame.elementDepthCount++,Oe(c)&&(Di(r,i,c),Ri(r,c,i)),null!==s&&Ni(i,c)}function bo(){let t=rn();an()?ln():(t=t.parent,on(t,!1));const e=t;Je.lFrame.elementDepthCount--;const n=nn();n.firstCreatePass&&(kn(n,t),Ae(t)&&n.queries.elementEnd(t)),null!=e.classesWithoutHost&&function(t){return 0!=(16&t.flags)}(e)&&go(n,e,en(),e.classesWithoutHost,!0),null!=e.stylesWithoutHost&&function(t){return 0!=(32&t.flags)}(e)&&go(n,e,en(),e.stylesWithoutHost,!1)}function vo(t,e,n,s){yo(t,e,n,s),bo()}function wo(t,e,n){const s=en(),i=nn(),r=t+Se,o=i.firstCreatePass?function(t,e,n,s,i){const r=e.consts,o=Ge(r,s),a=Ti(e,n[6],t,4,"ng-container",o);return null!==o&&ro(a,o,!0),Hi(e,n,a,Ge(r,i)),null!==e.queries&&e.queries.elementStart(e,a),a}(t,i,s,e,n):i.data[r];on(o,!0);const a=s[r]=s[11].createComment("");kr(i,s,a,o),Gs(a,s),Oe(o)&&(Di(i,s,o),Ri(i,o,s)),null!=n&&Ni(s,o)}function Co(){let t=rn();const e=nn();an()?ln():(t=t.parent,on(t,!1)),e.firstCreatePass&&(kn(e,t),Ae(t)&&e.queries.elementEnd(t))}function Eo(){return en()}function So(t){return!!t&&"function"==typeof t.then}function xo(t){return!!t&&"function"==typeof t.subscribe}function ko(t,e,n=!1,s){const i=en(),r=nn(),o=rn();return function(t,e,n,s,i,r,o=!1,a){const l=Oe(s),c=t.firstCreatePass&&(t.cleanup||(t.cleanup=[])),h=lr(e);let u=!0;if(3===s.type){const d=qe(s,e),p=a?a(d):he,f=p.target||d,m=h.length,_=a?t=>a(ze(t[s.index])).target:s.index;if(Be(n)){let o=null;if(!a&&l&&(o=function(t,e,n,s){const i=t.cleanup;if(null!=i)for(let r=0;r<i.length-1;r+=2){const t=i[r];if(t===n&&i[r+1]===s){const t=e[7],n=i[r+2];return t.length>n?t[n]:null}"string"==typeof t&&(r+=2)}return null}(t,e,i,s.index)),null!==o)(o.__ngLastListenerFn__||o).__ngNextListenerFn__=r,o.__ngLastListenerFn__=r,u=!1;else{r=Ao(s,e,r,!1);const t=n.listen(p.name||f,i,r);h.push(r,t),c&&c.push(i,_,m,m+1)}}else r=Ao(s,e,r,!0),f.addEventListener(i,r,o),h.push(r),c&&c.push(i,_,m,o)}const d=s.outputs;let p;if(u&&null!==d&&(p=d[i])){const t=p.length;if(t)for(let n=0;n<t;n+=2){const t=e[p[n]][p[n+1]].subscribe(r),o=h.length;h.push(r,t),c&&c.push(i,s.index,o,-(o+1))}}}(r,i,i[11],o,t,e,n,s),ko}function To(t,e,n){try{return!1!==e(n)}catch(s){return cr(t,s),!1}}function Ao(t,e,n,s){return function i(r){if(r===Function)return n;const o=2&t.flags?Ue(t.index,e):e;0==(32&e[2])&&sr(o);let a=To(e,n,r),l=i.__ngNextListenerFn__;for(;l;)a=To(e,l,r)&&a,l=l.__ngNextListenerFn__;return s&&!1===a&&(r.preventDefault(),r.returnValue=!1),a}}function Io(t=1){return function(t){return(Je.lFrame.contextLView=function(t,e){for(;t>0;)e=e[15],t--;return e}(t,Je.lFrame.contextLView))[8]}(t)}function Oo(t,e){let n=null;const s=function(t){const e=t.attrs;if(null!=e){const t=e.indexOf(5);if(0==(1&t))return e[t+1]}return null}(t);for(let i=0;i<e.length;i++){const r=e[i];if("*"!==r){if(null===s?ai(t,r,!0):li(s,r))return i}else n=i}return n}function Po(t){const e=en()[16][6];if(!e.projection){const n=e.projection=ie(t?t.length:1,null),s=n.slice();let i=e.child;for(;null!==i;){const e=t?Oo(i,t):0;null!==e&&(s[e]?s[e].projectionNext=i:n[e]=i,s[e]=i),i=i.next}}}function Ro(t,e=0,n){const s=en(),i=nn(),r=Ti(i,s[6],t,1,null,n||null);null===r.projection&&(r.projection=e),ln(),function(t,e,n){Or(e[11],0,e,n,vr(t,n,e),xr(n.parent||e[6],e))}(i,s,r)}const Do=[];function No(t,e,n,s,i){const r=t[n+1],o=null===e;let a=s?bi(r):wi(r),l=!1;for(;0!==a&&(!1===l||o);){const n=t[a+1];Vo(t[a],e)&&(l=!0,t[a+1]=s?Ei(n):vi(n)),a=s?bi(n):wi(n)}l&&(t[n+1]=s?vi(r):Ei(r))}function Vo(t,e){return null===t||null==e||(Array.isArray(t)?t[1]:t)===e||!(!Array.isArray(t)||"string"!=typeof e)&&ae(t,e)>=0}function Mo(t,e,n){return Lo(t,e,n,!1),Mo}function Fo(t,e){return Lo(t,e,null,!0),Fo}function Lo(t,e,n,s){const i=en(),r=nn(),o=function(t){const e=Je.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+2,n}();r.firstUpdatePass&&function(t,e,n,s){const i=t.data;if(null===i[n+1]){const r=i[En()+Se],o=function(t,e){return e>=t.expandoStartIndex}(t,n);(function(t,e){return 0!=(t.flags&(e?16:32))})(r,s)&&null===e&&!o&&(e=!1),e=function(t,e,n,s){const i=function(t){const e=Je.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t);let r=s?e.residualClasses:e.residualStyles;if(null===i)0===(s?e.classBindings:e.styleBindings)&&(n=Bo(n=jo(null,t,e,n,s),e.attrs,s),r=null);else{const o=e.directiveStylingLast;if(-1===o||t[o]!==i)if(n=jo(i,t,e,n,s),null===r){let n=function(t,e,n){const s=n?e.classBindings:e.styleBindings;if(0!==wi(s))return t[bi(s)]}(t,e,s);void 0!==n&&Array.isArray(n)&&(n=jo(null,t,e,n[1],s),n=Bo(n,e.attrs,s),function(t,e,n,s){t[bi(n?e.classBindings:e.styleBindings)]=s}(t,e,s,n))}else r=function(t,e,n){let s=void 0;const i=e.directiveEnd;for(let r=1+e.directiveStylingLast;r<i;r++)s=Bo(s,t[r].hostAttrs,n);return Bo(s,e.attrs,n)}(t,e,s)}return void 0!==r&&(s?e.residualClasses=r:e.residualStyles=r),n}(i,r,e,s),function(t,e,n,s,i,r){let o=r?e.classBindings:e.styleBindings,a=bi(o),l=wi(o);t[s]=n;let c,h=!1;if(Array.isArray(n)){const t=n;c=t[1],(null===c||ae(t,c)>0)&&(h=!0)}else c=n;if(i)if(0!==l){const e=bi(t[a+1]);t[s+1]=yi(e,a),0!==e&&(t[e+1]=Ci(t[e+1],s)),t[a+1]=131071&t[a+1]|s<<17}else t[s+1]=yi(a,0),0!==a&&(t[a+1]=Ci(t[a+1],s)),a=s;else t[s+1]=yi(l,0),0===a?a=s:t[l+1]=Ci(t[l+1],s),l=s;h&&(t[s+1]=vi(t[s+1])),No(t,c,s,!0),No(t,c,s,!1),function(t,e,n,s,i){const r=i?t.residualClasses:t.residualStyles;null!=r&&"string"==typeof e&&ae(r,e)>=0&&(n[s+1]=Ei(n[s+1]))}(e,c,t,s,r),o=yi(a,l),r?e.classBindings=o:e.styleBindings=o}(i,r,e,n,o,s)}}(r,t,o,s),e!==ui&&uo(i,o,e)&&function(t,e,n,s,i,r,o,a){if(3!==e.type)return;const l=t.data,c=l[a+1];zo(1==(1&c)?Ho(l,e,n,i,wi(c),o):void 0)||(zo(r)||function(t){return 2==(2&t)}(c)&&(r=Ho(l,null,n,i,a,o)),function(t,e,n,s,i){const r=Be(t);if(e)i?r?t.addClass(n,s):n.classList.add(s):r?t.removeClass(n,s):n.classList.remove(s);else{const e=-1==s.indexOf("-")?void 0:2;null==i?r?t.removeStyle(n,s,e):n.style.removeProperty(s):r?t.setStyle(n,s,i,e):n.style.setProperty(s,i)}}(s,o,$e(En(),n),i,r))}(r,r.data[En()+Se],i,i[11],t,i[o+1]=function(t,e){return null==t||("string"==typeof e?t+=e:"object"==typeof t&&(t=vt(ws(t)))),t}(e,n),s,o)}function jo(t,e,n,s,i){let r=null;const o=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<o&&(r=e[a],s=Bo(s,r.hostAttrs,i),r!==t);)a++;return null!==t&&(n.directiveStylingLast=a),s}function Bo(t,e,n){const s=n?1:2;let i=-1;if(null!==e)for(let r=0;r<e.length;r++){const o=e[r];"number"==typeof o?i=o:i===s&&(Array.isArray(t)||(t=void 0===t?[]:["",t]),re(t,o,!!n||e[++r]))}return void 0===t?null:t}function Ho(t,e,n,s,i,r){const o=null===e;let a=void 0;for(;i>0;){const e=t[i],r=Array.isArray(e),l=r?e[1]:e,c=null===l;let h=n[i+1];h===ui&&(h=c?Do:void 0);let u=c?oe(h,s):l===s?h:void 0;if(r&&!zo(u)&&(u=oe(e,s)),zo(u)&&(a=u,o))return a;const d=t[i+1];i=o?bi(d):wi(d)}if(null!==e){let t=r?e.residualClasses:e.residualStyles;null!=t&&(a=oe(t,s))}return a}function zo(t){return void 0!==t}function $o(t,e=""){const n=en(),s=nn(),i=t+Se,r=s.firstCreatePass?Ti(s,n[6],t,3,null,null):s.data[i],o=n[i]=function(t,e){return Be(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);kr(s,n,o,r),on(r,!1)}function qo(t){return Wo("",t,""),qo}function Wo(t,e,n){const s=en(),i=function(t,e,n,s){return uo(t,un(),n)?e+zn(n)+s:ui}(s,t,e,n);return i!==ui&&function(t,e,n){const s=$e(e,t),i=t[11];Be(i)?i.setValue(s,n):s.textContent=n}(s,En(),i),Wo}function Uo(t,e,n){const s=en();return uo(s,un(),e)&&Bi(nn(),xn(),s,t,e,s[11],n,!0),Uo}function Qo(t,e){const n=Qe(t)[1],s=n.data.length-1;kn(n,{directiveStart:s,directiveEnd:s+1})}function Zo(t){let e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0;const s=[t];for(;e;){let i=void 0;if(Pe(t))i=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");i=e.\u0275dir}if(i){if(n){s.push(i);const e=t;e.inputs=Ko(t.inputs),e.declaredInputs=Ko(t.declaredInputs),e.outputs=Ko(t.outputs);const n=i.hostBindings;n&&Xo(t,n);const r=i.viewQuery,o=i.contentQueries;if(r&&Go(t,r),o&&Yo(t,o),ct(t.inputs,i.inputs),ct(t.declaredInputs,i.declaredInputs),ct(t.outputs,i.outputs),Pe(i)&&i.data.animation){const e=t.data;e.animation=(e.animation||[]).concat(i.data.animation)}}const e=i.features;if(e)for(let s=0;s<e.length;s++){const i=e[s];i&&i.ngInherit&&i(t),i===Zo&&(n=!1)}}e=Object.getPrototypeOf(e)}!function(t){let e=0,n=null;for(let s=t.length-1;s>=0;s--){const i=t[s];i.hostVars=e+=i.hostVars,i.hostAttrs=Mn(i.hostAttrs,n=Mn(n,i.hostAttrs))}}(s)}function Ko(t){return t===he?{}:t===ue?[]:t}function Go(t,e){const n=t.viewQuery;t.viewQuery=n?(t,s)=>{e(t,s),n(t,s)}:e}function Yo(t,e){const n=t.contentQueries;t.contentQueries=n?(t,s,i)=>{e(t,s,i),n(t,s,i)}:e}function Xo(t,e){const n=t.hostBindings;t.hostBindings=n?(t,s)=>{e(t,s),n(t,s)}:e}function Jo(t,e,n,s,i){if(t=St(t),Array.isArray(t))for(let r=0;r<t.length;r++)Jo(t[r],e,n,s,i);else{const r=nn(),o=en();let a=no(t)?t:St(t.provide),l=Jr(t);const c=rn(),h=1048575&c.providerIndexes,u=c.directiveStart,d=c.providerIndexes>>20;if(no(t)||!t.multi){const s=new Rn(l,i,mo),p=na(a,e,i?h:h+d,u);-1===p?(ts(Gn(c,o),r,a),ta(r,t,e.length),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(s),o.push(s)):(n[p]=s,o[p]=s)}else{const p=na(a,e,h+d,u),f=na(a,e,h,h+d),m=p>=0&&n[p],_=f>=0&&n[f];if(i&&!_||!i&&!m){ts(Gn(c,o),r,a);const h=function(t,e,n,s,i){const r=new Rn(t,n,mo);return r.multi=[],r.index=e,r.componentProviders=0,ea(r,i,s&&!n),r}(i?ia:sa,n.length,i,s,l);!i&&_&&(n[f].providerFactory=h),ta(r,t,e.length,0),e.push(a),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=1048576),n.push(h),o.push(h)}else ta(r,t,p>-1?p:f,ea(n[i?f:p],l,!i&&s));!i&&s&&_&&n[f].componentProviders++}}}function ta(t,e,n,s){const i=no(e);if(i||e.useClass){const r=(e.useClass||e).prototype.ngOnDestroy;if(r){const o=t.destroyHooks||(t.destroyHooks=[]);if(!i&&e.multi){const t=o.indexOf(n);-1===t?o.push(n,[s,r]):o[t+1].push(s,r)}else o.push(n,r)}}}function ea(t,e,n){return n&&t.componentProviders++,t.multi.push(e)-1}function na(t,e,n,s){for(let i=n;i<s;i++)if(e[i]===t)return i;return-1}function sa(t,e,n,s){return ra(this.multi,[])}function ia(t,e,n,s){const i=this.multi;let r;if(this.providerFactory){const t=this.providerFactory.componentProviders,e=rs(n,n[1],this.providerFactory.index,s);r=e.slice(0,t),ra(i,r);for(let n=t;n<e.length;n++)r.push(e[n])}else r=[],ra(i,r);return r}function ra(t,e){for(let n=0;n<t.length;n++)e.push((0,t[n])());return e}function oa(t,e=[]){return n=>{n.providersResolver=(n,s)=>function(t,e,n){const s=nn();if(s.firstCreatePass){const i=Pe(t);Jo(n,s.data,s.blueprint,i,!0),Jo(e,s.data,s.blueprint,i,!1)}}(n,s?s(t):t,e)}}class aa{}class la{resolveComponentFactory(t){throw function(t){const e=Error(`No component factory found for ${vt(t)}. Did you add it to @NgModule.entryComponents?`);return e.ngComponent=t,e}(t)}}let ca=(()=>{class t{}return t.NULL=new la,t})(),ha=(()=>{class t{constructor(t){this.nativeElement=t}}return t.__NG_ELEMENT_ID__=()=>ua(t),t})();const ua=function(t){return Lr(t,rn(),en())};class da{}var pa=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({});let fa=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>ma(),t})();const ma=function(){const t=en(),e=Ue(rn().index,t);return function(t){const e=t[11];if(Be(e))return e;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(ke(e)?e:t)};let _a=(()=>{class t{}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>null}),t})();class ga{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const ya=new ga("10.1.0");class ba{constructor(){}supports(t){return co(t)}create(t){return new wa(t)}}const va=(t,e)=>e;class wa{constructor(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||va}forEachItem(t){let e;for(e=this._itHead;null!==e;e=e._next)t(e)}forEachOperation(t){let e=this._itHead,n=this._removalsHead,s=0,i=null;for(;e||n;){const r=!n||e&&e.currentIndex<xa(n,s,i)?e:n,o=xa(r,s,i),a=r.currentIndex;if(r===n)s--,n=n._nextRemoved;else if(e=e._next,null==r.previousIndex)s++;else{i||(i=[]);const t=o-s,e=a-s;if(t!=e){for(let n=0;n<t;n++){const s=n<i.length?i[n]:i[n]=0,r=s+n;e<=r&&r<t&&(i[n]=s+1)}i[r.previousIndex]=e-t}}o!==a&&t(r,o,a)}}forEachPreviousItem(t){let e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachMovedItem(t){let e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}forEachIdentityChange(t){let e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)}diff(t){if(null==t&&(t=[]),!co(t))throw new Error(`Error trying to diff '${vt(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e,n,s,i=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let e=0;e<this.length;e++)n=t[e],s=this._trackByFn(e,n),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,n,s,e)),Object.is(i.item,n)||this._addIdentityChange(i,n)):(i=this._mismatch(i,n,s,e),r=!0),i=i._next}else e=0,function(t,e){if(Array.isArray(t))for(let n=0;n<t.length;n++)e(t[n]);else{const n=t[ao()]();let s;for(;!(s=n.next()).done;)e(s.value)}}(t,t=>{s=this._trackByFn(e,t),null!==i&&Object.is(i.trackById,s)?(r&&(i=this._verifyReinsertion(i,t,s,e)),Object.is(i.item,t)||this._addIdentityChange(i,t)):(i=this._mismatch(i,t,s,e),r=!0),i=i._next,e++}),this.length=e;return this._truncate(i),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t,e;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,e,n,s){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(n,s))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,s)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,s)):t=this._addAfter(new Ca(e,n),i,s),t}_verifyReinsertion(t,e,n,s){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,s):t.currentIndex!=s&&(t.currentIndex=s,this._addToMoves(t,s)),t}_truncate(t){for(;null!==t;){const e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const s=t._prevRemoved,i=t._nextRemoved;return null===s?this._removalsHead=i:s._nextRemoved=i,null===i?this._removalsTail=s:i._prevRemoved=s,this._insertAfter(t,e,n),this._addToMoves(t,n),t}_moveAfter(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t}_addAfter(t,e,n){return this._insertAfter(t,e,n),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,e,n){const s=null===e?this._itHead:e._next;return t._next=s,t._prev=e,null===s?this._itTail=t:s._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new Sa),this._linkedRecords.put(t),t.currentIndex=n,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t}_addToMoves(t,e){return t.previousIndex===e||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Sa),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,e){return t.item=e,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class Ca{constructor(t,e){this.item=t,this.trackById=e,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 Ea{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,e){let n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&Object.is(n.trackById,t))return n;return null}remove(t){const e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head}}class Sa{constructor(){this.map=new Map}put(t){const e=t.trackById;let n=this.map.get(e);n||(n=new Ea,this.map.set(e,n)),n.add(t)}get(t,e){const n=this.map.get(t);return n?n.get(t,e):null}remove(t){const e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function xa(t,e,n){const s=t.previousIndex;if(null===s)return s;let i=0;return n&&s<n.length&&(i=n[s]),s+e+i}class ka{constructor(){}supports(t){return t instanceof Map||ho(t)}create(){return new Ta}}class Ta{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let e;for(e=this._mapHead;null!==e;e=e._next)t(e)}forEachPreviousItem(t){let e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)}forEachChangedItem(t){let e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)}forEachAddedItem(t){let e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)}forEachRemovedItem(t){let e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)}diff(t){if(t){if(!(t instanceof Map||ho(t)))throw new Error(`Error trying to diff '${vt(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let e=this._mapHead;if(this._appendAfter=null,this._forEach(t,(t,n)=>{if(e&&e.key===n)this._maybeAddToChanges(e,t),this._appendAfter=e,e=e._next;else{const s=this._getOrCreateRecordForKey(n,t);e=this._insertBeforeOrAppend(e,s)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(let t=e;null!==t;t=t._nextRemoved)t===this._mapHead&&(this._mapHead=null),this._records.delete(t.key),t._nextRemoved=t._next,t.previousValue=t.currentValue,t.currentValue=null,t._prev=null,t._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,e){if(t){const n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null}_getOrCreateRecordForKey(t,e){if(this._records.has(t)){const n=this._records.get(t);this._maybeAddToChanges(n,e);const s=n._prev,i=n._next;return s&&(s._next=i),i&&(i._prev=s),n._next=null,n._prev=null,n}const n=new Aa(t);return this._records.set(t,n),n.currentValue=e,this._addToAdditions(n),n}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,e){Object.is(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(n=>e(t[n],n))}}class Aa{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}let Ia=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(null!=n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(null!=e)return e;throw new Error(`Cannot find a differ supporting object '${t}' of type '${n=t,n.name||typeof n}'`);var n}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new ba])}),t})(),Oa=(()=>{class t{constructor(t){this.factories=t}static create(e,n){if(n){const t=n.factories.slice();e=e.concat(t)}return new t(e)}static extend(e){return{provide:t,useFactory:n=>{if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new ot,new it]]}}find(t){const e=this.factories.find(e=>e.supports(t));if(e)return e;throw new Error(`Cannot find a differ supporting object '${t}'`)}}return t.\u0275prov=ht({token:t,providedIn:"root",factory:()=>new t([new ka])}),t})();const Pa=[new ka],Ra=new Ia([new ba]),Da=new Oa(Pa);let Na=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Va(t,ha),t})();const Va=function(t,e){return jr(t,e,rn(),en())};let Ma=(()=>{class t{}return t.__NG_ELEMENT_ID__=()=>Fa(t,ha),t})();const Fa=function(t,e){return Br(t,e,rn(),en())},La={};class ja extends ca{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const e=we(t);return new za(e,this.ngModule)}}function Ba(t){const e=[];for(let n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}const Ha=new Lt("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>qn});class za extends aa{constructor(t,e){super(),this.componentDef=t,this.ngModule=e,this.componentType=t.type,this.selector=t.selectors.map(hi).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!e}get inputs(){return Ba(this.componentDef.inputs)}get outputs(){return Ba(this.componentDef.outputs)}create(t,e,n,s){const i=(s=s||this.ngModule)?function(t,e){return{get:(n,s,i)=>{const r=t.get(n,La,i);return r!==La||s===La?r:e.get(n,s,i)}}}(t,s.injector):t,r=i.get(da,He),o=i.get(_a,null),a=r.createRenderer(null,this.componentDef),l=this.componentDef.selectors[0][0]||"div",c=n?function(t,e,n){if(Be(t))return t.selectRootElement(e,n===ce.ShadowDom);let s="string"==typeof e?t.querySelector(e):e;return s.textContent="",s}(a,n,this.componentDef.encapsulation):xi(l,r.createRenderer(null,this.componentDef),function(t){const e=t.toLowerCase();return"svg"===e?"http://www.w3.org/2000/svg":"math"===e?"http://www.w3.org/1998/MathML/":null}(l)),h=this.componentDef.onPush?576:528,u={components:[],scheduler:qn,clean:ar,playerHandler:null,flags:0},d=Mi(0,-1,null,1,0,null,null,null,null,null),p=ki(null,d,u,h,null,null,r,a,o,i);let f,m;gn(p,null);try{const t=function(t,e,n,s,i,r){const o=n[1];n[20]=t;const a=Ti(o,null,0,3,null,null),l=a.mergedAttrs=e.hostAttrs;null!==l&&(ro(a,l,!0),null!==t&&(Dn(i,t,l),null!==a.classes&&Rr(i,t,a.classes),null!==a.styles&&Pr(i,t,a.styles)));const c=s.createRenderer(t,e),h=ki(n,Vi(e),null,e.onPush?64:16,n[20],a,s,c,void 0);return o.firstCreatePass&&(ts(Gn(a,n),o,e.type),Ui(o,a),Zi(a,n.length,1)),nr(n,h),n[20]=h}(c,this.componentDef,p,r,a);if(c)if(n)Dn(a,c,["ng-version",ya.full]);else{const{attrs:t,classes:e}=function(t){const e=[],n=[];let s=1,i=2;for(;s<t.length;){let r=t[s];if("string"==typeof r)2===i?""!==r&&e.push(r,t[++s]):8===i&&n.push(r);else{if(!ri(i))break;i=r}s++}return{attrs:e,classes:n}}(this.componentDef.selectors[0]);t&&Dn(a,c,t),e&&e.length>0&&Rr(a,c,e.join(" "))}if(m=We(d,0),void 0!==e){const t=m.projection=[];for(let n=0;n<this.ngContentSelectors.length;n++){const s=e[n];t.push(null!=s?Array.from(s):null)}}f=function(t,e,n,s,i){const r=n[1],o=function(t,e,n){const s=rn();t.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Wi(t,s,1),Ki(t,e,n));const i=rs(e,t,e.length-1,s);Gs(i,e);const r=qe(s,e);return r&&Gs(r,e),i}(r,n,e);s.components.push(o),t[8]=o,i&&i.forEach(t=>t(o,e)),e.contentQueries&&e.contentQueries(1,o,n.length-1);const a=rn();if(r.firstCreatePass&&(null!==e.hostBindings||null!==e.hostAttrs)){Sn(a.index-Se);const t=n[1];zi(t,e),$i(t,n,e.hostVars),qi(e,o)}return o}(t,this.componentDef,p,u,[Qo]),Ai(d,p,null)}finally{Cn()}const _=new $a(this.componentType,f,Lr(ha,m,p),p,m);return d.node.child=m,_}}class $a extends class{}{constructor(t,e,n,s,i){super(),this.location=n,this._rootLView=s,this._tNode=i,this.destroyCbs=[],this.instance=e,this.hostView=this.changeDetectorRef=new Nr(s),function(t,e,n,s){let i=t.node;null==i&&(t.node=i=Li(0,null,2,-1,null,null)),s[6]=i}(s[1],0,0,s),this.componentType=t}get injector(){return new ls(this._tNode,this._rootLView)}destroy(){this.destroyCbs&&(this.destroyCbs.forEach(t=>t()),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}onDestroy(t){this.destroyCbs&&this.destroyCbs.push(t)}}const qa=void 0;var Wa=["en",[["a","p"],["AM","PM"],qa],[["AM","PM"],qa,qa],[["S","M","T","W","T","F","S"],["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],["Su","Mo","Tu","We","Th","Fr","Sa"]],qa,[["J","F","M","A","M","J","J","A","S","O","N","D"],["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],["January","February","March","April","May","June","July","August","September","October","November","December"]],qa,[["B","A"],["BC","AD"],["Before Christ","Anno Domini"]],0,[6,0],["M/d/yy","MMM d, y","MMMM d, y","EEEE, MMMM d, y"],["h:mm a","h:mm:ss a","h:mm:ss a z","h:mm:ss a zzzz"],["{1}, {0}",qa,"{1} 'at' {0}",qa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(t){let e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}];let Ua={};function Qa(t){return t in Ua||(Ua[t]=Ot.ng&&Ot.ng.common&&Ot.ng.common.locales&&Ot.ng.common.locales[t]),Ua[t]}var Za=function(t){return t[t.LocaleId=0]="LocaleId",t[t.DayPeriodsFormat=1]="DayPeriodsFormat",t[t.DayPeriodsStandalone=2]="DayPeriodsStandalone",t[t.DaysFormat=3]="DaysFormat",t[t.DaysStandalone=4]="DaysStandalone",t[t.MonthsFormat=5]="MonthsFormat",t[t.MonthsStandalone=6]="MonthsStandalone",t[t.Eras=7]="Eras",t[t.FirstDayOfWeek=8]="FirstDayOfWeek",t[t.WeekendRange=9]="WeekendRange",t[t.DateFormat=10]="DateFormat",t[t.TimeFormat=11]="TimeFormat",t[t.DateTimeFormat=12]="DateTimeFormat",t[t.NumberSymbols=13]="NumberSymbols",t[t.NumberFormats=14]="NumberFormats",t[t.CurrencyCode=15]="CurrencyCode",t[t.CurrencySymbol=16]="CurrencySymbol",t[t.CurrencyName=17]="CurrencyName",t[t.Currencies=18]="Currencies",t[t.Directionality=19]="Directionality",t[t.PluralCase=20]="PluralCase",t[t.ExtraData=21]="ExtraData",t}({});const Ka="en-US";let Ga=Ka;function Ya(t){var e,n;n="Expected localeId to be defined",null==(e=t)&&function(t,e,n,s){throw new Error("ASSERTION ERROR: "+t+` [Expected=> null != ${e} <=Actual]`)}(n,e),"string"==typeof t&&(Ga=t.toLowerCase().replace(/_/g,"-"))}const Xa=new Map;class Ja extends te{constructor(t,e){super(),this._parent=e,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new ja(this);const n=Ee(t),s=t[Vt]||null;s&&Ya(s),this._bootstrapComponents=Un(n.bootstrap),this._r3Injector=Gr(t,e,[{provide:te,useValue:this},{provide:ca,useValue:this.componentFactoryResolver}],vt(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,e=io.THROW_IF_NOT_FOUND,n=at.Default){return t===io||t===te||t===jt?this:this._r3Injector.get(t,e,n)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(t=>t()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class tl extends class{}{constructor(t){super(),this.moduleType=t,null!==Ee(t)&&function t(e){if(null!==e.\u0275mod.id){const t=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error(`Duplicate module registered for ${t} - ${vt(e)} vs ${vt(e.name)}`)})(t,Xa.get(t),e),Xa.set(t,e)}let n=e.\u0275mod.imports;n instanceof Function&&(n=n()),n&&n.forEach(e=>t(e))}(t)}create(t){return new Ja(this.moduleType,t)}}function el(t,e,n){const s=en(),i=function(t,e){return t[e+Se]}(s,t);return function(t,e){return lo.isWrapped(e)&&(e=lo.unwrap(e),t[Je.lFrame.bindingIndex]=ui),e}(s,function(t,e){return t[1].data[e+Se].pure}(s,t)?function(t,e,n,s,i,r){const o=e+n;return uo(t,o,i)?function(t,e,n){return t[e]=n}(t,o+1,r?s.call(r,i):s(i)):function(t,e){const n=t[e];return n===ui?void 0:n}(t,o+1)}(s,function(){const t=Je.lFrame;let e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}(),e,i.transform,n,i):i.transform(n))}const nl=class extends E{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,e,n){let s,i=t=>null,r=()=>null;t&&"object"==typeof t?(s=this.__isAsync?e=>{setTimeout(()=>t.next(e))}:e=>{t.next(e)},t.error&&(i=this.__isAsync?e=>{setTimeout(()=>t.error(e))}:e=>{t.error(e)}),t.complete&&(r=this.__isAsync?()=>{setTimeout(()=>t.complete())}:()=>{t.complete()})):(s=this.__isAsync?e=>{setTimeout(()=>t(e))}:e=>{t(e)},e&&(i=this.__isAsync?t=>{setTimeout(()=>e(t))}:t=>{e(t)}),n&&(r=this.__isAsync?()=>{setTimeout(()=>n())}:()=>{n()}));const o=super.subscribe(s,i,r);return t instanceof u&&t.add(o),o}};function sl(){return this._results[ao()]()}class il{constructor(){this.dirty=!0,this._results=[],this.changes=new nl,this.length=0;const t=ao(),e=il.prototype;e[t]||(e[t]=sl)}map(t){return this._results.map(t)}filter(t){return this._results.filter(t)}find(t){return this._results.find(t)}reduce(t,e){return this._results.reduce(t,e)}forEach(t){this._results.forEach(t)}some(t){return this._results.some(t)}toArray(){return this._results.slice()}toString(){return this._results.toString()}reset(t){this._results=function t(e,n){void 0===n&&(n=e);for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?(n===e&&(n=e.slice(0,s)),t(i,n)):n!==e&&n.push(i)}return n}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]}notifyOnChanges(){this.changes.emit(this)}setDirty(){this.dirty=!0}destroy(){this.changes.complete(),this.changes.unsubscribe()}}class rl{constructor(t){this.queryList=t,this.matches=null}clone(){return new rl(this.queryList)}setDirty(){this.queryList.setDirty()}}class ol{constructor(t=[]){this.queries=t}createEmbeddedView(t){const e=t.queries;if(null!==e){const n=null!==t.contentQueries?t.contentQueries[0]:e.length,s=[];for(let t=0;t<n;t++){const n=e.getByIndex(t);s.push(this.queries[n.indexInDeclarationView].clone())}return new ol(s)}return null}insertView(t){this.dirtyQueriesWithMatches(t)}detachView(t){this.dirtyQueriesWithMatches(t)}dirtyQueriesWithMatches(t){for(let e=0;e<this.queries.length;e++)null!==Cl(t,e).matches&&this.queries[e].setDirty()}}class al{constructor(t,e,n,s=null){this.predicate=t,this.descendants=e,this.isStatic=n,this.read=s}}class ll{constructor(t=[]){this.queries=t}elementStart(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].elementStart(t,e)}elementEnd(t){for(let e=0;e<this.queries.length;e++)this.queries[e].elementEnd(t)}embeddedTView(t){let e=null;for(let n=0;n<this.length;n++){const s=null!==e?e.length:0,i=this.getByIndex(n).embeddedTView(t,s);i&&(i.indexInDeclarationView=n,null!==e?e.push(i):e=[i])}return null!==e?new ll(e):null}template(t,e){for(let n=0;n<this.queries.length;n++)this.queries[n].template(t,e)}getByIndex(t){return this.queries[t]}get length(){return this.queries.length}track(t){this.queries.push(t)}}class cl{constructor(t,e=-1){this.metadata=t,this.matches=null,this.indexInDeclarationView=-1,this.crossesNgTemplate=!1,this._appliesToNextNode=!0,this._declarationNodeIndex=e}elementStart(t,e){this.isApplyingToNode(e)&&this.matchTNode(t,e)}elementEnd(t){this._declarationNodeIndex===t.index&&(this._appliesToNextNode=!1)}template(t,e){this.elementStart(t,e)}embeddedTView(t,e){return this.isApplyingToNode(t)?(this.crossesNgTemplate=!0,this.addMatch(-t.index,e),new cl(this.metadata)):null}isApplyingToNode(t){if(this._appliesToNextNode&&!1===this.metadata.descendants){const e=this._declarationNodeIndex;let n=t.parent;for(;null!==n&&4===n.type&&n.index!==e;)n=n.parent;return e===(null!==n?n.index:-1)}return this._appliesToNextNode}matchTNode(t,e){const n=this.metadata.predicate;if(Array.isArray(n))for(let s=0;s<n.length;s++){const i=n[s];this.matchTNodeWithReadOption(t,e,hl(e,i)),this.matchTNodeWithReadOption(t,e,is(e,t,i,!1,!1))}else n===Na?0===e.type&&this.matchTNodeWithReadOption(t,e,-1):this.matchTNodeWithReadOption(t,e,is(e,t,n,!1,!1))}matchTNodeWithReadOption(t,e,n){if(null!==n){const s=this.metadata.read;if(null!==s)if(s===ha||s===Ma||s===Na&&0===e.type)this.addMatch(e.index,-2);else{const n=is(e,t,s,!1,!1);null!==n&&this.addMatch(e.index,n)}else this.addMatch(e.index,n)}}addMatch(t,e){null===this.matches?this.matches=[t,e]:this.matches.push(t,e)}}function hl(t,e){const n=t.localNames;if(null!==n)for(let s=0;s<n.length;s+=2)if(n[s]===e)return n[s+1];return null}function ul(t,e,n,s){return-1===n?function(t,e){return 3===t.type||4===t.type?Lr(ha,t,e):0===t.type?jr(Na,ha,t,e):null}(e,t):-2===n?function(t,e,n){return n===ha?Lr(ha,e,t):n===Na?jr(Na,ha,e,t):n===Ma?Br(Ma,ha,e,t):void 0}(t,e,s):rs(t,t[1],n,e)}function dl(t,e,n,s){const i=e[19].queries[s];if(null===i.matches){const s=t.data,r=n.matches,o=[];for(let t=0;t<r.length;t+=2){const i=r[t];o.push(i<0?null:ul(e,s[i],r[t+1],n.metadata.read))}i.matches=o}return i.matches}function pl(t){const e=en(),n=nn(),s=fn();mn(s+1);const i=Cl(n,s);if(t.dirty&&Ze(e)===i.metadata.isStatic){if(null===i.matches)t.reset([]);else{const r=i.crossesNgTemplate?function t(e,n,s,i){const r=e.queries.getByIndex(s),o=r.matches;if(null!==o){const a=dl(e,n,r,s);for(let e=0;e<o.length;e+=2){const s=o[e];if(s>0)i.push(a[e/2]);else{const r=o[e+1],a=n[-s];for(let e=xe;e<a.length;e++){const n=a[e];n[17]===n[3]&&t(n[1],n,r,i)}if(null!==a[9]){const e=a[9];for(let n=0;n<e.length;n++){const s=e[n];t(s[1],s,r,i)}}}}}return i}(n,e,s,[]):dl(n,e,i,s);t.reset(r),t.notifyOnChanges()}return!0}return!1}function fl(t,e,n){ml(nn(),en(),t,e,n,!1)}function ml(t,e,n,s,i,r){t.firstCreatePass&&(wl(t,new al(n,s,r,i),-1),r&&(t.staticViewQueries=!0)),vl(t,e)}function _l(t,e,n,s){yl(nn(),en(),e,n,s,!1,rn(),t)}function gl(t,e,n,s){yl(nn(),en(),e,n,s,!0,rn(),t)}function yl(t,e,n,s,i,r,o,a){t.firstCreatePass&&(wl(t,new al(n,s,r,i),o.index),function(t,e){const n=t.contentQueries||(t.contentQueries=[]);e!==(t.contentQueries.length?n[n.length-1]:-1)&&n.push(t.queries.length-1,e)}(t,a),r&&(t.staticContentQueries=!0)),vl(t,e)}function bl(){return t=en(),e=fn(),t[19].queries[e].queryList;var t,e}function vl(t,e){const n=new il;Fi(t,e,n,n.destroy),null===e[19]&&(e[19]=new ol),e[19].queries.push(new rl(n))}function wl(t,e,n){null===t.queries&&(t.queries=new ll),t.queries.track(new cl(e,n))}function Cl(t,e){return t.queries.getByIndex(e)}const El=new Lt("Application Initializer");let Sl=(()=>{class t{constructor(t){this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((t,e)=>{this.resolve=t,this.reject=e})}runInitializers(){if(this.initialized)return;const t=[],e=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let n=0;n<this.appInits.length;n++){const e=this.appInits[n]();So(e)&&t.push(e)}Promise.all(t).then(()=>{e()}).catch(t=>{this.reject(t)}),0===t.length&&e(),this.initialized=!0}}return t.\u0275fac=function(e){return new(e||t)(Kt(El,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const xl=new Lt("AppId"),kl={provide:xl,useFactory:function(){return`${Tl()}${Tl()}${Tl()}`},deps:[]};function Tl(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const Al=new Lt("Platform Initializer"),Il=new Lt("Platform ID"),Ol=new Lt("appBootstrapListener");let Pl=(()=>{class t{log(t){console.log(t)}warn(t){console.warn(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Rl=new Lt("LocaleId"),Dl=new Lt("DefaultCurrencyCode");class Nl{constructor(t,e){this.ngModuleFactory=t,this.componentFactories=e}}const Vl=function(t){return new tl(t)},Ml=Vl,Fl=function(t){return Promise.resolve(Vl(t))},Ll=function(t){const e=Vl(t),n=Un(Ee(t).declarations).reduce((t,e)=>{const n=we(e);return n&&t.push(new za(n)),t},[]);return new Nl(e,n)},jl=Ll,Bl=function(t){return Promise.resolve(Ll(t))};let Hl=(()=>{class t{constructor(){this.compileModuleSync=Ml,this.compileModuleAsync=Fl,this.compileModuleAndAllComponentsSync=jl,this.compileModuleAndAllComponentsAsync=Bl}clearCache(){}clearCacheFor(t){}getModuleId(t){}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const zl=(()=>Promise.resolve(0))();function $l(t){"undefined"==typeof Zone?zl.then(()=>{t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}class ql{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:e=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new nl(!1),this.onMicrotaskEmpty=new nl(!1),this.onStable=new nl(!1),this.onError=new nl(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const n=this;n._nesting=0,n._outer=n._inner=Zone.current,Zone.wtfZoneSpec&&(n._inner=n._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(n._inner=n._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(n._inner=n._inner.fork(Zone.longStackTraceZoneSpec)),n.shouldCoalesceEventChangeDetection=e,n.lastRequestAnimationFrameId=-1,n.nativeRequestAnimationFrame=function(){let t=Ot.requestAnimationFrame,e=Ot.cancelAnimationFrame;if("undefined"!=typeof Zone&&t&&e){const n=t[Zone.__symbol__("OriginalDelegate")];n&&(t=n);const s=e[Zone.__symbol__("OriginalDelegate")];s&&(e=s)}return{nativeRequestAnimationFrame:t,nativeCancelAnimationFrame:e}}().nativeRequestAnimationFrame,function(t){const e=!!t.shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&(()=>{!function(t){-1===t.lastRequestAnimationFrameId&&(t.lastRequestAnimationFrameId=t.nativeRequestAnimationFrame.call(Ot,()=>{t.fakeTopEventTask||(t.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{t.lastRequestAnimationFrameId=-1,Zl(t),Ql(t)},void 0,()=>{},()=>{})),t.fakeTopEventTask.invoke()}),Zl(t))}(t)});t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:e},onInvokeTask:(n,s,i,r,o,a)=>{try{return Kl(t),n.invokeTask(i,r,o,a)}finally{e&&"eventTask"===r.type&&e(),Gl(t)}},onInvoke:(e,n,s,i,r,o,a)=>{try{return Kl(t),e.invoke(s,i,r,o,a)}finally{Gl(t)}},onHasTask:(e,n,s,i)=>{e.hasTask(s,i),n===s&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,Zl(t),Ql(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:(e,n,s,i)=>(e.handleError(s,i),t.runOutsideAngular(()=>t.onError.emit(i)),!1)})}(n)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!ql.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(ql.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,e,n){return this._inner.run(t,e,n)}runTask(t,e,n,s){const i=this._inner,r=i.scheduleEventTask("NgZoneEvent: "+s,t,Ul,Wl,Wl);try{return i.runTask(r,e,n)}finally{i.cancelTask(r)}}runGuarded(t,e,n){return this._inner.runGuarded(t,e,n)}runOutsideAngular(t){return this._outer.run(t)}}function Wl(){}const Ul={};function Ql(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(()=>t.onStable.emit(null))}finally{t.isStable=!0}}}function Zl(t){t.hasPendingMicrotasks=!!(t._hasPendingMicrotasks||t.shouldCoalesceEventChangeDetection&&-1!==t.lastRequestAnimationFrameId)}function Kl(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Gl(t){t._nesting--,Ql(t)}class Yl{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new nl,this.onMicrotaskEmpty=new nl,this.onStable=new nl,this.onError=new nl}run(t,e,n){return t.apply(e,n)}runGuarded(t,e,n){return t.apply(e,n)}runOutsideAngular(t){return t()}runTask(t,e,n,s){return t.apply(e,n)}}let Xl=(()=>{class t{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:()=>{ql.assertNotInAngularZone(),$l(()=>{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())$l(()=>{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(e=>!e.updateCb||!e.updateCb(t)||(clearTimeout(e.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,e,n){let s=-1;e&&e>0&&(s=setTimeout(()=>{this._callbacks=this._callbacks.filter(t=>t.timeoutId!==s),t(this._didWork,this.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:s,updateCb:n})}whenStable(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(t,e,n){return[]}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Jl=(()=>{class t{constructor(){this._applications=new Map,nc.addToWindow(this)}registerApplication(t,e){this._applications.set(t,e)}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,e=!0){return nc.findTestabilityInTree(this,t,e)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class tc{addToWindow(t){}findTestabilityInTree(t,e,n){return null}}let ec,nc=new tc;const sc=new Lt("AllowMultipleToken");function ic(t,e,n=[]){const s="Platform: "+e,i=new Lt(s);return(e=[])=>{let r=rc();if(!r||r.injector.get(sc,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{const t=n.concat(e).concat({provide:i,useValue:!0},{provide:qr,useValue:"platform"});!function(t){if(ec&&!ec.destroyed&&!ec.injector.get(sc,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");ec=t.get(oc);const e=t.get(Al,null);e&&e.forEach(t=>t())}(io.create({providers:t,name:s}))}return function(t){const e=rc();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function rc(){return ec&&!ec.destroyed?ec:null}let oc=(()=>{class t{constructor(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(t,e){const n=function(t,e){let n;return n="noop"===t?new Yl:("zone.js"===t?void 0:t)||new ql({enableLongStackTrace:ks(),shouldCoalesceEventChangeDetection:e}),n}(e?e.ngZone:void 0,e&&e.ngZoneEventCoalescing||!1),s=[{provide:ql,useValue:n}];return n.run(()=>{const e=io.create({providers:s,parent:this.injector,name:t.moduleType.name}),i=t.create(e),r=i.injector.get(fs,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(()=>cc(this._modules,i)),n.runOutsideAngular(()=>n.onError.subscribe({next:t=>{r.handleError(t)}})),function(t,e,n){try{const s=n();return So(s)?s.catch(n=>{throw e.runOutsideAngular(()=>t.handleError(n)),n}):s}catch(s){throw e.runOutsideAngular(()=>t.handleError(s)),s}}(r,n,()=>{const t=i.injector.get(Sl);return t.runInitializers(),t.donePromise.then(()=>(Ya(i.injector.get(Rl,Ka)||Ka),this._moduleDoBootstrap(i),i))})})}bootstrapModule(t,e=[]){const n=ac({},e);return function(t,e,n){const s=new tl(n);return Promise.resolve(s)}(0,0,t).then(t=>this.bootstrapModuleFactory(t,n))}_moduleDoBootstrap(t){const e=t.injector.get(lc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(t=>e.bootstrap(t));else{if(!t.instance.ngDoBootstrap)throw new Error(`The module ${vt(t.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);t.instance.ngDoBootstrap(e)}this._modules.push(t)}onDestroy(t){this._destroyListeners.push(t)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(t=>t.destroy()),this._destroyListeners.forEach(t=>t()),this._destroyed=!0}get destroyed(){return this._destroyed}}return t.\u0275fac=function(e){return new(e||t)(Kt(io))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function ac(t,e){return Array.isArray(e)?e.reduce(ac,t):Object.assign(Object.assign({},t),e)}let lc=(()=>{class t{constructor(t,e,n,s,i,r){this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=s,this._componentFactoryResolver=i,this._initStatus=r,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=ks(),this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const o=new y(t=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{t.next(this._stable),t.complete()})}),a=new y(t=>{let e;this._zone.runOutsideAngular(()=>{e=this._zone.onStable.subscribe(()=>{ql.assertNotInAngularZone(),$l(()=>{this._stable||this._zone.hasPendingMacrotasks||this._zone.hasPendingMicrotasks||(this._stable=!0,t.next(!0))})})});const n=this._zone.onUnstable.subscribe(()=>{ql.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{t.next(!1)}))});return()=>{e.unsubscribe(),n.unsubscribe()}});this.isStable=W(o,a.pipe(J()))}bootstrap(t,e){if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");let n;n=t instanceof aa?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);const s=n.isBoundToModule?void 0:this._injector.get(te),i=n.create(io.NULL,[],e||n.selector,s);i.onDestroy(()=>{this._unloadComponent(i)});const r=i.injector.get(Xl,null);return r&&i.injector.get(Jl).registerApplication(i.location.nativeElement,r),this._loadComponent(i),ks()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),i}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let t of this._views)t.detectChanges();if(this._enforceNoNewChanges)for(let t of this._views)t.checkNoChanges()}catch(t){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(t))}finally{this._runningTick=!1}}attachView(t){const e=t;this._views.push(e),e.attachToAppRef(this)}detachView(t){const e=t;cc(this._views,e),e.detachFromAppRef()}_loadComponent(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Ol,[]).concat(this._bootstrapListeners).forEach(e=>e(t))}_unloadComponent(t){this.detachView(t.hostView),cc(this.components,t)}ngOnDestroy(){this._views.slice().forEach(t=>t.destroy())}get viewCount(){return this._views.length}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Pl),Kt(io),Kt(fs),Kt(ca),Kt(Sl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();function cc(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const hc=ic(null,"core",[{provide:Il,useValue:"unknown"},{provide:oc,deps:[io]},{provide:Jl,deps:[]},{provide:Pl,deps:[]}]),uc=[{provide:lc,useClass:lc,deps:[ql,Pl,io,fs,ca,Sl]},{provide:Ha,deps:[ql],useFactory:function(t){let e=[];return t.onStable.subscribe(()=>{for(;e.length;)e.pop()()}),function(t){e.push(t)}}},{provide:Sl,useClass:Sl,deps:[[new it,El]]},{provide:Hl,useClass:Hl,deps:[]},kl,{provide:Ia,useFactory:function(){return Ra},deps:[]},{provide:Oa,useFactory:function(){return Da},deps:[]},{provide:Rl,useFactory:function(t){return Ya(t=t||"undefined"!=typeof $localize&&$localize.locale||Ka),t},deps:[[new st(Rl),new it,new ot]]},{provide:Dl,useValue:"USD"}];let dc=(()=>{class t{constructor(t){}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(lc))},providers:uc}),t})();function pc(t){return null!=t&&""+t!="false"}function fc(t){return Array.isArray(t)?t:[t]}function mc(t){return null==t?"":"string"==typeof t?t:t+"px"}function _c(t){return t instanceof ha?t.nativeElement:t}function gc(...t){let e=t[t.length-1];return x(e)?(t.pop(),V(t,e)):q(t)}function yc(t,e,n,i){return s(n)&&(i=n,n=void 0),i?yc(t,e,n).pipe(k(t=>l(t)?i(...t):i(t))):new y(s=>{!function t(e,n,s,i,r){let o;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){const t=e;e.addEventListener(n,s,r),o=()=>t.removeEventListener(n,s,r)}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){const t=e;e.on(n,s),o=()=>t.off(n,s)}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){const t=e;e.addListener(n,s),o=()=>t.removeListener(n,s)}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(let o=0,a=e.length;o<a;o++)t(e[o],n,s,i,r)}i.add(o)}(t,e,(function(t){s.next(arguments.length>1?Array.prototype.slice.call(arguments):t)}),s,n)})}class bc extends u{constructor(t,e){super()}schedule(t,e=0){return this}}class vc extends bc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e,this.pending=!1}schedule(t,e=0){if(this.closed)return this;this.state=t;const n=this.id,s=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(s,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(s,this.id,e),this}requestAsyncId(t,e,n=0){return setInterval(t.flush.bind(t,this),n)}recycleAsyncId(t,e,n=0){if(null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)}execute(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;const n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))}_execute(t,e){let n=!1,s=void 0;try{this.work(t)}catch(i){n=!0,s=!!i&&i||new Error(i)}if(n)return this.unsubscribe(),s}_unsubscribe(){const t=this.id,e=this.scheduler,n=e.actions,s=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==s&&n.splice(s,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null}}let wc=(()=>{class t{constructor(e,n=t.now){this.SchedulerAction=e,this.now=n}schedule(t,e=0,n){return new this.SchedulerAction(this,t).schedule(n,e)}}return t.now=()=>Date.now(),t})();class Cc extends wc{constructor(t,e=wc.now){super(t,()=>Cc.delegate&&Cc.delegate!==this?Cc.delegate.now():e()),this.actions=[],this.active=!1,this.scheduled=void 0}schedule(t,e=0,n){return Cc.delegate&&Cc.delegate!==this?Cc.delegate.schedule(t,e,n):super.schedule(t,e,n)}flush(t){const{actions:e}=this;if(this.active)return void e.push(t);let n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}}const Ec=new Cc(vc);class Sc{constructor(t){this.durationSelector=t}call(t,e){return e.subscribe(new xc(t,this.durationSelector))}}class xc extends L{constructor(t,e){super(t),this.durationSelector=e,this.hasValue=!1}_next(t){if(this.value=t,this.hasValue=!0,!this.throttled){let n;try{const{durationSelector:e}=this;n=e(t)}catch(e){return this.destination.error(e)}const s=j(n,new F(this));!s||s.closed?this.clearThrottle():this.add(this.throttled=s)}}clearThrottle(){const{value:t,hasValue:e,throttled:n}=this;n&&(this.remove(n),this.throttled=void 0,n.unsubscribe()),e&&(this.value=void 0,this.hasValue=!1,this.destination.next(t))}notifyNext(){this.clearThrottle()}notifyComplete(){this.clearThrottle()}}function kc(t){return!l(t)&&t-parseFloat(t)+1>=0}function Tc(t){const{index:e,period:n,subscriber:s}=t;if(s.next(e),!s.closed){if(-1===n)return s.complete();t.index=e+1,this.schedule(t,n)}}function Ac(t,e=Ec){return n=()=>function(t=0,e,n){let s=-1;return kc(e)?s=Number(e)<1?1:Number(e):x(e)&&(n=e),x(n)||(n=Ec),new y(e=>{const i=kc(t)?t:+t-n.now();return n.schedule(Tc,i,{index:0,period:s,subscriber:e})})}(t,e),function(t){return t.lift(new Sc(n))};var n}function Ic(t,e){return function(n){return n.lift(new Oc(t,e))}}class Oc{constructor(t,e){this.predicate=t,this.thisArg=e}call(t,e){return e.subscribe(new Pc(t,this.predicate,this.thisArg))}}class Pc extends f{constructor(t,e,n){super(t),this.predicate=e,this.thisArg=n,this.count=0}_next(t){let e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(n){return void this.destination.error(n)}e&&this.destination.next(t)}}function Rc(t){return e=>e.lift(new Dc(t))}class Dc{constructor(t){this.notifier=t}call(t,e){const n=new Nc(t),s=j(this.notifier,new F(n));return s&&!n.seenValue?(n.add(s),e.subscribe(n)):n}}class Nc extends L{constructor(t){super(t),this.seenValue=!1}notifyNext(){this.seenValue=!0,this.complete()}notifyComplete(){}}function Vc(...t){return $(1)(gc(...t))}function Mc(...t){const e=t[t.length-1];return x(e)?(t.pop(),n=>Vc(t,n,e)):e=>Vc(t,e)}class Fc{constructor(t){this.project=t}call(t,e){return e.subscribe(new Lc(t,this.project))}}class Lc extends L{constructor(t,e){super(t),this.project=e,this.index=0}_next(t){let e;const n=this.index++;try{e=this.project(t,n)}catch(s){return void this.destination.error(s)}this._innerSub(e)}_innerSub(t){const e=this.innerSubscription;e&&e.unsubscribe();const n=new F(this),s=this.destination;s.add(n),this.innerSubscription=j(t,n),this.innerSubscription!==n&&s.add(this.innerSubscription)}_complete(){const{innerSubscription:t}=this;t&&!t.closed||super._complete(),this.unsubscribe()}_unsubscribe(){this.innerSubscription=void 0}notifyComplete(){this.innerSubscription=void 0,this.isStopped&&super._complete()}notifyNext(t){this.destination.next(t)}}class jc extends vc{constructor(t,e){super(t,e),this.scheduler=t,this.work=e}schedule(t,e=0){return e>0?super.schedule(t,e):(this.delay=e,this.state=t,this.scheduler.flush(this),this)}execute(t,e){return e>0||this.closed?super.execute(t,e):this._execute(t,e)}requestAsyncId(t,e,n=0){return null!==n&&n>0||null===n&&this.delay>0?super.requestAsyncId(t,e,n):t.flush(this)}}class Bc extends Cc{}const Hc=new Bc(jc),zc=new y(t=>t.complete());function $c(t){return t?function(t){return new y(e=>t.schedule(()=>e.complete()))}(t):zc}function qc(t,e){return new y(e?n=>e.schedule(Wc,0,{error:t,subscriber:n}):e=>e.error(t))}function Wc({error:t,subscriber:e}){e.error(t)}let Uc=(()=>{class t{constructor(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}observe(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}}do(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}}accept(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)}toObservable(){switch(this.kind){case"N":return gc(this.value);case"E":return qc(this.error);case"C":return $c()}throw new Error("unexpected notification kind value")}static createNext(e){return void 0!==e?new t("N",e):t.undefinedValueNotification}static createError(e){return new t("E",void 0,e)}static createComplete(){return t.completeNotification}}return t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t})();class Qc extends f{constructor(t,e,n=0){super(t),this.scheduler=e,this.delay=n}static dispatch(t){const{notification:e,destination:n}=t;e.observe(n),this.unsubscribe()}scheduleMessage(t){this.destination.add(this.scheduler.schedule(Qc.dispatch,this.delay,new Zc(t,this.destination)))}_next(t){this.scheduleMessage(Uc.createNext(t))}_error(t){this.scheduleMessage(Uc.createError(t)),this.unsubscribe()}_complete(){this.scheduleMessage(Uc.createComplete()),this.unsubscribe()}}class Zc{constructor(t,e){this.notification=t,this.destination=e}}class Kc extends E{constructor(t=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY,n){super(),this.scheduler=n,this._events=[],this._infiniteTimeWindow=!1,this._bufferSize=t<1?1:t,this._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(this._infiniteTimeWindow=!0,this.next=this.nextInfiniteTimeWindow):this.next=this.nextTimeWindow}nextInfiniteTimeWindow(t){const e=this._events;e.push(t),e.length>this._bufferSize&&e.shift(),super.next(t)}nextTimeWindow(t){this._events.push(new Gc(this._getNow(),t)),this._trimBufferThenGetEvents(),super.next(t)}_subscribe(t){const e=this._infiniteTimeWindow,n=e?this._events:this._trimBufferThenGetEvents(),s=this.scheduler,i=n.length;let r;if(this.closed)throw new v;if(this.isStopped||this.hasError?r=u.EMPTY:(this.observers.push(t),r=new w(this,t)),s&&t.add(t=new Qc(t,s)),e)for(let o=0;o<i&&!t.closed;o++)t.next(n[o]);else for(let o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),r}_getNow(){return(this.scheduler||Hc).now()}_trimBufferThenGetEvents(){const t=this._getNow(),e=this._bufferSize,n=this._windowTime,s=this._events,i=s.length;let r=0;for(;r<i&&!(t-s[r].time<n);)r++;return i>e&&(r=Math.max(r,i-e)),r>0&&s.splice(0,r),s}}class Gc{constructor(t,e){this.time=t,this.value=e}}let Yc=null;function Xc(){return Yc}const Jc=new Lt("DocumentToken");let th=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:eh,token:t,providedIn:"platform"}),t})();function eh(){return Kt(nh)}let nh=(()=>{class t extends th{constructor(t){super(),this._doc=t,this._init()}_init(){this.location=Xc().getLocation(),this._history=Xc().getHistory()}getBaseHrefFromDOM(){return Xc().getBaseHref(this._doc)}onPopState(t){Xc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)}onHashChange(t){Xc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)}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,e,n){sh()?this._history.pushState(t,e,n):this.location.hash=n}replaceState(t,e,n){sh()?this._history.replaceState(t,e,n):this.location.hash=n}forward(){this._history.forward()}back(){this._history.back()}getState(){return this._history.state}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:ih,token:t,providedIn:"platform"}),t})();function sh(){return!!window.history.pushState}function ih(){return new nh(Kt(Jc))}function rh(t,e){if(0==t.length)return e;if(0==e.length)return t;let n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function oh(t){const e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function ah(t){return t&&"?"!==t[0]?"?"+t:t}let lh=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:ch,token:t,providedIn:"root"}),t})();function ch(t){const e=Kt(Jc).location;return new uh(Kt(th),e&&e.origin||"")}const hh=new Lt("appBaseHref");let uh=(()=>{class t extends lh{constructor(t,e){if(super(),this._platformLocation=t,null==e&&(e=this._platformLocation.getBaseHrefFromDOM()),null==e)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=e}onPopState(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}getBaseHref(){return this._baseHref}prepareExternalUrl(t){return rh(this._baseHref,t)}path(t=!1){const e=this._platformLocation.pathname+ah(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?`${e}${n}`:e}pushState(t,e,n,s){const i=this.prepareExternalUrl(n+ah(s));this._platformLocation.pushState(t,e,i)}replaceState(t,e,n,s){const i=this.prepareExternalUrl(n+ah(s));this._platformLocation.replaceState(t,e,i)}forward(){this._platformLocation.forward()}back(){this._platformLocation.back()}}return t.\u0275fac=function(e){return new(e||t)(Kt(th),Kt(hh,8))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),dh=(()=>{class t{constructor(t,e){this._subject=new nl,this._urlChangeListeners=[],this._platformStrategy=t;const n=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=oh(fh(n)),this._platformStrategy.onPopState(t=>{this._subject.emit({url:this.path(!0),pop:!0,state:t.state,type:t.type})})}path(t=!1){return this.normalize(this._platformStrategy.path(t))}getState(){return this._platformLocation.getState()}isCurrentPathEqualTo(t,e=""){return this.path()==this.normalize(t+ah(e))}normalize(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,fh(e)))}prepareExternalUrl(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)}go(t,e="",n=null){this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),n)}replaceState(t,e="",n=null){this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+ah(e)),n)}forward(){this._platformStrategy.forward()}back(){this._platformStrategy.back()}onUrlChange(t){this._urlChangeListeners.push(t),this._urlChangeSubscription||(this._urlChangeSubscription=this.subscribe(t=>{this._notifyUrlChangeListeners(t.url,t.state)}))}_notifyUrlChangeListeners(t="",e){this._urlChangeListeners.forEach(n=>n(t,e))}subscribe(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})}}return t.\u0275fac=function(e){return new(e||t)(Kt(lh),Kt(th))},t.normalizeQueryParams=ah,t.joinWithSlash=rh,t.stripTrailingSlash=oh,t.\u0275prov=ht({factory:ph,token:t,providedIn:"root"}),t})();function ph(){return new dh(Kt(lh),Kt(th))}function fh(t){return t.replace(/\/index.html$/,"")}var mh=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({});class _h{}let gh=(()=>{class t extends _h{constructor(t){super(),this.locale=t}getPluralCategory(t,e){switch(function(t){return function(t){const e=function(t){return t.toLowerCase().replace(/_/g,"-")}(t);let n=Qa(e);if(n)return n;const s=e.split("-")[0];if(n=Qa(s),n)return n;if("en"===s)return Wa;throw new Error(`Missing locale data for the locale "${t}".`)}(t)[Za.PluralCase]}(e||this.locale)(t)){case mh.Zero:return"zero";case mh.One:return"one";case mh.Two:return"two";case mh.Few:return"few";case mh.Many:return"many";default:return"other"}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Rl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yh=(()=>{class t{constructor(t,e,n,s){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,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&&(co(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(t=>this._toggleClass(t.key,t.currentValue)),t.forEachChangedItem(t=>this._toggleClass(t.key,t.currentValue)),t.forEachRemovedItem(t=>{t.previousValue&&this._toggleClass(t.key,!1)})}_applyIterableChanges(t){t.forEachAddedItem(t=>{if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+vt(t.item));this._toggleClass(t.item,!0)}),t.forEachRemovedItem(t=>this._toggleClass(t.item,!1))}_applyClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!0)):Object.keys(t).forEach(e=>this._toggleClass(e,!!t[e])))}_removeClasses(t){t&&(Array.isArray(t)||t instanceof Set?t.forEach(t=>this._toggleClass(t,!1)):Object.keys(t).forEach(t=>this._toggleClass(t,!1)))}_toggleClass(t,e){(t=t.trim())&&t.split(/\s+/g).forEach(t=>{e?this._renderer.addClass(this._ngEl.nativeElement,t):this._renderer.removeClass(this._ngEl.nativeElement,t)})}}return t.\u0275fac=function(e){return new(e||t)(mo(Ia),mo(Oa),mo(ha),mo(fa))},t.\u0275dir=be({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t})(),bh=(()=>{class t{constructor(t,e){this._viewContainer=t,this._context=new vh,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}set ngIf(t){this._context.$implicit=this._context.ngIf=t,this._updateView()}set ngIfThen(t){wh("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()}set ngIfElse(t){wh("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,e){return!0}}return t.\u0275fac=function(e){return new(e||t)(mo(Ma),mo(Na))},t.\u0275dir=be({type:t,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),t})();class vh{constructor(){this.$implicit=null,this.ngIf=null}}function wh(t,e){if(e&&!e.createEmbeddedView)throw new Error(`${t} must be a TemplateRef, but received '${vt(e)}'.`)}class Ch{constructor(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}create(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)}destroy(){this._created=!1,this._viewContainerRef.clear()}enforceState(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()}}let Eh=(()=>{class t{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 e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e}_updateDefaultCases(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(let e=0;e<this._defaultViews.length;e++)this._defaultViews[e].enforceState(t)}}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","ngSwitch",""]],inputs:{ngSwitch:"ngSwitch"}}),t})(),Sh=(()=>{class t{constructor(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new Ch(t,e)}ngDoCheck(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))}}return t.\u0275fac=function(e){return new(e||t)(mo(Ma),mo(Na),mo(Eh,1))},t.\u0275dir=be({type:t,selectors:[["","ngSwitchCase",""]],inputs:{ngSwitchCase:"ngSwitchCase"}}),t})();class xh{createSubscription(t,e){return t.subscribe({next:e,error:t=>{throw t}})}dispose(t){t.unsubscribe()}onDestroy(t){t.unsubscribe()}}class kh{createSubscription(t,e){return t.then(e,t=>{throw t})}dispose(t){}onDestroy(t){}}const Th=new kh,Ah=new xh;let Ih,Oh=(()=>{class t{constructor(t){this._ref=t,this._latestValue=null,this._subscription=null,this._obj=null,this._strategy=null}ngOnDestroy(){this._subscription&&this._dispose()}transform(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue:(t&&this._subscribe(t),this._latestValue)}_subscribe(t){this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,e=>this._updateLatestValue(t,e))}_selectStrategy(e){if(So(e))return Th;if(xo(e))return Ah;throw Error(`InvalidPipeArgument: '${e}' for pipe '${vt(t)}'`)}_dispose(){this._strategy.dispose(this._subscription),this._latestValue=null,this._subscription=null,this._obj=null}_updateLatestValue(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())}}return t.\u0275fac=function(e){return new(e||t)(function(t=at.Default){const e=Hr(!0);if(null!=e||t&at.Optional)return e;throw new Error("No provider for ChangeDetectorRef!")}())},t.\u0275pipe=ve({name:"async",type:t,pure:!1}),t})(),Ph=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[{provide:_h,useClass:gh}]}),t})();function Rh(t){return"browser"===t}function Dh(t){return"server"===t}try{Ih="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(Ov){Ih=!1}let Nh,Vh=(()=>{class t{constructor(t){this._platformId=t,this.isBrowser=this._platformId?Rh(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&&!Ih)&&"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 t.\u0275fac=function(e){return new(e||t)(Kt(Il))},t.\u0275prov=ht({factory:function(){return new t(Kt(Il))},token:t,providedIn:"root"}),t})(),Mh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const Fh=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function Lh(){if(Nh)return Nh;if("object"!=typeof document||!document)return Nh=new Set(Fh),Nh;let t=document.createElement("input");return Nh=new Set(Fh.filter(e=>(t.setAttribute("type",e),t.type===e))),Nh}let jh,Bh;function Hh(t){return function(){if(null==jh&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:()=>jh=!0}))}finally{jh=jh||!1}return jh}()?t:!!t.capture}const zh=new Lt("cdk-dir-doc",{providedIn:"root",factory:function(){return Gt(Jc)}});let $h=(()=>{class t{constructor(t){if(this.value="ltr",this.change=new nl,t){const e=t.documentElement?t.documentElement.dir:null,n=(t.body?t.body.dir:null)||e;this.value="ltr"===n||"rtl"===n?n:"ltr"}}ngOnDestroy(){this.change.complete()}}return t.\u0275fac=function(e){return new(e||t)(Kt(zh,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(zh,8))},token:t,providedIn:"root"}),t})(),qh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Wh=(()=>{class t{constructor(t,e,n){this._ngZone=t,this._platform=e,this._scrolled=new E,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map,this._document=n}register(t){this.scrollContainers.has(t)||this.scrollContainers.set(t,t.elementScrolled().subscribe(()=>this._scrolled.next(t)))}deregister(t){const e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))}scrolled(t=20){return this._platform.isBrowser?new y(e=>{this._globalSubscription||this._addGlobalListener();const n=t>0?this._scrolled.pipe(Ac(t)).subscribe(e):this._scrolled.subscribe(e);return this._scrolledCount++,()=>{n.unsubscribe(),this._scrolledCount--,this._scrolledCount||this._removeGlobalListener()}}):gc()}ngOnDestroy(){this._removeGlobalListener(),this.scrollContainers.forEach((t,e)=>this.deregister(e)),this._scrolled.complete()}ancestorScrolled(t,e){const n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Ic(t=>!t||n.indexOf(t)>-1))}getAncestorScrollContainers(t){const e=[];return this.scrollContainers.forEach((n,s)=>{this._scrollableContainsElement(s,t)&&e.push(s)}),e}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_scrollableContainsElement(t,e){let n=e.nativeElement,s=t.getElementRef().nativeElement;do{if(n==s)return!0}while(n=n.parentElement);return!1}_addGlobalListener(){this._globalSubscription=this._ngZone.runOutsideAngular(()=>yc(this._getWindow().document,"scroll").subscribe(()=>this._scrolled.next()))}_removeGlobalListener(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Vh),Kt(Jc,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Vh),Kt(Jc,8))},token:t,providedIn:"root"}),t})(),Uh=(()=>{class t{constructor(t,e,n){this._platform=t,this._change=new E,this._changeListener=t=>{this._change.next(t)},this._document=n,e.runOutsideAngular(()=>{if(t.isBrowser){const t=this._getWindow();t.addEventListener("resize",this._changeListener),t.addEventListener("orientationchange",this._changeListener)}this.change().subscribe(()=>this._updateViewportSize())})}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:e,height:n}=this.getViewportSize();return{top:t.top,left:t.left,bottom:t.top+n,right:t.left+e,height:n,width:e}}getViewportScrollPosition(){if(!this._platform.isBrowser)return{top:0,left:0};const t=this._getDocument(),e=this._getWindow(),n=t.documentElement,s=n.getBoundingClientRect();return{top:-s.top||t.body.scrollTop||e.scrollY||n.scrollTop||0,left:-s.left||t.body.scrollLeft||e.scrollX||n.scrollLeft||0}}change(t=20){return t>0?this._change.pipe(Ac(t)):this._change}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_updateViewportSize(){const t=this._getWindow();this._viewportSize=this._platform.isBrowser?{width:t.innerWidth,height:t.innerHeight}:{width:0,height:0}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(ql),Kt(Jc,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(ql),Kt(Jc,8))},token:t,providedIn:"root"}),t})(),Qh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Zh=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[qh,Mh,Qh],qh,Qh]}),t})();class Kh{attach(t){return this._attachedHost=t,t.attach(this)}detach(){let t=this._attachedHost;null!=t&&(this._attachedHost=null,t.detach())}get isAttached(){return null!=this._attachedHost}setAttachedHost(t){this._attachedHost=t}}class Gh extends Kh{constructor(t,e,n,s){super(),this.component=t,this.viewContainerRef=e,this.injector=n,this.componentFactoryResolver=s}}class Yh extends Kh{constructor(t,e,n){super(),this.templateRef=t,this.viewContainerRef=e,this.context=n}get origin(){return this.templateRef.elementRef}attach(t,e=this.context){return this.context=e,super.attach(t)}detach(){return this.context=void 0,super.detach()}}class Xh extends Kh{constructor(t){super(),this.element=t instanceof ha?t.nativeElement:t}}class Jh extends class{constructor(){this._isDisposed=!1,this.attachDomPortal=null}hasAttached(){return!!this._attachedPortal}attach(t){return t instanceof Gh?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof Yh?(this._attachedPortal=t,this.attachTemplatePortal(t)):this.attachDomPortal&&t instanceof Xh?(this._attachedPortal=t,this.attachDomPortal(t)):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(t){this._disposeFn=t}_invokeDisposeFn(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)}}{constructor(t,e,n,s,i){super(),this.outletElement=t,this._componentFactoryResolver=e,this._appRef=n,this._defaultInjector=s,this.attachDomPortal=t=>{const e=t.element,n=this._document.createComment("dom-portal");e.parentNode.insertBefore(n,e),this.outletElement.appendChild(e),super.setDisposeFn(()=>{n.parentNode&&n.parentNode.replaceChild(e,n)})},this._document=i}attachComponentPortal(t){const e=(t.componentFactoryResolver||this._componentFactoryResolver).resolveComponentFactory(t.component);let n;return t.viewContainerRef?(n=t.viewContainerRef.createComponent(e,t.viewContainerRef.length,t.injector||t.viewContainerRef.injector),this.setDisposeFn(()=>n.destroy())):(n=e.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(()=>{this._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n}attachTemplatePortal(t){let e=t.viewContainerRef,n=e.createEmbeddedView(t.templateRef,t.context);return n.rootNodes.forEach(t=>this.outletElement.appendChild(t)),n.detectChanges(),this.setDisposeFn(()=>{let t=e.indexOf(n);-1!==t&&e.remove(t)}),n}dispose(){super.dispose(),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)}_getComponentRootNode(t){return t.hostView.rootNodes[0]}}let tu=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();const eu=(()=>{function t(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}return t.prototype=Object.create(Error.prototype),t})();function nu(t){return e=>0===t?$c():e.lift(new su(t))}class su{constructor(t){if(this.total=t,this.total<0)throw new eu}call(t,e){return e.subscribe(new iu(t,this.total))}}class iu extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){const e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))}}class ru{constructor(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}attach(){}enable(){if(this._canBeEnabled()){const t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=mc(-this._previousScrollPosition.left),t.style.top=mc(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}}disable(){if(this._isEnabled){const t=this._document.documentElement,e=t.style,n=this._document.body.style,s=e.scrollBehavior||"",i=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=s,n.scrollBehavior=i}}_canBeEnabled(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;const t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width}}class ou{constructor(t,e,n,s){this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=s,this._scrollSubscription=null,this._detach=()=>{this.disable(),this._overlayRef.hasAttached()&&this._ngZone.run(()=>this._overlayRef.detach())}}attach(t){this._overlayRef=t}enable(){if(this._scrollSubscription)return;const t=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=t.subscribe(()=>{const t=this._viewportRuler.getViewportScrollPosition().top;Math.abs(t-this._initialScrollPosition)>this._config.threshold?this._detach():this._overlayRef.updatePosition()})):this._scrollSubscription=t.subscribe(this._detach)}disable(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)}detach(){this.disable(),this._overlayRef=null}}class au{enable(){}disable(){}attach(){}}function lu(t,e){return e.some(e=>t.bottom<e.top||t.top>e.bottom||t.right<e.left||t.left>e.right)}function cu(t,e){return e.some(e=>t.top<e.top||t.bottom>e.bottom||t.left<e.left||t.right>e.right)}class hu{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=s,this._scrollSubscription=null}attach(t){this._overlayRef=t}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:e,height:n}=this._viewportRuler.getViewportSize();lu(t,[{width:e,height:n,bottom:n,right:e,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 uu=(()=>{class t{constructor(t,e,n,s){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=()=>new au,this.close=t=>new ou(this._scrollDispatcher,this._ngZone,this._viewportRuler,t),this.block=()=>new ru(this._viewportRuler,this._document),this.reposition=t=>new hu(this._scrollDispatcher,this._viewportRuler,this._ngZone,t),this._document=s}}return t.\u0275fac=function(e){return new(e||t)(Kt(Wh),Kt(Uh),Kt(ql),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Wh),Kt(Uh),Kt(ql),Kt(Jc))},token:t,providedIn:"root"}),t})();class du{constructor(t){if(this.scrollStrategy=new au,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t){const e=Object.keys(t);for(const n of e)void 0!==t[n]&&(this[n]=t[n])}}}class pu{constructor(t,e,n,s,i){this.offsetX=n,this.offsetY=s,this.panelClass=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=e.overlayX,this.overlayY=e.overlayY}}class fu{constructor(t,e){this.connectionPair=t,this.scrollableViewProperties=e}}let mu=(()=>{class t{constructor(t){this._attachedOverlays=[],this._document=t}ngOnDestroy(){this.detach()}add(t){this.remove(t),this._attachedOverlays.push(t)}remove(t){const e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this.detach()}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc))},token:t,providedIn:"root"}),t})(),_u=(()=>{class t extends mu{constructor(t){super(t),this._keydownListener=t=>{const e=this._attachedOverlays;for(let n=e.length-1;n>-1;n--)if(e[n]._keydownEvents.observers.length>0){e[n]._keydownEvents.next(t);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 t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc))},token:t,providedIn:"root"}),t})(),gu=(()=>{class t extends mu{constructor(t,e){super(t),this._platform=e,this._cursorStyleIsSet=!1,this._clickListener=t=>{const e=t.composedPath?t.composedPath()[0]:t.target,n=this._attachedOverlays.slice();for(let s=n.length-1;s>-1;s--){const i=n[s];if(!(i._outsidePointerEvents.observers.length<1)&&i.hasAttached()){if(i.overlayElement.contains(e))break;i._outsidePointerEvents.next(t)}}}}add(t){super.add(t),this._isAttached||(this._document.body.addEventListener("click",this._clickListener,!0),this._document.body.addEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&!this._cursorStyleIsSet&&(this._cursorOriginalValue=this._document.body.style.cursor,this._document.body.style.cursor="pointer",this._cursorStyleIsSet=!0),this._isAttached=!0)}detach(){this._isAttached&&(this._document.body.removeEventListener("click",this._clickListener,!0),this._document.body.removeEventListener("contextmenu",this._clickListener,!0),this._platform.IOS&&this._cursorStyleIsSet&&(this._document.body.style.cursor=this._cursorOriginalValue,this._cursorStyleIsSet=!1),this._isAttached=!1)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();const yu=!("undefined"==typeof window||!window||!window.__karma__&&!window.jasmine);let bu=(()=>{class t{constructor(t,e){this._platform=e,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=this._platform?this._platform.isBrowser:"undefined"!=typeof window,e="cdk-overlay-container";if(t||yu){const t=this._document.querySelectorAll(`.${e}[platform="server"], .${e}[platform="test"]`);for(let e=0;e<t.length;e++)t[e].parentNode.removeChild(t[e])}const n=this._document.createElement("div");n.classList.add(e),yu?n.setAttribute("platform","test"):t||n.setAttribute("platform","server"),this._document.body.appendChild(n),this._containerElement=n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();class vu{constructor(t,e,n,s,i,r,o,a,l){this._portalOutlet=t,this._host=e,this._pane=n,this._config=s,this._ngZone=i,this._keyboardDispatcher=r,this._document=o,this._location=a,this._outsideClickDispatcher=l,this._backdropElement=null,this._backdropClick=new E,this._attachments=new E,this._detachments=new E,this._locationChanges=u.EMPTY,this._backdropClickHandler=t=>this._backdropClick.next(t),this._keydownEvents=new E,this._outsidePointerEvents=new E,s.scrollStrategy&&(this._scrollStrategy=s.scrollStrategy,this._scrollStrategy.attach(this)),this._positionStrategy=s.positionStrategy}get overlayElement(){return this._pane}get backdropElement(){return this._backdropElement}get hostElement(){return this._host}attach(t){let e=this._portalOutlet.attach(t);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(nu(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._location&&(this._locationChanges=this._location.subscribe(()=>this.dispose())),this._outsideClickDispatcher&&this._outsideClickDispatcher.add(this),e}detach(){if(!this.hasAttached())return;this.detachBackdrop(),this._togglePointerEvents(!1),this._positionStrategy&&this._positionStrategy.detach&&this._positionStrategy.detach(),this._scrollStrategy&&this._scrollStrategy.disable();const t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),this._detachContentWhenStable(),this._locationChanges.unsubscribe(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),t}dispose(){const t=this.hasAttached();this._positionStrategy&&this._positionStrategy.dispose(),this._disposeScrollStrategy(),this.detachBackdrop(),this._locationChanges.unsubscribe(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._outsidePointerEvents.complete(),this._outsideClickDispatcher&&this._outsideClickDispatcher.remove(this),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._previousHostParent=this._pane=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(t){t!==this._positionStrategy&&(this._positionStrategy&&this._positionStrategy.dispose(),this._positionStrategy=t,this.hasAttached()&&(t.attach(this),this.updatePosition()))}updateSize(t){this._config=Object.assign(Object.assign({},this._config),t),this._updateElementSize()}setDirection(t){this._config=Object.assign(Object.assign({},this._config),{direction:t}),this._updateElementDirection()}addPanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!0)}removePanelClass(t){this._pane&&this._toggleClasses(this._pane,t,!1)}getDirection(){const t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"}updateScrollStrategy(t){t!==this._scrollStrategy&&(this._disposeScrollStrategy(),this._scrollStrategy=t,this.hasAttached()&&(t.attach(this),t.enable()))}_updateElementDirection(){this._host.setAttribute("dir",this.getDirection())}_updateElementSize(){if(!this._pane)return;const t=this._pane.style;t.width=mc(this._config.width),t.height=mc(this._config.height),t.minWidth=mc(this._config.minWidth),t.minHeight=mc(this._config.minHeight),t.maxWidth=mc(this._config.maxWidth),t.maxHeight=mc(this._config.maxHeight)}_togglePointerEvents(t){this._pane.style.pointerEvents=t?"auto":"none"}_attachBackdrop(){const t="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(t)})}):this._backdropElement.classList.add(t)}_updateStackingOrder(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)}detachBackdrop(){let t,e=this._backdropElement;if(!e)return;let n=()=>{e&&(e.removeEventListener("click",this._backdropClickHandler),e.removeEventListener("transitionend",n),e.parentNode&&e.parentNode.removeChild(e)),this._backdropElement==e&&(this._backdropElement=null),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",n)}),e.style.pointerEvents="none",t=this._ngZone.runOutsideAngular(()=>setTimeout(n,500))}_toggleClasses(t,e,n){const s=t.classList;fc(e).forEach(t=>{t&&(n?s.add(t):s.remove(t))})}_detachContentWhenStable(){this._ngZone.runOutsideAngular(()=>{const t=this._ngZone.onStable.pipe(Rc(W(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._previousHostParent.removeChild(this._host)),t.unsubscribe())})})}_disposeScrollStrategy(){const t=this._scrollStrategy;t&&(t.disable(),t.detach&&t.detach())}}const wu="cdk-overlay-connected-position-bounding-box",Cu=/([A-Za-z%]+)$/;class Eu{constructor(t,e,n,s,i){this._viewportRuler=e,this._document=n,this._platform=s,this._overlayContainer=i,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 E,this._resizeSubscription=u.EMPTY,this._offsetX=0,this._offsetY=0,this._appliedPanelClasses=[],this.positionChanges=this._positionChanges,this.setOrigin(t)}get positions(){return this._preferredPositions}attach(t){this._validatePositions(),t.hostElement.classList.add(wu),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.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();const t=this._originRect,e=this._overlayRect,n=this._viewportRect,s=[];let i;for(let r of this._preferredPositions){let o=this._getOriginPoint(t,r),a=this._getOverlayPoint(o,e,r),l=this._getOverlayFit(a,e,n,r);if(l.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(r,o);this._canFitWithFlexibleDimensions(l,a,n)?s.push({position:r,origin:o,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(o,r)}):(!i||i.overlayFit.visibleArea<l.visibleArea)&&(i={overlayFit:l,overlayPoint:a,originPoint:o,position:r,overlayRect:e})}if(s.length){let t=null,e=-1;for(const n of s){const s=n.boundingBoxRect.width*n.boundingBoxRect.height*(n.position.weight||1);s>e&&(e=s,t=n)}return this._isPushed=!1,void this._applyPosition(t.position,t.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(i.position,i.originPoint);this._applyPosition(i.position,i.originPoint)}detach(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()}dispose(){this._isDisposed||(this._boundingBox&&Su(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove(wu),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();const t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}}withScrollableContainers(t){return this._scrollables=t,this}withPositions(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this}withViewportMargin(t){return this._viewportMargin=t,this}withFlexibleDimensions(t=!0){return this._hasFlexibleDimensions=t,this}withGrowAfterOpen(t=!0){return this._growAfterOpen=t,this}withPush(t=!0){return this._canPush=t,this}withLockedPosition(t=!0){return this._positionLocked=t,this}setOrigin(t){return this._origin=t,this}withDefaultOffsetX(t){return this._offsetX=t,this}withDefaultOffsetY(t){return this._offsetY=t,this}withTransformOriginOn(t){return this._transformOriginSelector=t,this}_getOriginPoint(t,e){let n,s;if("center"==e.originX)n=t.left+t.width/2;else{const s=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?s:i}return s="center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom,{x:n,y:s}}_getOverlayPoint(t,e,n){let s,i;return s="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,i="center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height,{x:t.x+s,y:t.y+i}}_getOverlayFit(t,e,n,s){let{x:i,y:r}=t,o=this._getOffset(s,"x"),a=this._getOffset(s,"y");o&&(i+=o),a&&(r+=a);let l=0-r,c=r+e.height-n.height,h=this._subtractOverflows(e.width,0-i,i+e.width-n.width),u=this._subtractOverflows(e.height,l,c),d=h*u;return{visibleArea:d,isCompletelyWithinViewport:e.width*e.height===d,fitsInViewportVertically:u===e.height,fitsInViewportHorizontally:h==e.width}}_canFitWithFlexibleDimensions(t,e,n){if(this._hasFlexibleDimensions){const s=n.bottom-e.y,i=n.right-e.x,r=xu(this._overlayRef.getConfig().minHeight),o=xu(this._overlayRef.getConfig().minWidth),a=t.fitsInViewportHorizontally||null!=o&&o<=i;return(t.fitsInViewportVertically||null!=r&&r<=s)&&a}return!1}_pushOverlayOnScreen(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};const s=this._viewportRect,i=Math.max(t.x+e.width-s.width,0),r=Math.max(t.y+e.height-s.height,0),o=Math.max(s.top-n.top-t.y,0),a=Math.max(s.left-n.left-t.x,0);let l=0,c=0;return l=e.width<=s.width?a||-i:t.x<this._viewportMargin?s.left-n.left-t.x:0,c=e.height<=s.height?o||-r:t.y<this._viewportMargin?s.top-n.top-t.y:0,this._previousPushAmount={x:l,y:c},{x:t.x+l,y:t.y+c}}_applyPosition(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),t.panelClass&&this._addPanelClasses(t.panelClass),this._lastPosition=t,this._positionChanges.observers.length){const e=this._getScrollVisibility(),n=new fu(t,e);this._positionChanges.next(n)}this._isInitialRender=!1}_setTransformOrigin(t){if(!this._transformOriginSelector)return;const e=this._boundingBox.querySelectorAll(this._transformOriginSelector);let n,s=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(let i=0;i<e.length;i++)e[i].style.transformOrigin=`${n} ${s}`}_calculateBoundingBoxRect(t,e){const n=this._viewportRect,s=this._isRtl();let i,r,o,a,l,c;if("top"===e.overlayY)r=t.y,i=n.height-r+this._viewportMargin;else if("bottom"===e.overlayY)o=n.height-t.y+2*this._viewportMargin,i=n.height-o+this._viewportMargin;else{const e=Math.min(n.bottom-t.y+n.top,t.y),s=this._lastBoundingBoxSize.height;i=2*e,r=t.y-e,i>s&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-s/2)}if("end"===e.overlayX&&!s||"start"===e.overlayX&&s)c=n.width-t.x+this._viewportMargin,a=t.x-this._viewportMargin;else if("start"===e.overlayX&&!s||"end"===e.overlayX&&s)l=t.x,a=n.right-t.x;else{const e=Math.min(n.right-t.x+n.left,t.x),s=this._lastBoundingBoxSize.width;a=2*e,l=t.x-e,a>s&&!this._isInitialRender&&!this._growAfterOpen&&(l=t.x-s/2)}return{top:r,left:l,bottom:o,right:c,width:a,height:i}}_setBoundingBoxStyles(t,e){const n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));const s={};if(this._hasExactPosition())s.top=s.left="0",s.bottom=s.right=s.maxHeight=s.maxWidth="",s.width=s.height="100%";else{const t=this._overlayRef.getConfig().maxHeight,i=this._overlayRef.getConfig().maxWidth;s.height=mc(n.height),s.top=mc(n.top),s.bottom=mc(n.bottom),s.width=mc(n.width),s.left=mc(n.left),s.right=mc(n.right),s.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",s.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",t&&(s.maxHeight=mc(t)),i&&(s.maxWidth=mc(i))}this._lastBoundingBoxSize=n,Su(this._boundingBox.style,s)}_resetBoundingBoxStyles(){Su(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})}_resetOverlayElementStyles(){Su(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})}_setOverlayElementStyles(t,e){const n={},s=this._hasExactPosition(),i=this._hasFlexibleDimensions,r=this._overlayRef.getConfig();if(s){const s=this._viewportRuler.getViewportScrollPosition();Su(n,this._getExactOverlayY(e,t,s)),Su(n,this._getExactOverlayX(e,t,s))}else n.position="static";let o="",a=this._getOffset(e,"x"),l=this._getOffset(e,"y");a&&(o+=`translateX(${a}px) `),l&&(o+=`translateY(${l}px)`),n.transform=o.trim(),r.maxHeight&&(s?n.maxHeight=mc(r.maxHeight):i&&(n.maxHeight="")),r.maxWidth&&(s?n.maxWidth=mc(r.maxWidth):i&&(n.maxWidth="")),Su(this._pane.style,n)}_getExactOverlayY(t,e,n){let s={top:"",bottom:""},i=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect,n));let r=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return i.y-=r,"bottom"===t.overlayY?s.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":s.top=mc(i.y),s}_getExactOverlayX(t,e,n){let s,i={left:"",right:""},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),s=this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left","right"===s?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=mc(r.x),i}_getScrollVisibility(){const t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map(t=>t.getElementRef().nativeElement.getBoundingClientRect());return{isOriginClipped:cu(t,n),isOriginOutsideView:lu(t,n),isOverlayClipped:cu(e,n),isOverlayOutsideView:lu(e,n)}}_subtractOverflows(t,...e){return e.reduce((t,e)=>t-Math.max(e,0),t)}_getNarrowedViewportRect(){const t=this._document.documentElement.clientWidth,e=this._document.documentElement.clientHeight,n=this._viewportRuler.getViewportScrollPosition();return{top:n.top+this._viewportMargin,left:n.left+this._viewportMargin,right:n.left+t-this._viewportMargin,bottom:n.top+e-this._viewportMargin,width:t-2*this._viewportMargin,height:e-2*this._viewportMargin}}_isRtl(){return"rtl"===this._overlayRef.getDirection()}_hasExactPosition(){return!this._hasFlexibleDimensions||this._isPushed}_getOffset(t,e){return"x"===e?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY}_validatePositions(){}_addPanelClasses(t){this._pane&&fc(t).forEach(t=>{""!==t&&-1===this._appliedPanelClasses.indexOf(t)&&(this._appliedPanelClasses.push(t),this._pane.classList.add(t))})}_clearPanelClasses(){this._pane&&(this._appliedPanelClasses.forEach(t=>{this._pane.classList.remove(t)}),this._appliedPanelClasses=[])}_getOriginRect(){const t=this._origin;if(t instanceof ha)return t.nativeElement.getBoundingClientRect();if(t instanceof Element)return t.getBoundingClientRect();const e=t.width||0,n=t.height||0;return{top:t.y,bottom:t.y+n,left:t.x,right:t.x+e,height:n,width:e}}}function Su(t,e){for(let n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t}function xu(t){if("number"!=typeof t&&null!=t){const[e,n]=t.split(Cu);return n&&"px"!==n?null:parseFloat(e)}return t||null}class ku{constructor(t,e,n,s,i,r,o){this._preferredPositions=[],this._positionStrategy=new Eu(n,s,i,r,o).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,e),this.onPositionChange=this._positionStrategy.positionChanges}get positions(){return this._preferredPositions}attach(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)}dispose(){this._positionStrategy.dispose()}detach(){this._positionStrategy.detach()}apply(){this._positionStrategy.apply()}recalculateLastPosition(){this._positionStrategy.reapplyLastPosition()}withScrollableContainers(t){this._positionStrategy.withScrollableContainers(t)}withFallbackPosition(t,e,n,s){const i=new pu(t,e,n,s);return this._preferredPositions.push(i),this._positionStrategy.withPositions(this._preferredPositions),this}withDirection(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this}withOffsetX(t){return this._positionStrategy.withDefaultOffsetX(t),this}withOffsetY(t){return this._positionStrategy.withDefaultOffsetY(t),this}withLockedPosition(t){return this._positionStrategy.withLockedPosition(t),this}withPositions(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this}setOrigin(t){return this._positionStrategy.setOrigin(t),this}}const Tu="cdk-global-overlay-wrapper";class Au{constructor(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}attach(t){const e=t.getConfig();this._overlayRef=t,this._width&&!e.width&&t.updateSize({width:this._width}),this._height&&!e.height&&t.updateSize({height:this._height}),t.hostElement.classList.add(Tu),this._isDisposed=!1}top(t=""){return this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this}left(t=""){return this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this}bottom(t=""){return this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this}right(t=""){return this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this}width(t=""){return this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this}height(t=""){return this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this}centerHorizontally(t=""){return this.left(t),this._justifyContent="center",this}centerVertically(t=""){return this.top(t),this._alignItems="center",this}apply(){if(!this._overlayRef||!this._overlayRef.hasAttached())return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement.style,n=this._overlayRef.getConfig(),{width:s,height:i,maxWidth:r,maxHeight:o}=n,a=!("100%"!==s&&"100vw"!==s||r&&"100%"!==r&&"100vw"!==r),l=!("100%"!==i&&"100vh"!==i||o&&"100%"!==o&&"100vh"!==o);t.position=this._cssPosition,t.marginLeft=a?"0":this._leftOffset,t.marginTop=l?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,a?e.justifyContent="flex-start":"center"===this._justifyContent?e.justifyContent="center":"rtl"===this._overlayRef.getConfig().direction?"flex-start"===this._justifyContent?e.justifyContent="flex-end":"flex-end"===this._justifyContent&&(e.justifyContent="flex-start"):e.justifyContent=this._justifyContent,e.alignItems=l?"flex-start":this._alignItems}dispose(){if(this._isDisposed||!this._overlayRef)return;const t=this._overlayRef.overlayElement.style,e=this._overlayRef.hostElement,n=e.style;e.classList.remove(Tu),n.justifyContent=n.alignItems=t.marginTop=t.marginBottom=t.marginLeft=t.marginRight=t.position="",this._overlayRef=null,this._isDisposed=!0}}let Iu=(()=>{class t{constructor(t,e,n,s){this._viewportRuler=t,this._document=e,this._platform=n,this._overlayContainer=s}global(){return new Au}connectedTo(t,e,n){return new ku(e,n,t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}flexibleConnectedTo(t){return new Eu(t,this._viewportRuler,this._document,this._platform,this._overlayContainer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Uh),Kt(Jc),Kt(Vh),Kt(bu))},t.\u0275prov=ht({factory:function(){return new t(Kt(Uh),Kt(Jc),Kt(Vh),Kt(bu))},token:t,providedIn:"root"}),t})(),Ou=0,Pu=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this.scrollStrategies=t,this._overlayContainer=e,this._componentFactoryResolver=n,this._positionBuilder=s,this._keyboardDispatcher=i,this._injector=r,this._ngZone=o,this._document=a,this._directionality=l,this._location=c,this._outsideClickDispatcher=h}create(t){const e=this._createHostElement(),n=this._createPaneElement(e),s=this._createPortalOutlet(n),i=new du(t);return i.direction=i.direction||this._directionality.value,new vu(s,e,n,i,this._ngZone,this._keyboardDispatcher,this._document,this._location,this._outsideClickDispatcher)}position(){return this._positionBuilder}_createPaneElement(t){const e=this._document.createElement("div");return e.id="cdk-overlay-"+Ou++,e.classList.add("cdk-overlay-pane"),t.appendChild(e),e}_createHostElement(){const t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t}_createPortalOutlet(t){return this._appRef||(this._appRef=this._injector.get(lc)),new Jh(t,this._componentFactoryResolver,this._appRef,this._injector,this._document)}}return t.\u0275fac=function(e){return new(e||t)(Kt(uu),Kt(bu),Kt(ca),Kt(Iu),Kt(_u),Kt(io),Kt(ql),Kt(Jc),Kt($h),Kt(dh),Kt(gu))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ru={provide:new Lt("cdk-connected-overlay-scroll-strategy"),deps:[Pu],useFactory:function(t){return()=>t.scrollStrategies.reposition()}};let Du=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Pu,Ru],imports:[[qh,tu,Zh],Zh]}),t})();const Nu=(()=>{const t=Element.prototype;return t.matches||t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector})(),Vu={schedule(t,e){const n=setTimeout(t,e);return()=>clearTimeout(n)},scheduleBeforeRender(t){if("undefined"==typeof window)return Vu.schedule(t,0);if(void 0===window.requestAnimationFrame)return Vu.schedule(t,16);const e=window.requestAnimationFrame(t);return()=>window.cancelAnimationFrame(e)}};function Mu(t,e,n){let s=n;return function(t){return!!t&&t.nodeType===Node.ELEMENT_NODE}(t)&&e.some((e,n)=>!("*"===e||!function(t,e){return Nu.call(t,e)}(t,e)||(s=n,0))),s}class Fu{constructor(t,e){this.componentFactory=e.get(ca).resolveComponentFactory(t)}create(t){return new Lu(this.componentFactory,t)}}class Lu{constructor(t,e){this.componentFactory=t,this.injector=e,this.eventEmitters=new Kc(1),this.events=this.eventEmitters.pipe(function t(e,n){return"function"==typeof n?s=>s.pipe(t((t,s)=>M(e(t,s)).pipe(k((e,i)=>n(t,e,s,i))))):t=>t.lift(new Fc(e))}(t=>W(...t))),this.componentRef=null,this.inputChanges=null,this.implementsOnChanges=!1,this.scheduledChangeDetectionFn=null,this.scheduledDestroyFn=null,this.initialInputValues=new Map,this.unchangedInputs=new Set,this.ngZone=this.injector.get(ql),this.elementZone="undefined"==typeof Zone?null:this.ngZone.run(()=>Zone.current)}connect(t){this.runInZone(()=>{if(null!==this.scheduledDestroyFn)return this.scheduledDestroyFn(),void(this.scheduledDestroyFn=null);null===this.componentRef&&this.initializeComponent(t)})}disconnect(){this.runInZone(()=>{null!==this.componentRef&&null===this.scheduledDestroyFn&&(this.scheduledDestroyFn=Vu.schedule(()=>{null!==this.componentRef&&(this.componentRef.destroy(),this.componentRef=null)},10))})}getInputValue(t){return this.runInZone(()=>null===this.componentRef?this.initialInputValues.get(t):this.componentRef.instance[t])}setInputValue(t,e){this.runInZone(()=>{var n,s;null!==this.componentRef?((n=e)!==(s=this.getInputValue(t))&&(n==n||s==s)||void 0===e&&this.unchangedInputs.has(t))&&(this.recordInputChange(t,e),this.componentRef.instance[t]=e,this.scheduleDetectChanges()):this.initialInputValues.set(t,e)})}initializeComponent(t){const e=io.create({providers:[],parent:this.injector}),n=function(t,e){const n=t.childNodes,s=e.map(()=>[]);let i=-1;e.some((t,e)=>"*"===t&&(i=e,!0));for(let r=0,o=n.length;r<o;++r){const t=n[r],o=Mu(t,e,i);-1!==o&&s[o].push(t)}return s}(t,this.componentFactory.ngContentSelectors);this.componentRef=this.componentFactory.create(e,n,t),this.implementsOnChanges="function"==typeof this.componentRef.instance.ngOnChanges,this.initializeInputs(),this.initializeOutputs(this.componentRef),this.detectChanges(),this.injector.get(lc).attachView(this.componentRef.hostView)}initializeInputs(){this.componentFactory.inputs.forEach(({propName:t})=>{this.implementsOnChanges&&this.unchangedInputs.add(t),this.initialInputValues.has(t)&&this.setInputValue(t,this.initialInputValues.get(t))}),this.initialInputValues.clear()}initializeOutputs(t){const e=this.componentFactory.outputs.map(({propName:e,templateName:n})=>t.instance[e].pipe(k(t=>({name:n,value:t}))));this.eventEmitters.next(e)}callNgOnChanges(t){if(!this.implementsOnChanges||null===this.inputChanges)return;const e=this.inputChanges;this.inputChanges=null,t.instance.ngOnChanges(e)}scheduleDetectChanges(){this.scheduledChangeDetectionFn||(this.scheduledChangeDetectionFn=Vu.scheduleBeforeRender(()=>{this.scheduledChangeDetectionFn=null,this.detectChanges()}))}recordInputChange(t,e){if(null!==this.componentRef&&!this.implementsOnChanges)return;null===this.inputChanges&&(this.inputChanges={});const n=this.inputChanges[t];if(n)return void(n.currentValue=e);const s=this.unchangedInputs.has(t);this.unchangedInputs.delete(t);const i=s?void 0:this.getInputValue(t);this.inputChanges[t]=new De(i,e,s)}detectChanges(){null!==this.componentRef&&(this.callNgOnChanges(this.componentRef),this.componentRef.changeDetectorRef.detectChanges())}runInZone(t){return this.elementZone&&Zone.current!==this.elementZone?this.ngZone.run(t):t()}}class ju extends HTMLElement{constructor(){super(...arguments),this.ngElementEventsSubscription=null}}function Bu(t,e){t.forEach(({propName:t})=>{Object.defineProperty(e,t,{get(){return this.ngElementStrategy.getInputValue(t)},set(e){this.ngElementStrategy.setInputValue(t,e)},configurable:!0,enumerable:!0})})}class Hu extends E{constructor(t){super(),this._value=t}get value(){return this.getValue()}_subscribe(t){const e=super._subscribe(t);return e&&!e.closed&&t.next(this._value),e}getValue(){if(this.hasError)throw this.thrownError;if(this.closed)throw new v;return this._value}next(t){super.next(this._value=t)}}function zu(t,e=Ec){return n=>n.lift(new $u(t,e))}class $u{constructor(t,e){this.dueTime=t,this.scheduler=e}call(t,e){return e.subscribe(new qu(t,this.dueTime,this.scheduler))}}class qu extends f{constructor(t,e,n){super(t),this.dueTime=e,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}_next(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(Wu,this.dueTime,this))}_complete(){this.debouncedNext(),this.destination.complete()}debouncedNext(){if(this.clearDebounce(),this.hasValue){const{lastValue:t}=this;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}}clearDebounce(){const t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)}}function Wu(t){t.debouncedNext()}function Uu(){}function Qu(t,e,n){return function(s){return s.lift(new Zu(t,e,n))}}class Zu{constructor(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}call(t,e){return e.subscribe(new Ku(t,this.nextOrObserver,this.error,this.complete))}}class Ku extends f{constructor(t,e,n,i){super(t),this._tapNext=Uu,this._tapError=Uu,this._tapComplete=Uu,this._tapError=n||Uu,this._tapComplete=i||Uu,s(e)?(this._context=this,this._tapNext=e):e&&(this._context=e,this._tapNext=e.next||Uu,this._tapError=e.error||Uu,this._tapComplete=e.complete||Uu)}_next(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)}_error(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)}_complete(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()}}const Gu={provide:Ol,useFactory:function(t,e){return()=>{if(Rh(e)){const e=Array.from(t.querySelectorAll(`[class*=${Yu}]`)),n=/\bflex-layout-.+?\b/g;e.forEach(t=>{t.classList.contains(Yu+"ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}},deps:[Jc,Il],multi:!0},Yu="flex-layout-";let Xu=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Gu]}),t})();class Ju{constructor(t=!1,e="all",n="",s="",i=0){this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=s,this.priority=i,this.property=""}clone(){return new Ju(this.matches,this.mediaQuery,this.mqAlias,this.suffix)}}let td=(()=>{class t{constructor(){this.stylesheet=new Map}addStyleToElement(t,e,n){const s=this.stylesheet.get(t);s?s.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))}clearStyles(){this.stylesheet.clear()}getStyleForElement(t,e){const n=this.stylesheet.get(t);let s="";if(n){const t=n.get(e);"number"!=typeof t&&"string"!=typeof t||(s=t+"")}return s}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();const ed={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0,printWithBreakpoints:[],mediaTriggerAutoRestore:!0,ssrObserveBreakpoints:[]},nd=new Lt("Flex Layout token, config options for the library",{providedIn:"root",factory:()=>ed}),sd=new Lt("FlexLayoutServerLoaded",{providedIn:"root",factory:()=>!1}),id=new Lt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:()=>null});function rd(t,e){return t=t?t.clone():new Ju,e&&(t.mqAlias=e.alias,t.mediaQuery=e.mediaQuery,t.suffix=e.suffix,t.priority=e.priority),t}const od="inline",ad=["row","column","row-reverse","column-reverse"];function ld(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let cd=(()=>{class t{constructor(t,e,n,s){this.elementRef=t,this.styleBuilder=e,this.styler=n,this.marshal=s,this.DIRECTIVE_KEY="",this.inputs=[],this.mru={},this.destroySubject=new E,this.styleCache=new Map}get parentElement(){return this.elementRef.nativeElement.parentElement}get nativeElement(){return this.elementRef.nativeElement}get activatedValue(){return this.marshal.getValue(this.nativeElement,this.DIRECTIVE_KEY)}set activatedValue(t){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,this.marshal.activatedAlias)}ngOnChanges(t){Object.keys(t).forEach(e=>{if(-1!==this.inputs.indexOf(e)){const n=e.split(".").slice(1).join(".");this.setValue(t[e].currentValue,n)}})}ngOnDestroy(){this.destroySubject.next(),this.destroySubject.complete(),this.marshal.releaseElement(this.nativeElement)}init(t=[]){this.marshal.init(this.elementRef.nativeElement,this.DIRECTIVE_KEY,this.updateWithValue.bind(this),this.clearStyles.bind(this),t)}addStyles(t,e){const n=this.styleBuilder,s=n.shouldCache;let i=this.styleCache.get(t);i&&s||(i=n.buildStyles(t,e),s&&this.styleCache.set(t,i)),this.mru=Object.assign({},i),this.applyStyleToElement(i),n.sideEffect(t,i,e)}clearStyles(){Object.keys(this.mru).forEach(t=>{this.mru[t]=""}),this.applyStyleToElement(this.mru),this.mru={}}triggerUpdate(){this.marshal.triggerUpdate(this.nativeElement,this.DIRECTIVE_KEY)}getFlexFlowDirection(t,e=!1){if(t){const[n,s]=this.styler.getFlowDirection(t);if(!s&&e){const e=function(t){let[e,n,s]=function(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return ad.find(t=>t===e)||(e=ad[0]),n===od&&(n=s!==od?s:"",s=od),[e,ld(n),!!s]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(n);this.styler.applyStyleToElements(e,[t])}return n.trim()}return"row"}hasWrap(t){return this.styler.hasWrap(t)}applyStyleToElement(t,e,n=this.nativeElement){this.styler.applyStyleToElement(n,t,e)}setValue(t,e){this.marshal.setValue(this.nativeElement,this.DIRECTIVE_KEY,t,e)}updateWithValue(t){this.currentValue!==t&&(this.addStyles(t),this.currentValue=t)}}return t.\u0275fac=function(t){!function(){throw new Error("invalid")}()},t.\u0275dir=be({type:t,features:[Ne]}),t})();const hd=[{alias:"xs",mediaQuery:"screen and (min-width: 0px) and (max-width: 599.9px)",priority:1e3},{alias:"sm",mediaQuery:"screen and (min-width: 600px) and (max-width: 959.9px)",priority:900},{alias:"md",mediaQuery:"screen and (min-width: 960px) and (max-width: 1279.9px)",priority:800},{alias:"lg",mediaQuery:"screen and (min-width: 1280px) and (max-width: 1919.9px)",priority:700},{alias:"xl",mediaQuery:"screen and (min-width: 1920px) and (max-width: 4999.9px)",priority:600},{alias:"lt-sm",overlapping:!0,mediaQuery:"screen and (max-width: 599.9px)",priority:950},{alias:"lt-md",overlapping:!0,mediaQuery:"screen and (max-width: 959.9px)",priority:850},{alias:"lt-lg",overlapping:!0,mediaQuery:"screen and (max-width: 1279.9px)",priority:750},{alias:"lt-xl",overlapping:!0,priority:650,mediaQuery:"screen and (max-width: 1919.9px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"screen and (min-width: 600px)",priority:-950},{alias:"gt-sm",overlapping:!0,mediaQuery:"screen and (min-width: 960px)",priority:-850},{alias:"gt-md",overlapping:!0,mediaQuery:"screen and (min-width: 1280px)",priority:-750},{alias:"gt-lg",overlapping:!0,mediaQuery:"screen and (min-width: 1920px)",priority:-650}],ud="(orientation: portrait) and (max-width: 599.9px)",dd="(orientation: landscape) and (max-width: 959.9px)",pd="(orientation: portrait) and (min-width: 600px) and (max-width: 839.9px)",fd="(orientation: landscape) and (min-width: 960px) and (max-width: 1279.9px)",md="(orientation: portrait) and (min-width: 840px)",_d="(orientation: landscape) and (min-width: 1280px)",gd={HANDSET:`${ud}, ${dd}`,TABLET:`${pd} , ${fd}`,WEB:`${md}, ${_d} `,HANDSET_PORTRAIT:""+ud,TABLET_PORTRAIT:pd+" ",WEB_PORTRAIT:""+md,HANDSET_LANDSCAPE:""+dd,TABLET_LANDSCAPE:""+fd,WEB_LANDSCAPE:""+_d},yd=[{alias:"handset",priority:2e3,mediaQuery:gd.HANDSET},{alias:"handset.landscape",priority:2e3,mediaQuery:gd.HANDSET_LANDSCAPE},{alias:"handset.portrait",priority:2e3,mediaQuery:gd.HANDSET_PORTRAIT},{alias:"tablet",priority:2100,mediaQuery:gd.TABLET},{alias:"tablet.landscape",priority:2100,mediaQuery:gd.TABLET_LANDSCAPE},{alias:"tablet.portrait",priority:2100,mediaQuery:gd.TABLET_PORTRAIT},{alias:"web",priority:2200,mediaQuery:gd.WEB,overlapping:!0},{alias:"web.landscape",priority:2200,mediaQuery:gd.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",priority:2200,mediaQuery:gd.WEB_PORTRAIT,overlapping:!0}],bd=/(\.|-|_)/g;function vd(t){let e=t.length>0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}const wd=new Lt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:()=>{const t=Gt(id),e=Gt(nd),n=[].concat.apply([],(t||[]).map(t=>Array.isArray(t)?t:[t]));return function(t,e=[]){const n={};return t.forEach(t=>{n[t.alias]=t}),e.forEach(t=>{n[t.alias]?function(t,...e){if(null==t)throw TypeError("Cannot convert undefined or null to object");for(let n of e)if(null!=n)for(let e in n)n.hasOwnProperty(e)&&(t[e]=n[e])}(n[t.alias],t):n[t.alias]=t}),(s=Object.keys(n).map(t=>n[t])).forEach(t=>{t.suffix||(t.suffix=t.alias.replace(bd,"|").split("|").map(vd).join(""),t.overlapping=!!t.overlapping)}),s;var s}((e.disableDefaultBps?[]:hd).concat(e.addOrientationBps?yd:[]),n)}});function Cd(t,e){return(e&&e.priority||0)-(t&&t.priority||0)}function Ed(t,e){return(t.priority||0)-(e.priority||0)}let Sd=(()=>{class t{constructor(t){this.findByMap=new Map,this.items=[...t].sort(Ed)}findByAlias(t){return t?this.findWithPredicate(t,e=>e.alias==t):null}findByQuery(t){return this.findWithPredicate(t,e=>e.mediaQuery==t)}get overlappings(){return this.items.filter(t=>1==t.overlapping)}get aliases(){return this.items.map(t=>t.alias)}get suffixes(){return this.items.map(t=>t.suffix?t.suffix:"")}findWithPredicate(t,e){let n=this.findByMap.get(t);return n||(n=this.items.find(e)||null,this.findByMap.set(t,n)),n||null}}return t.\u0275fac=function(e){return new(e||t)(Kt(wd))},t.\u0275prov=ht({factory:function(){return new t(Kt(wd))},token:t,providedIn:"root"}),t})(),xd=(()=>{class t{constructor(t,e,n){this._zone=t,this._platformId=e,this._document=n,this.source=new Hu(new Ju(!0)),this.registry=new Map,this.pendingRemoveListenerFns=[],this._observable$=this.source.asObservable()}get activations(){const t=[];return this.registry.forEach((e,n)=>{e.matches&&t.push(n)}),t}isActive(t){const e=this.registry.get(t);return e?e.matches:this.registerQuery(t).some(t=>t.matches)}observe(t,e=!1){if(t&&t.length){const n=this._observable$.pipe(Ic(n=>!e||t.indexOf(n.mediaQuery)>-1));return W(new y(e=>{const n=this.registerQuery(t);if(n.length){const t=n.pop();n.forEach(t=>{e.next(t)}),this.source.next(t)}e.complete()}),n)}return this._observable$}registerQuery(t){const e=Array.isArray(t)?t:[t],n=[];return function(t,e){const n=t.filter(t=>!kd[t]);if(n.length>0){const t=n.join(", ");try{const s=e.createElement("style");s.setAttribute("type","text/css"),s.styleSheet||s.appendChild(e.createTextNode(`\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media ${t} {.fx-query-test{ }}\n`)),e.head.appendChild(s),n.forEach(t=>kd[t]=s)}catch(s){console.error(s)}}}(e,this._document),e.forEach(t=>{const e=e=>{this._zone.run(()=>this.source.next(new Ju(e.matches,t)))};let s=this.registry.get(t);s||(s=this.buildMQL(t),s.addListener(e),this.pendingRemoveListenerFns.push(()=>s.removeListener(e)),this.registry.set(t,s)),s.matches&&n.push(new Ju(!0,t))}),n}ngOnDestroy(){let t;for(;t=this.pendingRemoveListenerFns.pop();)t()}buildMQL(t){return function(t,e){return e&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{},onchange:null,addEventListener(){},removeEventListener(){},dispatchEvent:()=>!1}}(t,Rh(this._platformId))}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Il),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Il),Kt(Jc))},token:t,providedIn:"root"}),t})();const kd={},Td="print",Ad={alias:Td,mediaQuery:Td,priority:1e3};let Id=(()=>{class t{constructor(t,e,n){this.breakpoints=t,this.layoutConfig=e,this._document=n,this.registeredBeforeAfterPrintHooks=!1,this.isPrintingBeforeAfterEvent=!1,this.beforePrintEventListeners=[],this.afterPrintEventListeners=[],this.isPrinting=!1,this.queue=new Od,this.deactivations=[]}withPrintQuery(t){return[...t,Td]}isPrintEvent(t){return t.mediaQuery.startsWith(Td)}get printAlias(){return this.layoutConfig.printWithBreakpoints||[]}get printBreakPoints(){return this.printAlias.map(t=>this.breakpoints.findByAlias(t)).filter(t=>null!==t)}getEventBreakpoints({mediaQuery:t}){const e=this.breakpoints.findByQuery(t);return(e?[...this.printBreakPoints,e]:this.printBreakPoints).sort(Cd)}updateEvent(t){let e=this.breakpoints.findByQuery(t.mediaQuery);return this.isPrintEvent(t)&&(e=this.getEventBreakpoints(t)[0],t.mediaQuery=e?e.mediaQuery:""),rd(t,e)}registerBeforeAfterPrintHooks(t){if(!this._document.defaultView||this.registeredBeforeAfterPrintHooks)return;this.registeredBeforeAfterPrintHooks=!0;const e=()=>{this.isPrinting||(this.isPrintingBeforeAfterEvent=!0,this.startPrinting(t,this.getEventBreakpoints(new Ju(!0,Td))),t.updateStyles())},n=()=>{this.isPrintingBeforeAfterEvent=!1,this.isPrinting&&(this.stopPrinting(t),t.updateStyles())};this._document.defaultView.addEventListener("beforeprint",e),this._document.defaultView.addEventListener("afterprint",n),this.beforePrintEventListeners.push(e),this.afterPrintEventListeners.push(n)}interceptEvents(t){return this.registerBeforeAfterPrintHooks(t),e=>{this.isPrintEvent(e)?e.matches&&!this.isPrinting?(this.startPrinting(t,this.getEventBreakpoints(e)),t.updateStyles()):e.matches||!this.isPrinting||this.isPrintingBeforeAfterEvent||(this.stopPrinting(t),t.updateStyles()):this.collectActivations(e)}}blockPropagation(){return t=>!(this.isPrinting||this.isPrintEvent(t))}startPrinting(t,e){this.isPrinting=!0,t.activatedBreakpoints=this.queue.addPrintBreakpoints(e)}stopPrinting(t){t.activatedBreakpoints=this.deactivations,this.deactivations=[],this.queue.clear(),this.isPrinting=!1}collectActivations(t){if(!this.isPrinting||this.isPrintingBeforeAfterEvent)if(t.matches)this.isPrintingBeforeAfterEvent||(this.deactivations=[]);else{const e=this.breakpoints.findByQuery(t.mediaQuery);e&&(this.deactivations.push(e),this.deactivations.sort(Cd))}}ngOnDestroy(){this.beforePrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("beforeprint",t)),this.afterPrintEventListeners.forEach(t=>this._document.defaultView.removeEventListener("afterprint",t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Sd),Kt(nd),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Sd),Kt(nd),Kt(Jc))},token:t,providedIn:"root"}),t})();class Od{constructor(){this.printBreakpoints=[]}addPrintBreakpoints(t){return t.push(Ad),t.sort(Cd),t.forEach(t=>this.addBreakpoint(t)),this.printBreakpoints}addBreakpoint(t){t&&void 0===this.printBreakpoints.find(e=>e.mediaQuery===t.mediaQuery)&&(this.printBreakpoints=function(t){return!!t&&t.mediaQuery.startsWith(Td)}(t)?[t,...this.printBreakpoints]:[...this.printBreakpoints,t])}clear(){this.printBreakpoints=[]}}function Pd(t){for(let e in t){let n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+e]=n;break;case"flex-direction":n=n||"row",t["-webkit-flex-direction"]=n,t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(+n)?"0":n}}return t}let Rd=(()=>{class t{constructor(t,e,n,s){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=s}applyStyleToElement(t,e,n=null){let s={};"string"==typeof e&&(s[e]=n,e=s),s=this.layoutConfig.disableVendorPrefixes?e:Pd(e),this._applyMultiValueStyleToElement(s,t)}applyStyleToElements(t,e=[]){const n=this.layoutConfig.disableVendorPrefixes?t:Pd(t);e.forEach(t=>{this._applyMultiValueStyleToElement(n,t)})}getFlowDirection(t){const e="flex-direction";let n=this.lookupStyle(t,e);return[n||"row",this.lookupInlineStyle(t,e)||Dh(this._platformId)&&this._serverModuleLoaded?n:""]}hasWrap(t){return"wrap"===this.lookupStyle(t,"flex-wrap")}lookupAttributeValue(t,e){return t.getAttribute(e)||""}lookupInlineStyle(t,e){return Rh(this._platformId)?t.style.getPropertyValue(e):this._getServerStyle(t,e)}lookupStyle(t,e,n=!1){let s="";return t&&((s=this.lookupInlineStyle(t,e))||(Rh(this._platformId)?n||(s=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(s=this._serverStylesheet.getStyleForElement(t,e)))),s?s.trim():""}_applyMultiValueStyleToElement(t,e){Object.keys(t).sort().forEach(n=>{const s=t[n],i=Array.isArray(s)?s:[s];i.sort();for(let t of i)t=t?t+"":"",Rh(this._platformId)||!this._serverModuleLoaded?Rh(this._platformId)?e.style.setProperty(n,t):this._setServerStyle(e,n,t):this._serverStylesheet.addStyleToElement(e,n,t)})}_setServerStyle(t,e,n){e=e.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();const s=this._readStyleAttribute(t);s[e]=n||"",this._writeStyleAttribute(t,s)}_getServerStyle(t,e){return this._readStyleAttribute(t)[e]||""}_readStyleAttribute(t){const e={},n=t.getAttribute("style");if(n){const t=n.split(/;+/g);for(let n=0;n<t.length;n++){const s=t[n].trim();if(s.length>0){const t=s.indexOf(":");if(-1===t)throw new Error("Invalid CSS style: "+s);e[s.substr(0,t).trim()]=s.substr(t+1).trim()}}}return e}_writeStyleAttribute(t,e){let n="";for(const s in e)e[s]&&(n+=s+":"+e[s]+";");t.setAttribute("style",n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(td),Kt(sd),Kt(Il),Kt(nd))},t.\u0275prov=ht({factory:function(){return new t(Kt(td),Kt(sd),Kt(Il),Kt(nd))},token:t,providedIn:"root"}),t})(),Dd=(()=>{class t{constructor(t,e,n){this.matchMedia=t,this.breakpoints=e,this.hook=n,this.activatedBreakpoints=[],this.elementMap=new Map,this.elementKeyMap=new WeakMap,this.watcherMap=new WeakMap,this.updateMap=new WeakMap,this.clearMap=new WeakMap,this.subject=new E,this.observeActivations()}get activatedAlias(){return this.activatedBreakpoints[0]?this.activatedBreakpoints[0].alias:""}onMediaChange(t){const e=this.findByQuery(t.mediaQuery);e&&((t=rd(t,e)).matches&&-1===this.activatedBreakpoints.indexOf(e)?(this.activatedBreakpoints.push(e),this.activatedBreakpoints.sort(Cd),this.updateStyles()):t.matches||-1===this.activatedBreakpoints.indexOf(e)||(this.activatedBreakpoints.splice(this.activatedBreakpoints.indexOf(e),1),this.activatedBreakpoints.sort(Cd),this.updateStyles()))}init(t,e,n,s,i=[]){Nd(this.updateMap,t,e,n),Nd(this.clearMap,t,e,s),this.buildElementKeyMap(t,e),this.watchExtraTriggers(t,e,i)}getValue(t,e,n){const s=this.elementMap.get(t);if(s){const t=void 0!==n?s.get(n):this.getActivatedValues(s,e);if(t)return t.get(e)}}hasValue(t,e){const n=this.elementMap.get(t);if(n){const t=this.getActivatedValues(n,e);if(t)return void 0!==t.get(e)||!1}return!1}setValue(t,e,n,s){let i=this.elementMap.get(t);if(i){const r=(i.get(s)||new Map).set(e,n);i.set(s,r),this.elementMap.set(t,i)}else i=(new Map).set(s,(new Map).set(e,n)),this.elementMap.set(t,i);const r=this.getValue(t,e);void 0!==r&&this.updateElement(t,e,r)}trackValue(t,e){return this.subject.asObservable().pipe(Ic(n=>n.element===t&&n.key===e))}updateStyles(){this.elementMap.forEach((t,e)=>{const n=new Set(this.elementKeyMap.get(e));let s=this.getActivatedValues(t);s&&s.forEach((t,s)=>{this.updateElement(e,s,t),n.delete(s)}),n.forEach(n=>{if(s=this.getActivatedValues(t,n),s){const t=s.get(n);this.updateElement(e,n,t)}else this.clearElement(e,n)})})}clearElement(t,e){const n=this.clearMap.get(t);if(n){const s=n.get(e);s&&(s(),this.subject.next({element:t,key:e,value:""}))}}updateElement(t,e,n){const s=this.updateMap.get(t);if(s){const i=s.get(e);i&&(i(n),this.subject.next({element:t,key:e,value:n}))}}releaseElement(t){const e=this.watcherMap.get(t);e&&(e.forEach(t=>t.unsubscribe()),this.watcherMap.delete(t));const n=this.elementMap.get(t);n&&(n.forEach((t,e)=>n.delete(e)),this.elementMap.delete(t))}triggerUpdate(t,e){const n=this.elementMap.get(t);if(n){const s=this.getActivatedValues(n,e);s&&(e?this.updateElement(t,e,s.get(e)):s.forEach((e,n)=>this.updateElement(t,n,e)))}}buildElementKeyMap(t,e){let n=this.elementKeyMap.get(t);n||(n=new Set,this.elementKeyMap.set(t,n)),n.add(e)}watchExtraTriggers(t,e,n){if(n&&n.length){let s=this.watcherMap.get(t);if(s||(s=new Map,this.watcherMap.set(t,s)),!s.get(e)){const i=W(...n).subscribe(()=>{const n=this.getValue(t,e);this.updateElement(t,e,n)});s.set(e,i)}}}findByQuery(t){return this.breakpoints.findByQuery(t)}getActivatedValues(t,e){for(let s=0;s<this.activatedBreakpoints.length;s++){const n=t.get(this.activatedBreakpoints[s].alias);if(n&&(void 0===e||n.has(e)&&null!=n.get(e)))return n}const n=t.get("");return void 0===e||n&&n.has(e)?n:void 0}observeActivations(){const t=this.breakpoints.items.map(t=>t.mediaQuery);this.matchMedia.observe(this.hook.withPrintQuery(t)).pipe(Qu(this.hook.interceptEvents(this)),Ic(this.hook.blockPropagation())).subscribe(this.onMediaChange.bind(this))}}return t.\u0275fac=function(e){return new(e||t)(Kt(xd),Kt(Sd),Kt(Id))},t.\u0275prov=ht({factory:function(){return new t(Kt(xd),Kt(Sd),Kt(Id))},token:t,providedIn:"root"}),t})();function Nd(t,e,n,s){if(void 0!==s){let i=t.get(e);i||(i=new Map,t.set(e,i)),i.set(n,s)}}class Vd extends class extends class{}{constructor(){super()}supportsDOMEvents(){return!0}}{static makeCurrent(){var t;t=new Vd,Yc||(Yc=t)}getProperty(t,e){return t[e]}log(t){window.console&&window.console.log&&window.console.log(t)}logGroup(t){window.console&&window.console.group&&window.console.group(t)}logGroupEnd(){window.console&&window.console.groupEnd&&window.console.groupEnd()}onAndCancel(t,e,n){return t.addEventListener(e,n,!1),()=>{t.removeEventListener(e,n,!1)}}dispatchEvent(t,e){t.dispatchEvent(e)}remove(t){return t.parentNode&&t.parentNode.removeChild(t),t}getValue(t){return t.value}createElement(t,e){return(e=e||this.getDefaultDocument()).createElement(t)}createHtmlDocument(){return document.implementation.createHTMLDocument("fakeTitle")}getDefaultDocument(){return document}isElementNode(t){return t.nodeType===Node.ELEMENT_NODE}isShadowRoot(t){return t instanceof DocumentFragment}getGlobalEventTarget(t,e){return"window"===e?window:"document"===e?t:"body"===e?t.body:null}getHistory(){return window.history}getLocation(){return window.location}getBaseHref(t){const e=Fd||(Fd=document.querySelector("base"),Fd)?Fd.getAttribute("href"):null;return null==e?null:(n=e,Md||(Md=document.createElement("a")),Md.setAttribute("href",n),"/"===Md.pathname.charAt(0)?Md.pathname:"/"+Md.pathname);var n}resetBaseElement(){Fd=null}getUserAgent(){return window.navigator.userAgent}performanceNow(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}supportsCookies(){return!0}getCookie(t){return function(t,e){e=encodeURIComponent(e);for(const n of t.split(";")){const t=n.indexOf("="),[s,i]=-1==t?[n,""]:[n.slice(0,t),n.slice(t+1)];if(s.trim()===e)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Md,Fd=null;const Ld=new Lt("TRANSITION_ID"),jd=[{provide:El,useFactory:function(t,e,n){return()=>{n.get(Sl).donePromise.then(()=>{const n=Xc();Array.prototype.slice.apply(e.querySelectorAll("style[ng-transition]")).filter(e=>e.getAttribute("ng-transition")===t).forEach(t=>n.remove(t))})}},deps:[Ld,Jc,io],multi:!0}];class Bd{static init(){var t;t=new Bd,nc=t}addToWindow(t){Ot.getAngularTestability=(e,n=!0)=>{const s=t.findTestabilityInTree(e,n);if(null==s)throw new Error("Could not find testability for element.");return s},Ot.getAllAngularTestabilities=()=>t.getAllTestabilities(),Ot.getAllAngularRootElements=()=>t.getAllRootElements(),Ot.frameworkStabilizers||(Ot.frameworkStabilizers=[]),Ot.frameworkStabilizers.push(t=>{const e=Ot.getAllAngularTestabilities();let n=e.length,s=!1;const i=function(e){s=s||e,n--,0==n&&t(s)};e.forEach((function(t){t.whenStable(i)}))})}findTestabilityInTree(t,e,n){if(null==e)return null;const s=t.getTestability(e);return null!=s?s:n?Xc().isShadowRoot(e)?this.findTestabilityInTree(t,e.host,!0):this.findTestabilityInTree(t,e.parentElement,!0):null}}const Hd=new Lt("EventManagerPlugins");let zd=(()=>{class t{constructor(t,e){this._zone=e,this._eventNameToPlugin=new Map,t.forEach(t=>t.manager=this),this._plugins=t.slice().reverse()}addEventListener(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)}addGlobalEventListener(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)}getZone(){return this._zone}_findPluginFor(t){const e=this._eventNameToPlugin.get(t);if(e)return e;const n=this._plugins;for(let s=0;s<n.length;s++){const e=n[s];if(e.supports(t))return this._eventNameToPlugin.set(t,e),e}throw new Error("No event manager plugin found for event "+t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Hd),Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class $d{constructor(t){this._doc=t}addGlobalEventListener(t,e,n){const s=Xc().getGlobalEventTarget(this._doc,t);if(!s)throw new Error(`Unsupported event target ${s} for event ${e}`);return this.addEventListener(s,e,n)}}let qd=(()=>{class t{constructor(){this._stylesSet=new Set}addStyles(t){const e=new Set;t.forEach(t=>{this._stylesSet.has(t)||(this._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)}onStylesAdded(t){}getAllStyles(){return Array.from(this._stylesSet)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Wd=(()=>{class t extends qd{constructor(t){super(),this._doc=t,this._hostNodes=new Set,this._styleNodes=new Set,this._hostNodes.add(t.head)}_addStylesToHost(t,e){t.forEach(t=>{const n=this._doc.createElement("style");n.textContent=t,this._styleNodes.add(e.appendChild(n))})}addHost(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)}removeHost(t){this._hostNodes.delete(t)}onStylesAdded(t){this._hostNodes.forEach(e=>this._addStylesToHost(t,e))}ngOnDestroy(){this._styleNodes.forEach(t=>Xc().remove(t))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Ud={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/"},Qd=/%COMP%/g;function Zd(t,e,n){for(let s=0;s<e.length;s++){let i=e[s];Array.isArray(i)?Zd(t,i,n):(i=i.replace(Qd,t),n.push(i))}return n}function Kd(t){return e=>{if("__ngUnwrap__"===e)return t;!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}let Gd=(()=>{class t{constructor(t,e,n){this.eventManager=t,this.sharedStylesHost=e,this.appId=n,this.rendererByCompId=new Map,this.defaultRenderer=new Yd(t)}createRenderer(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case ce.Emulated:{let n=this.rendererByCompId.get(e.id);return n||(n=new Xd(this.eventManager,this.sharedStylesHost,e,this.appId),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n}case ce.Native:case ce.ShadowDom:return new Jd(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){const t=Zd(e.id,e.styles,[]);this.sharedStylesHost.addStyles(t),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return t.\u0275fac=function(e){return new(e||t)(Kt(zd),Kt(Wd),Kt(xl))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Yd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,e){return e?document.createElementNS(Ud[e]||e,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,e){t.appendChild(e)}insertBefore(t,e,n){t&&t.insertBefore(e,n)}removeChild(t,e){t&&t.removeChild(e)}selectRootElement(t,e){let n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error(`The selector "${t}" did not match any elements`);return e||(n.textContent=""),n}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,e,n,s){if(s){e=s+":"+e;const i=Ud[s];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)}removeAttribute(t,e,n){if(n){const s=Ud[n];s?t.removeAttributeNS(s,e):t.removeAttribute(`${n}:${e}`)}else t.removeAttribute(e)}addClass(t,e){t.classList.add(e)}removeClass(t,e){t.classList.remove(e)}setStyle(t,e,n,s){s&pa.DashCase?t.style.setProperty(e,n,s&pa.Important?"important":""):t.style[e]=n}removeStyle(t,e,n){n&pa.DashCase?t.style.removeProperty(e):t.style[e]=""}setProperty(t,e,n){t[e]=n}setValue(t,e){t.nodeValue=e}listen(t,e,n){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,Kd(n)):this.eventManager.addEventListener(t,e,Kd(n))}}class Xd extends Yd{constructor(t,e,n,s){super(t),this.component=n;const i=Zd(s+"-"+n.id,n.styles,[]);e.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(Qd,s+"-"+n.id),this.hostAttr="_nghost-%COMP%".replace(Qd,s+"-"+n.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,e){const n=super.createElement(t,e);return super.setAttribute(n,this.contentAttr,""),n}}class Jd extends Yd{constructor(t,e,n,s){super(t),this.sharedStylesHost=e,this.hostEl=n,this.component=s,this.shadowRoot=s.encapsulation===ce.ShadowDom?n.attachShadow({mode:"open"}):n.createShadowRoot(),this.sharedStylesHost.addHost(this.shadowRoot);const i=Zd(s.id,s.styles,[]);for(let r=0;r<i.length;r++){const t=document.createElement("style");t.textContent=i[r],this.shadowRoot.appendChild(t)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,e){return super.appendChild(this.nodeOrShadowRoot(t),e)}insertBefore(t,e,n){return super.insertBefore(this.nodeOrShadowRoot(t),e,n)}removeChild(t,e){return super.removeChild(this.nodeOrShadowRoot(t),e)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let tp=(()=>{class t extends $d{constructor(t){super(t)}supports(t){return!0}addEventListener(t,e,n){return t.addEventListener(e,n,!1),()=>this.removeEventListener(t,e,n)}removeEventListener(t,e,n){return t.removeEventListener(e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const ep=["alt","control","meta","shift"],np={"\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"},sp={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"},ip={alt:t=>t.altKey,control:t=>t.ctrlKey,meta:t=>t.metaKey,shift:t=>t.shiftKey};let rp=(()=>{class t extends $d{constructor(t){super(t)}supports(e){return null!=t.parseEventName(e)}addEventListener(e,n,s){const i=t.parseEventName(n),r=t.eventCallback(i.fullKey,s,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>Xc().onAndCancel(e,i.domEventName,r))}static parseEventName(e){const n=e.toLowerCase().split("."),s=n.shift();if(0===n.length||"keydown"!==s&&"keyup"!==s)return null;const i=t._normalizeKey(n.pop());let r="";if(ep.forEach(t=>{const e=n.indexOf(t);e>-1&&(n.splice(e,1),r+=t+".")}),r+=i,0!=n.length||0===i.length)return null;const o={};return o.domEventName=s,o.fullKey=r,o}static getEventFullKey(t){let e="",n=function(t){let e=t.key;if(null==e){if(e=t.keyIdentifier,null==e)return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&sp.hasOwnProperty(e)&&(e=sp[e]))}return np[e]||e}(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),ep.forEach(s=>{s!=n&&(0,ip[s])(t)&&(e+=s+".")}),e+=n,e}static eventCallback(e,n,s){return i=>{t.getEventFullKey(i)===e&&s.runGuarded(()=>n(i))}}static _normalizeKey(t){switch(t){case"esc":return"escape";default:return t}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),op=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return Kt(ap)},token:t,providedIn:"root"}),t})(),ap=(()=>{class t extends op{constructor(t){super(),this._doc=t}sanitize(t,e){if(null==e)return null;switch(t){case Ks.NONE:return e;case Ks.HTML:return Cs(e,"HTML")?ws(e):function(t,e){let n=null;try{Qs=Qs||function(t){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(Ov){return!1}}()?new Ts:new As(t)}(t);let s=e?String(e):"";n=Qs.getInertBodyElement(s);let i=5,r=s;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,s=r,r=n.innerHTML,n=Qs.getInertBodyElement(s)}while(s!==r);const o=new $s,a=o.sanitizeChildren(Zs(n)||n);return ks()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(n){const t=Zs(n)||n;for(;t.firstChild;)t.removeChild(t.firstChild)}}}(this._doc,String(e));case Ks.STYLE:return Cs(e,"Style")?ws(e):e;case Ks.SCRIPT:if(Cs(e,"Script"))return ws(e);throw new Error("unsafe value used in a script context");case Ks.URL:return Es(e),Cs(e,"URL")?ws(e):Ps(String(e));case Ks.RESOURCE_URL:if(Cs(e,"ResourceURL"))return ws(e);throw new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error(`Unexpected SecurityContext ${t} (see http://g.co/ng/security#xss)`)}}bypassSecurityTrustHtml(t){return new _s(t)}bypassSecurityTrustStyle(t){return new gs(t)}bypassSecurityTrustScript(t){return new ys(t)}bypassSecurityTrustUrl(t){return new bs(t)}bypassSecurityTrustResourceUrl(t){return new vs(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({factory:function(){return t=Kt(jt),new ap(t.get(Jc));var t},token:t,providedIn:"root"}),t})();const lp=ic(hc,"browser",[{provide:Il,useValue:"browser"},{provide:Al,useValue:function(){Vd.makeCurrent(),Bd.init()},multi:!0},{provide:Jc,useFactory:function(){return function(t){je=t}(document),document},deps:[]}]),cp=[[],{provide:qr,useValue:"root"},{provide:fs,useFactory:function(){return new fs},deps:[]},{provide:Hd,useClass:tp,multi:!0,deps:[Jc,ql,Il]},{provide:Hd,useClass:rp,multi:!0,deps:[Jc]},[],{provide:Gd,useClass:Gd,deps:[zd,Wd,xl]},{provide:da,useExisting:Gd},{provide:qd,useExisting:Wd},{provide:Wd,useClass:Wd,deps:[Jc]},{provide:Xl,useClass:Xl,deps:[ql]},{provide:zd,useClass:zd,deps:[Hd,ql]},[]];let hp=(()=>{class t{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(e){return{ngModule:t,providers:[{provide:xl,useValue:e.appId},{provide:Ld,useExisting:xl},jd]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(t,12))},providers:cp,imports:[Ph,dc]}),t})();"undefined"!=typeof window&&window;let up=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu]]}),t})();const dp="inline",pp=["row","column","row-reverse","column-reverse"];function fp(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}let mp=(()=>{class t extends class{constructor(){this.shouldCache=!0}sideEffect(t,e,n){}}{buildStyles(t){return function(t){let[e,n,s]=function(t){t=t?t.toLowerCase():"";let[e,n,s]=t.split(" ");return pp.find(t=>t===e)||(e=pp[0]),n===dp&&(n=s!==dp?s:"",s=dp),[e,fp(n),!!s]}(t);return function(t,e=null,n=!1){return{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":t,"flex-wrap":e||null}}(e,n,s)}(t)}}t.\u0275fac=function(n){return e(n||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"});const e=hs(t);return t})();const _p=["fxLayout","fxLayout.xs","fxLayout.sm","fxLayout.md","fxLayout.lg","fxLayout.xl","fxLayout.lt-sm","fxLayout.lt-md","fxLayout.lt-lg","fxLayout.lt-xl","fxLayout.gt-xs","fxLayout.gt-sm","fxLayout.gt-md","fxLayout.gt-lg"];let gp=(()=>{class t extends cd{constructor(t,e,n,s){super(t,n,e,s),this.DIRECTIVE_KEY="layout",this.styleCache=bp,this.init()}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Rd),mo(mp),mo(Dd))},t.\u0275dir=be({type:t,features:[Zo]}),t})(),yp=(()=>{class t extends gp{constructor(){super(...arguments),this.inputs=_p}}t.\u0275fac=function(n){return e(n||t)},t.\u0275dir=be({type:t,selectors:[["","fxLayout",""],["","fxLayout.xs",""],["","fxLayout.sm",""],["","fxLayout.md",""],["","fxLayout.lg",""],["","fxLayout.xl",""],["","fxLayout.lt-sm",""],["","fxLayout.lt-md",""],["","fxLayout.lt-lg",""],["","fxLayout.lt-xl",""],["","fxLayout.gt-xs",""],["","fxLayout.gt-sm",""],["","fxLayout.gt-md",""],["","fxLayout.gt-lg",""]],inputs:{fxLayout:"fxLayout","fxLayout.xs":"fxLayout.xs","fxLayout.sm":"fxLayout.sm","fxLayout.md":"fxLayout.md","fxLayout.lg":"fxLayout.lg","fxLayout.xl":"fxLayout.xl","fxLayout.lt-sm":"fxLayout.lt-sm","fxLayout.lt-md":"fxLayout.lt-md","fxLayout.lt-lg":"fxLayout.lt-lg","fxLayout.lt-xl":"fxLayout.lt-xl","fxLayout.gt-xs":"fxLayout.gt-xs","fxLayout.gt-sm":"fxLayout.gt-sm","fxLayout.gt-md":"fxLayout.gt-md","fxLayout.gt-lg":"fxLayout.gt-lg"},features:[Zo]});const e=hs(t);return t})();const bp=new Map;let vp=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu,qh]]}),t})(),wp=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Xu]]}),t})(),Cp=(()=>{class t{constructor(t,e){Dh(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}static withConfig(e,n=[]){return{ngModule:t,providers:e.serverLoaded?[{provide:nd,useValue:Object.assign(Object.assign({},ed),e)},{provide:id,useValue:n,multi:!0},{provide:sd,useValue:!0}]:[{provide:nd,useValue:Object.assign(Object.assign({},ed),e)},{provide:id,useValue:n,multi:!0}]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sd),Kt(Il))},imports:[[vp,up,wp],vp,up,wp]}),t})();function Ep(...t){if(1===t.length){const e=t[0];if(l(e))return Sp(e,null);if(c(e)&&Object.getPrototypeOf(e)===Object.prototype){const t=Object.keys(e);return Sp(t.map(t=>e[t]),t)}}if("function"==typeof t[t.length-1]){const e=t.pop();return Sp(t=1===t.length&&l(t[0])?t[0]:t,null).pipe(k(t=>e(...t)))}return Sp(t,null)}function Sp(t,e){return new y(n=>{const s=t.length;if(0===s)return void n.complete();const i=new Array(s);let r=0,o=0;for(let a=0;a<s;a++){const l=M(t[a]);let c=!1;n.add(l.subscribe({next:t=>{c||(c=!0,o++),i[a]=t},error:t=>n.error(t),complete:()=>{r++,r!==s&&c||(o===s&&n.next(e?e.reduce((t,e,n)=>(t[e]=i[n],t),{}):i),n.complete())}}))}})}const xp=new Lt("NgValueAccessor"),kp={provide:xp,useExisting:Et(()=>Tp),multi:!0};let Tp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.checked)}))("blur",(function(){return e.onTouched()}))},features:[oa([kp])]}),t})();const Ap={provide:xp,useExisting:Et(()=>Op),multi:!0},Ip=new Lt("CompositionEventMode");let Op=(()=>{class t{constructor(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=t=>{},this.onTouched=()=>{},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const t=Xc()?Xc().getUserAgent():"";return/android (\d+)/.test(t.toLowerCase())}())}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=t}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",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 t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha),mo(Ip,8))},t.\u0275dir=be({type:t,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,e){1&t&&ko("input",(function(t){return e._handleInput(t.target.value)}))("blur",(function(){return e.onTouched()}))("compositionstart",(function(){return e._compositionStart()}))("compositionend",(function(t){return e._compositionEnd(t.target.value)}))},features:[oa([Ap])]}),t})(),Pp=(()=>{class t{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}reset(t){this.control&&this.control.reset(t)}hasError(t,e){return!!this.control&&this.control.hasError(t,e)}getError(t,e){return this.control?this.control.getError(t,e):null}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),Rp=(()=>{class t extends Pp{get formDirective(){return null}get path(){return null}}return t.\u0275fac=function(e){return Dp(e||t)},t.\u0275dir=be({type:t,features:[Zo]}),t})();const Dp=hs(Rp);class Np extends Pp{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null,this._rawValidators=[],this._rawAsyncValidators=[]}get validator(){}get asyncValidator(){}}let Vp=(()=>{class t extends class{constructor(t){this._cd=t}get ngClassUntouched(){return!!this._cd.control&&this._cd.control.untouched}get ngClassTouched(){return!!this._cd.control&&this._cd.control.touched}get ngClassPristine(){return!!this._cd.control&&this._cd.control.pristine}get ngClassDirty(){return!!this._cd.control&&this._cd.control.dirty}get ngClassValid(){return!!this._cd.control&&this._cd.control.valid}get ngClassInvalid(){return!!this._cd.control&&this._cd.control.invalid}get ngClassPending(){return!!this._cd.control&&this._cd.control.pending}}{constructor(t){super(t)}}return t.\u0275fac=function(e){return new(e||t)(mo(Np,2))},t.\u0275dir=be({type:t,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(t,e){2&t&&Fo("ng-untouched",e.ngClassUntouched)("ng-touched",e.ngClassTouched)("ng-pristine",e.ngClassPristine)("ng-dirty",e.ngClassDirty)("ng-valid",e.ngClassValid)("ng-invalid",e.ngClassInvalid)("ng-pending",e.ngClassPending)},features:[Zo]}),t})();function Mp(t){return null==t||0===t.length}function Fp(t){return null!=t&&"number"==typeof t.length}const Lp=new Lt("NgValidators"),jp=new Lt("NgAsyncValidators"),Bp=/^(?=.{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 Hp{static min(t){return e=>{if(Mp(e.value)||Mp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}}static max(t){return e=>{if(Mp(e.value)||Mp(t))return null;const n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}}static required(t){return Mp(t.value)?{required:!0}:null}static requiredTrue(t){return!0===t.value?null:{required:!0}}static email(t){return Mp(t.value)||Bp.test(t.value)?null:{email:!0}}static minLength(t){return e=>Mp(e.value)||!Fp(e.value)?null:e.value.length<t?{minlength:{requiredLength:t,actualLength:e.value.length}}:null}static maxLength(t){return e=>Fp(e.value)&&e.value.length>t?{maxlength:{requiredLength:t,actualLength:e.value.length}}:null}static pattern(t){if(!t)return Hp.nullValidator;let e,n;return"string"==typeof t?(n="","^"!==t.charAt(0)&&(n+="^"),n+=t,"$"!==t.charAt(t.length-1)&&(n+="$"),e=new RegExp(n)):(n=t.toString(),e=t),t=>{if(Mp(t.value))return null;const s=t.value;return e.test(s)?null:{pattern:{requiredPattern:n,actualValue:s}}}}static nullValidator(t){return null}static compose(t){if(!t)return null;const e=t.filter(zp);return 0==e.length?null:function(t){return qp(Wp(t,e))}}static composeAsync(t){if(!t)return null;const e=t.filter(zp);return 0==e.length?null:function(t){return Ep(Wp(t,e).map($p)).pipe(k(qp))}}}function zp(t){return null!=t}function $p(t){const e=So(t)?M(t):t;return xo(e),e}function qp(t){let e={};return t.forEach(t=>{e=null!=t?Object.assign(Object.assign({},e),t):e}),0===Object.keys(e).length?null:e}function Wp(t,e){return e.map(e=>e(t))}function Up(t){return t.map(t=>function(t){return!t.validate}(t)?t:e=>t.validate(e))}const Qp={provide:xp,useExisting:Et(()=>Zp),multi:!0};let Zp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(t,e){1&t&&ko("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[oa([Qp])]}),t})();const Kp={provide:xp,useExisting:Et(()=>Yp),multi:!0};let Gp=(()=>{class t{constructor(){this._accessors=[]}add(t,e){this._accessors.push([t,e])}remove(t){for(let e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)}select(t){this._accessors.forEach(e=>{this._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})}_isSameGroup(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Yp=(()=>{class t{constructor(t,e,n,s){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=s,this.onChange=()=>{},this.onTouched=()=>{}}ngOnInit(){this._control=this._injector.get(Np),this._checkName(),this._registry.add(this._control,this)}ngOnDestroy(){this._registry.remove(this)}writeValue(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}registerOnChange(t){this._fn=t,this.onChange=()=>{t(this.value),this._registry.select(this)}}fireUncheck(t){this.writeValue(t)}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_checkName(){!this.name&&this.formControlName&&(this.name=this.formControlName)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha),mo(Gp),mo(io))},t.\u0275dir=be({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(){return e.onChange()}))("blur",(function(){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[oa([Kp])]}),t})();const Xp={provide:xp,useExisting:Et(()=>Jp),multi:!0};let Jp=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this.onChange=t=>{},this.onTouched=()=>{}}writeValue(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))}registerOnChange(t){this.onChange=e=>{t(""==e?null:parseFloat(e))}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},features:[oa([Xp])]}),t})();const tf={provide:xp,useExisting:Et(()=>ef),multi:!0};let ef=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){this.value=t;const e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);const n=function(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),`${t}: ${e}`.slice(0,50))}(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}registerOnChange(t){this.onChange=e=>{this.value=this._getOptionValue(e),t(this.value)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(){return(this._idCounter++).toString()}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e),t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[oa([tf])]}),t})();const nf={provide:xp,useExisting:Et(()=>sf),multi:!0};let sf=(()=>{class t{constructor(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=t=>{},this.onTouched=()=>{},this._compareWith=Object.is}set compareWith(t){this._compareWith=t}writeValue(t){let e;if(this.value=t,Array.isArray(t)){const n=t.map(t=>this._getOptionId(t));e=(t,e)=>{t._setSelected(n.indexOf(e.toString())>-1)}}else e=(t,e)=>{t._setSelected(!1)};this._optionMap.forEach(e)}registerOnChange(t){this.onChange=e=>{const n=[];if(void 0!==e.selectedOptions){const t=e.selectedOptions;for(let e=0;e<t.length;e++){const s=t.item(e),i=this._getOptionValue(s.value);n.push(i)}}else{const t=e.options;for(let e=0;e<t.length;e++){const s=t.item(e);if(s.selected){const t=this._getOptionValue(s.value);n.push(t)}}}this.value=n,t(n)}}registerOnTouched(t){this.onTouched=t}setDisabledState(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)}_registerOption(t){const e=(this._idCounter++).toString();return this._optionMap.set(e,t),e}_getOptionId(t){for(const e of Array.from(this._optionMap.keys()))if(this._compareWith(this._optionMap.get(e)._value,t))return e;return null}_getOptionValue(t){const e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t}}return t.\u0275fac=function(e){return new(e||t)(mo(fa),mo(ha))},t.\u0275dir=be({type:t,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(t,e){1&t&&ko("change",(function(t){return e.onChange(t.target)}))("blur",(function(){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[oa([nf])]}),t})();function rf(t,e){t.validator=Hp.compose([t.validator,e.validator]),t.asyncValidator=Hp.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(n=>{t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&of(t,e)})}(t,e),function(t,e){t.registerOnChange((t,n)=>{e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(()=>{t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&of(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(t=>{e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())}),e._rawAsyncValidators.forEach(e=>{e.registerOnValidatorChange&&e.registerOnValidatorChange(()=>t.updateValueAndValidity())})}function of(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function af(t,e){t.validator=Hp.compose([t.validator,e.validator]),t.asyncValidator=Hp.composeAsync([t.asyncValidator,e.asyncValidator])}function lf(t){return null!=t?Hp.compose(Up(t)):null}function cf(t){return null!=t?Hp.composeAsync(Up(t)):null}const hf=[Tp,Jp,Zp,ef,sf,Yp];function uf(t,e){t._syncPendingControls(),e.forEach(t=>{const e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function df(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}const pf="VALID",ff="INVALID",mf="PENDING",_f="DISABLED";function gf(t){return(wf(t)?t.validators:t)||null}function yf(t){return Array.isArray(t)?lf(t):t||null}function bf(t,e){return(wf(e)?e.asyncValidators:t)||null}function vf(t){return Array.isArray(t)?cf(t):t||null}function wf(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}class Cf{constructor(t,e){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=e,this._composedValidatorFn=yf(this._rawValidators),this._composedAsyncValidatorFn=vf(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn}set validator(t){this._rawValidators=this._composedValidatorFn=t}get asyncValidator(){return this._composedAsyncValidatorFn}set asyncValidator(t){this._rawAsyncValidators=this._composedAsyncValidatorFn=t}get parent(){return this._parent}get valid(){return this.status===pf}get invalid(){return this.status===ff}get pending(){return this.status==mf}get disabled(){return this.status===_f}get enabled(){return this.status!==_f}get dirty(){return!this.pristine}get untouched(){return!this.touched}get updateOn(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}setValidators(t){this._rawValidators=t,this._composedValidatorFn=yf(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=vf(t)}clearValidators(){this.validator=null}clearAsyncValidators(){this.asyncValidator=null}markAsTouched(t={}){this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)}markAllAsTouched(){this.markAsTouched({onlySelf:!0}),this._forEachChild(t=>t.markAllAsTouched())}markAsUntouched(t={}){this.touched=!1,this._pendingTouched=!1,this._forEachChild(t=>{t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}markAsDirty(t={}){this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)}markAsPristine(t={}){this.pristine=!0,this._pendingDirty=!1,this._forEachChild(t=>{t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=mf,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=_f,this.errors=null,this._forEachChild(e=>{e.disable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!0))}enable(t={}){const e=this._parentMarkedDirty(t.onlySelf);this.status=pf,this._forEachChild(e=>{e.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach(t=>t(!1))}_updateAncestors(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}setParent(t){this._parent=t}updateValueAndValidity(t={}){this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),this.status!==pf&&this.status!==mf||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)}_updateTreeValidity(t={emitEvent:!0}){this._forEachChild(e=>e._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?_f:pf}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=mf,this._hasOwnPendingAsyncValidator=!0;const e=$p(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(e=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(e,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,e={}){this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)}get(t){return function(t,e,n){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;let s=t;return e.forEach(t=>{s=s instanceof Sf?s.controls.hasOwnProperty(t)?s.controls[t]:null:s instanceof xf&&s.at(t)||null}),s}(this,t)}getError(t,e){const n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null}hasError(t,e){return!!this.getError(t,e)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new nl,this.statusChanges=new nl}_calculateStatus(){return this._allControlsDisabled()?_f:this.errors?ff:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(mf)?mf:this._anyControlsHaveStatus(ff)?ff:pf}_anyControlsHaveStatus(t){return this._anyControls(e=>e.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}_updateTouched(t={}){this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)}_isBoxedValue(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t}_registerOnCollectionChange(t){this._onCollectionChange=t}_setUpdateStrategy(t){wf(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}}class Ef extends Cf{constructor(t=null,e,n){super(gf(e),bf(n,e)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(e),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),this._initObservables()}setValue(t,e={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(t=>t(this.value,!1!==e.emitViewToModelChange)),this.updateValueAndValidity(e)}patchValue(t,e={}){this.setValue(t,e)}reset(t=null,e={}){this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_clearChangeFns(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=()=>{}}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_forEachChild(t){}_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(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t}}class Sf extends Cf{constructor(t,e,n){super(gf(e),bf(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}registerControl(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)}addControl(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}removeControl(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,e={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(n=>{this._throwIfControlMissing(n),this.controls[n].setValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){Object.keys(t).forEach(n=>{this.controls[n]&&this.controls[n].patchValue(t[n],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t={},e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this._reduceChildren({},(t,e,n)=>(t[n]=e instanceof Ef?e.value:e.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(t,e)=>!!e._syncPendingControls()||t);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error(`Cannot find form control with name: ${t}.`)}_forEachChild(t){Object.keys(this.controls).forEach(e=>t(this.controls[e],e))}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const e of Object.keys(this.controls)){const n=this.controls[e];if(this.contains(e)&&t(n))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,e,n)=>((e.enabled||this.disabled)&&(t[n]=e.value),t))}_reduceChildren(t,e){let n=t;return this._forEachChild((t,s)=>{n=e(n,t,s)}),n}_allControlsDisabled(){for(const t of Object.keys(this.controls))if(this.controls[t].enabled)return!1;return Object.keys(this.controls).length>0||this.disabled}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control with name: '${n}'.`)})}}class xf extends Cf{constructor(t,e,n){super(gf(e),bf(n,e)),this.controls=t,this._initObservables(),this._setUpdateStrategy(e),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!1})}at(t){return this.controls[t]}push(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()}insert(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()}removeAt(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity()}setControl(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,e={}){this._checkAllValuesPresent(t),t.forEach((t,n)=>{this._throwIfControlMissing(n),this.at(n).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}patchValue(t,e={}){t.forEach((t,n)=>{this.at(n)&&this.at(n).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)}reset(t=[],e={}){this._forEachChild((n,s)=>{n.reset(t[s],{onlySelf:!0,emitEvent:e.emitEvent})}),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)}getRawValue(){return this.controls.map(t=>t instanceof Ef?t.value:t.getRawValue())}clear(){this.controls.length<1||(this._forEachChild(t=>t._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity())}_syncPendingControls(){let t=this.controls.reduce((t,e)=>!!e._syncPendingControls()||t,!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t}_throwIfControlMissing(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)}_forEachChild(t){this.controls.forEach((e,n)=>{t(e,n)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(e=>e.enabled&&t(e))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((e,n)=>{if(void 0===t[n])throw new Error(`Must supply a value for form control at index: ${n}.`)})}_allControlsDisabled(){for(const t of this.controls)if(t.enabled)return!1;return this.controls.length>0||this.disabled}_registerControl(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)}}const kf={provide:Rp,useExisting:Et(()=>Af)},Tf=(()=>Promise.resolve(null))();let Af=(()=>{class t extends Rp{constructor(t,e){super(),this.submitted=!1,this._directives=[],this.ngSubmit=new nl,this.form=new Sf({},lf(t),cf(e))}ngAfterViewInit(){this._setUpdateStrategy()}get formDirective(){return this}get control(){return this.form}get path(){return[]}get controls(){return this.form.controls}addControl(t){Tf.then(()=>{const e=this._findContainer(t.path);t.control=e.registerControl(t.name,t.control),rf(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),this._directives.push(t)})}getControl(t){return this.form.get(t.path)}removeControl(t){Tf.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name),df(this._directives,t)})}addFormGroup(t){Tf.then(()=>{const e=this._findContainer(t.path),n=new Sf({});af(n,t),e.registerControl(t.name,n),n.updateValueAndValidity({emitEvent:!1})})}removeFormGroup(t){Tf.then(()=>{const e=this._findContainer(t.path);e&&e.removeControl(t.name)})}getFormGroup(t){return this.form.get(t.path)}updateModel(t,e){Tf.then(()=>{this.form.get(t.path).setValue(e)})}setValue(t){this.control.setValue(t)}onSubmit(t){return this.submitted=!0,uf(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 t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10))},t.\u0275dir=be({type:t,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&ko("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oa([kf]),Zo]}),t})();const If=new Lt("NgModelWithFormControlWarning"),Of={provide:Np,useExisting:Et(()=>Pf)};let Pf=(()=>{class t extends Np{constructor(t,e,n,s){super(),this._ngModelWarningConfig=s,this.update=new nl,this._ngModelWarningSent=!1,this._rawValidators=t||[],this._rawAsyncValidators=e||[],this.valueAccessor=function(t,e){if(!e)return null;Array.isArray(e);let n=void 0,s=void 0,i=void 0;return e.forEach(t=>{var e;t.constructor===Op?n=t:(e=t,hf.some(t=>e.constructor===t)?s=t:i=t)}),i||s||n||null}(0,n)}set isDisabled(t){}ngOnChanges(e){var n,s;this._isControlChanged(e)&&(rf(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),function(t,e){if(!t.hasOwnProperty("model"))return!1;const n=t.model;return!!n.isFirstChange()||!Object.is(e,n.currentValue)}(e,this.viewModel)&&(n=t,this,s=this._ngModelWarningConfig,ks()&&"never"!==s&&((null!==s&&"once"!==s||n._ngModelWarningSentOnce)&&("always"!==s||this._ngModelWarningSent)||(n._ngModelWarningSentOnce=!0,this._ngModelWarningSent=!0)),this.form.setValue(this.model),this.viewModel=this.model)}get path(){return[]}get validator(){return lf(this._rawValidators)}get asyncValidator(){return cf(this._rawAsyncValidators)}get control(){return this.form}viewToModelUpdate(t){this.viewModel=t,this.update.emit(t)}_isControlChanged(t){return t.hasOwnProperty("form")}}return t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10),mo(xp,10),mo(If,8))},t.\u0275dir=be({type:t,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[oa([Of]),Zo,Ne]}),t._ngModelWarningSentOnce=!1,t})();const Rf={provide:Rp,useExisting:Et(()=>Df)};let Df=(()=>{class t extends Rp{constructor(t,e){super(),this._validators=t,this._asyncValidators=e,this.submitted=!1,this.directives=[],this.form=null,this.ngSubmit=new nl}ngOnChanges(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())}get formDirective(){return this}get control(){return this.form}get path(){return[]}addControl(t){const e=this.form.get(t.path);return rf(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e}getControl(t){return this.form.get(t.path)}removeControl(t){df(this.directives,t)}addFormGroup(t){const e=this.form.get(t.path);af(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormGroup(t){}getFormGroup(t){return this.form.get(t.path)}addFormArray(t){const e=this.form.get(t.path);af(e,t),e.updateValueAndValidity({emitEvent:!1})}removeFormArray(t){}getFormArray(t){return this.form.get(t.path)}updateModel(t,e){this.form.get(t.path).setValue(e)}onSubmit(t){return this.submitted=!0,uf(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 e=this.form.get(t.path);t.control!==e&&(function(t,e){const n=()=>{};e.valueAccessor.registerOnChange(n),e.valueAccessor.registerOnTouched(n),e._rawValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(t=>{t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(t.control,t),e&&rf(e,t),t.control=e)}),this.form._updateTreeValidity({emitEvent:!1})}_updateRegistrations(){this.form._registerOnCollectionChange(()=>this._updateDomValue()),this._oldForm&&this._oldForm._registerOnCollectionChange(()=>{}),this._oldForm=this.form}_updateValidators(){const t=lf(this._validators);this.form.validator=Hp.compose([this.form.validator,t]);const e=cf(this._asyncValidators);this.form.asyncValidator=Hp.composeAsync([this.form.asyncValidator,e])}_checkFormPresent(){}}return t.\u0275fac=function(e){return new(e||t)(mo(Lp,10),mo(jp,10))},t.\u0275dir=be({type:t,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&ko("submit",(function(t){return e.onSubmit(t)}))("reset",(function(){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[oa([Rf]),Zo,Ne]}),t})(),Nf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})(),Vf=(()=>{class t{group(t,e=null){const n=this._reduceControls(t);let s=null,i=null,r=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(s=null!=e.validators?e.validators:null,i=null!=e.asyncValidators?e.asyncValidators:null,r=null!=e.updateOn?e.updateOn:void 0):(s=null!=e.validator?e.validator:null,i=null!=e.asyncValidator?e.asyncValidator:null)),new Sf(n,{asyncValidators:i,updateOn:r,validators:s})}control(t,e,n){return new Ef(t,e,n)}array(t,e,n){const s=t.map(t=>this._createControl(t));return new xf(s,e,n)}_reduceControls(t){const e={};return Object.keys(t).forEach(n=>{e[n]=this._createControl(t[n])}),e}_createControl(t){return t instanceof Ef||t instanceof Sf||t instanceof xf?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Mf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Gp],imports:[Nf]}),t})(),Ff=(()=>{class t{static withConfig(e){return{ngModule:t,providers:[{provide:If,useValue:e.warnOnNgModelWithFormControl}]}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Vf,Gp],imports:[Nf]}),t})(),Lf=(()=>{class t{create(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})(),jf=(()=>{class t{constructor(t){this._mutationObserverFactory=t,this._observedElements=new Map}ngOnDestroy(){this._observedElements.forEach((t,e)=>this._cleanupObserver(e))}observe(t){const e=_c(t);return new y(t=>{const n=this._observeElement(e).subscribe(t);return()=>{n.unsubscribe(),this._unobserveElement(e)}})}_observeElement(t){if(this._observedElements.has(t))this._observedElements.get(t).count++;else{const e=new E,n=this._mutationObserverFactory.create(t=>e.next(t));n&&n.observe(t,{characterData:!0,childList:!0,subtree:!0}),this._observedElements.set(t,{observer:n,stream:e,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:e,stream:n}=this._observedElements.get(t);e&&e.disconnect(),n.complete(),this._observedElements.delete(t)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Lf))},t.\u0275prov=ht({factory:function(){return new t(Kt(Lf))},token:t,providedIn:"root"}),t})(),Bf=(()=>{class t{constructor(t,e,n){this._contentObserver=t,this._elementRef=e,this._ngZone=n,this.event=new nl,this._disabled=!1,this._currentSubscription=null}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t),this._disabled?this._unsubscribe():this._subscribe()}get debounce(){return this._debounce}set debounce(t){this._debounce=function(t,e=0){return function(t){return!isNaN(parseFloat(t))&&!isNaN(Number(t))}(t)?Number(t):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(zu(this.debounce)):t).subscribe(this.event)})}_unsubscribe(){this._currentSubscription&&this._currentSubscription.unsubscribe()}}return t.\u0275fac=function(e){return new(e||t)(mo(jf),mo(ha),mo(ql))},t.\u0275dir=be({type:t,selectors:[["","cdkObserveContent",""]],inputs:{disabled:["cdkObserveContentDisabled","disabled"],debounce:"debounce"},outputs:{event:"cdkObserveContent"},exportAs:["cdkObserveContent"]}),t})(),Hf=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Lf]}),t})();function zf(t,e){return(t.getAttribute(e)||"").match(/\S+/g)||[]}const $f="cdk-describedby-message-container",qf="cdk-describedby-host";let Wf=0;const Uf=new Map;let Qf=null,Zf=(()=>{class t{constructor(t,e){this._platform=e,this._document=t}describe(t,e){this._canBeDescribed(t,e)&&("string"!=typeof e?(this._setMessageId(e),Uf.set(e,{messageElement:e,referenceCount:0})):Uf.has(e)||this._createMessageElement(e),this._isElementDescribedByMessage(t,e)||this._addMessageReference(t,e))}removeDescription(t,e){if(e&&this._isElementNode(t)){if(this._isElementDescribedByMessage(t,e)&&this._removeMessageReference(t,e),"string"==typeof e){const t=Uf.get(e);t&&0===t.referenceCount&&this._deleteMessageElement(e)}Qf&&0===Qf.childNodes.length&&this._deleteMessagesContainer()}}ngOnDestroy(){const t=this._document.querySelectorAll("[cdk-describedby-host]");for(let e=0;e<t.length;e++)this._removeCdkDescribedByReferenceIds(t[e]),t[e].removeAttribute(qf);Qf&&this._deleteMessagesContainer(),Uf.clear()}_createMessageElement(t){const e=this._document.createElement("div");this._setMessageId(e),e.textContent=t,this._createMessagesContainer(),Qf.appendChild(e),Uf.set(t,{messageElement:e,referenceCount:0})}_setMessageId(t){t.id||(t.id="cdk-describedby-message-"+Wf++)}_deleteMessageElement(t){const e=Uf.get(t),n=e&&e.messageElement;Qf&&n&&Qf.removeChild(n),Uf.delete(t)}_createMessagesContainer(){if(!Qf){const t=!this._platform||!this._platform.EDGE&&!this._platform.TRIDENT,e=this._document.getElementById($f);e&&e.parentNode&&e.parentNode.removeChild(e),Qf=this._document.createElement("div"),Qf.id=$f,Qf.classList.add("cdk-visually-hidden"),Qf.setAttribute("aria-hidden",t+""),this._document.body.appendChild(Qf)}}_deleteMessagesContainer(){Qf&&Qf.parentNode&&(Qf.parentNode.removeChild(Qf),Qf=null)}_removeCdkDescribedByReferenceIds(t){const e=zf(t,"aria-describedby").filter(t=>0!=t.indexOf("cdk-describedby-message"));t.setAttribute("aria-describedby",e.join(" "))}_addMessageReference(t,e){const n=Uf.get(e);!function(t,e,n){const s=zf(t,e);s.some(t=>t.trim()==n.trim())||(s.push(n.trim()),t.setAttribute(e,s.join(" ")))}(t,"aria-describedby",n.messageElement.id),t.setAttribute(qf,""),n.referenceCount++}_removeMessageReference(t,e){const n=Uf.get(e);n.referenceCount--,function(t,e,n){const s=zf(t,e).filter(t=>t!=n.trim());s.length?t.setAttribute(e,s.join(" ")):t.removeAttribute(e)}(t,"aria-describedby",n.messageElement.id),t.removeAttribute(qf)}_isElementDescribedByMessage(t,e){const n=zf(t,"aria-describedby"),s=Uf.get(e),i=s&&s.messageElement.id;return!!i&&-1!=n.indexOf(i)}_canBeDescribed(t,e){if(!this._isElementNode(t))return!1;if(e&&"object"==typeof e)return!0;const n=null==e?"":(""+e).trim(),s=t.getAttribute("aria-label");return!(!n||s&&s.trim()===n)}_isElementNode(t){return t.nodeType===this._document.ELEMENT_NODE}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Jc),Kt(Vh))},token:t,providedIn:"root"}),t})();function Kf(t){return 0===t.buttons}"undefined"!=typeof Element&&Element;const Gf=new Lt("cdk-focus-monitor-default-options"),Yf=Hh({passive:!0,capture:!0});let Xf=(()=>{class t{constructor(t,e,n,s){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._monitoredElementCount=0,this._rootNodeFocusListenerCount=new Map,this._documentKeydownListener=()=>{this._lastTouchTarget=null,this._setOriginForCurrentEventQueue("keyboard")},this._documentMousedownListener=t=>{if(!this._lastTouchTarget){const e=Kf(t)?"keyboard":"mouse";this._setOriginForCurrentEventQueue(e)}},this._documentTouchstartListener=t=>{null!=this._touchTimeoutId&&clearTimeout(this._touchTimeoutId),this._lastTouchTarget=Jf(t),this._touchTimeoutId=setTimeout(()=>this._lastTouchTarget=null,650)},this._windowFocusListener=()=>{this._windowFocused=!0,this._windowFocusTimeoutId=setTimeout(()=>this._windowFocused=!1)},this._rootNodeFocusAndBlurListener=t=>{const e=Jf(t),n="focus"===t.type?this._onFocus:this._onBlur;for(let s=e;s;s=s.parentElement)n.call(this,t,s)},this._document=n,this._detectionMode=(null==s?void 0:s.detectionMode)||0}monitor(t,e=!1){if(!this._platform.isBrowser)return gc(null);const n=_c(t),s=function(t){if(function(){if(null==Bh){const t="undefined"!=typeof document?document.head:null;Bh=!(!t||!t.createShadowRoot&&!t.attachShadow)}return Bh}()){const e=t.getRootNode?t.getRootNode():null;if("undefined"!=typeof ShadowRoot&&ShadowRoot&&e instanceof ShadowRoot)return e}return null}(n)||this._getDocument(),i=this._elementInfo.get(n);if(i)return e&&(i.checkChildren=!0),i.subject;const r={checkChildren:e,subject:new E,rootNode:s};return this._elementInfo.set(n,r),this._registerGlobalListeners(r),r.subject}stopMonitoring(t){const e=_c(t),n=this._elementInfo.get(e);n&&(n.subject.complete(),this._setClasses(e),this._elementInfo.delete(e),this._removeGlobalListeners(n))}focusVia(t,e,n){const s=_c(t);this._setOriginForCurrentEventQueue(e),"function"==typeof s.focus&&s.focus(n)}ngOnDestroy(){this._elementInfo.forEach((t,e)=>this.stopMonitoring(e))}_getDocument(){return this._document||document}_getWindow(){return this._getDocument().defaultView||window}_toggleClass(t,e,n){n?t.classList.add(e):t.classList.remove(e)}_getFocusOrigin(t){return this._origin?this._origin:this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"}_setClasses(t,e){this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e)}_setOriginForCurrentEventQueue(t){this._ngZone.runOutsideAngular(()=>{this._origin=t,0===this._detectionMode&&(this._originTimeoutId=setTimeout(()=>this._origin=null,1))})}_wasCausedByTouch(t){const e=Jf(t);return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))}_onFocus(t,e){const n=this._elementInfo.get(e);if(!n||!n.checkChildren&&e!==Jf(t))return;const s=this._getFocusOrigin(t);this._setClasses(e,s),this._emitOrigin(n.subject,s),this._lastFocusOrigin=s}_onBlur(t,e){const n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))}_emitOrigin(t,e){this._ngZone.run(()=>t.next(e))}_registerGlobalListeners(t){if(!this._platform.isBrowser)return;const e=t.rootNode,n=this._rootNodeFocusListenerCount.get(e)||0;n||this._ngZone.runOutsideAngular(()=>{e.addEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),e.addEventListener("blur",this._rootNodeFocusAndBlurListener,Yf)}),this._rootNodeFocusListenerCount.set(e,n+1),1==++this._monitoredElementCount&&this._ngZone.runOutsideAngular(()=>{const t=this._getDocument(),e=this._getWindow();t.addEventListener("keydown",this._documentKeydownListener,Yf),t.addEventListener("mousedown",this._documentMousedownListener,Yf),t.addEventListener("touchstart",this._documentTouchstartListener,Yf),e.addEventListener("focus",this._windowFocusListener)})}_removeGlobalListeners(t){const e=t.rootNode;if(this._rootNodeFocusListenerCount.has(e)){const t=this._rootNodeFocusListenerCount.get(e);t>1?this._rootNodeFocusListenerCount.set(e,t-1):(e.removeEventListener("focus",this._rootNodeFocusAndBlurListener,Yf),e.removeEventListener("blur",this._rootNodeFocusAndBlurListener,Yf),this._rootNodeFocusListenerCount.delete(e))}if(!--this._monitoredElementCount){const t=this._getDocument(),e=this._getWindow();t.removeEventListener("keydown",this._documentKeydownListener,Yf),t.removeEventListener("mousedown",this._documentMousedownListener,Yf),t.removeEventListener("touchstart",this._documentTouchstartListener,Yf),e.removeEventListener("focus",this._windowFocusListener),clearTimeout(this._windowFocusTimeoutId),clearTimeout(this._touchTimeoutId),clearTimeout(this._originTimeoutId)}}}return t.\u0275fac=function(e){return new(e||t)(Kt(ql),Kt(Vh),Kt(Jc,8),Kt(Gf,8))},t.\u0275prov=ht({factory:function(){return new t(Kt(ql),Kt(Vh),Kt(Jc,8),Kt(Gf,8))},token:t,providedIn:"root"}),t})();function Jf(t){return t.composedPath?t.composedPath()[0]:t.target}const tm="cdk-high-contrast-black-on-white",em="cdk-high-contrast-white-on-black",nm="cdk-high-contrast-active";let sm=(()=>{class t{constructor(t,e){this._platform=t,this._document=e}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 e=this._document.defaultView||window,n=e&&e.getComputedStyle?e.getComputedStyle(t):null,s=(n&&n.backgroundColor||"").replace(/ /g,"");switch(this._document.body.removeChild(t),s){case"rgb(0,0,0)":return 2;case"rgb(255,255,255)":return 1}return 0}_applyBodyHighContrastModeCssClasses(){if(this._platform.isBrowser&&this._document.body){const t=this._document.body.classList;t.remove(nm),t.remove(tm),t.remove(em);const e=this.getHighContrastMode();1===e?(t.add(nm),t.add(tm)):2===e&&(t.add(nm),t.add(em))}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(Jc))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(Jc))},token:t,providedIn:"root"}),t})(),im=(()=>{class t{constructor(t){t._applyBodyHighContrastModeCssClasses()}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sm))},imports:[[Mh,Hf]]}),t})();const rm=new ga("10.2.0");class om{}const am="*";function lm(t,e){return{type:7,name:t,definitions:e,options:{}}}function cm(t,e=null){return{type:4,styles:e,timings:t}}function hm(t,e=null){return{type:2,steps:t,options:e}}function um(t){return{type:6,styles:t,offset:null}}function dm(t,e,n){return{type:0,name:t,styles:e,options:n}}function pm(t){return{type:5,steps:t}}function fm(t,e,n=null){return{type:1,expr:t,animation:e,options:n}}function mm(t){Promise.resolve(null).then(t)}class _m{constructor(t=0,e=0){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+e}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}init(){}play(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0}triggerMicrotask(){mm(()=>this._onFinish())}_onStart(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}pause(){}restart(){}finish(){this._onFinish()}destroy(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){}setPosition(t){}getPosition(){return 0}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class gm{constructor(t){this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;let e=0,n=0,s=0;const i=this.players.length;0==i?mm(()=>this._onFinish()):this.players.forEach(t=>{t.onDone(()=>{++e==i&&this._onFinish()}),t.onDestroy(()=>{++n==i&&this._onDestroy()}),t.onStart(()=>{++s==i&&this._onStart()})}),this.totalTime=this.players.reduce((t,e)=>Math.max(t,e.totalTime),0)}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this.players.forEach(t=>t.init())}onStart(t){this._onStartFns.push(t)}_onStart(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(t=>t()),this._onStartFns=[])}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}hasStarted(){return this._started}play(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(t=>t.play())}pause(){this.players.forEach(t=>t.pause())}restart(){this.players.forEach(t=>t.restart())}finish(){this._onFinish(),this.players.forEach(t=>t.finish())}destroy(){this._onDestroy()}_onDestroy(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(t=>t.destroy()),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}reset(){this.players.forEach(t=>t.reset()),this._destroyed=!1,this._finished=!1,this._started=!1}setPosition(t){const e=t*this.totalTime;this.players.forEach(t=>{const n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})}getPosition(){let t=0;return this.players.forEach(e=>{const n=e.getPosition();t=Math.min(n,t)}),t}beforeDestroy(){this.players.forEach(t=>{t.beforeDestroy&&t.beforeDestroy()})}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}function ym(){return"undefined"!=typeof process&&"[object process]"==={}.toString.call(process)}function bm(t){switch(t.length){case 0:return new _m;case 1:return t[0];default:return new gm(t)}}function vm(t,e,n,s,i={},r={}){const o=[],a=[];let l=-1,c=null;if(s.forEach(t=>{const n=t.offset,s=n==l,h=s&&c||{};Object.keys(t).forEach(n=>{let s=n,a=t[n];if("offset"!==n)switch(s=e.normalizePropertyName(s,o),a){case"!":a=i[n];break;case am:a=r[n];break;default:a=e.normalizeStyleValue(n,s,a,o)}h[s]=a}),s||a.push(h),c=h,l=n}),o.length){const t="\n - ";throw new Error(`Unable to animate due to the following errors:${t}${o.join(t)}`)}return a}function wm(t,e,n,s){switch(e){case"start":t.onStart(()=>s(n&&Cm(n,"start",t)));break;case"done":t.onDone(()=>s(n&&Cm(n,"done",t)));break;case"destroy":t.onDestroy(()=>s(n&&Cm(n,"destroy",t)))}}function Cm(t,e,n){const s=n.totalTime,i=Em(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,null==s?t.totalTime:s,!!n.disabled),r=t._data;return null!=r&&(i._data=r),i}function Em(t,e,n,s,i="",r=0,o){return{element:t,triggerName:e,fromState:n,toState:s,phaseName:i,totalTime:r,disabled:!!o}}function Sm(t,e,n){let s;return t instanceof Map?(s=t.get(e),s||t.set(e,s=n)):(s=t[e],s||(s=t[e]=n)),s}function xm(t){const e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}let km=(t,e)=>!1,Tm=(t,e)=>!1,Am=(t,e,n)=>[];const Im=ym();(Im||"undefined"!=typeof Element)&&(km=(t,e)=>t.contains(e),Tm=(()=>{if(Im||Element.prototype.matches)return(t,e)=>t.matches(e);{const t=Element.prototype,e=t.matchesSelector||t.mozMatchesSelector||t.msMatchesSelector||t.oMatchesSelector||t.webkitMatchesSelector;return e?(t,n)=>e.apply(t,[n]):Tm}})(),Am=(t,e,n)=>{let s=[];if(n)s.push(...t.querySelectorAll(e));else{const n=t.querySelector(e);n&&s.push(n)}return s});let Om=null,Pm=!1;function Rm(t){Om||(Om=("undefined"!=typeof document?document.body:null)||{},Pm=!!Om.style&&"WebkitAppearance"in Om.style);let e=!0;return Om.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&(e=t in Om.style,!e&&Pm)&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Om.style),e}const Dm=Tm,Nm=km,Vm=Am;function Mm(t){const e={};return Object.keys(t).forEach(n=>{const s=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[s]=t[n]}),e}let Fm=(()=>{class t{validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return n||""}animate(t,e,n,s,i,r=[],o){return new _m(n,s)}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),Lm=(()=>{class t{}return t.NOOP=new Fm,t})();const jm="ng-enter",Bm="ng-leave",Hm="ng-trigger",zm=".ng-trigger",$m="ng-animating",qm=".ng-animating";function Wm(t){if("number"==typeof t)return t;const e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Um(parseFloat(e[1]),e[2])}function Um(t,e){switch(e){case"s":return 1e3*t;default:return t}}function Qm(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){let s,i=0,r="";if("string"==typeof t){const n=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===n)return e.push(`The provided timing value "${t}" is invalid.`),{duration:0,delay:0,easing:""};s=Um(parseFloat(n[1]),n[2]);const o=n[3];null!=o&&(i=Um(parseFloat(o),n[4]));const a=n[5];a&&(r=a)}else s=t;if(!n){let n=!1,r=e.length;s<0&&(e.push("Duration values below 0 are not allowed for this animation step."),n=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),n=!0),n&&e.splice(r,0,`The provided timing value "${t}" is invalid.`)}return{duration:s,delay:i,easing:r}}(t,e,n)}function Zm(t,e={}){return Object.keys(t).forEach(n=>{e[n]=t[n]}),e}function Km(t,e,n={}){if(e)for(let s in t)n[s]=t[s];else Zm(t,n);return n}function Gm(t,e,n){return n?e+":"+n+";":""}function Ym(t){let e="";for(let n=0;n<t.style.length;n++){const s=t.style.item(n);e+=Gm(0,s,t.style.getPropertyValue(s))}for(const n in t.style)t.style.hasOwnProperty(n)&&!n.startsWith("_")&&(e+=Gm(0,n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[n]));t.setAttribute("style",e)}function Xm(t,e,n){t.style&&(Object.keys(e).forEach(s=>{const i=o_(s);n&&!n.hasOwnProperty(s)&&(n[s]=t.style[i]),t.style[i]=e[s]}),ym()&&Ym(t))}function Jm(t,e){t.style&&(Object.keys(e).forEach(e=>{const n=o_(e);t.style[n]=""}),ym()&&Ym(t))}function t_(t){return Array.isArray(t)?1==t.length?t[0]:hm(t):t}const e_=new RegExp("{{\\s*(.+?)\\s*}}","g");function n_(t){let e=[];if("string"==typeof t){let n;for(;n=e_.exec(t);)e.push(n[1]);e_.lastIndex=0}return e}function s_(t,e,n){const s=t.toString(),i=s.replace(e_,(t,s)=>{let i=e[s];return e.hasOwnProperty(s)||(n.push("Please provide a value for the animation param "+s),i=""),i.toString()});return i==s?t:i}function i_(t){const e=[];let n=t.next();for(;!n.done;)e.push(n.value),n=t.next();return e}const r_=/-+([a-z0-9])/g;function o_(t){return t.replace(r_,(...t)=>t[1].toUpperCase())}function a_(t,e){return 0===t||0===e}function l_(t,e,n){const s=Object.keys(n);if(s.length&&e.length){let r=e[0],o=[];if(s.forEach(t=>{r.hasOwnProperty(t)||o.push(t),r[t]=n[t]}),o.length)for(var i=1;i<e.length;i++){let n=e[i];o.forEach((function(e){n[e]=h_(t,e)}))}}return e}function c_(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function h_(t,e){return window.getComputedStyle(t)[e]}const u_="*";function d_(t,e){const n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(t=>function(t,e,n){if(":"==t[0]){const s=function(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return(t,e)=>parseFloat(e)>parseFloat(t);case":decrement":return(t,e)=>parseFloat(e)<parseFloat(t);default:return e.push(`The transition alias value "${t}" is not supported`),"* => *"}}(t,n);if("function"==typeof s)return void e.push(s);t=s}const s=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==s||s.length<4)return n.push(`The provided transition expression "${t}" is not supported`),e;const i=s[1],r=s[2],o=s[3];e.push(m_(i,o)),"<"!=r[0]||i==u_&&o==u_||e.push(m_(o,i))}(t,n,e)):n.push(t),n}const p_=new Set(["true","1"]),f_=new Set(["false","0"]);function m_(t,e){const n=p_.has(t)||f_.has(t),s=p_.has(e)||f_.has(e);return(i,r)=>{let o=t==u_||t==i,a=e==u_||e==r;return!o&&n&&"boolean"==typeof i&&(o=i?p_.has(t):f_.has(t)),!a&&s&&"boolean"==typeof r&&(a=r?p_.has(e):f_.has(e)),o&&a}}const __=new RegExp("s*:selfs*,?","g");function g_(t,e,n){return new y_(t).build(e,n)}class y_{constructor(t){this._driver=t}build(t,e){const n=new b_(e);return this._resetContextStyleTimingState(n),c_(this,t_(t),n)}_resetContextStyleTimingState(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0}visitTrigger(t,e){let n=e.queryCount=0,s=e.depCount=0;const i=[],r=[];return"@"==t.name.charAt(0)&&e.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(t=>{if(this._resetContextStyleTimingState(e),0==t.type){const n=t,s=n.name;s.toString().split(/\s*,\s*/).forEach(t=>{n.name=t,i.push(this.visitState(n,e))}),n.name=s}else if(1==t.type){const i=this.visitTransition(t,e);n+=i.queryCount,s+=i.depCount,r.push(i)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:i,transitions:r,queryCount:n,depCount:s,options:null}}visitState(t,e){const n=this.visitStyle(t.styles,e),s=t.options&&t.options.params||null;if(n.containsDynamicStyles){const i=new Set,r=s||{};if(n.styles.forEach(t=>{if(v_(t)){const e=t;Object.keys(e).forEach(t=>{n_(e[t]).forEach(t=>{r.hasOwnProperty(t)||i.add(t)})})}}),i.size){const n=i_(i.values());e.errors.push(`state("${t.name}", ...) must define default values for all the following style substitutions: ${n.join(", ")}`)}}return{type:0,name:t.name,style:n,options:s?{params:s}:null}}visitTransition(t,e){e.queryCount=0,e.depCount=0;const n=c_(this,t_(t.animation),e);return{type:1,matchers:d_(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:w_(t.options)}}visitSequence(t,e){return{type:2,steps:t.steps.map(t=>c_(this,t,e)),options:w_(t.options)}}visitGroup(t,e){const n=e.currentTime;let s=0;const i=t.steps.map(t=>{e.currentTime=n;const i=c_(this,t,e);return s=Math.max(s,e.currentTime),i});return e.currentTime=s,{type:3,steps:i,options:w_(t.options)}}visitAnimate(t,e){const n=function(t,e){let n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return C_(Qm(t,e).duration,0,"");const s=t;if(s.split(/\s+/).some(t=>"{"==t.charAt(0)&&"{"==t.charAt(1))){const t=C_(0,0,"");return t.dynamic=!0,t.strValue=s,t}return n=n||Qm(s,e),C_(n.duration,n.delay,n.easing)}(t.timings,e.errors);let s;e.currentAnimateTimings=n;let i=t.styles?t.styles:um({});if(5==i.type)s=this.visitKeyframes(i,e);else{let i=t.styles,r=!1;if(!i){r=!0;const t={};n.easing&&(t.easing=n.easing),i=um(t)}e.currentTime+=n.duration+n.delay;const o=this.visitStyle(i,e);o.isEmptyStep=r,s=o}return e.currentAnimateTimings=null,{type:4,timings:n,style:s,options:null}}visitStyle(t,e){const n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n}_makeStyleAst(t,e){const n=[];Array.isArray(t.styles)?t.styles.forEach(t=>{"string"==typeof t?t==am?n.push(t):e.errors.push(`The provided style string value ${t} is not allowed.`):n.push(t)}):n.push(t.styles);let s=!1,i=null;return n.forEach(t=>{if(v_(t)){const e=t,n=e.easing;if(n&&(i=n,delete e.easing),!s)for(let t in e)if(e[t].toString().indexOf("{{")>=0){s=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:s,options:null}}_validateStyleAst(t,e){const n=e.currentAnimateTimings;let s=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(t=>{"string"!=typeof t&&Object.keys(t).forEach(n=>{if(!this._driver.validateStyleProperty(n))return void e.errors.push(`The provided animation property "${n}" is not a supported CSS property for animations`);const r=e.collectedStyles[e.currentQuerySelector],o=r[n];let a=!0;o&&(i!=s&&i>=o.startTime&&s<=o.endTime&&(e.errors.push(`The CSS property "${n}" that exists between the times of "${o.startTime}ms" and "${o.endTime}ms" is also being animated in a parallel animation between the times of "${i}ms" and "${s}ms"`),a=!1),i=o.startTime),a&&(r[n]={startTime:i,endTime:s}),e.options&&function(t,e,n){const s=e.params||{},i=n_(t);i.length&&i.forEach(t=>{s.hasOwnProperty(t)||n.push(`Unable to resolve the local animation param ${t} in the given list of values`)})}(t[n],e.options,e.errors)})})}visitKeyframes(t,e){const n={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),n;let s=0;const i=[];let r=!1,o=!1,a=0;const l=t.steps.map(t=>{const n=this._makeStyleAst(t,e);let l=null!=n.offset?n.offset:function(t){if("string"==typeof t)return null;let e=null;if(Array.isArray(t))t.forEach(t=>{if(v_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}});else if(v_(t)&&t.hasOwnProperty("offset")){const n=t;e=parseFloat(n.offset),delete n.offset}return e}(n.styles),c=0;return null!=l&&(s++,c=n.offset=l),o=o||c<0||c>1,r=r||c<a,a=c,i.push(c),n});o&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&e.errors.push("Please ensure that all keyframe offsets are in order");const c=t.steps.length;let h=0;s>0&&s<c?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==s&&(h=1/(c-1));const u=c-1,d=e.currentTime,p=e.currentAnimateTimings,f=p.duration;return l.forEach((t,s)=>{const r=h>0?s==u?1:h*s:i[s],o=r*f;e.currentTime=d+p.delay+o,p.duration=o,this._validateStyleAst(t,e),t.offset=r,n.styles.push(t)}),n}visitReference(t,e){return{type:8,animation:c_(this,t_(t.animation),e),options:w_(t.options)}}visitAnimateChild(t,e){return e.depCount++,{type:9,options:w_(t.options)}}visitAnimateRef(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:w_(t.options)}}visitQuery(t,e){const n=e.currentQuerySelector,s=t.options||{};e.queryCount++,e.currentQuery=t;const[i,r]=function(t){const e=!!t.split(/\s*,\s*/).find(t=>":self"==t);return e&&(t=t.replace(__,"")),[t=t.replace(/@\*/g,zm).replace(/@\w+/g,t=>".ng-trigger-"+t.substr(1)).replace(/:animating/g,qm),e]}(t.selector);e.currentQuerySelector=n.length?n+" "+i:i,Sm(e.collectedStyles,e.currentQuerySelector,{});const o=c_(this,t_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:i,limit:s.limit||0,optional:!!s.optional,includeSelf:r,animation:o,originalSelector:t.selector,options:w_(t.options)}}visitStagger(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");const n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Qm(t.timings,e.errors,!0);return{type:12,animation:c_(this,t_(t.animation),e),timings:n,options:null}}}class b_{constructor(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}function v_(t){return!Array.isArray(t)&&"object"==typeof t}function w_(t){var e;return t?(t=Zm(t)).params&&(t.params=(e=t.params)?Zm(e):null):t={},t}function C_(t,e,n){return{duration:t,delay:e,easing:n}}function E_(t,e,n,s,i,r,o=null,a=!1){return{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:s,duration:i,delay:r,totalTime:i+r,easing:o,subTimeline:a}}class S_{constructor(){this._map=new Map}consume(t){let e=this._map.get(t);return e?this._map.delete(t):e=[],e}append(t,e){let n=this._map.get(t);n||this._map.set(t,n=[]),n.push(...e)}has(t){return this._map.has(t)}clear(){this._map.clear()}}const x_=new RegExp(":enter","g"),k_=new RegExp(":leave","g");function T_(t,e,n,s,i,r={},o={},a,l,c=[]){return(new A_).buildKeyframes(t,e,n,s,i,r,o,a,l,c)}class A_{buildKeyframes(t,e,n,s,i,r,o,a,l,c=[]){l=l||new S_;const h=new O_(t,e,l,s,i,c,[]);h.options=a,h.currentTimeline.setStyles([r],null,h.errors,a),c_(this,n,h);const u=h.timelines.filter(t=>t.containsAnimation());if(u.length&&Object.keys(o).length){const t=u[u.length-1];t.allowOnlyTimelineStyles()||t.setStyles([o],null,h.errors,a)}return u.length?u.map(t=>t.buildKeyframes()):[E_(e,[],[],[],0,0,"",!1)]}visitTrigger(t,e){}visitState(t,e){}visitTransition(t,e){}visitAnimateChild(t,e){const n=e.subInstructions.consume(e.element);if(n){const s=e.createSubContext(t.options),i=e.currentTimeline.currentTime,r=this._visitSubInstructions(n,s,s.options);i!=r&&e.transformIntoNewTimeline(r)}e.previousNode=t}visitAnimateRef(t,e){const n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t}_visitSubInstructions(t,e,n){let s=e.currentTimeline.currentTime;const i=null!=n.duration?Wm(n.duration):null,r=null!=n.delay?Wm(n.delay):null;return 0!==i&&t.forEach(t=>{const n=e.appendInstructionToTimeline(t,i,r);s=Math.max(s,n.duration+n.delay)}),s}visitReference(t,e){e.updateOptions(t.options,!0),c_(this,t.animation,e),e.previousNode=t}visitSequence(t,e){const n=e.subContextCount;let s=e;const i=t.options;if(i&&(i.params||i.delay)&&(s=e.createSubContext(i),s.transformIntoNewTimeline(),null!=i.delay)){6==s.previousNode.type&&(s.currentTimeline.snapshotCurrentStyles(),s.previousNode=I_);const t=Wm(i.delay);s.delayNextStep(t)}t.steps.length&&(t.steps.forEach(t=>c_(this,t,s)),s.currentTimeline.applyStylesToKeyframe(),s.subContextCount>n&&s.transformIntoNewTimeline()),e.previousNode=t}visitGroup(t,e){const n=[];let s=e.currentTimeline.currentTime;const i=t.options&&t.options.delay?Wm(t.options.delay):0;t.steps.forEach(r=>{const o=e.createSubContext(t.options);i&&o.delayNextStep(i),c_(this,r,o),s=Math.max(s,o.currentTimeline.currentTime),n.push(o.currentTimeline)}),n.forEach(t=>e.currentTimeline.mergeTimelineCollectedStyles(t)),e.transformIntoNewTimeline(s),e.previousNode=t}_visitTiming(t,e){if(t.dynamic){const n=t.strValue;return Qm(e.params?s_(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}}visitAnimate(t,e){const n=e.currentAnimateTimings=this._visitTiming(t.timings,e),s=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),s.snapshotCurrentStyles());const i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),s.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t}visitStyle(t,e){const n=e.currentTimeline,s=e.currentAnimateTimings;!s&&n.getCurrentStyleProperties().length&&n.forwardFrame();const i=s&&s.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t}visitKeyframes(t,e){const n=e.currentAnimateTimings,s=e.currentTimeline.duration,i=n.duration,r=e.createSubContext().currentTimeline;r.easing=n.easing,t.styles.forEach(t=>{r.forwardTime((t.offset||0)*i),r.setStyles(t.styles,t.easing,e.errors,e.options),r.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(r),e.transformIntoNewTimeline(s+i),e.previousNode=t}visitQuery(t,e){const n=e.currentTimeline.currentTime,s=t.options||{},i=s.delay?Wm(s.delay):0;i&&(6===e.previousNode.type||0==n&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=I_);let r=n;const o=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!s.optional,e.errors);e.currentQueryTotal=o.length;let a=null;o.forEach((n,s)=>{e.currentQueryIndex=s;const o=e.createSubContext(t.options,n);i&&o.delayNextStep(i),n===e.element&&(a=o.currentTimeline),c_(this,t.animation,o),o.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,o.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(r),a&&(e.currentTimeline.mergeTimelineCollectedStyles(a),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t}visitStagger(t,e){const n=e.parentContext,s=e.currentTimeline,i=t.timings,r=Math.abs(i.duration),o=r*(e.currentQueryTotal-1);let a=r*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=o-a;break;case"full":a=n.currentStaggerTime}const l=e.currentTimeline;a&&l.delayNextStep(a);const c=l.currentTime;c_(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=s.currentTime-c+(s.startTime-n.currentTimeline.startTime)}}const I_={};class O_{constructor(t,e,n,s,i,r,o,a){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=s,this._leaveClassName=i,this.errors=r,this.timelines=o,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=I_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new P_(this._driver,e,0),o.push(this.currentTimeline)}get params(){return this.options.params}updateOptions(t,e){if(!t)return;const n=t;let s=this.options;null!=n.duration&&(s.duration=Wm(n.duration)),null!=n.delay&&(s.delay=Wm(n.delay));const i=n.params;if(i){let t=s.params;t||(t=this.options.params={}),Object.keys(i).forEach(n=>{e&&t.hasOwnProperty(n)||(t[n]=s_(i[n],t,this.errors))})}}_copyOptions(){const t={};if(this.options){const e=this.options.params;if(e){const n=t.params={};Object.keys(e).forEach(t=>{n[t]=e[t]})}}return t}createSubContext(t=null,e,n){const s=e||this.element,i=new O_(this._driver,s,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(s,n||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i}transformIntoNewTimeline(t){return this.previousNode=I_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline}appendInstructionToTimeline(t,e,n){const s={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new R_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,s,t.stretchStartingKeyframe);return this.timelines.push(i),s}incrementTime(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)}delayNextStep(t){t>0&&this.currentTimeline.delayNextStep(t)}invokeQuery(t,e,n,s,i,r){let o=[];if(s&&o.push(this.element),t.length>0){t=(t=t.replace(x_,"."+this._enterClassName)).replace(k_,"."+this._leaveClassName);let e=this._driver.query(this.element,t,1!=n);0!==n&&(e=n<0?e.slice(e.length+n,e.length):e.slice(0,n)),o.push(...e)}return i||0!=o.length||r.push(`\`query("${e}")\` returned zero elements. (Use \`query("${e}", { optional: true })\` if you wish to allow this.)`),o}}class P_{constructor(t,e,n,s){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=s,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(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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(t){const e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t}fork(t,e){return this.applyStylesToKeyframe(),new P_(this._driver,t,e||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(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()}_updateStyle(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}}allowOnlyTimelineStyles(){return this._currentEmptyStepKeyframe!==this._currentKeyframe}applyEmptyStep(t){t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(t=>{this._backFill[t]=this._globalTimelineStyles[t]||am,this._currentKeyframe[t]=am}),this._currentEmptyStepKeyframe=this._currentKeyframe}setStyles(t,e,n,s){e&&(this._previousKeyframe.easing=e);const i=s&&s.params||{},r=function(t,e){const n={};let s;return t.forEach(t=>{"*"===t?(s=s||Object.keys(e),s.forEach(t=>{n[t]=am})):Km(t,!1,n)}),n}(t,this._globalTimelineStyles);Object.keys(r).forEach(t=>{const e=s_(r[t],i,n);this._pendingStyles[t]=e,this._localTimelineStyles.hasOwnProperty(t)||(this._backFill[t]=this._globalTimelineStyles.hasOwnProperty(t)?this._globalTimelineStyles[t]:am),this._updateStyle(t,e)})}applyStylesToKeyframe(){const t=this._pendingStyles,e=Object.keys(t);0!=e.length&&(this._pendingStyles={},e.forEach(e=>{this._currentKeyframe[e]=t[e]}),Object.keys(this._localTimelineStyles).forEach(t=>{this._currentKeyframe.hasOwnProperty(t)||(this._currentKeyframe[t]=this._localTimelineStyles[t])}))}snapshotCurrentStyles(){Object.keys(this._localTimelineStyles).forEach(t=>{const e=this._localTimelineStyles[t];this._pendingStyles[t]=e,this._updateStyle(t,e)})}getFinalKeyframe(){return this._keyframes.get(this.duration)}get properties(){const t=[];for(let e in this._currentKeyframe)t.push(e);return t}mergeTimelineCollectedStyles(t){Object.keys(t._styleSummary).forEach(e=>{const n=this._styleSummary[e],s=t._styleSummary[e];(!n||s.time>n.time)&&this._updateStyle(e,s.value)})}buildKeyframes(){this.applyStylesToKeyframe();const t=new Set,e=new Set,n=1===this._keyframes.size&&0===this.duration;let s=[];this._keyframes.forEach((i,r)=>{const o=Km(i,!0);Object.keys(o).forEach(n=>{const s=o[n];"!"==s?t.add(n):s==am&&e.add(n)}),n||(o.offset=r/this.duration),s.push(o)});const i=t.size?i_(t.values()):[],r=e.size?i_(e.values()):[];if(n){const t=s[0],e=Zm(t);t.offset=0,e.offset=1,s=[t,e]}return E_(this.element,s,i,r,this.duration,this.startTime,this.easing,!1)}}class R_ extends P_{constructor(t,e,n,s,i,r,o=!1){super(t,e,r.delay),this.element=e,this.keyframes=n,this.preStyleProps=s,this.postStyleProps=i,this._stretchStartingKeyframe=o,this.timings={duration:r.duration,delay:r.delay,easing:r.easing}}containsAnimation(){return this.keyframes.length>1}buildKeyframes(){let t=this.keyframes,{delay:e,duration:n,easing:s}=this.timings;if(this._stretchStartingKeyframe&&e){const i=[],r=n+e,o=e/r,a=Km(t[0],!1);a.offset=0,i.push(a);const l=Km(t[0],!1);l.offset=D_(o),i.push(l);const c=t.length-1;for(let s=1;s<=c;s++){let o=Km(t[s],!1);o.offset=D_((e+o.offset*n)/r),i.push(o)}n=r,e=0,s="",t=i}return E_(this.element,t,this.preStyleProps,this.postStyleProps,n,e,s,!0)}}function D_(t,e=3){const n=Math.pow(10,e-1);return Math.round(t*n)/n}class N_{}class V_ extends N_{normalizePropertyName(t,e){return o_(t)}normalizeStyleValue(t,e,n,s){let i="";const r=n.toString().trim();if(M_[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{const e=n.match(/^[+-]?[\d\.]+([a-z]*)$/);e&&0==e[1].length&&s.push(`Please provide a CSS unit value for ${t}:${n}`)}return r+i}}const M_=(()=>function(t){const e={};return t.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 F_(t,e,n,s,i,r,o,a,l,c,h,u,d){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:r,toState:s,toStyles:o,timelines:a,queriedElements:l,preStyleProps:c,postStyleProps:h,totalTime:u,errors:d}}const L_={};class j_{constructor(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}match(t,e,n,s){return function(t,e,n,s,i){return t.some(t=>t(e,n,s,i))}(this.ast.matchers,t,e,n,s)}buildStyles(t,e,n){const s=this._stateStyles["*"],i=this._stateStyles[t],r=s?s.buildStyles(e,n):{};return i?i.buildStyles(e,n):r}build(t,e,n,s,i,r,o,a,l,c){const h=[],u=this.ast.options&&this.ast.options.params||L_,d=this.buildStyles(n,o&&o.params||L_,h),p=a&&a.params||L_,f=this.buildStyles(s,p,h),m=new Set,_=new Map,g=new Map,y="void"===s,b={params:Object.assign(Object.assign({},u),p)},v=c?[]:T_(t,e,this.ast.animation,i,r,d,f,b,l,h);let w=0;if(v.forEach(t=>{w=Math.max(t.duration+t.delay,w)}),h.length)return F_(e,this._triggerName,n,s,y,d,f,[],[],_,g,w,h);v.forEach(t=>{const n=t.element,s=Sm(_,n,{});t.preStyleProps.forEach(t=>s[t]=!0);const i=Sm(g,n,{});t.postStyleProps.forEach(t=>i[t]=!0),n!==e&&m.add(n)});const C=i_(m.values());return F_(e,this._triggerName,n,s,y,d,f,v,C,_,g,w)}}class B_{constructor(t,e){this.styles=t,this.defaultParams=e}buildStyles(t,e){const n={},s=Zm(this.defaultParams);return Object.keys(t).forEach(e=>{const n=t[e];null!=n&&(s[e]=n)}),this.styles.styles.forEach(t=>{if("string"!=typeof t){const i=t;Object.keys(i).forEach(t=>{let r=i[t];r.length>1&&(r=s_(r,s,e)),n[t]=r})}}),n}}class H_{constructor(t,e){this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(t=>{this.states[t.name]=new B_(t.style,t.options&&t.options.params||{})}),z_(this.states,"true","1"),z_(this.states,"false","0"),e.transitions.forEach(e=>{this.transitionFactories.push(new j_(t,e,this.states))}),this.fallbackTransition=new j_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[(t,e)=>!0],options:null,queryCount:0,depCount:0},this.states)}get containsQueries(){return this.ast.queryCount>0}matchTransition(t,e,n,s){return this.transitionFactories.find(i=>i.match(t,e,n,s))||null}matchStyles(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)}}function z_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}const $_=new S_;class q_{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}register(t,e){const n=[],s=g_(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=s}_buildPlayer(t,e,n){const s=t.element,i=vm(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(s,i,t.duration,t.delay,t.easing,[],!0)}create(t,e,n={}){const s=[],i=this._animations[t];let r;const o=new Map;if(i?(r=T_(this._driver,e,i,jm,Bm,{},{},n,$_,s),r.forEach(t=>{const e=Sm(o,t.element,{});t.postStyleProps.forEach(t=>e[t]=null)})):(s.push("The requested animation doesn't exist or has already been destroyed"),r=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));o.forEach((t,e)=>{Object.keys(t).forEach(n=>{t[n]=this._driver.computeStyle(e,n,am)})});const a=bm(r.map(t=>{const e=o.get(t.element);return this._buildPlayer(t,{},e)}));return this._playersById[t]=a,a.onDestroy(()=>this.destroy(t)),this.players.push(a),a}destroy(t){const e=this._getPlayer(t);e.destroy(),delete this._playersById[t];const n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)}_getPlayer(t){const e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e}listen(t,e,n,s){const i=Em(e,"","","");return wm(this._getPlayer(t),n,i,s),()=>{}}command(t,e,n,s){if("register"==n)return void this.register(t,s[0]);if("create"==n)return void this.create(t,e,s[0]||{});const i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(s[0]));break;case"destroy":this.destroy(t)}}}const W_="ng-animate-queued",U_="ng-animate-disabled",Q_=".ng-animate-disabled",Z_=[],K_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},G_={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0};class Y_{constructor(t,e=""){this.namespaceId=e;const n=t&&t.hasOwnProperty("value");if(this.value=null!=(s=n?t.value:t)?s:null,n){const e=Zm(t);delete e.value,this.options=e}else this.options={};var s;this.options.params||(this.options.params={})}get params(){return this.options.params}absorbOptions(t){const e=t.params;if(e){const t=this.options.params;Object.keys(e).forEach(n=>{null==t[n]&&(t[n]=e[n])})}}}const X_="void",J_=new Y_(X_);class tg{constructor(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,ag(e,this._hostClassName)}listen(t,e,n,s){if(!this._triggers.hasOwnProperty(e))throw new Error(`Unable to listen on the animation trigger event "${n}" because the animation trigger "${e}" doesn't exist!`);if(null==n||0==n.length)throw new Error(`Unable to listen on the animation trigger "${e}" because the provided event is undefined!`);if("start"!=(i=n)&&"done"!=i)throw new Error(`The provided animation trigger event "${n}" for the animation trigger "${e}" is not supported!`);var i;const r=Sm(this._elementListeners,t,[]),o={name:e,phase:n,callback:s};r.push(o);const a=Sm(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(ag(t,Hm),ag(t,"ng-trigger-"+e),a[e]=J_),()=>{this._engine.afterFlush(()=>{const t=r.indexOf(o);t>=0&&r.splice(t,1),this._triggers[e]||delete a[e]})}}register(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)}_getTrigger(t){const e=this._triggers[t];if(!e)throw new Error(`The provided animation trigger "${t}" has not been registered!`);return e}trigger(t,e,n,s=!0){const i=this._getTrigger(e),r=new ng(this.id,e,t);let o=this._engine.statesByElement.get(t);o||(ag(t,Hm),ag(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,o={}));let a=o[e];const l=new Y_(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&a&&l.absorbOptions(a.options),o[e]=l,a||(a=J_),l.value!==X_&&a.value===l.value){if(!function(t,e){const n=Object.keys(t),s=Object.keys(e);if(n.length!=s.length)return!1;for(let i=0;i<n.length;i++){const s=n[i];if(!e.hasOwnProperty(s)||t[s]!==e[s])return!1}return!0}(a.params,l.params)){const e=[],n=i.matchStyles(a.value,a.params,e),s=i.matchStyles(l.value,l.params,e);e.length?this._engine.reportError(e):this._engine.afterFlush(()=>{Jm(t,n),Xm(t,s)})}return}const c=Sm(this._engine.playersByElement,t,[]);c.forEach(t=>{t.namespaceId==this.id&&t.triggerName==e&&t.queued&&t.destroy()});let h=i.matchTransition(a.value,l.value,t,l.params),u=!1;if(!h){if(!s)return;h=i.fallbackTransition,u=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:h,fromState:a,toState:l,player:r,isFallbackTransition:u}),u||(ag(t,W_),r.onStart(()=>{lg(t,W_)})),r.onDone(()=>{let e=this.players.indexOf(r);e>=0&&this.players.splice(e,1);const n=this._engine.playersByElement.get(t);if(n){let t=n.indexOf(r);t>=0&&n.splice(t,1)}}),this.players.push(r),c.push(r),r}deregister(t){delete this._triggers[t],this._engine.statesByElement.forEach((e,n)=>{delete e[t]}),this._elementListeners.forEach((e,n)=>{this._elementListeners.set(n,e.filter(e=>e.name!=t))})}clearElementCache(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);const e=this._engine.playersByElement.get(t);e&&(e.forEach(t=>t.destroy()),this._engine.playersByElement.delete(t))}_signalRemovalForInnerTriggers(t,e){const n=this._engine.driver.query(t,zm,!0);n.forEach(t=>{if(t.__ng_removed)return;const n=this._engine.fetchNamespacesByElement(t);n.size?n.forEach(n=>n.triggerLeaveAnimation(t,e,!1,!0)):this.clearElementCache(t)}),this._engine.afterFlushAnimationsDone(()=>n.forEach(t=>this.clearElementCache(t)))}triggerLeaveAnimation(t,e,n,s){const i=this._engine.statesByElement.get(t);if(i){const r=[];if(Object.keys(i).forEach(e=>{if(this._triggers[e]){const n=this.trigger(t,e,X_,s);n&&r.push(n)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,e),n&&bm(r).onDone(()=>this._engine.processLeaveNode(t)),!0}return!1}prepareLeaveAnimationListeners(t){const e=this._elementListeners.get(t);if(e){const n=new Set;e.forEach(e=>{const s=e.name;if(n.has(s))return;n.add(s);const i=this._triggers[s].fallbackTransition,r=this._engine.statesByElement.get(t)[s]||J_,o=new Y_(X_),a=new ng(this.id,s,t);this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:s,transition:i,fromState:r,toState:o,player:a,isFallbackTransition:!0})})}}removeNode(t,e){const n=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,e),this.triggerLeaveAnimation(t,e,!0))return;let s=!1;if(n.totalAnimations){const e=n.players.length?n.playersByQueriedElement.get(t):[];if(e&&e.length)s=!0;else{let e=t;for(;e=e.parentNode;)if(n.statesByElement.get(e)){s=!0;break}}}if(this.prepareLeaveAnimationListeners(t),s)n.markElementAsRemoved(this.id,t,!1,e);else{const s=t.__ng_removed;s&&s!==K_||(n.afterFlush(()=>this.clearElementCache(t)),n.destroyInnerAnimations(t),n._onRemovalComplete(t,e))}}insertNode(t,e){ag(t,this._hostClassName)}drainQueuedTransitions(t){const e=[];return this._queue.forEach(n=>{const s=n.player;if(s.destroyed)return;const i=n.element,r=this._elementListeners.get(i);r&&r.forEach(e=>{if(e.name==n.triggerName){const s=Em(i,n.triggerName,n.fromState.value,n.toState.value);s._data=t,wm(n.player,e.phase,s,e.callback)}}),s.markedForDestroy?this._engine.afterFlush(()=>{s.destroy()}):e.push(n)}),this._queue=[],e.sort((t,e)=>{const n=t.transition.ast.depCount,s=e.transition.ast.depCount;return 0==n||0==s?n-s:this._engine.driver.containsElement(t.element,e.element)?1:-1})}destroy(t){this.players.forEach(t=>t.destroy()),this._signalRemovalForInnerTriggers(this.hostElement,t)}elementContainsData(t){let e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(e=>e.element===t)||e,e}}class eg{constructor(t,e,n){this.bodyNode=t,this.driver=e,this._normalizer=n,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=(t,e)=>{}}_onRemovalComplete(t,e){this.onRemovalComplete(t,e)}get queuedPlayers(){const t=[];return this._namespaceList.forEach(e=>{e.players.forEach(e=>{e.queued&&t.push(e)})}),t}createNamespace(t,e){const n=new tg(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n}_balanceNamespaceList(t,e){const n=this._namespaceList.length-1;if(n>=0){let s=!1;for(let i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),s=!0;break}s||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t}register(t,e){let n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n}registerTrigger(t,e,n){let s=this._namespaceLookup[t];s&&s.register(e,n)&&this.totalAnimations++}destroy(t,e){if(!t)return;const n=this._fetchNamespace(t);this.afterFlush(()=>{this.namespacesByHostElement.delete(n.hostElement),delete this._namespaceLookup[t];const e=this._namespaceList.indexOf(n);e>=0&&this._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(()=>n.destroy(e))}_fetchNamespace(t){return this._namespaceLookup[t]}fetchNamespacesByElement(t){const e=new Set,n=this.statesByElement.get(t);if(n){const t=Object.keys(n);for(let s=0;s<t.length;s++){const i=n[t[s]].namespaceId;if(i){const t=this._fetchNamespace(i);t&&e.add(t)}}}return e}trigger(t,e,n,s){if(sg(e)){const i=this._fetchNamespace(t);if(i)return i.trigger(e,n,s),!0}return!1}insertNode(t,e,n,s){if(!sg(e))return;const i=e.__ng_removed;if(i&&i.setForRemoval){i.setForRemoval=!1,i.setForMove=!0;const t=this.collectedLeaveElements.indexOf(e);t>=0&&this.collectedLeaveElements.splice(t,1)}if(t){const s=this._fetchNamespace(t);s&&s.insertNode(e,n)}s&&this.collectEnterElement(e)}collectEnterElement(t){this.collectedEnterElements.push(t)}markElementAsDisabled(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),ag(t,U_)):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),lg(t,U_))}removeNode(t,e,n,s){if(sg(e)){const i=t?this._fetchNamespace(t):null;if(i?i.removeNode(e,s):this.markElementAsRemoved(t,e,!1,s),n){const n=this.namespacesByHostElement.get(e);n&&n.id!==t&&n.removeNode(e,s)}}else this._onRemovalComplete(e,s)}markElementAsRemoved(t,e,n,s){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:s,hasAnimation:n,removedBeforeQueried:!1}}listen(t,e,n,s,i){return sg(e)?this._fetchNamespace(t).listen(e,n,s,i):()=>{}}_buildInstruction(t,e,n,s,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,s,t.fromState.options,t.toState.options,e,i)}destroyInnerAnimations(t){let e=this.driver.query(t,zm,!0);e.forEach(t=>this.destroyActiveAnimationsForElement(t)),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,qm,!0),e.forEach(t=>this.finishActiveQueriedAnimationOnElement(t)))}destroyActiveAnimationsForElement(t){const e=this.playersByElement.get(t);e&&e.forEach(t=>{t.queued?t.markedForDestroy=!0:t.destroy()})}finishActiveQueriedAnimationOnElement(t){const e=this.playersByQueriedElement.get(t);e&&e.forEach(t=>t.finish())}whenRenderingDone(){return new Promise(t=>{if(this.players.length)return bm(this.players).onDone(()=>t());t()})}processLeaveNode(t){const e=t.__ng_removed;if(e&&e.setForRemoval){if(t.__ng_removed=K_,e.namespaceId){this.destroyInnerAnimations(t);const n=this._fetchNamespace(e.namespaceId);n&&n.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,Q_)&&this.markElementAsDisabled(t,!1),this.driver.query(t,Q_,!0).forEach(t=>{this.markElementAsDisabled(t,!1)})}flush(t=-1){let e=[];if(this.newHostElements.size&&(this.newHostElements.forEach((t,e)=>this._balanceNamespaceList(t,e)),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(let n=0;n<this.collectedEnterElements.length;n++)ag(this.collectedEnterElements[n],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){const n=[];try{e=this._flushAnimations(n,t)}finally{for(let t=0;t<n.length;t++)n[t]()}}else for(let n=0;n<this.collectedLeaveElements.length;n++)this.processLeaveNode(this.collectedLeaveElements[n]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(t=>t()),this._flushFns=[],this._whenQuietFns.length){const t=this._whenQuietFns;this._whenQuietFns=[],e.length?bm(e).onDone(()=>{t.forEach(t=>t())}):t.forEach(t=>t())}}reportError(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))}_flushAnimations(t,e){const n=new S_,s=[],i=new Map,r=[],o=new Map,a=new Map,l=new Map,c=new Set;this.disabledNodes.forEach(t=>{c.add(t);const e=this.driver.query(t,".ng-animate-queued",!0);for(let n=0;n<e.length;n++)c.add(e[n])});const h=this.bodyNode,u=Array.from(this.statesByElement.keys()),d=og(u,this.collectedEnterElements),p=new Map;let f=0;d.forEach((t,e)=>{const n=jm+f++;p.set(e,n),t.forEach(t=>ag(t,n))});const m=[],_=new Set,g=new Set;for(let O=0;O<this.collectedLeaveElements.length;O++){const t=this.collectedLeaveElements[O],e=t.__ng_removed;e&&e.setForRemoval&&(m.push(t),_.add(t),e.hasAnimation?this.driver.query(t,".ng-star-inserted",!0).forEach(t=>_.add(t)):g.add(t))}const y=new Map,b=og(u,Array.from(_));b.forEach((t,e)=>{const n=Bm+f++;y.set(e,n),t.forEach(t=>ag(t,n))}),t.push(()=>{d.forEach((t,e)=>{const n=p.get(e);t.forEach(t=>lg(t,n))}),b.forEach((t,e)=>{const n=y.get(e);t.forEach(t=>lg(t,n))}),m.forEach(t=>{this.processLeaveNode(t)})});const v=[],w=[];for(let O=this._namespaceList.length-1;O>=0;O--)this._namespaceList[O].drainQueuedTransitions(e).forEach(t=>{const e=t.player,i=t.element;if(v.push(e),this.collectedEnterElements.length){const t=i.__ng_removed;if(t&&t.setForMove)return void e.destroy()}const c=!h||!this.driver.containsElement(h,i),u=y.get(i),d=p.get(i),f=this._buildInstruction(t,n,d,u,c);if(f.errors&&f.errors.length)w.push(f);else{if(c)return e.onStart(()=>Jm(i,f.fromStyles)),e.onDestroy(()=>Xm(i,f.toStyles)),void s.push(e);if(t.isFallbackTransition)return e.onStart(()=>Jm(i,f.fromStyles)),e.onDestroy(()=>Xm(i,f.toStyles)),void s.push(e);f.timelines.forEach(t=>t.stretchStartingKeyframe=!0),n.append(i,f.timelines),r.push({instruction:f,player:e,element:i}),f.queriedElements.forEach(t=>Sm(o,t,[]).push(e)),f.preStyleProps.forEach((t,e)=>{const n=Object.keys(t);if(n.length){let t=a.get(e);t||a.set(e,t=new Set),n.forEach(e=>t.add(e))}}),f.postStyleProps.forEach((t,e)=>{const n=Object.keys(t);let s=l.get(e);s||l.set(e,s=new Set),n.forEach(t=>s.add(t))})}});if(w.length){const t=[];w.forEach(e=>{t.push(`@${e.triggerName} has failed due to:\n`),e.errors.forEach(e=>t.push(`- ${e}\n`))}),v.forEach(t=>t.destroy()),this.reportError(t)}const C=new Map,E=new Map;r.forEach(t=>{const e=t.element;n.has(e)&&(E.set(e,e),this._beforeAnimationBuild(t.player.namespaceId,t.instruction,C))}),s.forEach(t=>{const e=t.element;this._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(t=>{Sm(C,e,[]).push(t),t.destroy()})});const S=m.filter(t=>hg(t,a,l)),x=new Map;rg(x,this.driver,g,l,am).forEach(t=>{hg(t,a,l)&&S.push(t)});const k=new Map;d.forEach((t,e)=>{rg(k,this.driver,new Set(t),a,"!")}),S.forEach(t=>{const e=x.get(t),n=k.get(t);x.set(t,Object.assign(Object.assign({},e),n))});const T=[],A=[],I={};r.forEach(t=>{const{element:e,player:r,instruction:o}=t;if(n.has(e)){if(c.has(e))return r.onDestroy(()=>Xm(e,o.toStyles)),r.disabled=!0,r.overrideTotalTime(o.totalTime),void s.push(r);let t=I;if(E.size>1){let n=e;const s=[];for(;n=n.parentNode;){const e=E.get(n);if(e){t=e;break}s.push(n)}s.forEach(e=>E.set(e,t))}const n=this._buildAnimation(r.namespaceId,o,C,i,k,x);if(r.setRealPlayer(n),t===I)T.push(r);else{const e=this.playersByElement.get(t);e&&e.length&&(r.parentPlayer=bm(e)),s.push(r)}}else Jm(e,o.fromStyles),r.onDestroy(()=>Xm(e,o.toStyles)),A.push(r),c.has(e)&&s.push(r)}),A.forEach(t=>{const e=i.get(t.element);if(e&&e.length){const n=bm(e);t.setRealPlayer(n)}}),s.forEach(t=>{t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(let O=0;O<m.length;O++){const t=m[O],e=t.__ng_removed;if(lg(t,Bm),e&&e.hasAnimation)continue;let n=[];if(o.size){let e=o.get(t);e&&e.length&&n.push(...e);let s=this.driver.query(t,qm,!0);for(let t=0;t<s.length;t++){let e=o.get(s[t]);e&&e.length&&n.push(...e)}}const s=n.filter(t=>!t.destroyed);s.length?cg(this,t,s):this.processLeaveNode(t)}return m.length=0,T.forEach(t=>{this.players.push(t),t.onDone(()=>{t.destroy();const e=this.players.indexOf(t);this.players.splice(e,1)}),t.play()}),T}elementContainsData(t,e){let n=!1;const s=e.__ng_removed;return s&&s.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n}afterFlush(t){this._flushFns.push(t)}afterFlushAnimationsDone(t){this._whenQuietFns.push(t)}_getPreviousPlayers(t,e,n,s,i){let r=[];if(e){const e=this.playersByQueriedElement.get(t);e&&(r=e)}else{const e=this.playersByElement.get(t);if(e){const t=!i||i==X_;e.forEach(e=>{e.queued||(t||e.triggerName==s)&&r.push(e)})}}return(n||s)&&(r=r.filter(t=>!(n&&n!=t.namespaceId||s&&s!=t.triggerName))),r}_beforeAnimationBuild(t,e,n){const s=e.element,i=e.isRemovalTransition?void 0:t,r=e.isRemovalTransition?void 0:e.triggerName;for(const o of e.timelines){const t=o.element,a=t!==s,l=Sm(n,t,[]);this._getPreviousPlayers(t,a,i,r,e.toState).forEach(t=>{const e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}Jm(s,e.fromStyles)}_buildAnimation(t,e,n,s,i,r){const o=e.triggerName,a=e.element,l=[],c=new Set,h=new Set,u=e.timelines.map(e=>{const u=e.element;c.add(u);const d=u.__ng_removed;if(d&&d.removedBeforeQueried)return new _m(e.duration,e.delay);const p=u!==a,f=function(t){const e=[];return function t(e,n){for(let s=0;s<e.length;s++){const i=e[s];i instanceof gm?t(i.players,n):n.push(i)}}(t,e),e}((n.get(u)||Z_).map(t=>t.getRealPlayer())).filter(t=>!!t.element&&t.element===u),m=i.get(u),_=r.get(u),g=vm(0,this._normalizer,0,e.keyframes,m,_),y=this._buildPlayer(e,g,f);if(e.subTimeline&&s&&h.add(u),p){const e=new ng(t,o,u);e.setRealPlayer(y),l.push(e)}return y});l.forEach(t=>{Sm(this.playersByQueriedElement,t.element,[]).push(t),t.onDone(()=>function(t,e,n){let s;if(t instanceof Map){if(s=t.get(e),s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&t.delete(e)}}else if(s=t[e],s){if(s.length){const t=s.indexOf(n);s.splice(t,1)}0==s.length&&delete t[e]}return s}(this.playersByQueriedElement,t.element,t))}),c.forEach(t=>ag(t,$m));const d=bm(u);return d.onDestroy(()=>{c.forEach(t=>lg(t,$m)),Xm(a,e.toStyles)}),h.forEach(t=>{Sm(s,t,[]).push(d)}),d}_buildPlayer(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new _m(t.duration,t.delay)}}class ng{constructor(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new _m,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}setRealPlayer(t){this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(e=>{this._queuedCallbacks[e].forEach(n=>wm(t,e,void 0,n))}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)}getRealPlayer(){return this._player}overrideTotalTime(t){this.totalTime=t}syncPlayerEvents(t){const e=this._player;e.triggerCallback&&t.onStart(()=>e.triggerCallback("start")),t.onDone(()=>this.finish()),t.onDestroy(()=>this.destroy())}_queueEvent(t,e){Sm(this._queuedCallbacks,t,[]).push(e)}onDone(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)}onStart(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)}onDestroy(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)}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(t){this.queued||this._player.setPosition(t)}getPosition(){return this.queued?0:this._player.getPosition()}triggerCallback(t){const e=this._player;e.triggerCallback&&e.triggerCallback(t)}}function sg(t){return t&&1===t.nodeType}function ig(t,e){const n=t.style.display;return t.style.display=null!=e?e:"none",n}function rg(t,e,n,s,i){const r=[];n.forEach(t=>r.push(ig(t)));const o=[];s.forEach((n,s)=>{const r={};n.forEach(t=>{const n=r[t]=e.computeStyle(s,t,i);n&&0!=n.length||(s.__ng_removed=G_,o.push(s))}),t.set(s,r)});let a=0;return n.forEach(t=>ig(t,r[a++])),o}function og(t,e){const n=new Map;if(t.forEach(t=>n.set(t,[])),0==e.length)return n;const s=new Set(e),i=new Map;return e.forEach(t=>{const e=function t(e){if(!e)return 1;let r=i.get(e);if(r)return r;const o=e.parentNode;return r=n.has(o)?o:s.has(o)?1:t(o),i.set(e,r),r}(t);1!==e&&n.get(e).push(t)}),n}function ag(t,e){if(t.classList)t.classList.add(e);else{let n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function lg(t,e){if(t.classList)t.classList.remove(e);else{let n=t.$$classes;n&&delete n[e]}}function cg(t,e,n){bm(n).onDone(()=>t.processLeaveNode(e))}function hg(t,e,n){const s=n.get(t);if(!s)return!1;let i=e.get(t);return i?s.forEach(t=>i.add(t)):e.set(t,s),n.delete(t),!0}class ug{constructor(t,e,n){this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=(t,e)=>{},this._transitionEngine=new eg(t,e,n),this._timelineEngine=new q_(t,e,n),this._transitionEngine.onRemovalComplete=(t,e)=>this.onRemovalComplete(t,e)}registerTrigger(t,e,n,s,i){const r=t+"-"+s;let o=this._triggerCache[r];if(!o){const t=[],e=g_(this._driver,i,t);if(t.length)throw new Error(`The animation trigger "${s}" has failed to build due to the following errors:\n - ${t.join("\n - ")}`);o=function(t,e){return new H_(t,e)}(s,e),this._triggerCache[r]=o}this._transitionEngine.registerTrigger(e,s,o)}register(t,e){this._transitionEngine.register(t,e)}destroy(t,e){this._transitionEngine.destroy(t,e)}onInsert(t,e,n,s){this._transitionEngine.insertNode(t,e,n,s)}onRemove(t,e,n,s){this._transitionEngine.removeNode(t,e,s||!1,n)}disableAnimations(t,e){this._transitionEngine.markElementAsDisabled(t,e)}process(t,e,n,s){if("@"==n.charAt(0)){const[t,i]=xm(n);this._timelineEngine.command(t,e,i,s)}else this._transitionEngine.trigger(t,e,n,s)}listen(t,e,n,s,i){if("@"==n.charAt(0)){const[t,s]=xm(n);return this._timelineEngine.listen(t,e,s,i)}return this._transitionEngine.listen(t,e,n,s,i)}flush(t=-1){this._transitionEngine.flush(t)}get players(){return this._transitionEngine.players.concat(this._timelineEngine.players)}whenRenderingDone(){return this._transitionEngine.whenRenderingDone()}}function dg(t,e){let n=null,s=null;return Array.isArray(e)&&e.length?(n=fg(e[0]),e.length>1&&(s=fg(e[e.length-1]))):e&&(n=fg(e)),n||s?new pg(t,n,s):null}let pg=(()=>{class t{constructor(e,n,s){this._element=e,this._startStyles=n,this._endStyles=s,this._state=0;let i=t.initialStylesByElement.get(e);i||t.initialStylesByElement.set(e,i={}),this._initialStyles=i}start(){this._state<1&&(this._startStyles&&Xm(this._element,this._startStyles,this._initialStyles),this._state=1)}finish(){this.start(),this._state<2&&(Xm(this._element,this._initialStyles),this._endStyles&&(Xm(this._element,this._endStyles),this._endStyles=null),this._state=1)}destroy(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(Jm(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(Jm(this._element,this._endStyles),this._endStyles=null),Xm(this._element,this._initialStyles),this._state=3)}}return t.initialStylesByElement=new WeakMap,t})();function fg(t){let e=null;const n=Object.keys(t);for(let s=0;s<n.length;s++){const i=n[s];mg(i)&&(e=e||{},e[i]=t[i])}return e}function mg(t){return"display"===t||"position"===t}const _g="animation",gg="animationend";class yg{constructor(t,e,n,s,i,r,o){this._element=t,this._name=e,this._duration=n,this._delay=s,this._easing=i,this._fillMode=r,this._onDoneFn=o,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=t=>this._handleCallback(t)}apply(){!function(t,e){const n=Sg(t,"").trim();n.length&&(function(t,e){let n=0;for(let s=0;s<t.length;s++)","===t.charAt(s)&&n++}(n),e=`${n}, ${e}`),Eg(t,"",e)}(this._element,`${this._duration}ms ${this._easing} ${this._delay}ms 1 normal ${this._fillMode} ${this._name}`),Cg(this._element,this._eventFn,!1),this._startTime=Date.now()}pause(){bg(this._element,this._name,"paused")}resume(){bg(this._element,this._name,"running")}setPosition(t){const e=vg(this._element,this._name);this._position=t*this._duration,Eg(this._element,"Delay",`-${this._position}ms`,e)}getPosition(){return this._position}_handleCallback(t){const e=t._ngTestManualTimestamp||Date.now(),n=1e3*parseFloat(t.elapsedTime.toFixed(3));t.animationName==this._name&&Math.max(e-this._startTime,0)>=this._delay&&n>=this._duration&&this.finish()}finish(){this._finished||(this._finished=!0,this._onDoneFn(),Cg(this._element,this._eventFn,!0))}destroy(){this._destroyed||(this._destroyed=!0,this.finish(),function(t,e){const n=Sg(t,"").split(","),s=wg(n,e);s>=0&&(n.splice(s,1),Eg(t,"",n.join(",")))}(this._element,this._name))}}function bg(t,e,n){Eg(t,"PlayState",n,vg(t,e))}function vg(t,e){const n=Sg(t,"");return n.indexOf(",")>0?wg(n.split(","),e):wg([n],e)}function wg(t,e){for(let n=0;n<t.length;n++)if(t[n].indexOf(e)>=0)return n;return-1}function Cg(t,e,n){n?t.removeEventListener(gg,e):t.addEventListener(gg,e)}function Eg(t,e,n,s){const i=_g+e;if(null!=s){const e=t.style[i];if(e.length){const t=e.split(",");t[s]=n,n=t.join(",")}}t.style[i]=n}function Sg(t,e){return t.style[_g+e]}class xg{constructor(t,e,n,s,i,r,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=s,this._delay=i,this._finalStyles=o,this._specialStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=r||"linear",this.totalTime=s+i,this._buildStyler()}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}destroy(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach(t=>t()),this._onDestroyFns=[])}_flushDoneFns(){this._onDoneFns.forEach(t=>t()),this._onDoneFns=[]}_flushStartFns(){this._onStartFns.forEach(t=>t()),this._onStartFns=[]}finish(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())}setPosition(t){this._styler.setPosition(t)}getPosition(){return this._styler.getPosition()}hasStarted(){return this._state>=2}init(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())}play(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()}pause(){this.init(),this._styler.pause()}restart(){this.reset(),this.play()}reset(){this._styler.destroy(),this._buildStyler(),this._styler.apply()}_buildStyler(){this._styler=new yg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",()=>this.finish())}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}beforeDestroy(){this.init();const t={};if(this.hasStarted()){const e=this._state>=3;Object.keys(this._finalStyles).forEach(n=>{"offset"!=n&&(t[n]=e?this._finalStyles[n]:h_(this.element,n))})}this.currentSnapshot=t}}class kg extends _m{constructor(t,e){super(),this.element=t,this._startingStyles={},this.__initialized=!1,this._styles=Mm(e)}init(){!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(t=>{this._startingStyles[t]=this.element.style[t]}),super.init())}play(){this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(t=>this.element.style.setProperty(t,this._styles[t])),super.play())}destroy(){this._startingStyles&&(Object.keys(this._startingStyles).forEach(t=>{const e=this._startingStyles[t];e?this.element.style.setProperty(t,e):this.element.style.removeProperty(t)}),this._startingStyles=null,super.destroy())}}class Tg{constructor(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}buildKeyframeElement(t,e,n){n=n.map(t=>Mm(t));let s=`@keyframes ${e} {\n`,i="";n.forEach(t=>{i=" ";const e=parseFloat(t.offset);s+=`${i}${100*e}% {\n`,i+=" ",Object.keys(t).forEach(e=>{const n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(s+=`${i}animation-timing-function: ${n};\n`));default:return void(s+=`${i}${e}: ${n};\n`)}}),s+=i+"}\n"}),s+="}\n";const r=document.createElement("style");return r.innerHTML=s,r}animate(t,e,n,s,i,r=[],o){o&&this._notifyFaultyScrubber();const a=r.filter(t=>t instanceof xg),l={};a_(n,s)&&a.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const c=function(t){let e={};return t&&(Array.isArray(t)?t:[t]).forEach(t=>{Object.keys(t).forEach(n=>{"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=l_(t,e,l));if(0==n)return new kg(t,c);const h="gen_css_kf_"+this._count++,u=this.buildKeyframeElement(t,h,e);document.querySelector("head").appendChild(u);const d=dg(t,e),p=new xg(t,e,h,n,s,i,c,d);return p.onDestroy(()=>{var t;(t=u).parentNode.removeChild(t)}),p}_notifyFaultyScrubber(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)}}class Ag{constructor(t,e,n,s){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=s,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=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}_onFinish(){this._finished||(this._finished=!0,this._onDoneFns.forEach(t=>t()),this._onDoneFns=[])}init(){this._buildPlayer(),this._preparePlayerBeforeStart()}_buildPlayer(){if(this._initialized)return;this._initialized=!0;const t=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",()=>this._onFinish())}_preparePlayerBeforeStart(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()}_triggerWebAnimation(t,e,n){return t.animate(e,n)}onStart(t){this._onStartFns.push(t)}onDone(t){this._onDoneFns.push(t)}onDestroy(t){this._onDestroyFns.push(t)}play(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(t=>t()),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(t=>t()),this._onDestroyFns=[])}setPosition(t){this.domPlayer.currentTime=t*this.time}getPosition(){return this.domPlayer.currentTime/this.time}get totalTime(){return this._delay+this._duration}beforeDestroy(){const t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(e=>{"offset"!=e&&(t[e]=this._finished?this._finalKeyframe[e]:h_(this.element,e))}),this.currentSnapshot=t}triggerCallback(t){const e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(t=>t()),e.length=0}}class Ig{constructor(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Og().toString()),this._cssKeyframesDriver=new Tg}validateStyleProperty(t){return Rm(t)}matchesElement(t,e){return Dm(t,e)}containsElement(t,e){return Nm(t,e)}query(t,e,n){return Vm(t,e,n)}computeStyle(t,e,n){return window.getComputedStyle(t)[e]}overrideWebAnimationsSupport(t){this._isNativeImpl=t}animate(t,e,n,s,i,r=[],o){if(!o&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,s,i,r);const a={duration:n,delay:s,fill:0==s?"both":"forwards"};i&&(a.easing=i);const l={},c=r.filter(t=>t instanceof Ag);a_(n,s)&&c.forEach(t=>{let e=t.currentSnapshot;Object.keys(e).forEach(t=>l[t]=e[t])});const h=dg(t,e=l_(t,e=e.map(t=>Km(t,!1)),l));return new Ag(t,e,a,h)}}function Og(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}let Pg=(()=>{class t extends om{constructor(t,e){super(),this._nextAnimationId=0,this._renderer=t.createRenderer(e.body,{id:"0",encapsulation:ce.None,styles:[],data:{animation:[]}})}build(t){const e=this._nextAnimationId.toString();this._nextAnimationId++;const n=Array.isArray(t)?hm(t):t;return Ng(this._renderer,null,e,"register",[n]),new Rg(e,this._renderer)}}return t.\u0275fac=function(e){return new(e||t)(Kt(da),Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Rg extends class{}{constructor(t,e){super(),this._id=t,this._renderer=e}create(t,e){return new Dg(this._id,t,e||{},this._renderer)}}class Dg{constructor(t,e,n,s){this.id=t,this.element=e,this._renderer=s,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}_listen(t,e){return this._renderer.listen(this.element,`@@${this.id}:${t}`,e)}_command(t,...e){return Ng(this._renderer,this.element,this.id,t,e)}onDone(t){this._listen("done",t)}onStart(t){this._listen("start",t)}onDestroy(t){this._listen("destroy",t)}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")}setPosition(t){this._command("setPosition",t)}getPosition(){return 0}}function Ng(t,e,n,s,i){return t.setProperty(e,`@@${n}:${s}`,i)}const Vg="@",Mg="@.disabled";let Fg=(()=>{class t{constructor(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),e.onRemovalComplete=(t,e)=>{e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}createRenderer(t,e){const n=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){let t=this._rendererCache.get(n);return t||(t=new Lg("",n,this.engine),this._rendererCache.set(n,t)),t}const s=e.id,i=e.id+"-"+this._currentId;this._currentId++,this.engine.register(i,t);const r=e=>{Array.isArray(e)?e.forEach(r):this.engine.registerTrigger(s,i,t,e.name,e)};return e.data.animation.forEach(r),new jg(this,i,n,this.engine)}begin(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()}_scheduleCountTask(){this.promise.then(()=>{this._microtaskId++})}scheduleListenerCallback(t,e,n){t>=0&&t<this._microtaskId?this._zone.run(()=>e(n)):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(()=>{this._zone.run(()=>{this._animationCallbacksBuffer.forEach(t=>{const[e,n]=t;e(n)}),this._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n]))}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 t.\u0275fac=function(e){return new(e||t)(Kt(da),Kt(ug),Kt(ql))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();class Lg{constructor(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?t=>e.destroyNode(t):null}get data(){return this.delegate.data}destroy(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()}createElement(t,e){return this.delegate.createElement(t,e)}createComment(t){return this.delegate.createComment(t)}createText(t){return this.delegate.createText(t)}appendChild(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)}insertBefore(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)}removeChild(t,e,n){this.engine.onRemove(this.namespaceId,e,this.delegate,n)}selectRootElement(t,e){return this.delegate.selectRootElement(t,e)}parentNode(t){return this.delegate.parentNode(t)}nextSibling(t){return this.delegate.nextSibling(t)}setAttribute(t,e,n,s){this.delegate.setAttribute(t,e,n,s)}removeAttribute(t,e,n){this.delegate.removeAttribute(t,e,n)}addClass(t,e){this.delegate.addClass(t,e)}removeClass(t,e){this.delegate.removeClass(t,e)}setStyle(t,e,n,s){this.delegate.setStyle(t,e,n,s)}removeStyle(t,e,n){this.delegate.removeStyle(t,e,n)}setProperty(t,e,n){e.charAt(0)==Vg&&e==Mg?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)}setValue(t,e){this.delegate.setValue(t,e)}listen(t,e,n){return this.delegate.listen(t,e,n)}disableAnimations(t,e){this.engine.disableAnimations(t,e)}}class jg extends Lg{constructor(t,e,n,s){super(e,n,s),this.factory=t,this.namespaceId=e}setProperty(t,e,n){e.charAt(0)==Vg?"."==e.charAt(1)&&e==Mg?this.disableAnimations(t,n=void 0===n||!!n):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)}listen(t,e,n){if(e.charAt(0)==Vg){const s=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t);let i=e.substr(1),r="";return i.charAt(0)!=Vg&&([i,r]=function(t){const e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}(i)),this.engine.listen(this.namespaceId,s,i,r,t=>{this.factory.scheduleListenerCallback(t._data||-1,n,t)})}return this.delegate.listen(t,e,n)}}let Bg=(()=>{class t extends ug{constructor(t,e,n){super(t.body,e,n)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(Lm),Kt(N_))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const Hg=new Lt("AnimationModuleType"),zg=[{provide:Lm,useFactory:function(){return"function"==typeof Og()?new Ig:new Tg}},{provide:Hg,useValue:"BrowserAnimations"},{provide:om,useClass:Pg},{provide:N_,useFactory:function(){return new V_}},{provide:ug,useClass:Bg},{provide:da,useFactory:function(t,e,n){return new Fg(t,e,n)},deps:[Gd,ug,ql]}];let $g=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:zg,imports:[hp]}),t})();const qg=new ga("10.2.0"),Wg=new Lt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}});let Ug,Qg=(()=>{class t{constructor(t,e,n){this._hasDoneGlobalChecks=!1,this._document=n,t._applyBodyHighContrastModeCssClasses(),this._sanityChecks=e,this._hasDoneGlobalChecks||(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._checkCdkVersionMatch(),this._hasDoneGlobalChecks=!0)}_getDocument(){const t=this._document||document;return"object"==typeof t&&t?t:null}_getWindow(){const t=this._getDocument(),e=(null==t?void 0:t.defaultView)||window;return"object"==typeof e&&e?e:null}_checksAreEnabled(){return ks()&&!this._isTestEnv()}_isTestEnv(){const t=this._getWindow();return t&&(t.__karma__||t.jasmine)}_checkDoctypeIsDefined(){const t=this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.doctype),e=this._getDocument();t&&e&&!e.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")}_checkThemeIsPresent(){const t=!this._checksAreEnabled()||!1===this._sanityChecks||!this._sanityChecks.theme,e=this._getDocument();if(t||!e||!e.body||"function"!=typeof getComputedStyle)return;const n=e.createElement("div");n.classList.add("mat-theme-loaded-marker"),e.body.appendChild(n);const s=getComputedStyle(n);s&&"none"!==s.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),e.body.removeChild(n)}_checkCdkVersionMatch(){this._checksAreEnabled()&&(!0===this._sanityChecks||this._sanityChecks.version)&&qg.full!==rm.full&&console.warn("The Angular Material version ("+qg.full+") does not match the Angular CDK version ("+rm.full+").\nPlease ensure the versions of these two packages exactly match.")}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(sm),Kt(Wg,8),Kt(Jc,8))},imports:[[qh],qh]}),t})();function Zg(t){return class extends t{constructor(...t){super(...t),this._disabled=!1}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t)}}}function Kg(t,e){return class extends t{constructor(...t){super(...t),this.defaultColor=e,this.color=e}get color(){return this._color}set color(t){const e=t||this.defaultColor;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)}}}function Gg(t){return class extends t{constructor(...t){super(...t),this._disableRipple=!1}get disableRipple(){return this._disableRipple}set disableRipple(t){this._disableRipple=pc(t)}}}function Yg(t){return class extends t{constructor(...t){super(...t),this.errorState=!1,this.stateChanges=new E}updateErrorState(){const t=this.errorState,e=(this.errorStateMatcher||this._defaultErrorStateMatcher).isErrorState(this.ngControl?this.ngControl.control:null,this._parentFormGroup||this._parentForm);e!==t&&(this.errorState=e,this.stateChanges.next())}}}try{Ug="undefined"!=typeof Intl}catch(Ov){Ug=!1}let Xg=(()=>{class t{isErrorState(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({factory:function(){return new t},token:t,providedIn:"root"}),t})();class Jg{constructor(t,e,n){this._renderer=t,this.element=e,this.config=n,this.state=3}fadeOut(){this._renderer.fadeOutRipple(this)}}const ty={enterDuration:450,exitDuration:400},ey=Hh({passive:!0}),ny=["mousedown","touchstart"],sy=["mouseup","mouseleave","touchend","touchcancel"];class iy{constructor(t,e,n,s){this._target=t,this._ngZone=e,this._isPointerDown=!1,this._activeRipples=new Set,this._pointerUpEventsRegistered=!1,s.isBrowser&&(this._containerElement=_c(n))}fadeInRipple(t,e,n={}){const s=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),i=Object.assign(Object.assign({},ty),n.animation);n.centered&&(t=s.left+s.width/2,e=s.top+s.height/2);const r=n.radius||function(t,e,n){const s=Math.max(Math.abs(t-n.left),Math.abs(t-n.right)),i=Math.max(Math.abs(e-n.top),Math.abs(e-n.bottom));return Math.sqrt(s*s+i*i)}(t,e,s),o=t-s.left,a=e-s.top,l=i.enterDuration,c=document.createElement("div");c.classList.add("mat-ripple-element"),c.style.left=o-r+"px",c.style.top=a-r+"px",c.style.height=2*r+"px",c.style.width=2*r+"px",null!=n.color&&(c.style.backgroundColor=n.color),c.style.transitionDuration=l+"ms",this._containerElement.appendChild(c),window.getComputedStyle(c).getPropertyValue("opacity"),c.style.transform="scale(1)";const h=new Jg(this,c,n);return h.state=0,this._activeRipples.add(h),n.persistent||(this._mostRecentTransientRipple=h),this._runTimeoutOutsideZone(()=>{const t=h===this._mostRecentTransientRipple;h.state=1,n.persistent||t&&this._isPointerDown||h.fadeOut()},l),h}fadeOutRipple(t){const e=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),!e)return;const n=t.element,s=Object.assign(Object.assign({},ty),t.config.animation);n.style.transitionDuration=s.exitDuration+"ms",n.style.opacity="0",t.state=2,this._runTimeoutOutsideZone(()=>{t.state=3,n.parentNode.removeChild(n)},s.exitDuration)}fadeOutAll(){this._activeRipples.forEach(t=>t.fadeOut())}setupTriggerEvents(t){const e=_c(t);e&&e!==this._triggerElement&&(this._removeTriggerEvents(),this._triggerElement=e,this._registerEvents(ny))}handleEvent(t){"mousedown"===t.type?this._onMousedown(t):"touchstart"===t.type?this._onTouchStart(t):this._onPointerUp(),this._pointerUpEventsRegistered||(this._registerEvents(sy),this._pointerUpEventsRegistered=!0)}_onMousedown(t){const e=Kf(t),n=this._lastTouchStartEvent&&Date.now()<this._lastTouchStartEvent+800;this._target.rippleDisabled||e||n||(this._isPointerDown=!0,this.fadeInRipple(t.clientX,t.clientY,this._target.rippleConfig))}_onTouchStart(t){if(!this._target.rippleDisabled){this._lastTouchStartEvent=Date.now(),this._isPointerDown=!0;const e=t.changedTouches;for(let t=0;t<e.length;t++)this.fadeInRipple(e[t].clientX,e[t].clientY,this._target.rippleConfig)}}_onPointerUp(){this._isPointerDown&&(this._isPointerDown=!1,this._activeRipples.forEach(t=>{!t.config.persistent&&(1===t.state||t.config.terminateOnPointerUp&&0===t.state)&&t.fadeOut()}))}_runTimeoutOutsideZone(t,e=0){this._ngZone.runOutsideAngular(()=>setTimeout(t,e))}_registerEvents(t){this._ngZone.runOutsideAngular(()=>{t.forEach(t=>{this._triggerElement.addEventListener(t,this,ey)})})}_removeTriggerEvents(){this._triggerElement&&(ny.forEach(t=>{this._triggerElement.removeEventListener(t,this,ey)}),this._pointerUpEventsRegistered&&sy.forEach(t=>{this._triggerElement.removeEventListener(t,this,ey)}))}}const ry=new Lt("mat-ripple-global-options");let oy=(()=>{class t{constructor(t,e,n,s,i){this._elementRef=t,this._animationMode=i,this.radius=0,this._disabled=!1,this._isInitialized=!1,this._globalOptions=s||{},this._rippleRenderer=new iy(this,e,t,n)}get disabled(){return this._disabled}set disabled(t){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()}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,e=0,n){return"number"==typeof t?this._rippleRenderer.fadeInRipple(t,e,Object.assign(Object.assign({},this.rippleConfig),n)):this._rippleRenderer.fadeInRipple(0,0,Object.assign(Object.assign({},this.rippleConfig),t))}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(ql),mo(Vh),mo(ry,8),mo(Hg,8))},t.\u0275dir=be({type:t,selectors:[["","mat-ripple",""],["","matRipple",""]],hostAttrs:[1,"mat-ripple"],hostVars:2,hostBindings:function(t,e){2&t&&Fo("mat-ripple-unbounded",e.unbounded)},inputs:{radius:["matRippleRadius","radius"],disabled:["matRippleDisabled","disabled"],trigger:["matRippleTrigger","trigger"],color:["matRippleColor","color"],unbounded:["matRippleUnbounded","unbounded"],centered:["matRippleCentered","centered"],animation:["matRippleAnimation","animation"]},exportAs:["matRipple"]}),t})(),ay=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Qg,Mh],Qg]}),t})();const ly=new Lt("mat-label-global-options"),cy=["mat-button",""],hy=["*"],uy=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"];class dy{constructor(t){this._elementRef=t}}const py=Kg(Zg(Gg(dy)));let fy=(()=>{class t extends py{constructor(t,e,n){super(t),this._focusMonitor=e,this._animationMode=n,this.isRoundButton=this._hasHostAttributes("mat-fab","mat-mini-fab"),this.isIconButton=this._hasHostAttributes("mat-icon-button");for(const s of uy)this._hasHostAttributes(s)&&this._getHostElement().classList.add(s);t.nativeElement.classList.add("mat-button-base"),this.isRoundButton&&(this.color="accent")}ngAfterViewInit(){this._focusMonitor.monitor(this._elementRef,!0)}ngOnDestroy(){this._focusMonitor.stopMonitoring(this._elementRef)}focus(t="program",e){this._focusMonitor.focusVia(this._getHostElement(),t,e)}_getHostElement(){return this._elementRef.nativeElement}_isRippleDisabled(){return this.disableRipple||this.disabled}_hasHostAttributes(...t){return t.some(t=>this._getHostElement().hasAttribute(t))}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Xf),mo(Hg,8))},t.\u0275cmp=pe({type:t,selectors:[["button","mat-button",""],["button","mat-raised-button",""],["button","mat-icon-button",""],["button","mat-fab",""],["button","mat-mini-fab",""],["button","mat-stroked-button",""],["button","mat-flat-button",""]],viewQuery:function(t,e){var n;1&t&&fl(oy,!0),2&t&&pl(n=bl())&&(e.ripple=n.first)},hostAttrs:[1,"mat-focus-indicator"],hostVars:5,hostBindings:function(t,e){2&t&&(po("disabled",e.disabled||null),Fo("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-button-disabled",e.disabled))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color"},exportAs:["matButton"],features:[Zo],attrs:cy,ngContentSelectors:hy,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Po(),yo(0,"span",0),Ro(1),bo(),vo(2,"span",1),vo(3,"span",2)),2&t&&(_i(2),Fo("mat-button-ripple-round",e.isRoundButton||e.isIconButton),_o("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[oy],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:.04}@media(hover: none){.mat-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay,.mat-stroked-button:hover:not(.mat-button-disabled) .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-icon-button,.mat-stroked-button,.mat-flat-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-button.mat-button-disabled,.mat-icon-button.mat-button-disabled,.mat-stroked-button.mat-button-disabled,.mat-flat-button.mat-button-disabled{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button.mat-button-disabled{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-ripple.mat-ripple,.mat-stroked-button .mat-button-focus-overlay{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab.mat-button-disabled{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:none;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0, 0, 0);transition:background 400ms cubic-bezier(0.25, 0.8, 0.25, 1),box-shadow 280ms cubic-bezier(0.4, 0, 0.2, 1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab.mat-button-disabled{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button i,.mat-icon-button .mat-icon{line-height:24px}.mat-button-ripple.mat-ripple,.mat-button-focus-overlay{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity 200ms cubic-bezier(0.35, 0, 0.25, 1),background-color 200ms cubic-bezier(0.35, 0, 0.25, 1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}.cdk-high-contrast-active .mat-button-focus-overlay{background-color:#fff}.cdk-high-contrast-black-on-white .mat-button-focus-overlay{background-color:#000}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}.cdk-high-contrast-active .mat-button,.cdk-high-contrast-active .mat-flat-button,.cdk-high-contrast-active .mat-raised-button,.cdk-high-contrast-active .mat-icon-button,.cdk-high-contrast-active .mat-fab,.cdk-high-contrast-active .mat-mini-fab{outline:solid 1px}\n"],encapsulation:2,changeDetection:0}),t})(),my=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[ay,Qg],Qg]}),t})();const _y=["underline"],gy=["connectionContainer"],yy=["inputContainer"],by=["label"];function vy(t,e){1&t&&(wo(0),yo(1,"div",14),vo(2,"div",15),vo(3,"div",16),vo(4,"div",17),bo(),yo(5,"div",18),vo(6,"div",15),vo(7,"div",16),vo(8,"div",17),bo(),Co())}function wy(t,e){1&t&&(yo(0,"div",19),Ro(1,1),bo())}function Cy(t,e){if(1&t&&(wo(0),Ro(1,2),yo(2,"span"),$o(3),bo(),Co()),2&t){const t=Io(2);_i(3),qo(t._control.placeholder)}}function Ey(t,e){1&t&&Ro(0,3,["*ngSwitchCase","true"])}function Sy(t,e){1&t&&(yo(0,"span",23),$o(1," *"),bo())}function xy(t,e){if(1&t){const t=Eo();yo(0,"label",20,21),ko("cdkObserveContent",(function(){return sn(t),Io().updateOutlineGap()})),fo(2,Cy,4,1,"ng-container",12),fo(3,Ey,1,0,"ng-content",12),fo(4,Sy,2,0,"span",22),bo()}if(2&t){const t=Io();Fo("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),_o("cdkObserveContentDisabled","outline"!=t.appearance)("id",t._labelId)("ngSwitch",t._hasLabel()),po("for",t._control.id)("aria-owns",t._control.id),_i(2),_o("ngSwitchCase",!1),_i(1),_o("ngSwitchCase",!0),_i(1),_o("ngIf",!t.hideRequiredMarker&&t._control.required&&!t._control.disabled)}}function ky(t,e){1&t&&(yo(0,"div",24),Ro(1,4),bo())}function Ty(t,e){if(1&t&&(yo(0,"div",25,26),vo(2,"span",27),bo()),2&t){const t=Io();_i(2),Fo("mat-accent","accent"==t.color)("mat-warn","warn"==t.color)}}function Ay(t,e){1&t&&(yo(0,"div"),Ro(1,5),bo()),2&t&&_o("@transitionMessages",Io()._subscriptAnimationState)}function Iy(t,e){if(1&t&&(yo(0,"div",31),$o(1),bo()),2&t){const t=Io(2);_o("id",t._hintLabelId),_i(1),qo(t.hintLabel)}}function Oy(t,e){if(1&t&&(yo(0,"div",28),fo(1,Iy,2,2,"div",29),Ro(2,6),vo(3,"div",30),Ro(4,7),bo()),2&t){const t=Io();_o("@transitionMessages",t._subscriptAnimationState),_i(1),_o("ngIf",t.hintLabel)}}const Py=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],Ry=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"];let Dy=0;const Ny=new Lt("MatError");let Vy=(()=>{class t{constructor(){this.id="mat-error-"+Dy++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&po("id",e.id)},inputs:{id:"id"},features:[oa([{provide:Ny,useExisting:t}])]}),t})();const My={transitionMessages:lm("transitionMessages",[dm("enter",um({opacity:1,transform:"translateY(0%)"})),fm("void => enter",[um({opacity:0,transform:"translateY(-100%)"}),cm("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])};let Fy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t}),t})(),Ly=0;const jy=new Lt("MatHint");let By=(()=>{class t{constructor(){this.align="start",this.id="mat-hint-"+Ly++}}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(po("id",e.id)("align",null),Fo("mat-right","end"==e.align))},inputs:{align:"align",id:"id"},features:[oa([{provide:jy,useExisting:t}])]}),t})(),Hy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-label"]]}),t})(),zy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["mat-placeholder"]]}),t})();const $y=new Lt("MatPrefix"),qy=new Lt("MatSuffix");let Wy=(()=>{class t{}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=be({type:t,selectors:[["","matSuffix",""]],features:[oa([{provide:qy,useExisting:t}])]}),t})(),Uy=0;class Qy{constructor(t){this._elementRef=t}}const Zy=Kg(Qy,"primary"),Ky=new Lt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),Gy=new Lt("MatFormField");let Yy=(()=>{class t extends Zy{constructor(t,e,n,s,i,r,o,a){super(t),this._elementRef=t,this._changeDetectorRef=e,this._dir=s,this._defaults=i,this._platform=r,this._ngZone=o,this._outlineGapCalculationNeededImmediately=!1,this._outlineGapCalculationNeededOnStable=!1,this._destroyed=new E,this._showAlwaysAnimate=!1,this._subscriptAnimationState="",this._hintLabel="",this._hintLabelId="mat-hint-"+Uy++,this._labelId="mat-form-field-label-"+Uy++,this._labelOptions=n||{},this.floatLabel=this._getDefaultFloatLabelState(),this._animationsEnabled="NoopAnimations"!==a,this.appearance=i&&i.appearance?i.appearance:"legacy",this._hideRequiredMarker=!(!i||null==i.hideRequiredMarker)&&i.hideRequiredMarker}get appearance(){return this._appearance}set appearance(t){const e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)}get hideRequiredMarker(){return this._hideRequiredMarker}set hideRequiredMarker(t){this._hideRequiredMarker=pc(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(Mc(null)).subscribe(()=>{this._validatePlaceholders(),this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),t.ngControl&&t.ngControl.valueChanges&&t.ngControl.valueChanges.pipe(Rc(this._destroyed)).subscribe(()=>this._changeDetectorRef.markForCheck()),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.pipe(Rc(this._destroyed)).subscribe(()=>{this._outlineGapCalculationNeededOnStable&&this.updateOutlineGap()})}),W(this._prefixChildren.changes,this._suffixChildren.changes).subscribe(()=>{this._outlineGapCalculationNeededOnStable=!0,this._changeDetectorRef.markForCheck()}),this._hintChildren.changes.pipe(Mc(null)).subscribe(()=>{this._processHints(),this._changeDetectorRef.markForCheck()}),this._errorChildren.changes.pipe(Mc(null)).subscribe(()=>{this._syncDescribedByIds(),this._changeDetectorRef.markForCheck()}),this._dir&&this._dir.change.pipe(Rc(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 e=this._control?this._control.ngControl:null;return e&&e[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,yc(this._label.nativeElement,"transitionend").pipe(nu(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||this._labelOptions.float||"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 e=this._hintChildren?this._hintChildren.find(t=>"start"===t.align):null,n=this._hintChildren?this._hintChildren.find(t=>"end"===t.align):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&t.push(...this._errorChildren.map(t=>t.id));this._control.setDescribedByIds(t)}}_validateControlChild(){}updateOutlineGap(){const t=this._label?this._label.nativeElement:null;if("outline"!==this.appearance||!t||!t.children.length||!t.textContent.trim())return;if(!this._platform.isBrowser)return;if(!this._isAttachedToDOM())return void(this._outlineGapCalculationNeededImmediately=!0);let e=0,n=0;const s=this._connectionContainerRef.nativeElement,i=s.querySelectorAll(".mat-form-field-outline-start"),r=s.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){const i=s.getBoundingClientRect();if(0===i.width&&0===i.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);const r=this._getStartEnd(i),o=t.children,a=this._getStartEnd(o[0].getBoundingClientRect());let l=0;for(let t=0;t<o.length;t++)l+=o[t].offsetWidth;e=Math.abs(a-r)-5,n=l>0?.75*l+10:0}for(let o=0;o<i.length;o++)i[o].style.width=e+"px";for(let o=0;o<r.length;o++)r[o].style.width=n+"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 e=t.getRootNode();return e&&e!==t}return document.documentElement.contains(t)}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(zr),mo(ly,8),mo($h,8),mo(Ky,8),mo(Vh),mo(ql),mo(Hg,8))},t.\u0275cmp=pe({type:t,selectors:[["mat-form-field"]],contentQueries:function(t,e,n){var s;1&t&&(_l(n,Fy,!0),gl(n,Fy,!0),_l(n,Hy,!0),gl(n,Hy,!0),_l(n,zy,!0),_l(n,Ny,!0),_l(n,jy,!0),_l(n,$y,!0),_l(n,qy,!0)),2&t&&(pl(s=bl())&&(e._controlNonStatic=s.first),pl(s=bl())&&(e._controlStatic=s.first),pl(s=bl())&&(e._labelChildNonStatic=s.first),pl(s=bl())&&(e._labelChildStatic=s.first),pl(s=bl())&&(e._placeholderChild=s.first),pl(s=bl())&&(e._errorChildren=s),pl(s=bl())&&(e._hintChildren=s),pl(s=bl())&&(e._prefixChildren=s),pl(s=bl())&&(e._suffixChildren=s))},viewQuery:function(t,e){var n,s;1&t&&(fl(_y,!0),s=gy,!0,ml(nn(),en(),s,true,undefined,!0),fl(yy,!0),fl(by,!0)),2&t&&(pl(n=bl())&&(e.underlineRef=n.first),pl(n=bl())&&(e._connectionContainerRef=n.first),pl(n=bl())&&(e._inputContainerRef=n.first),pl(n=bl())&&(e._label=n.first))},hostAttrs:[1,"mat-form-field"],hostVars:44,hostBindings:function(t,e){2&t&&Fo("mat-form-field-appearance-standard","standard"==e.appearance)("mat-form-field-appearance-fill","fill"==e.appearance)("mat-form-field-appearance-outline","outline"==e.appearance)("mat-form-field-appearance-legacy","legacy"==e.appearance)("mat-form-field-invalid",e._control.errorState)("mat-form-field-can-float",e._canLabelFloat())("mat-form-field-should-float",e._shouldLabelFloat())("mat-form-field-has-label",e._hasFloatingLabel())("mat-form-field-hide-placeholder",e._hideControlPlaceholder())("mat-form-field-disabled",e._control.disabled)("mat-form-field-autofilled",e._control.autofilled)("mat-focused",e._control.focused)("mat-accent","accent"==e.color)("mat-warn","warn"==e.color)("ng-untouched",e._shouldForward("untouched"))("ng-touched",e._shouldForward("touched"))("ng-pristine",e._shouldForward("pristine"))("ng-dirty",e._shouldForward("dirty"))("ng-valid",e._shouldForward("valid"))("ng-invalid",e._shouldForward("invalid"))("ng-pending",e._shouldForward("pending"))("_mat-animation-noopable",!e._animationsEnabled)},inputs:{color:"color",floatLabel:"floatLabel",appearance:"appearance",hideRequiredMarker:"hideRequiredMarker",hintLabel:"hintLabel"},exportAs:["matFormField"],features:[oa([{provide:Gy,useExisting:t}]),Zo],ngContentSelectors:Ry,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",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"],[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"],["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,e){1&t&&(Po(Py),yo(0,"div",0),yo(1,"div",1,2),ko("click",(function(t){return e._control.onContainerClick&&e._control.onContainerClick(t)})),fo(3,vy,9,0,"ng-container",3),fo(4,wy,2,0,"div",4),yo(5,"div",5,6),Ro(7),yo(8,"span",7),fo(9,xy,5,16,"label",8),bo(),bo(),fo(10,ky,2,0,"div",9),bo(),fo(11,Ty,3,4,"div",10),yo(12,"div",11),fo(13,Ay,2,1,"div",12),fo(14,Oy,5,2,"div",13),bo(),bo()),2&t&&(_i(3),_o("ngIf","outline"==e.appearance),_i(1),_o("ngIf",e._prefixChildren.length),_i(5),_o("ngIf",e._hasFloatingLabel()),_i(1),_o("ngIf",e._suffixChildren.length),_i(1),_o("ngIf","outline"!=e.appearance),_i(1),_o("ngSwitch",e._getDisplayedMessages()),_i(1),_o("ngSwitchCase","error"),_i(1),_o("ngSwitchCase","hint"))},directives:[bh,Eh,Sh,Bf],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:scaleX(1);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._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}.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;border-top:solid 2px}.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}.mat-input-element:-moz-ui-invalid{box-shadow:none}.mat-input-element::-ms-clear,.mat-input-element::-ms-reveal{display: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::-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;-ms-user-select:none;user-select:none;transition:color 400ms 133.3333333333ms cubic-bezier(0.25, 0.8, 0.25, 1)}.mat-input-element::placeholder:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-moz-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element::-webkit-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-input-element:-ms-input-placeholder{-webkit-user-select:none;-moz-user-select:none;-ms-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:-ms-input-placeholder{-ms-user-select:text}.mat-form-field-hide-placeholder .mat-input-element::placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-moz-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element::-webkit-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}.mat-form-field-hide-placeholder .mat-input-element:-ms-input-placeholder{color:transparent !important;-webkit-text-fill-color:transparent;transition:none}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::-ms-expand{display:none}select.mat-input-element::-moz-focus-inner{border:0}select.mat-input-element:not(:disabled){cursor:pointer}select.mat-input-element::-ms-value{color:inherit;background:none}.mat-focused .cdk-high-contrast-active select.mat-input-element::-ms-value{color:inherit}.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);-ms-transform:none}.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}.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: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:[My.transitionMessages]},changeDetection:0}),t})(),Xy=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Ph,Qg,Hf],Qg]}),t})();class Jy{constructor(t){this.selector=t}call(t,e){return e.subscribe(new tb(t,this.selector,this.caught))}}class tb extends L{constructor(t,e,n){super(t),this.selector=e,this.caught=n}error(t){if(!this.isStopped){let n;try{n=this.selector(t,this.caught)}catch(e){return void super.error(e)}this._unsubscribeAndRecycle();const s=new F(this);this.add(s);const i=j(n,s);i!==s&&this.add(i)}}}class eb{constructor(t){this.callback=t}call(t,e){return e.subscribe(new nb(t,this.callback))}}class nb extends f{constructor(t,e){super(t),this.add(new u(e))}}class sb{}class ib{constructor(t){this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?()=>{this.headers=new Map,t.split("\n").forEach(t=>{const e=t.indexOf(":");if(e>0){const n=t.slice(0,e),s=n.toLowerCase(),i=t.slice(e+1).trim();this.maybeSetNormalizedName(n,s),this.headers.has(s)?this.headers.get(s).push(i):this.headers.set(s,[i])}})}:()=>{this.headers=new Map,Object.keys(t).forEach(e=>{let n=t[e];const s=e.toLowerCase();"string"==typeof n&&(n=[n]),n.length>0&&(this.headers.set(s,n),this.maybeSetNormalizedName(e,s))})}:this.headers=new Map}has(t){return this.init(),this.headers.has(t.toLowerCase())}get(t){this.init();const e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null}keys(){return this.init(),Array.from(this.normalizedNames.values())}getAll(t){return this.init(),this.headers.get(t.toLowerCase())||null}append(t,e){return this.clone({name:t,value:e,op:"a"})}set(t,e){return this.clone({name:t,value:e,op:"s"})}delete(t,e){return this.clone({name:t,value:e,op:"d"})}maybeSetNormalizedName(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)}init(){this.lazyInit&&(this.lazyInit instanceof ib?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(t=>this.applyUpdate(t)),this.lazyUpdate=null))}copyFrom(t){t.init(),Array.from(t.headers.keys()).forEach(e=>{this.headers.set(e,t.headers.get(e)),this.normalizedNames.set(e,t.normalizedNames.get(e))})}clone(t){const e=new ib;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof ib?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([t]),e}applyUpdate(t){const e=t.name.toLowerCase();switch(t.op){case"a":case"s":let n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);const s=("a"===t.op?this.headers.get(e):void 0)||[];s.push(...n),this.headers.set(e,s);break;case"d":const i=t.value;if(i){let t=this.headers.get(e);if(!t)return;t=t.filter(t=>-1===i.indexOf(t)),0===t.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,t)}else this.headers.delete(e),this.normalizedNames.delete(e)}}forEach(t){this.init(),Array.from(this.normalizedNames.keys()).forEach(e=>t(this.normalizedNames.get(e),this.headers.get(e)))}}class rb{encodeKey(t){return ob(t)}encodeValue(t){return ob(t)}decodeKey(t){return decodeURIComponent(t)}decodeValue(t){return decodeURIComponent(t)}}function ob(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}class ab{constructor(t={}){if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new rb,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=function(t,e){const n=new Map;return t.length>0&&t.split("&").forEach(t=>{const s=t.indexOf("="),[i,r]=-1==s?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,s)),e.decodeValue(t.slice(s+1))],o=n.get(i)||[];o.push(r),n.set(i,o)}),n}(t.fromString,this.encoder)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(e=>{const n=t.fromObject[e];this.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}has(t){return this.init(),this.map.has(t)}get(t){this.init();const e=this.map.get(t);return e?e[0]:null}getAll(t){return this.init(),this.map.get(t)||null}keys(){return this.init(),Array.from(this.map.keys())}append(t,e){return this.clone({param:t,value:e,op:"a"})}set(t,e){return this.clone({param:t,value:e,op:"s"})}delete(t,e){return this.clone({param:t,value:e,op:"d"})}toString(){return this.init(),this.keys().map(t=>{const e=this.encoder.encodeKey(t);return this.map.get(t).map(t=>e+"="+this.encoder.encodeValue(t)).join("&")}).filter(t=>""!==t).join("&")}clone(t){const e=new ab({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([t]),e}init(){null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(t=>this.map.set(t,this.cloneFrom.map.get(t))),this.updates.forEach(t=>{switch(t.op){case"a":case"s":const e=("a"===t.op?this.map.get(t.param):void 0)||[];e.push(t.value),this.map.set(t.param,e);break;case"d":if(void 0===t.value){this.map.delete(t.param);break}{let e=this.map.get(t.param)||[];const n=e.indexOf(t.value);-1!==n&&e.splice(n,1),e.length>0?this.map.set(t.param,e):this.map.delete(t.param)}}}),this.cloneFrom=this.updates=null)}}function lb(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function cb(t){return"undefined"!=typeof Blob&&t instanceof Blob}function hb(t){return"undefined"!=typeof FormData&&t instanceof FormData}class ub{constructor(t,e,n,s){let i;if(this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||s?(this.body=void 0!==n?n:null,i=s):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new ib),this.params){const t=this.params.toString();if(0===t.length)this.urlWithParams=e;else{const n=e.indexOf("?");this.urlWithParams=e+(-1===n?"?":n<e.length-1?"&":"")+t}}else this.params=new ab,this.urlWithParams=e}serializeBody(){return null===this.body?null:lb(this.body)||cb(this.body)||hb(this.body)||"string"==typeof this.body?this.body:this.body instanceof ab?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()}detectContentTypeHeader(){return null===this.body||hb(this.body)?null:cb(this.body)?this.body.type||null:lb(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof ab?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null}clone(t={}){const e=t.method||this.method,n=t.url||this.url,s=t.responseType||this.responseType,i=void 0!==t.body?t.body:this.body,r=void 0!==t.withCredentials?t.withCredentials:this.withCredentials,o=void 0!==t.reportProgress?t.reportProgress:this.reportProgress;let a=t.headers||this.headers,l=t.params||this.params;return void 0!==t.setHeaders&&(a=Object.keys(t.setHeaders).reduce((e,n)=>e.set(n,t.setHeaders[n]),a)),t.setParams&&(l=Object.keys(t.setParams).reduce((e,n)=>e.set(n,t.setParams[n]),l)),new ub(e,n,i,{params:l,headers:a,reportProgress:o,responseType:s,withCredentials:r})}}var db=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({});class pb extends class{constructor(t,e=200,n="OK"){this.headers=t.headers||new ib,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}{constructor(t={}){super(t),this.type=db.Response,this.body=void 0!==t.body?t.body:null}clone(t={}){return new pb({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})}}function fb(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}let mb=(()=>{class t{constructor(t){this.handler=t}request(t,e,n={}){let s;if(t instanceof ub)s=t;else{let i=void 0;i=n.headers instanceof ib?n.headers:new ib(n.headers);let r=void 0;n.params&&(r=n.params instanceof ab?n.params:new ab({fromObject:n.params})),s=new ub(t,e,void 0!==n.body?n.body:null,{headers:i,params:r,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}const i=gc(s).pipe(B(t=>this.handler.handle(t),void 0,1));if(t instanceof ub||"events"===n.observe)return i;const r=i.pipe(Ic(t=>t instanceof pb));switch(n.observe||"body"){case"body":switch(s.responseType){case"arraybuffer":return r.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return r.pipe(k(t=>{if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return r.pipe(k(t=>{if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return r.pipe(k(t=>t.body))}case"response":return r;default:throw new Error(`Unreachable: unhandled observe type ${n.observe}}`)}}delete(t,e={}){return this.request("DELETE",t,e)}get(t,e={}){return this.request("GET",t,e)}head(t,e={}){return this.request("HEAD",t,e)}jsonp(t,e){return this.request("JSONP",t,{params:(new ab).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})}options(t,e={}){return this.request("OPTIONS",t,e)}patch(t,e,n={}){return this.request("PATCH",t,fb(n,e))}post(t,e,n={}){return this.request("POST",t,fb(n,e))}put(t,e,n={}){return this.request("PUT",t,fb(n,e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(sb))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const _b=["*"];function gb(t){return Error(`Unable to find icon with the name "${t}"`)}function yb(t){return Error(`The URL provided to MatIconRegistry was not trusted as a resource URL via Angular's DomSanitizer. Attempted URL was "${t}".`)}function bb(t){return Error(`The literal provided to MatIconRegistry was not trusted as safe HTML by Angular's DomSanitizer. Attempted literal was "${t}".`)}class vb{constructor(t,e,n){this.url=t,this.svgText=e,this.options=n}}let wb=(()=>{class t{constructor(t,e,n,s){this._httpClient=t,this._sanitizer=e,this._errorHandler=s,this._svgIconConfigs=new Map,this._iconSetConfigs=new Map,this._cachedIconsByUrl=new Map,this._inProgressUrlFetches=new Map,this._fontCssClassesByAlias=new Map,this._defaultFontSetClass="material-icons",this._document=n}addSvgIcon(t,e,n){return this.addSvgIconInNamespace("",t,e,n)}addSvgIconLiteral(t,e,n){return this.addSvgIconLiteralInNamespace("",t,e,n)}addSvgIconInNamespace(t,e,n,s){return this._addSvgIconConfig(t,e,new vb(n,null,s))}addSvgIconLiteralInNamespace(t,e,n,s){const i=this._sanitizer.sanitize(Ks.HTML,n);if(!i)throw bb(n);return this._addSvgIconConfig(t,e,new vb("",i,s))}addSvgIconSet(t,e){return this.addSvgIconSetInNamespace("",t,e)}addSvgIconSetLiteral(t,e){return this.addSvgIconSetLiteralInNamespace("",t,e)}addSvgIconSetInNamespace(t,e,n){return this._addSvgIconSetConfig(t,new vb(e,null,n))}addSvgIconSetLiteralInNamespace(t,e,n){const s=this._sanitizer.sanitize(Ks.HTML,e);if(!s)throw bb(e);return this._addSvgIconSetConfig(t,new vb("",s,n))}registerFontClassAlias(t,e=t){return this._fontCssClassesByAlias.set(t,e),this}classNameForFontAlias(t){return this._fontCssClassesByAlias.get(t)||t}setDefaultFontSetClass(t){return this._defaultFontSetClass=t,this}getDefaultFontSetClass(){return this._defaultFontSetClass}getSvgIconFromUrl(t){const e=this._sanitizer.sanitize(Ks.RESOURCE_URL,t);if(!e)throw yb(t);const n=this._cachedIconsByUrl.get(e);return n?gc(Cb(n)):this._loadSvgIconFromConfig(new vb(t,null)).pipe(Qu(t=>this._cachedIconsByUrl.set(e,t)),k(t=>Cb(t)))}getNamedSvgIcon(t,e=""){const n=Eb(e,t),s=this._svgIconConfigs.get(n);if(s)return this._getSvgFromConfig(s);const i=this._iconSetConfigs.get(e);return i?this._getSvgFromIconSetConfigs(t,i):qc(gb(n))}ngOnDestroy(){this._svgIconConfigs.clear(),this._iconSetConfigs.clear(),this._cachedIconsByUrl.clear()}_getSvgFromConfig(t){return t.svgText?gc(Cb(this._svgElementFromConfig(t))):this._loadSvgIconFromConfig(t).pipe(k(t=>Cb(t)))}_getSvgFromIconSetConfigs(t,e){const n=this._extractIconWithNameFromAnySet(t,e);return n?gc(n):Ep(e.filter(t=>!t.svgText).map(t=>{return this._loadSvgIconSetFromConfig(t).pipe((e=e=>{const n=this._sanitizer.sanitize(Ks.RESOURCE_URL,t.url);return this._errorHandler.handleError(new Error(`Loading icon set URL: ${n} failed: ${e.message}`)),gc(null)},function(t){const n=new Jy(e),s=t.lift(n);return n.caught=s}));var e})).pipe(k(()=>{const n=this._extractIconWithNameFromAnySet(t,e);if(!n)throw gb(t);return n}))}_extractIconWithNameFromAnySet(t,e){for(let n=e.length-1;n>=0;n--){const s=e[n];if(s.svgText&&s.svgText.indexOf(t)>-1){const e=this._svgElementFromConfig(s),n=this._extractSvgIconFromSet(e,t,s.options);if(n)return n}}return null}_loadSvgIconFromConfig(t){return this._fetchIcon(t).pipe(Qu(e=>t.svgText=e),k(()=>this._svgElementFromConfig(t)))}_loadSvgIconSetFromConfig(t){return t.svgText?gc(null):this._fetchIcon(t).pipe(Qu(e=>t.svgText=e))}_extractSvgIconFromSet(t,e,n){const s=t.querySelector(`[id="${e}"]`);if(!s)return null;const i=s.cloneNode(!0);if(i.removeAttribute("id"),"svg"===i.nodeName.toLowerCase())return this._setSvgAttributes(i,n);if("symbol"===i.nodeName.toLowerCase())return this._setSvgAttributes(this._toSvgElement(i),n);const r=this._svgElementFromString("<svg></svg>");return r.appendChild(i),this._setSvgAttributes(r,n)}_svgElementFromString(t){const e=this._document.createElement("DIV");e.innerHTML=t;const n=e.querySelector("svg");if(!n)throw Error("<svg> tag not found");return n}_toSvgElement(t){const e=this._svgElementFromString("<svg></svg>"),n=t.attributes;for(let s=0;s<n.length;s++){const{name:t,value:i}=n[s];"id"!==t&&e.setAttribute(t,i)}for(let s=0;s<t.childNodes.length;s++)t.childNodes[s].nodeType===this._document.ELEMENT_NODE&&e.appendChild(t.childNodes[s].cloneNode(!0));return e}_setSvgAttributes(t,e){return t.setAttribute("fit",""),t.setAttribute("height","100%"),t.setAttribute("width","100%"),t.setAttribute("preserveAspectRatio","xMidYMid meet"),t.setAttribute("focusable","false"),e&&e.viewBox&&t.setAttribute("viewBox",e.viewBox),t}_fetchIcon(t){var e;const{url:n,options:s}=t,i=null!==(e=null==s?void 0:s.withCredentials)&&void 0!==e&&e;if(!this._httpClient)throw Error("Could not find HttpClient provider for use with Angular Material icons. Please include the HttpClientModule from @angular/common/http in your app imports.");if(null==n)throw Error(`Cannot fetch icon from URL "${n}".`);const r=this._sanitizer.sanitize(Ks.RESOURCE_URL,n);if(!r)throw yb(n);const o=this._inProgressUrlFetches.get(r);if(o)return o;const a=this._httpClient.get(r,{responseType:"text",withCredentials:i}).pipe((l=()=>this._inProgressUrlFetches.delete(r),t=>t.lift(new eb(l))),J());var l;return this._inProgressUrlFetches.set(r,a),a}_addSvgIconConfig(t,e,n){return this._svgIconConfigs.set(Eb(t,e),n),this}_addSvgIconSetConfig(t,e){const n=this._iconSetConfigs.get(t);return n?n.push(e):this._iconSetConfigs.set(t,[e]),this}_svgElementFromConfig(t){if(!t.svgElement){const e=this._svgElementFromString(t.svgText);this._setSvgAttributes(e,t.options),t.svgElement=e}return t.svgElement}}return t.\u0275fac=function(e){return new(e||t)(Kt(mb,8),Kt(op),Kt(Jc,8),Kt(fs))},t.\u0275prov=ht({factory:function(){return new t(Kt(mb,8),Kt(op),Kt(Jc,8),Kt(fs))},token:t,providedIn:"root"}),t})();function Cb(t){return t.cloneNode(!0)}function Eb(t,e){return t+":"+e}class Sb{constructor(t){this._elementRef=t}}const xb=Kg(Sb),kb=new Lt("mat-icon-location",{providedIn:"root",factory:function(){const t=Gt(Jc),e=t?t.location:null;return{getPathname:()=>e?e.pathname+e.search:""}}}),Tb=["clip-path","color-profile","src","cursor","fill","filter","marker","marker-start","marker-mid","marker-end","mask","stroke"],Ab=Tb.map(t=>`[${t}]`).join(", "),Ib=/^url\(['"]?#(.*?)['"]?\)$/;let Ob=(()=>{class t extends xb{constructor(t,e,n,s,i){super(t),this._iconRegistry=e,this._location=s,this._errorHandler=i,this._inline=!1,this._currentIconFetch=u.EMPTY,n||t.nativeElement.setAttribute("aria-hidden","true")}get inline(){return this._inline}set inline(t){this._inline=pc(t)}get fontSet(){return this._fontSet}set fontSet(t){this._fontSet=this._cleanupFontValue(t)}get fontIcon(){return this._fontIcon}set fontIcon(t){this._fontIcon=this._cleanupFontValue(t)}_splitIconName(t){if(!t)return["",""];const e=t.split(":");switch(e.length){case 1:return["",e[0]];case 2:return e;default:throw Error(`Invalid icon name: "${t}"`)}}ngOnChanges(t){const e=t.svgIcon;if(this._svgNamespace=null,this._svgName=null,e)if(this._currentIconFetch.unsubscribe(),this.svgIcon){const[t,e]=this._splitIconName(this.svgIcon);t&&(this._svgNamespace=t),e&&(this._svgName=e),this._currentIconFetch=this._iconRegistry.getNamedSvgIcon(e,t).pipe(nu(1)).subscribe(t=>this._setSvgElement(t),n=>{this._errorHandler.handleError(new Error(`Error retrieving icon ${t}:${e}! ${n.message}`))})}else e.previousValue&&this._clearSvgElement();this._usingFontIcon()&&this._updateFontIconClasses()}ngOnInit(){this._usingFontIcon()&&this._updateFontIconClasses()}ngAfterViewChecked(){const t=this._elementsWithExternalReferences;if(t&&t.size){const t=this._location.getPathname();t!==this._previousPath&&(this._previousPath=t,this._prependPathToReferences(t))}}ngOnDestroy(){this._currentIconFetch.unsubscribe(),this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear()}_usingFontIcon(){return!this.svgIcon}_setSvgElement(t){this._clearSvgElement();const e=t.querySelectorAll("style");for(let s=0;s<e.length;s++)e[s].textContent+=" ";const n=this._location.getPathname();this._previousPath=n,this._cacheChildrenWithExternalReferences(t),this._prependPathToReferences(n),this._elementRef.nativeElement.appendChild(t)}_clearSvgElement(){const t=this._elementRef.nativeElement;let e=t.childNodes.length;for(this._elementsWithExternalReferences&&this._elementsWithExternalReferences.clear();e--;){const n=t.childNodes[e];1===n.nodeType&&"svg"!==n.nodeName.toLowerCase()||t.removeChild(n)}}_updateFontIconClasses(){if(!this._usingFontIcon())return;const t=this._elementRef.nativeElement,e=this.fontSet?this._iconRegistry.classNameForFontAlias(this.fontSet):this._iconRegistry.getDefaultFontSetClass();e!=this._previousFontSetClass&&(this._previousFontSetClass&&t.classList.remove(this._previousFontSetClass),e&&t.classList.add(e),this._previousFontSetClass=e),this.fontIcon!=this._previousFontIconClass&&(this._previousFontIconClass&&t.classList.remove(this._previousFontIconClass),this.fontIcon&&t.classList.add(this.fontIcon),this._previousFontIconClass=this.fontIcon)}_cleanupFontValue(t){return"string"==typeof t?t.trim().split(" ")[0]:t}_prependPathToReferences(t){const e=this._elementsWithExternalReferences;e&&e.forEach((e,n)=>{e.forEach(e=>{n.setAttribute(e.name,`url('${t}#${e.value}')`)})})}_cacheChildrenWithExternalReferences(t){const e=t.querySelectorAll(Ab),n=this._elementsWithExternalReferences=this._elementsWithExternalReferences||new Map;for(let s=0;s<e.length;s++)Tb.forEach(t=>{const i=e[s],r=i.getAttribute(t),o=r?r.match(Ib):null;if(o){let e=n.get(i);e||(e=[],n.set(i,e)),e.push({name:t,value:o[1]})}})}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(wb),("aria-hidden",function(t,e){const n=t.attrs;if(n){const t=n.length;let s=0;for(;s<t;){const i=n[s];if(Nn(i))break;if(0===i)s+=2;else if("number"==typeof i)for(s++;s<t&&"string"==typeof n[s];)s++;else{if(i===e)return n[s+1];s+=2}}}return null}(rn(),"aria-hidden")),mo(kb),mo(fs))},t.\u0275cmp=pe({type:t,selectors:[["mat-icon"]],hostAttrs:["role","img",1,"mat-icon","notranslate"],hostVars:7,hostBindings:function(t,e){2&t&&(po("data-mat-icon-type",e._usingFontIcon()?"font":"svg")("data-mat-icon-name",e._svgName||e.fontIcon)("data-mat-icon-namespace",e._svgNamespace||e.fontSet),Fo("mat-icon-inline",e.inline)("mat-icon-no-color","primary"!==e.color&&"accent"!==e.color&&"warn"!==e.color))},inputs:{color:"color",inline:"inline",fontSet:"fontSet",fontIcon:"fontIcon",svgIcon:"svgIcon"},exportAs:["matIcon"],features:[Zo,Ne],ngContentSelectors:_b,decls:1,vars:0,template:function(t,e){1&t&&(Po(),Ro(0))},styles:[".mat-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;height:24px;width:24px}.mat-icon.mat-icon-inline{font-size:inherit;height:inherit;line-height:inherit;width:inherit}[dir=rtl] .mat-icon-rtl-mirror{transform:scale(-1, 1)}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon{display:block}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-icon{margin:auto}\n"],encapsulation:2,changeDetection:0}),t})(),Pb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Qg],Qg]}),t})();const Rb=Hh({passive:!0});let Db=(()=>{class t{constructor(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}monitor(t){if(!this._platform.isBrowser)return zc;const e=_c(t),n=this._monitoredElements.get(e);if(n)return n.subject;const s=new E,i="cdk-text-field-autofilled",r=t=>{"cdk-text-field-autofill-start"!==t.animationName||e.classList.contains(i)?"cdk-text-field-autofill-end"===t.animationName&&e.classList.contains(i)&&(e.classList.remove(i),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!1}))):(e.classList.add(i),this._ngZone.run(()=>s.next({target:t.target,isAutofilled:!0})))};return this._ngZone.runOutsideAngular(()=>{e.addEventListener("animationstart",r,Rb),e.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(e,{subject:s,unlisten:()=>{e.removeEventListener("animationstart",r,Rb)}}),s}stopMonitoring(t){const e=_c(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))}ngOnDestroy(){this._monitoredElements.forEach((t,e)=>this.stopMonitoring(e))}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh),Kt(ql))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh),Kt(ql))},token:t,providedIn:"root"}),t})(),Nb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},imports:[[Mh]]}),t})();const Vb=new Lt("MAT_INPUT_VALUE_ACCESSOR"),Mb=["button","checkbox","file","hidden","image","radio","range","reset","submit"];let Fb=0;class Lb{constructor(t,e,n,s){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=s}}const jb=Yg(Lb);let Bb=(()=>{class t extends jb{constructor(t,e,n,s,i,r,o,a,l,c){super(r,s,i,n),this._elementRef=t,this._platform=e,this.ngControl=n,this._autofillMonitor=a,this._formField=c,this._uid="mat-input-"+Fb++,this.focused=!1,this.stateChanges=new E,this.controlType="mat-input",this.autofilled=!1,this._disabled=!1,this._required=!1,this._type="text",this._readonly=!1,this._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(t=>Lh().has(t));const h=this._elementRef.nativeElement,u=h.nodeName.toLowerCase();this._inputValueAccessor=o||h,this._previousNativeValue=this.value,this.id=this.id,e.IOS&&l.runOutsideAngular(()=>{t.nativeElement.addEventListener("keyup",t=>{let e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),this._isServer=!this._platform.isBrowser,this._isNativeSelect="select"===u,this._isTextarea="textarea"===u,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=pc(t),this.focused&&(this.focused=!1,this.stateChanges.next())}get id(){return this._id}set id(t){this._id=t||this._uid}get required(){return this._required}set required(t){this._required=pc(t)}get type(){return this._type}set type(t){this._type=t||"text",this._validateType(),!this._isTextarea&&Lh().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=pc(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.readonly&&t||(this.focused=t,this.stateChanges.next())}_onInput(){}_dirtyCheckPlaceholder(){var t,e;const n=(null===(e=null===(t=this._formField)||void 0===t?void 0:t._hideControlPlaceholder)||void 0===e?void 0:e.call(t))?null:this.placeholder;if(n!==this._previousPlaceholder){const t=this._elementRef.nativeElement;this._previousPlaceholder=n,n?t.setAttribute("placeholder",n):t.removeAttribute("placeholder")}}_dirtyCheckNativeValue(){const t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())}_validateType(){Mb.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,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.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()}}return t.\u0275fac=function(e){return new(e||t)(mo(ha),mo(Vh),mo(Np,10),mo(Af,8),mo(Df,8),mo(Xg),mo(Vb,10),mo(Db),mo(ql),mo(Gy,8))},t.\u0275dir=be({type:t,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:9,hostBindings:function(t,e){1&t&&ko("focus",(function(){return e._focusChanged(!0)}))("blur",(function(){return e._focusChanged(!1)}))("input",(function(){return e._onInput()})),2&t&&(Uo("disabled",e.disabled)("required",e.required),po("id",e.id)("data-placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),Fo("mat-input-server",e._isServer))},inputs:{id:"id",disabled:"disabled",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher",userAriaDescribedBy:["aria-describedby","userAriaDescribedBy"]},exportAs:["matInput"],features:[oa([{provide:Fy,useExisting:t}]),Zo,Ne]}),t})(),Hb=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[Xg],imports:[[Nb,Xy],Nb,Xy]}),t})();class zb extends f{notifyNext(t,e,n,s,i){this.destination.next(e)}notifyError(t,e){this.destination.error(t)}notifyComplete(t){this.destination.complete()}}class $b extends f{constructor(t,e,n){super(),this.parent=t,this.outerValue=e,this.outerIndex=n,this.index=0}_next(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)}_error(t){this.parent.notifyError(t,this),this.unsubscribe()}_complete(){this.parent.notifyComplete(this),this.unsubscribe()}}function qb(t,e,n,s,i=new $b(t,n,s)){if(!i.closed)return e instanceof y?e.subscribe(i):N(e)(i)}const Wb={};class Ub{constructor(t){this.resultSelector=t}call(t,e){return e.subscribe(new Qb(t,this.resultSelector))}}class Qb extends zb{constructor(t,e){super(t),this.resultSelector=e,this.active=0,this.values=[],this.observables=[]}_next(t){this.values.push(Wb),this.observables.push(t)}_complete(){const t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(let n=0;n<e;n++)this.add(qb(this,t[n],void 0,n))}}notifyComplete(t){0==(this.active-=1)&&this.destination.complete()}notifyNext(t,e,n){const s=this.values,i=this.toRespond?s[n]===Wb?--this.toRespond:this.toRespond:0;s[n]=e,0===i&&(this.resultSelector?this._tryResultSelector(s):this.destination.next(s.slice()))}_tryResultSelector(t){let e;try{e=this.resultSelector.apply(this,t)}catch(n){return void this.destination.error(n)}this.destination.next(e)}}class Zb{constructor(t){this.total=t}call(t,e){return e.subscribe(new Kb(t,this.total))}}class Kb extends f{constructor(t,e){super(t),this.total=e,this.count=0}_next(t){++this.count>this.total&&this.destination.next(t)}}const Gb=new Set;let Yb,Xb=(()=>{class t{constructor(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):Jb}matchMedia(t){return this._platform.WEBKIT&&function(t){if(!Gb.has(t))try{Yb||(Yb=document.createElement("style"),Yb.setAttribute("type","text/css"),document.head.appendChild(Yb)),Yb.sheet&&(Yb.sheet.insertRule(`@media ${t} {.fx-query-test{ }}`,0),Gb.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Vh))},t.\u0275prov=ht({factory:function(){return new t(Kt(Vh))},token:t,providedIn:"root"}),t})();function Jb(t){return{matches:"all"===t||""===t,media:t,addListener:()=>{},removeListener:()=>{}}}let tv=(()=>{class t{constructor(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new E}ngOnDestroy(){this._destroySubject.next(),this._destroySubject.complete()}isMatched(t){return ev(fc(t)).some(t=>this._registerQuery(t).mql.matches)}observe(t){let e=function(...t){let e=void 0,n=void 0;return x(t[t.length-1])&&(n=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&l(t[0])&&(t=t[0]),q(t,n).lift(new Ub(e))}(ev(fc(t)).map(t=>this._registerQuery(t).observable));return e=Vc(e.pipe(nu(1)),e.pipe(t=>t.lift(new Zb(1)),zu(0))),e.pipe(k(t=>{const e={matches:!1,breakpoints:{}};return t.forEach(({matches:t,query:n})=>{e.matches=e.matches||t,e.breakpoints[n]=t}),e}))}_registerQuery(t){if(this._queries.has(t))return this._queries.get(t);const e=this._mediaMatcher.matchMedia(t),n={observable:new y(t=>{const n=e=>this._zone.run(()=>t.next(e));return e.addListener(n),()=>{e.removeListener(n)}}).pipe(Mc(e),k(({matches:e})=>({query:t,matches:e})),Rc(this._destroySubject)),mql:e};return this._queries.set(t,n),n}}return t.\u0275fac=function(e){return new(e||t)(Kt(Xb),Kt(ql))},t.\u0275prov=ht({factory:function(){return new t(Kt(Xb),Kt(ql))},token:t,providedIn:"root"}),t})();function ev(t){return t.map(t=>t.split(",")).reduce((t,e)=>t.concat(e)).map(t=>t.trim())}const nv={tooltipState:lm("state",[dm("initial, void, hidden",um({opacity:0,transform:"scale(0)"})),dm("visible",um({transform:"scale(1)"})),fm("* => visible",cm("200ms cubic-bezier(0, 0, 0.2, 1)",pm([um({opacity:0,transform:"scale(0)",offset:0}),um({opacity:.5,transform:"scale(0.99)",offset:.5}),um({opacity:1,transform:"scale(1)",offset:1})]))),fm("* => hidden",cm("100ms cubic-bezier(0, 0, 0.2, 1)",um({opacity:0})))])},sv=Hh({passive:!0}),iv=new Lt("mat-tooltip-scroll-strategy"),rv={provide:iv,deps:[Pu],useFactory:function(t){return()=>t.scrollStrategies.reposition({scrollThrottle:20})}},ov=new Lt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}});let av=(()=>{class t{constructor(t,e,n,s,i,r,o,a,l,c,h){this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=s,this._ngZone=i,this._platform=r,this._ariaDescriber=o,this._focusMonitor=a,this._dir=c,this._defaultOptions=h,this._position="below",this._disabled=!1,this._viewInitialized=!1,this._pointerExitEventsInitialized=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this.touchGestures="auto",this._message="",this._passiveListeners=[],this._destroyed=new E,this._handleKeydown=t=>{this._isTooltipVisible()&&27===t.keyCode&&!function(t,...e){return e.length?e.some(e=>t[e]):t.altKey||t.shiftKey||t.ctrlKey||t.metaKey}(t)&&(t.preventDefault(),t.stopPropagation(),this._ngZone.run(()=>this.hide(0)))},this._scrollStrategy=l,h&&(h.position&&(this.position=h.position),h.touchGestures&&(this.touchGestures=h.touchGestures)),i.runOutsideAngular(()=>{e.nativeElement.addEventListener("keydown",this._handleKeydown)})}get position(){return this._position}set position(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))}get disabled(){return this._disabled}set disabled(t){this._disabled=pc(t),this._disabled?this.hide(0):this._setupPointerEnterEventsIfNeeded()}get message(){return this._message}set message(t){this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._setupPointerEnterEventsIfNeeded(),this._updateTooltipMessage(),this._ngZone.runOutsideAngular(()=>{Promise.resolve().then(()=>{this._ariaDescriber.describe(this._elementRef.nativeElement,this.message)})}))}get tooltipClass(){return this._tooltipClass}set tooltipClass(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)}ngAfterViewInit(){this._viewInitialized=!0,this._setupPointerEnterEventsIfNeeded(),this._focusMonitor.monitor(this._elementRef).pipe(Rc(this._destroyed)).subscribe(t=>{t?"keyboard"===t&&this._ngZone.run(()=>this.show()):this._ngZone.run(()=>this.hide(0))})}ngOnDestroy(){const t=this._elementRef.nativeElement;clearTimeout(this._touchstartTimeout),this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),t.removeEventListener("keydown",this._handleKeydown),this._passiveListeners.forEach(([e,n])=>{t.removeEventListener(e,n,sv)}),this._passiveListeners.length=0,this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(t,this.message),this._focusMonitor.stopMonitoring(t)}show(t=this.showDelay){if(this.disabled||!this.message||this._isTooltipVisible()&&!this._tooltipInstance._showTimeoutId&&!this._tooltipInstance._hideTimeoutId)return;const e=this._createOverlay();this._detach(),this._portal=this._portal||new Gh(lv,this._viewContainerRef),this._tooltipInstance=e.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(Rc(this._destroyed)).subscribe(()=>this._detach()),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}hide(t=this.hideDelay){this._tooltipInstance&&this._tooltipInstance.hide(t)}toggle(){this._isTooltipVisible()?this.hide():this.show()}_isTooltipVisible(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()}_createOverlay(){if(this._overlayRef)return this._overlayRef;const t=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),e=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(t);return e.positionChanges.pipe(Rc(this._destroyed)).subscribe(t=>{this._tooltipInstance&&t.scrollableViewProperties.isOverlayClipped&&this._tooltipInstance.isVisible()&&this._ngZone.run(()=>this.hide(0))}),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:e,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(Rc(this._destroyed)).subscribe(()=>this._detach()),this._overlayRef}_detach(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null}_updatePosition(){const t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([Object.assign(Object.assign({},e.main),n.main),Object.assign(Object.assign({},e.fallback),n.fallback)])}_getOrigin(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e||"below"==e?n={originX:"center",originY:"above"==e?"top":"bottom"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={originX:"start",originY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={originX:"end",originY:"center"});const{x:s,y:i}=this._invertPosition(n.originX,n.originY);return{main:n,fallback:{originX:s,originY:i}}}_getOverlayPosition(){const t=!this._dir||"ltr"==this._dir.value,e=this.position;let n;"above"==e?n={overlayX:"center",overlayY:"bottom"}:"below"==e?n={overlayX:"center",overlayY:"top"}:"before"==e||"left"==e&&t||"right"==e&&!t?n={overlayX:"end",overlayY:"center"}:("after"==e||"right"==e&&t||"left"==e&&!t)&&(n={overlayX:"start",overlayY:"center"});const{x:s,y:i}=this._invertPosition(n.overlayX,n.overlayY);return{main:n,fallback:{overlayX:s,overlayY:i}}}_updateTooltipMessage(){this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.pipe(nu(1),Rc(this._destroyed)).subscribe(()=>{this._tooltipInstance&&this._overlayRef.updatePosition()}))}_setTooltipClass(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())}_invertPosition(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}}_setupPointerEnterEventsIfNeeded(){!this._disabled&&this.message&&this._viewInitialized&&!this._passiveListeners.length&&(this._platformSupportsMouseEvents()?this._passiveListeners.push(["mouseenter",()=>{this._setupPointerExitEventsIfNeeded(),this.show()}]):"off"!==this.touchGestures&&(this._disableNativeGesturesIfNecessary(),this._passiveListeners.push(["touchstart",()=>{this._setupPointerExitEventsIfNeeded(),clearTimeout(this._touchstartTimeout),this._touchstartTimeout=setTimeout(()=>this.show(),500)}])),this._addListeners(this._passiveListeners))}_setupPointerExitEventsIfNeeded(){if(this._pointerExitEventsInitialized)return;this._pointerExitEventsInitialized=!0;const t=[];if(this._platformSupportsMouseEvents())t.push(["mouseleave",()=>this.hide()]);else if("off"!==this.touchGestures){this._disableNativeGesturesIfNecessary();const e=()=>{clearTimeout(this._touchstartTimeout),this.hide(this._defaultOptions.touchendHideDelay)};t.push(["touchend",e],["touchcancel",e])}this._addListeners(t),this._passiveListeners.push(...t)}_addListeners(t){t.forEach(([t,e])=>{this._elementRef.nativeElement.addEventListener(t,e,sv)})}_platformSupportsMouseEvents(){return!this._platform.IOS&&!this._platform.ANDROID}_disableNativeGesturesIfNecessary(){const t=this.touchGestures;if("off"!==t){const e=this._elementRef.nativeElement,n=e.style;("on"===t||"INPUT"!==e.nodeName&&"TEXTAREA"!==e.nodeName)&&(n.userSelect=n.msUserSelect=n.webkitUserSelect=n.MozUserSelect="none"),"on"!==t&&e.draggable||(n.webkitUserDrag="none"),n.touchAction="none",n.webkitTapHighlightColor="transparent"}}}return t.\u0275fac=function(e){return new(e||t)(mo(Pu),mo(ha),mo(Wh),mo(Ma),mo(ql),mo(Vh),mo(Zf),mo(Xf),mo(iv),mo($h,8),mo(ov,8))},t.\u0275dir=be({type:t,selectors:[["","matTooltip",""]],hostAttrs:[1,"mat-tooltip-trigger"],inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],touchGestures:["matTooltipTouchGestures","touchGestures"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t})(),lv=(()=>{class t{constructor(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new E,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}show(t){this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(()=>{this._visibility="visible",this._showTimeoutId=null,this._markForCheck()},t)}hide(t){this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout(()=>{this._visibility="hidden",this._hideTimeoutId=null,this._markForCheck()},t)}afterHidden(){return this._onHide}isVisible(){return"visible"===this._visibility}ngOnDestroy(){this._onHide.complete()}_animationStart(){this._closeOnInteraction=!1}_animationDone(t){const e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)}_handleBodyInteraction(){this._closeOnInteraction&&this.hide(0)}_markForCheck(){this._changeDetectorRef.markForCheck()}}return t.\u0275fac=function(e){return new(e||t)(mo(zr),mo(tv))},t.\u0275cmp=pe({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&ko("click",(function(){return e._handleBodyInteraction()}),!1,Wn),2&t&&Mo("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(yo(0,"div",0),ko("@state.start",(function(){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),function(t,e){const n=nn();let s;n.firstCreatePass?(s=function(t,e){if(e)for(let n=e.length-1;n>=0;n--){const s=e[n];if(t===s.name)return s}throw new Error("The pipe 'async' could not be found!")}("async",n.pipeRegistry),n.data[21]=s,s.onDestroy&&(n.destroyHooks||(n.destroyHooks=[])).push(21,s.onDestroy)):s=n.data[21];const i=s.factory||(s.factory=Ce(s.type)),r=Qt(mo),o=Zn(!1),a=i();Zn(o),Qt(r),function(t,e,n,s){21>=t.data.length&&(t.data[21]=null,t.blueprint[21]=null),e[21]=s}(n,en(),0,a)}(),$o(2),bo()),2&t&&(Fo("mat-tooltip-handset",null==(n=el(1,5,e._isHandset))?null:n.matches),_o("ngClass",e.tooltipClass)("@state",e._visibility),_i(2),qo(e.message))},directives:[yh],pipes:[Oh],styles:[".mat-tooltip-panel{pointer-events:none !important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}.cdk-high-contrast-active .mat-tooltip{outline:solid 1px}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}\n"],encapsulation:2,data:{animation:[nv.tooltipState]},changeDetection:0}),t})(),cv=(()=>{class t{}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)},providers:[rv],imports:[[im,Ph,Du,Qg],Qg,Qh]}),t})(),hv=(()=>{class t{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",e=this._document.querySelectorAll("."+t);if(null==e?void 0:e.length)this._containerElement=e[0];else{const e=this._document.createElement("div");e.classList.add(t),this._document.body.appendChild(e),this._containerElement=e}}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();const uv=new Lt("config"),dv=new Lt("NEW_CONFIG"),pv=new Lt("INITIAL_CONFIG"),fv={suffix:"",prefix:"",thousandSeparator:" ",decimalMarker:".",clearIfNotMatch:!1,showTemplate:!1,showMaskTyped:!1,placeHolderCharacter:"_",dropSpecialCharacters:!0,hiddenInput:void 0,shownMaskExpression:"",separatorLimit:"",allowNegativeNumbers:!1,validation:!0,specialCharacters:["-","/","(",")",".",":"," ","+",",","@","[","]",'"',"'"],leadZeroDateTime:!1,patterns:{0:{pattern:new RegExp("\\d")},9:{pattern:new RegExp("\\d"),optional:!0},X:{pattern:new RegExp("\\d"),symbol:"*"},A:{pattern:new RegExp("[a-zA-Z0-9]")},S:{pattern:new RegExp("[a-zA-Z]")},d:{pattern:new RegExp("\\d")},m:{pattern:new RegExp("\\d")},M:{pattern:new RegExp("\\d")},H:{pattern:new RegExp("\\d")},h:{pattern:new RegExp("\\d")},s:{pattern:new RegExp("\\d")}}},mv=["Hh:m0:s0","Hh:m0","m0:s0"],_v=["percent","Hh","s0","m0","separator","d0/M0/0000","d0/M0","d0","M0"];let gv=(()=>{class t{constructor(t){this._config=t,this.maskExpression="",this.actualValue="",this.shownMaskExpression="",this._formatWithSeparators=(t,e,n,s)=>{const i=t.split(n),r=i.length>1?`${n}${i[1]}`:"";let o=i[0];const a=this.separatorLimit.replace(/\s/g,"");a&&+a&&(o="-"===o[0]?"-"+o.slice(1,o.length).slice(0,a.length):o.slice(0,a.length));const l=/(\d+)(\d{3})/;for(;e&&l.test(o);)o=o.replace(l,"$1"+e+"$2");return void 0===s?o+r:0===s?o:o+r.substr(0,s+1)},this.percentage=t=>Number(t)>=0&&Number(t)<=100,this.getPrecision=t=>{const e=t.split(".");return e.length>1?Number(e[e.length-1]):1/0},this.checkAndRemoveSuffix=t=>{var e,n,s;for(let i=(null===(e=this.suffix)||void 0===e?void 0:e.length)-1;i>=0;i--){const e=this.suffix.substr(i,null===(n=this.suffix)||void 0===n?void 0:n.length);if(t.includes(e)&&(i-1<0||!t.includes(this.suffix.substr(i-1,null===(s=this.suffix)||void 0===s?void 0:s.length))))return t.replace(e,"")}return t},this.checkInputPrecision=(t,e,n)=>{if(e<1/0){const s=new RegExp(this._charToRegExpExpression(n)+`\\d{${e}}.*$`),i=t.match(s);i&&i[0].length-1>e&&(t=t.substring(0,t.length-(i[0].length-1-e))),0===e&&t.endsWith(n)&&(t=t.substring(0,t.length-1))}return t},this._shift=new Set,this.clearIfNotMatch=this._config.clearIfNotMatch,this.dropSpecialCharacters=this._config.dropSpecialCharacters,this.maskSpecialCharacters=this._config.specialCharacters,this.maskAvailablePatterns=this._config.patterns,this.prefix=this._config.prefix,this.suffix=this._config.suffix,this.thousandSeparator=this._config.thousandSeparator,this.decimalMarker=this._config.decimalMarker,this.hiddenInput=this._config.hiddenInput,this.showMaskTyped=this._config.showMaskTyped,this.placeHolderCharacter=this._config.placeHolderCharacter,this.validation=this._config.validation,this.separatorLimit=this._config.separatorLimit,this.allowNegativeNumbers=this._config.allowNegativeNumbers,this.leadZeroDateTime=this._config.leadZeroDateTime}applyMaskWithPattern(t,e){const[n,s]=e;return this.customPattern=s,this.applyMask(t,n)}applyMask(t,e,n=0,s=!1,i=!1,r=(()=>{})){if(null==t||void 0===e)return"";let o=0,a="",l=!1,c=!1,h=1,u=!1;t.slice(0,this.prefix.length)===this.prefix&&(t=t.slice(this.prefix.length,t.length)),this.suffix&&(null==t?void 0:t.length)>0&&(t=this.checkAndRemoveSuffix(t));const d=t.toString().split("");"IP"===e&&(this.ipError=!!(d.filter(t=>"."===t).length<3&&d.length<7),e="099.099.099.099");const p=[];for(let y=0;y<t.length;y++)t[y].match("\\d")&&p.push(t[y]);if("CPF_CNPJ"===e&&(this.cpfCnpjError=!(11===p.length||14===p.length),e=p.length>11?"00.000.000/0000-00":"000.000.000-00"),e.startsWith("percent")){if(t.match("[a-z]|[A-Z]")||t.match(/[-!$%^&*()_+|~=`{}\[\]:";'<>?,\/.]/)){t=this._stripToDecimal(t);const n=this.getPrecision(e);t=this.checkInputPrecision(t,n,this.decimalMarker)}if(t.indexOf(".")>0&&!this.percentage(t.substring(0,t.indexOf(".")))){const e=t.substring(0,t.indexOf(".")-1);t=`${e}${t.substring(t.indexOf("."),t.length)}`}a=this.percentage(t)?t:t.substring(0,t.length-1)}else if(e.startsWith("separator")){(t.match("[w\u0430-\u044f\u0410-\u042f]")||t.match("[\u0401\u0451\u0410-\u044f]")||t.match("[a-z]|[A-Z]")||t.match(/[-@#!$%\\^&*()_\xa3\xac'+|~=`{}\[\]:";<>.?\/]/)||t.match("[^A-Za-z0-9,]"))&&(t=this._stripToDecimal(t)),t=t.length>1&&"0"===t[0]&&t[1]!==this.decimalMarker?t.slice(1,t.length):t;const s=this._charToRegExpExpression(this.thousandSeparator),i=this._charToRegExpExpression(this.decimalMarker),r='@#!$%^&*()_+|~=`{}\\[\\]:\\s,\\.";<>?\\/'.replace(s,"").replace(i,""),o=new RegExp("["+r+"]");t.match(o)&&(t=t.substring(0,t.length-1));const l=this.getPrecision(e),u=(t=this.checkInputPrecision(t,l,this.decimalMarker)).replace(new RegExp(s,"g"),"");a=this._formatWithSeparators(u,this.thousandSeparator,this.decimalMarker,l);const d=a.indexOf(",")-t.indexOf(","),p=a.length-t.length;if(p>0&&","!==a[n]){c=!0;let t=0;do{this._shift.add(n+t),t++}while(t<p)}else 0!==d&&n>0&&!(a.indexOf(",")>=n&&n>3)||!(a.indexOf(".")>=n&&n>3)&&p<=0?(this._shift.clear(),c=!0,h=p,this._shift.add(n+=p)):this._shift.clear()}else for(let y=0,b=d[0];y<d.length&&o!==e.length;y++,b=d[y])if(this._checkSymbolMask(b,e[o])&&"?"===e[o+1])a+=b,o+=2;else if("*"===e[o+1]&&l&&this._checkSymbolMask(b,e[o+2]))a+=b,o+=3,l=!1;else if(this._checkSymbolMask(b,e[o])&&"*"===e[o+1])a+=b,l=!0;else if("?"===e[o+1]&&this._checkSymbolMask(b,e[o+2]))a+=b,o+=3;else if(this._checkSymbolMask(b,e[o])){if("H"===e[o]&&Number(b)>2){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("h"===e[o]&&"2"===a&&Number(b)>3){o+=1,y--;continue}if("m"===e[o]&&Number(b)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("s"===e[o]&&Number(b)>5){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}const n=31;if("d"===e[o]&&(Number(b)>3&&this.leadZeroDateTime||Number(t.slice(o,o+2))>n||"/"===t[o+1])){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}if("M"===e[o]){const s=12,i=0===o&&(Number(b)>2||Number(t.slice(o,o+2))>s||"/"===t[o+1]),r=t.slice(o-3,o-1).includes("/")&&("/"===t[o-2]&&Number(t.slice(o-1,o+1))>s&&"/"!==t[o]||"/"===t[o]||"/"===t[o-3]&&Number(t.slice(o-2,o))>s&&"/"!==t[o-1]||"/"===t[o-1]),l=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"===t[o-1]&&(Number(t.slice(o,o+2))>s||"/"===t[o+1]),c=Number(t.slice(o-3,o-1))>n&&!t.slice(o-3,o-1).includes("/")&&!t.slice(o-2,o).includes("/")&&Number(t.slice(o-2,o))>s,h=Number(t.slice(o-3,o-1))<=n&&!t.slice(o-3,o-1).includes("/")&&"/"!==t[o-1]&&Number(t.slice(o-1,o+1))>s;if(Number(b)>1&&this.leadZeroDateTime||i||r||l||c||h){o+=1,this._shiftStep(e,o,d.length),y--,this.leadZeroDateTime&&(a+="0");continue}}a+=b,o++}else-1!==this.maskSpecialCharacters.indexOf(e[o])?(a+=e[o],o++,this._shiftStep(e,o,d.length),y--):this.maskSpecialCharacters.indexOf(b)>-1&&this.maskAvailablePatterns[e[o]]&&this.maskAvailablePatterns[e[o]].optional?(d[o]&&"099.099.099.099"!==e&&"000.000.000-00"!==e&&"00.000.000/0000-00"!==e&&(a+=d[o]),o++,y--):"*"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(b)===this.maskExpression[o+2]&&l||"?"===this.maskExpression[o+1]&&this._findSpecialChar(this.maskExpression[o+2])&&this._findSpecialChar(b)===this.maskExpression[o+2]&&l?(o+=3,a+=b):this.showMaskTyped&&this.maskSpecialCharacters.indexOf(b)<0&&b!==this.placeHolderCharacter&&(u=!0);a.length+1===e.length&&-1!==this.maskSpecialCharacters.indexOf(e[e.length-1])&&(a+=e[e.length-1]);let f=n+1;for(;this._shift.has(f);)h++,f++;let m=s?o:this._shift.has(n)?h:0;u&&m--,r(m,c),h<0&&this._shift.clear();let _=!1;i&&(_=d.every(t=>this.maskSpecialCharacters.includes(t)));let g=`${this.prefix}${_?"":a}${this.suffix}`;return 0===a.length&&(g=`${this.prefix}${a}`),g}_findSpecialChar(t){return this.maskSpecialCharacters.find(e=>e===t)}_checkSymbolMask(t,e){return this.maskAvailablePatterns=this.customPattern?this.customPattern:this.maskAvailablePatterns,this.maskAvailablePatterns[e]&&this.maskAvailablePatterns[e].pattern&&this.maskAvailablePatterns[e].pattern.test(t)}_stripToDecimal(t){return t.split("").filter((t,e)=>t.match("^-?\\d")||t.match("\\s")||"."===t||","===t||"-"===t&&0===e&&this.allowNegativeNumbers).join("")}_charToRegExpExpression(t){if(t){const e="[\\^$.|?*+()";return" "===t?"\\s":e.indexOf(t)>=0?"\\"+t:t}return t}_shiftStep(t,e,n){const s=/[*?]/g.test(t.slice(0,e))?n:e;this._shift.add(s+this.prefix.length||0)}}return t.\u0275fac=function(e){return new(e||t)(Kt(uv))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),yv=(()=>{class t extends gv{constructor(t,e,n,s){super(e),this.document=t,this._config=e,this._elementRef=n,this._renderer=s,this.maskExpression="",this.isNumberValue=!1,this.placeHolderCharacter="_",this.maskIsShown="",this.selStart=null,this.selEnd=null,this.writingValue=!1,this.onChange=t=>{}}applyMask(t,e,n=0,s=!1,i=!1,r=(()=>{})){if(!e)return t;if(this.maskIsShown=this.showMaskTyped?this.showMaskInInput():"","IP"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),"CPF_CNPJ"===this.maskExpression&&this.showMaskTyped&&(this.maskIsShown=this.showMaskInInput(t||"#")),!t&&this.showMaskTyped)return this.formControlResult(this.prefix),this.prefix+this.maskIsShown;const o=t&&"number"==typeof this.selStart?t[this.selStart]:"";let a="";if(this.hiddenInput&&!this.writingValue){let e=this.actualValue.split("");""!==t&&e.length?"number"==typeof this.selStart&&"number"==typeof this.selEnd&&(t.length>e.length?e.splice(this.selStart,0,o):t.length<e.length&&(e.length-t.length==1?e.splice(this.selStart-1,1):e.splice(this.selStart,this.selEnd-this.selStart))):e=[],a=this.actualValue.length&&e.length<=t.length?this.shiftTypedSymbols(e.join("")):t}a=Boolean(a)&&a.length?a:t;const l=super.applyMask(a,e,n,s,i,r);if(this.actualValue=this.getActualValue(l),"."===this.thousandSeparator&&"."===this.decimalMarker&&(this.decimalMarker=","),this.maskExpression.startsWith("separator")&&!0===this.dropSpecialCharacters&&(this.maskSpecialCharacters=this.maskSpecialCharacters.filter(t=>t!==this.decimalMarker)),this.formControlResult(l),!this.showMaskTyped)return this.hiddenInput&&l&&l.length?this.hideInput(l,this.maskExpression):l;const c=l.length,h=this.prefix+this.maskIsShown;if(this.maskExpression.includes("H")){const t=this._numberSkipedSymbols(l);return l+h.slice(c+t)}return"IP"===this.maskExpression||"CPF_CNPJ"===this.maskExpression?l+h:l+h.slice(c)}_numberSkipedSymbols(t){const e=/(^|\D)(\d\D)/g;let n=e.exec(t),s=0;for(;null!=n;)s+=1,n=e.exec(t);return s}applyValueChanges(t=0,e,n,s=(()=>{})){const i=this._elementRef.nativeElement;i.value=this.applyMask(i.value,this.maskExpression,t,e,n,s),i!==this.document.activeElement&&this.clearIfNotMatchFn()}hideInput(t,e){return t.split("").map((t,n)=>this.maskAvailablePatterns&&this.maskAvailablePatterns[e[n]]&&this.maskAvailablePatterns[e[n]].symbol?this.maskAvailablePatterns[e[n]].symbol:t).join("")}getActualValue(t){const e=t.split("").filter((t,e)=>this._checkSymbolMask(t,this.maskExpression[e])||this.maskSpecialCharacters.includes(this.maskExpression[e])&&t===this.maskExpression[e]);return e.join("")===t?e.join(""):t}shiftTypedSymbols(t){let e="";return(t&&t.split("").map((n,s)=>{if(this.maskSpecialCharacters.includes(t[s+1])&&t[s+1]!==this.maskExpression[s+1])return e=n,t[s+1];if(e.length){const t=e;return e="",t}return n})||[]).join("")}showMaskInInput(t){if(this.showMaskTyped&&this.shownMaskExpression){if(this.maskExpression.length!==this.shownMaskExpression.length)throw new Error("Mask expression must match mask placeholder length");return this.shownMaskExpression}if(this.showMaskTyped){if(t){if("IP"===this.maskExpression)return this._checkForIp(t);if("CPF_CNPJ"===this.maskExpression)return this._checkForCpfCnpj(t)}return this.maskExpression.replace(/\w/g,this.placeHolderCharacter)}return""}clearIfNotMatchFn(){const t=this._elementRef.nativeElement;this.clearIfNotMatch&&this.prefix.length+this.maskExpression.length+this.suffix.length!==t.value.replace(/_/g,"").length&&(this.formElementProperty=["value",""],this.applyMask(t.value,this.maskExpression))}set formElementProperty([t,e]){Promise.resolve().then(()=>this._renderer.setProperty(this._elementRef.nativeElement,t,e))}checkSpecialCharAmount(t){return t.split("").filter(t=>this._findSpecialChar(t)).length}removeMask(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters.concat("_").concat(this.placeHolderCharacter))}_checkForIp(t){if("#"===t)return`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`;const e=[];for(let n=0;n<t.length;n++)t[n].match("\\d")&&e.push(t[n]);return e.length<=3?`${this.placeHolderCharacter}.${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>3&&e.length<=6?`${this.placeHolderCharacter}.${this.placeHolderCharacter}`:e.length>6&&e.length<=9?this.placeHolderCharacter:""}_checkForCpfCnpj(t){const e=`${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`,n=`${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}.${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}/${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}${this.placeHolderCharacter}-${this.placeHolderCharacter}${this.placeHolderCharacter}`;if("#"===t)return e;const s=[];for(let i=0;i<t.length;i++)t[i].match("\\d")&&s.push(t[i]);return s.length<=3?e.slice(s.length,e.length):s.length>3&&s.length<=6?e.slice(s.length+1,e.length):s.length>6&&s.length<=9?e.slice(s.length+2,e.length):s.length>9&&s.length<11?e.slice(s.length+3,e.length):11===s.length?"":12===s.length?n.slice(17===t.length?16:15,n.length):s.length>12&&s.length<=14?n.slice(s.length+4,n.length):""}formControlResult(t){this.writingValue||(Array.isArray(this.dropSpecialCharacters)?this.onChange(this._toNumber(this._removeMask(this._removeSuffix(this._removePrefix(t)),this.dropSpecialCharacters))):this.onChange(this.dropSpecialCharacters?this._toNumber(this._checkSymbols(t)):this._removeSuffix(t)))}_toNumber(t){if(!this.isNumberValue||""===t)return t;const e=Number(t);return Number.isNaN(e)?t:e}_removeMask(t,e){return t?t.replace(this._regExpForRemove(e),""):t}_removePrefix(t){return this.prefix&&t?t.replace(this.prefix,""):t}_removeSuffix(t){return this.suffix&&t?t.replace(this.suffix,""):t}_retrieveSeparatorValue(t){return this._removeMask(this._removeSuffix(this._removePrefix(t)),this.maskSpecialCharacters)}_regExpForRemove(t){return new RegExp(t.map(t=>"\\"+t).join("|"),"gi")}_checkSymbols(t){if(""===t)return t;const e=this._retrieveSeparatorPrecision(this.maskExpression);let n=this._retrieveSeparatorValue(t);return"."!==this.decimalMarker&&(n=n.replace(this.decimalMarker,".")),this.isNumberValue?e?t===this.decimalMarker?null:this._checkPrecision(this.maskExpression,n):Number(n):n}_retrieveSeparatorPrecision(t){const e=t.match(new RegExp("^separator\\.([^d]*)"));return e?Number(e[1]):null}_checkPrecision(t,e){return t.indexOf("2")>0?Number(e).toFixed(2):Number(e)}}return t.\u0275fac=function(e){return new(e||t)(Kt(Jc),Kt(uv),Kt(ha),Kt(fa))},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})(),bv=(()=>{class t{constructor(t,e,n){this.document=t,this._maskService=e,this._config=n,this.maskExpression="",this.specialCharacters=[],this.patterns={},this.prefix="",this.suffix="",this.thousandSeparator=" ",this.decimalMarker=".",this.dropSpecialCharacters=null,this.hiddenInput=null,this.showMaskTyped=null,this.placeHolderCharacter=null,this.shownMaskExpression=null,this.showTemplate=null,this.clearIfNotMatch=null,this.validation=null,this.separatorLimit=null,this.allowNegativeNumbers=null,this.leadZeroDateTime=null,this._maskValue="",this._position=null,this._maskExpressionArray=[],this._justPasted=!1,this.onChange=t=>{},this.onTouch=()=>{}}ngOnChanges(t){const{maskExpression:e,specialCharacters:n,patterns:s,prefix:i,suffix:r,thousandSeparator:o,decimalMarker:a,dropSpecialCharacters:l,hiddenInput:c,showMaskTyped:h,placeHolderCharacter:u,shownMaskExpression:d,showTemplate:p,clearIfNotMatch:f,validation:m,separatorLimit:_,allowNegativeNumbers:g,leadZeroDateTime:y}=t;if(e&&(this._maskValue=e.currentValue||"",e.currentValue&&e.currentValue.split("||").length>1&&(this._maskExpressionArray=e.currentValue.split("||").sort((t,e)=>t.length-e.length),this._maskValue=this._maskExpressionArray[0],this.maskExpression=this._maskExpressionArray[0],this._maskService.maskExpression=this._maskExpressionArray[0])),n){if(!n.currentValue||!Array.isArray(n.currentValue))return;this._maskService.maskSpecialCharacters=n.currentValue||[]}s&&s.currentValue&&(this._maskService.maskAvailablePatterns=s.currentValue),i&&(this._maskService.prefix=i.currentValue),r&&(this._maskService.suffix=r.currentValue),o&&(this._maskService.thousandSeparator=o.currentValue),a&&(this._maskService.decimalMarker=a.currentValue),l&&(this._maskService.dropSpecialCharacters=l.currentValue),c&&(this._maskService.hiddenInput=c.currentValue),h&&(this._maskService.showMaskTyped=h.currentValue),u&&(this._maskService.placeHolderCharacter=u.currentValue),d&&(this._maskService.shownMaskExpression=d.currentValue),p&&(this._maskService.showTemplate=p.currentValue),f&&(this._maskService.clearIfNotMatch=f.currentValue),m&&(this._maskService.validation=m.currentValue),_&&(this._maskService.separatorLimit=_.currentValue),g&&(this._maskService.allowNegativeNumbers=g.currentValue,this._maskService.allowNegativeNumbers&&(this._maskService.maskSpecialCharacters=this._maskService.maskSpecialCharacters.filter(t=>"-"!==t))),y&&(this._maskService.leadZeroDateTime=y.currentValue),this._applyMask()}validate({value:t}){if(!this._maskService.validation||!this._maskValue)return null;if(this._maskService.ipError)return this._createValidationError(t);if(this._maskService.cpfCnpjError)return this._createValidationError(t);if(this._maskValue.startsWith("separator"))return null;if(_v.includes(this._maskValue))return null;if(this._maskService.clearIfNotMatch)return null;if(mv.includes(this._maskValue))return this._validateTime(t);if(t&&t.toString().length>=1){let e=0;for(const n in this._maskService.maskAvailablePatterns)if(this._maskService.maskAvailablePatterns[n].optional&&!0===this._maskService.maskAvailablePatterns[n].optional){if(this._maskValue.indexOf(n)!==this._maskValue.lastIndexOf(n)?e+=this._maskValue.split("").filter(t=>t===n).join("").length:-1!==this._maskValue.indexOf(n)&&e++,-1!==this._maskValue.indexOf(n)&&t.toString().length>=this._maskValue.indexOf(n))return null;if(e===this._maskValue.length)return null}if(1===this._maskValue.indexOf("{")&&t.toString().length===this._maskValue.length+Number(this._maskValue.split("{")[1].split("}")[0])-4)return null;if(1===this._maskValue.indexOf("*")||1===this._maskValue.indexOf("?"))return null;if(this._maskValue.indexOf("*")>1&&t.toString().length<this._maskValue.indexOf("*")||this._maskValue.indexOf("?")>1&&t.toString().length<this._maskValue.indexOf("?")||1===this._maskValue.indexOf("{"))return this._createValidationError(t);if(-1===this._maskValue.indexOf("*")||-1===this._maskValue.indexOf("?")){const n=this._maskService.dropSpecialCharacters?this._maskValue.length-this._maskService.checkSpecialCharAmount(this._maskValue)-e:this._maskValue.length-e;if(t.toString().length<n)return this._createValidationError(t)}}return null}onPaste(){this._justPasted=!0}onInput(t){const e=t.target;if(this._inputValue=e.value,this._setMask(),!this._maskValue)return void this.onChange(e.value);const n=1===e.selectionStart?e.selectionStart+this._maskService.prefix.length:e.selectionStart;let s=0,i=!1;if(this._maskService.applyValueChanges(n,this._justPasted,"Backspace"===this._code,(t,e)=>{this._justPasted=!1,s=t,i=e}),this.document.activeElement!==e)return;this._position=1===this._position&&1===this._inputValue.length?null:this._position;let r=this._position?this._inputValue.length+n+s:n+("Backspace"!==this._code||i?s:0);r>this._getActualInputLength()&&(r=this._getActualInputLength()),e.setSelectionRange(r,r),this._position=null}onBlur(){this._maskValue&&this._maskService.clearIfNotMatchFn(),this.onTouch()}onFocus(t){if(!this._maskValue)return;const e=t.target;null!==e&&null!==e.selectionStart&&e.selectionStart===e.selectionEnd&&e.selectionStart>this._maskService.prefix.length&&38!==t.keyCode&&this._maskService.showMaskTyped&&(this._maskService.maskIsShown=this._maskService.showMaskInInput(),e.setSelectionRange&&this._maskService.prefix+this._maskService.maskIsShown===e.value?(e.focus(),e.setSelectionRange(0,0)):e.selectionStart>this._maskService.actualValue.length&&e.setSelectionRange(this._maskService.actualValue.length,this._maskService.actualValue.length));const n=e.value&&e.value!==this._maskService.prefix?e.value:this._maskService.prefix+this._maskService.maskIsShown;e.value!==n&&(e.value=n),(e.selectionStart||e.selectionEnd)<=this._maskService.prefix.length?e.selectionStart=this._maskService.prefix.length:e.selectionEnd>this._getActualInputLength()&&(e.selectionEnd=this._getActualInputLength())}onKeyDown(t){var e;if(!this._maskValue)return;this._code=t.code?t.code:t.key;const n=t.target;if(this._inputValue=n.value,this._setMask(),38===t.keyCode&&t.preventDefault(),37===t.keyCode||8===t.keyCode||46===t.keyCode){if(8===t.keyCode&&0===n.value.length&&(n.selectionStart=n.selectionEnd),8===t.keyCode&&0!==n.selectionStart)if(this.specialCharacters=(null===(e=this.specialCharacters)||void 0===e?void 0:e.length)?this.specialCharacters:this._config.specialCharacters,this.prefix.length>1&&n.selectionStart<=this.prefix.length)n.setSelectionRange(this.prefix.length,this.prefix.length);else{if(this._inputValue.length!==n.selectionStart&&1!==n.selectionStart)for(;this.specialCharacters.includes(this._inputValue[n.selectionStart-1].toString())&&(this.prefix.length>=1&&n.selectionStart>this.prefix.length||0===this.prefix.length);)n.setSelectionRange(n.selectionStart-1,n.selectionStart-1);this.suffixCheckOnPressDelete(t.keyCode,n)}this.suffixCheckOnPressDelete(t.keyCode,n),this._maskService.prefix.length&&n.selectionStart<=this._maskService.prefix.length&&n.selectionEnd<=this._maskService.prefix.length&&t.preventDefault();const s=n.selectionStart;8!==t.keyCode||n.readOnly||0!==s||n.selectionEnd!==n.value.length||0===n.value.length||(this._position=this._maskService.prefix?this._maskService.prefix.length:0,this._maskService.applyMask(this._maskService.prefix,this._maskService.maskExpression,this._position))}this.suffix&&this.suffix.length>1&&this._inputValue.length-this.suffix.length<n.selectionStart?n.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length):(65===t.keyCode&&!0===t.ctrlKey||65===t.keyCode&&!0===t.metaKey)&&(n.setSelectionRange(0,this._getActualInputLength()),t.preventDefault()),this._maskService.selStart=n.selectionStart,this._maskService.selEnd=n.selectionEnd}writeValue(t){return e=this,void 0,s=function*(){"object"==typeof t&&null!==t&&"value"in t&&("disable"in t&&this.setDisabledState(Boolean(t.disable)),t=t.value),void 0===t&&(t=""),"number"==typeof t&&(t=String(t),t="."!==this.decimalMarker?t.replace(".",this.decimalMarker):t,this._maskService.isNumberValue=!0),this._inputValue=t,this._setMask(),t&&this._maskService.maskExpression||this._maskService.maskExpression&&(this._maskService.prefix||this._maskService.showMaskTyped)?(this._maskService.writingValue=!0,this._maskService.formElementProperty=["value",this._maskService.applyMask(t,this._maskService.maskExpression)],this._maskService.writingValue=!1):this._maskService.formElementProperty=["value",t],this._inputValue=t},new((n=void 0)||(n=Promise))((function(t,i){function r(t){try{a(s.next(t))}catch(e){i(e)}}function o(t){try{a(s.throw(t))}catch(e){i(e)}}function a(e){var s;e.done?t(e.value):(s=e.value,s instanceof n?s:new n((function(t){t(s)}))).then(r,o)}a((s=s.apply(e,[])).next())}));var e,n,s}registerOnChange(t){this.onChange=t,this._maskService.onChange=this.onChange}registerOnTouched(t){this.onTouch=t}suffixCheckOnPressDelete(t,e){46===t&&this.suffix.length>0&&this._inputValue.length-this.suffix.length<=e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),8===t&&(this.suffix.length>1&&this._inputValue.length-this.suffix.length<e.selectionStart&&e.setSelectionRange(this._inputValue.length-this.suffix.length,this._inputValue.length),1===this.suffix.length&&this._inputValue.length===e.selectionStart&&e.setSelectionRange(e.selectionStart-1,e.selectionStart-1))}setDisabledState(t){this._maskService.formElementProperty=["disabled",t]}_repeatPatternSymbols(t){return t.match(/{[0-9]+}/)&&t.split("").reduce((e,n,s)=>{if(this._start="{"===n?s:this._start,"}"!==n)return this._maskService._findSpecialChar(n)?e+n:e;this._end=s;const i=Number(t.slice(this._start+1,this._end));return e+new Array(i+1).join(t[this._start-1])},"")||t}_applyMask(){this._maskService.maskExpression=this._repeatPatternSymbols(this._maskValue||""),this._maskService.formElementProperty=["value",this._maskService.applyMask(this._inputValue,this._maskService.maskExpression)]}_validateTime(t){const e=this._maskValue.split("").filter(t=>":"!==t).length;return null===t||0===t.length?null:0==+t[t.length-1]&&t.length<e||t.length<=e-2?this._createValidationError(t):null}_getActualInputLength(){return this._maskService.actualValue.length||this._maskService.actualValue.length+this._maskService.prefix.length}_createValidationError(t){return{mask:{requiredMask:this._maskValue,actualValue:t}}}_setMask(){this._maskExpressionArray.length>0&&this._maskExpressionArray.some(t=>{const e=this._maskService.removeMask(this._inputValue).length<=this._maskService.removeMask(t).length;if(this._inputValue&&e)return this._maskValue=t,this.maskExpression=t,this._maskService.maskExpression=t,e;this._maskValue=this._maskExpressionArray[this._maskExpressionArray.length-1],this.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1],this._maskService.maskExpression=this._maskExpressionArray[this._maskExpressionArray.length-1]})}}return t.\u0275fac=function(e){return new(e||t)(mo(Jc),mo(yv),mo(uv))},t.\u0275dir=be({type:t,selectors:[["input","mask",""],["textarea","mask",""]],hostBindings:function(t,e){1&t&&ko("paste",(function(){return e.onPaste()}))("input",(function(t){return e.onInput(t)}))("blur",(function(){return e.onBlur()}))("click",(function(t){return e.onFocus(t)}))("keydown",(function(t){return e.onKeyDown(t)}))},inputs:{maskExpression:["mask","maskExpression"],specialCharacters:"specialCharacters",patterns:"patterns",prefix:"prefix",suffix:"suffix",thousandSeparator:"thousandSeparator",decimalMarker:"decimalMarker",dropSpecialCharacters:"dropSpecialCharacters",hiddenInput:"hiddenInput",showMaskTyped:"showMaskTyped",placeHolderCharacter:"placeHolderCharacter",shownMaskExpression:"shownMaskExpression",showTemplate:"showTemplate",clearIfNotMatch:"clearIfNotMatch",validation:"validation",separatorLimit:"separatorLimit",allowNegativeNumbers:"allowNegativeNumbers",leadZeroDateTime:"leadZeroDateTime"},features:[oa([{provide:xp,useExisting:Et(()=>t),multi:!0},{provide:Lp,useExisting:Et(()=>t),multi:!0},yv]),Ne]}),t})(),vv=(()=>{class t{static forRoot(e){return{ngModule:t,providers:[{provide:dv,useValue:e},{provide:pv,useValue:fv},{provide:uv,useFactory:wv,deps:[pv,dv]},gv]}}static forChild(){return{ngModule:t}}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)}}),t})();function wv(t,e){return Object.assign(Object.assign({},t),e instanceof Function?e():e)}"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self&&self;let Cv=(()=>{class t{constructor(){this.errorStateMatcher={isErrorState:()=>!!this.error||!this.valueCanBeChanged&&this.formControl.dirty},this.formControl=new Ef(""),this.onEnter$=new E,this.valueCanBeChanged=!1}ngOnInit(){this.onEnter$.pipe(zu(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(Ic(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 e;this.disabled?this.formControl.disable({emitEvent:!1}):this.formControl.enable({emitEvent:!1}),t.value&&!(null===(e=this.input)||void 0===e?void 0:e.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 t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=ht({token:t,factory:t.\u0275fac}),t})();var Ev=n("MIfU");function Sv(t,e){if(1&t&&(yo(0,"mat-label"),$o(1),bo()),2&t){const t=Io();_i(1),qo(t.label)}}function xv(t,e){if(1&t){const t=Eo();yo(0,"button",5),ko("click",(function(){return sn(t),Io().setCurrentTime()})),yo(1,"mat-icon"),$o(2,"access_time"),bo(),bo()}2&t&&_o("disabled",Io().disabled)}function kv(t,e){if(1&t&&(yo(0,"mat-error"),$o(1),bo()),2&t){const t=Io();_i(1),Wo(" ",t.error," ")}}let Tv=(()=>{class t extends Cv{constructor(){super(...arguments),this.id=Object(Ev.generate)()}ngOnChanges(t){this.updateOnBlur=!1,super.ngOnChanges(t)}setCurrentTime(){const t=new Date,e=t.getHours(),n=`${e<10?"0":""}${e}`,s=t.getMinutes();this.formControl.setValue(`${n}:${s<10?"0":""}${s}`)}shouldValueChange(t){return!t||t.match(/^([0-9]|0[0-9]|1[0-9]|2[0-3]):[0-5][0-9]$/)}}return t.\u0275fac=function(e){return Av(e||t)},t.\u0275cmp=pe({type:t,selectors:[["drayman-timepicker-internal"]],viewQuery:function(t,e){var n;1&t&&fl(Bb,!0),2&t&&pl(n=bl())&&(e.input=n.first)},inputs:{showNowButton:"showNowButton",appearance:"appearance",value:"value",label:"label",disabled:"disabled",placeholder:"placeholder",helpText:"helpText",error:"error",onValueChange:"onValueChange",updateOnBlur:"updateOnBlur"},features:[Zo,Ne],decls:8,vars:11,consts:[["aria-label","Timepicker field",3,"appearance","floatLabel"],[4,"ngIf"],["matInput","","autocomplete","off","mask","Hh:m0",3,"id","formControl","errorStateMatcher","leadZeroDateTime","dropSpecialCharacters","blur"],["fxLayout","row","matSuffix",""],["aria-label","Now","class","mat-datepicker-toggle","mat-icon-button","","matTooltip","Now",3,"disabled","click",4,"ngIf"],["aria-label","Now","mat-icon-button","","matTooltip","Now",1,"mat-datepicker-toggle",3,"disabled","click"]],template:function(t,e){1&t&&(yo(0,"mat-form-field",0),fo(1,Sv,2,1,"mat-label",1),yo(2,"input",2),ko("blur",(function(){return e.onBlur()})),bo(),yo(3,"div",3),fo(4,xv,3,1,"button",4),bo(),yo(5,"mat-hint"),$o(6),bo(),fo(7,kv,2,1,"mat-error",1),bo()),2&t&&(_o("appearance",e.appearance||"outline")("floatLabel","auto"),_i(1),_o("ngIf",e.label),_i(1),_o("id",e.id)("formControl",e.formControl)("errorStateMatcher",e.errorStateMatcher)("leadZeroDateTime",!0)("dropSpecialCharacters",!1),_i(2),_o("ngIf",e.showNowButton),_i(2),qo(e.helpText),_i(1),_o("ngIf",e.error))},directives:[Yy,bh,Bb,bv,Op,Vp,Pf,yp,Wy,By,Hy,fy,av,Ob,Vy],styles:["mat-form-field[_ngcontent-%COMP%]{width:100%} .mat-form-field-infix{width:auto!important}"]}),t})();const Av=hs(Tv);let Iv=(()=>{class t{constructor(t){this.injector=t}ngDoBootstrap(){const t=function(t,e){const n=function(t,e){return e.get(ca).resolveComponentFactory(t).inputs}(t,e.injector),s=e.strategyFactory||new Fu(t,e.injector),i=function(t){const e={};return t.forEach(({propName:t,templateName:n})=>{var s;e[(s=n,s.replace(/[A-Z]/g,t=>"-"+t.toLowerCase()))]=t}),e}(n);class r extends ju{constructor(t){super(),this.injector=t}get ngElementStrategy(){if(!this._ngElementStrategy){const t=this._ngElementStrategy=s.create(this.injector||e.injector),i=n.filter(({propName:t})=>this.hasOwnProperty(t)).map(({propName:t})=>[t,this[t]]);this instanceof r?i.forEach(([t])=>delete this[t]):Bu(n,this),i.forEach(([e,n])=>t.setInputValue(e,n))}return this._ngElementStrategy}attributeChangedCallback(t,e,n,s){this.ngElementStrategy.setInputValue(i[t],n)}connectedCallback(){let t=!1;this.ngElementStrategy.events&&(this.subscribeToEvents(),t=!0),this.ngElementStrategy.connect(this),t||this.subscribeToEvents()}disconnectedCallback(){this._ngElementStrategy&&this._ngElementStrategy.disconnect(),this.ngElementEventsSubscription&&(this.ngElementEventsSubscription.unsubscribe(),this.ngElementEventsSubscription=null)}subscribeToEvents(){this.ngElementEventsSubscription=this.ngElementStrategy.events.subscribe(t=>{const e=function(t,e,n){if("function"!=typeof CustomEvent){const s=t.createEvent("CustomEvent");return s.initCustomEvent(e,!1,!1,n),s}return new CustomEvent(e,{bubbles:!1,cancelable:!1,detail:n})}(this.ownerDocument,t.name,t.value);this.dispatchEvent(e)})}}return r.observedAttributes=Object.keys(i),Object.defineProperty(r.prototype,"ngElementStrategy",{enumerable:!0}),Bu(n,r.prototype),r}(Tv,{injector:this.injector});customElements.define("drayman-timepicker",t)}}return t.\u0275mod=ge({type:t}),t.\u0275inj=ut({factory:function(e){return new(e||t)(Kt(io))},providers:[{provide:bu,useClass:hv}],imports:[[hp,$g,Xy,Hb,Ff,Mf,Pb,Cp,my,cv,vv.forRoot()]]}),t})();(function(){if(xs)throw new Error("Cannot enable prod mode after platform setup.");Ss=!1})(),lp().bootstrapModule(Iv).catch(t=>console.error(t))},zn8P:function(t,e){function n(t){return Promise.resolve().then((function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}))}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="zn8P"}});