-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.cc72ec69f3bedad44c02.js
More file actions
1 lines (1 loc) · 183 KB
/
main.cc72ec69f3bedad44c02.js
File metadata and controls
1 lines (1 loc) · 183 KB
1
(self.webpackChunkangular_starter=self.webpackChunkangular_starter||[]).push([[179],{255:Do=>{function Dn(Eo){return Promise.resolve().then(()=>{var En=new Error("Cannot find module '"+Eo+"'");throw En.code="MODULE_NOT_FOUND",En})}Dn.keys=()=>[],Dn.resolve=Dn,Dn.id=255,Do.exports=Dn},419:(Do,Dn,Eo)=>{"use strict";var En=function(e,t){return(En=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,r){n.__proto__=r}||function(n,r){for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])})(e,t)};function bo(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}En(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}function Vd(e,t){var r,o,i,s,n={label:0,sent:function(){if(1&i[0])throw i[1];return i[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(u){return function(c){return function(u){if(r)throw new TypeError("Generator is already executing.");for(;n;)try{if(r=1,o&&(i=2&u[0]?o.return:u[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,u[1])).done)return i;switch(o=0,i&&(u=[2&u[0],i.value]),u[0]){case 0:case 1:i=u;break;case 4:return n.label++,{value:u[1],done:!1};case 5:n.label++,o=u[1],u=[0];continue;case 7:u=n.ops.pop(),n.trys.pop();continue;default:if(!(i=(i=n.trys).length>0&&i[i.length-1])&&(6===u[0]||2===u[0])){n=0;continue}if(3===u[0]&&(!i||u[1]>i[0]&&u[1]<i[3])){n.label=u[1];break}if(6===u[0]&&n.label<i[1]){n.label=i[1],i=u;break}if(i&&n.label<i[2]){n.label=i[2],n.ops.push(u);break}i[2]&&n.ops.pop(),n.trys.pop();continue}u=t.call(e,n)}catch(c){u=[6,c],o=0}finally{r=i=0}if(5&u[0])throw u[1];return{value:u[0]?u[1]:void 0,done:!0}}([u,c])}}}function gr(e){var t="function"==typeof Symbol&&Symbol.iterator,n=t&&e[t],r=0;if(n)return n.call(e);if(e&&"number"==typeof e.length)return{next:function(){return e&&r>=e.length&&(e=void 0),{value:e&&e[r++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function jn(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var o,s,r=n.call(e),i=[];try{for(;(void 0===t||t-- >0)&&!(o=r.next()).done;)i.push(o.value)}catch(a){s={error:a}}finally{try{o&&!o.done&&(n=r.return)&&n.call(r)}finally{if(s)throw s.error}}return i}function mr(e,t){for(var n=0,r=t.length,o=e.length;n<r;n++,o++)e[o]=t[n];return e}function Hn(e){return this instanceof Hn?(this.v=e,this):new Hn(e)}function Cv(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var o,r=n.apply(e,t||[]),i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(f){r[f]&&(o[f]=function(h){return new Promise(function(p,m){i.push([f,h,p,m])>1||a(f,h)})})}function a(f,h){try{!function(f){f.value instanceof Hn?Promise.resolve(f.value.v).then(u,c):d(i[0][2],f)}(r[f](h))}catch(p){d(i[0][3],p)}}function u(f){a("next",f)}function c(f){a("throw",f)}function d(f,h){f(h),i.shift(),i.length&&a(i[0][0],i[0][1])}}function Ee(e){return"function"==typeof e}function Ld(e){var n=e(function(r){Error.call(r),r.stack=(new Error).stack});return n.prototype=Object.create(Error.prototype),n.prototype.constructor=n,n}var Ra=Ld(function(e){return function(n){e(this),this.message=n?n.length+" errors occurred during unsubscription:\n"+n.map(function(r,o){return o+1+") "+r.toString()}).join("\n "):"",this.name="UnsubscriptionError",this.errors=n}});function Fa(e,t){if(e){var n=e.indexOf(t);0<=n&&e.splice(n,1)}}var $n=function(){function e(t){this.initialTeardown=t,this.closed=!1,this._parentage=null,this._teardowns=null}return e.prototype.unsubscribe=function(){var t,n,r,o,i;if(!this.closed){this.closed=!0;var s=this._parentage;if(s)if(this._parentage=null,Array.isArray(s))try{for(var a=gr(s),l=a.next();!l.done;l=a.next())l.value.remove(this)}catch(m){t={error:m}}finally{try{l&&!l.done&&(n=a.return)&&n.call(a)}finally{if(t)throw t.error}}else s.remove(this);var c=this.initialTeardown;if(Ee(c))try{c()}catch(m){i=m instanceof Ra?m.errors:[m]}var d=this._teardowns;if(d){this._teardowns=null;try{for(var f=gr(d),h=f.next();!h.done;h=f.next()){var p=h.value;try{Hd(p)}catch(m){i=null!=i?i:[],m instanceof Ra?i=mr(mr([],jn(i)),jn(m.errors)):i.push(m)}}}catch(m){r={error:m}}finally{try{h&&!h.done&&(o=f.return)&&o.call(f)}finally{if(r)throw r.error}}}if(i)throw new Ra(i)}},e.prototype.add=function(t){var n;if(t&&t!==this)if(this.closed)Hd(t);else{if(t instanceof e){if(t.closed||t._hasParent(this))return;t._addParent(this)}(this._teardowns=null!==(n=this._teardowns)&&void 0!==n?n:[]).push(t)}},e.prototype._hasParent=function(t){var n=this._parentage;return n===t||Array.isArray(n)&&n.includes(t)},e.prototype._addParent=function(t){var n=this._parentage;this._parentage=Array.isArray(n)?(n.push(t),n):n?[n,t]:t},e.prototype._removeParent=function(t){var n=this._parentage;n===t?this._parentage=null:Array.isArray(n)&&Fa(n,t)},e.prototype.remove=function(t){var n=this._teardowns;n&&Fa(n,t),t instanceof e&&t._removeParent(this)},e.EMPTY=((t=new e).closed=!0,t),e;var t}(),Bd=$n.EMPTY;function jd(e){return e instanceof $n||e&&"closed"in e&&Ee(e.remove)&&Ee(e.add)&&Ee(e.unsubscribe)}function Hd(e){Ee(e)?e():e.unsubscribe()}var Vi={setTimeout:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Vi.delegate;return((null==n?void 0:n.setTimeout)||setTimeout).apply(void 0,mr([],jn(e)))},clearTimeout:function(e){var t=Vi.delegate;return((null==t?void 0:t.clearTimeout)||clearTimeout)(e)},delegate:void 0};function $d(e){Vi.setTimeout(function(){throw e})}function ki(){}var Ev=Va("C",void 0,void 0);function Va(e,t,n){return{kind:e,value:t,error:n}}function Li(e){e()}var ka=function(e){function t(n){var r=e.call(this)||this;return r.isStopped=!1,n?(r.destination=n,jd(n)&&n.add(r)):r.destination=Iv,r}return bo(t,e),t.create=function(n,r,o){return new La(n,r,o)},t.prototype.next=function(n){this.isStopped?ja(function(e){return Va("N",e,void 0)}(n),this):this._next(n)},t.prototype.error=function(n){this.isStopped?ja(function(e){return Va("E",void 0,e)}(n),this):(this.isStopped=!0,this._error(n))},t.prototype.complete=function(){this.isStopped?ja(Ev,this):(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this),this.destination=null)},t.prototype._next=function(n){this.destination.next(n)},t.prototype._error=function(n){try{this.destination.error(n)}finally{this.unsubscribe()}},t.prototype._complete=function(){try{this.destination.complete()}finally{this.unsubscribe()}},t}($n),La=function(e){function t(n,r,o){var s,i=e.call(this)||this;if(Ee(n))s=n;else if(n){var a;r=n.error,o=n.complete,a=n,s=null==(s=n.next)?void 0:s.bind(a),r=null==r?void 0:r.bind(a),o=null==o?void 0:o.bind(a)}return i.destination={next:s?Ba(s):ki,error:Ba(null!=r?r:Ud),complete:o?Ba(o):ki},i}return bo(t,e),t}(ka);function Ba(e,t){return function(){for(var n=[],r=0;r<arguments.length;r++)n[r]=arguments[r];try{e.apply(void 0,mr([],jn(n)))}catch(o){$d(o)}}}function Ud(e){throw e}function ja(e,t){var n=null;n&&Vi.setTimeout(function(){return n(e,t)})}var Iv={closed:!0,next:ki,error:Ud,complete:ki},Bi="function"==typeof Symbol&&Symbol.observable||"@@observable";function Gd(e){return e}function Wd(e){return 0===e.length?Gd:1===e.length?e[0]:function(n){return e.reduce(function(r,o){return o(r)},n)}}var Re=function(){function e(t){t&&(this._subscribe=t)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(t,n,r){var o=this,i=function(e){return e&&e instanceof ka||function(e){return e&&Ee(e.next)&&Ee(e.error)&&Ee(e.complete)}(e)&&jd(e)}(t)?t:new La(t,n,r);return Li(function(){var a=o.operator,l=o.source;i.add(a?a.call(i,l):l?o._subscribe(i):o._trySubscribe(i))}),i},e.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){t.error(n)}},e.prototype.forEach=function(t,n){var r=this;return new(n=qd(n))(function(o,i){var s;s=r.subscribe(function(a){try{t(a)}catch(l){i(l),null==s||s.unsubscribe()}},i,o)})},e.prototype._subscribe=function(t){var n;return null===(n=this.source)||void 0===n?void 0:n.subscribe(t)},e.prototype[Bi]=function(){return this},e.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return Wd(t)(this)},e.prototype.toPromise=function(t){var n=this;return new(t=qd(t))(function(r,o){var i;n.subscribe(function(s){return i=s},function(s){return o(s)},function(){return r(i)})})},e.create=function(t){return new e(t)},e}();function qd(e){var t;return null!==(t=null!=e?e:undefined)&&void 0!==t?t:Promise}var Tv=Ld(function(e){return function(){e(this),this.name="ObjectUnsubscribedError",this.message="object unsubscribed"}}),Ha=function(e){function t(){var n=e.call(this)||this;return n.closed=!1,n.observers=[],n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return bo(t,e),t.prototype.lift=function(n){var r=new zd(this,this);return r.operator=n,r},t.prototype._throwIfClosed=function(){if(this.closed)throw new Tv},t.prototype.next=function(n){var r=this;Li(function(){var o,i;if(r._throwIfClosed(),!r.isStopped){var s=r.observers.slice();try{for(var a=gr(s),l=a.next();!l.done;l=a.next())l.value.next(n)}catch(c){o={error:c}}finally{try{l&&!l.done&&(i=a.return)&&i.call(a)}finally{if(o)throw o.error}}}})},t.prototype.error=function(n){var r=this;Li(function(){if(r._throwIfClosed(),!r.isStopped){r.hasError=r.isStopped=!0,r.thrownError=n;for(var o=r.observers;o.length;)o.shift().error(n)}})},t.prototype.complete=function(){var n=this;Li(function(){if(n._throwIfClosed(),!n.isStopped){n.isStopped=!0;for(var r=n.observers;r.length;)r.shift().complete()}})},t.prototype.unsubscribe=function(){this.isStopped=this.closed=!0,this.observers=null},Object.defineProperty(t.prototype,"observed",{get:function(){var n;return(null===(n=this.observers)||void 0===n?void 0:n.length)>0},enumerable:!1,configurable:!0}),t.prototype._trySubscribe=function(n){return this._throwIfClosed(),e.prototype._trySubscribe.call(this,n)},t.prototype._subscribe=function(n){return this._throwIfClosed(),this._checkFinalizedStatuses(n),this._innerSubscribe(n)},t.prototype._innerSubscribe=function(n){var r=this,s=r.observers;return r.hasError||r.isStopped?Bd:(s.push(n),new $n(function(){return Fa(s,n)}))},t.prototype._checkFinalizedStatuses=function(n){var r=this,s=r.isStopped;r.hasError?n.error(r.thrownError):s&&n.complete()},t.prototype.asObservable=function(){var n=new Re;return n.source=this,n},t.create=function(n,r){return new zd(n,r)},t}(Re),zd=function(e){function t(n,r){var o=e.call(this)||this;return o.destination=n,o.source=r,o}return bo(t,e),t.prototype.next=function(n){var r,o;null===(o=null===(r=this.destination)||void 0===r?void 0:r.next)||void 0===o||o.call(r,n)},t.prototype.error=function(n){var r,o;null===(o=null===(r=this.destination)||void 0===r?void 0:r.error)||void 0===o||o.call(r,n)},t.prototype.complete=function(){var n,r;null===(r=null===(n=this.destination)||void 0===n?void 0:n.complete)||void 0===r||r.call(n)},t.prototype._subscribe=function(n){var r,o;return null!==(o=null===(r=this.source)||void 0===r?void 0:r.subscribe(n))&&void 0!==o?o:Bd},t}(Ha);function ji(e){return function(t){if(function(e){return Ee(null==e?void 0:e.lift)}(t))return t.lift(function(n){try{return e(n,this)}catch(r){this.error(r)}});throw new TypeError("Unable to lift unknown Observable type")}}var wo=function(e){function t(n,r,o,i,s){var a=e.call(this,n)||this;return a.onFinalize=s,a._next=r?function(l){try{r(l)}catch(u){n.error(u)}}:e.prototype._next,a._error=i?function(l){try{i(l)}catch(u){n.error(u)}finally{this.unsubscribe()}}:e.prototype._error,a._complete=o?function(){try{o()}catch(l){n.error(l)}finally{this.unsubscribe()}}:e.prototype._complete,a}return bo(t,e),t.prototype.unsubscribe=function(){var n,r=this.closed;e.prototype.unsubscribe.call(this),!r&&(null===(n=this.onFinalize)||void 0===n||n.call(this))},t}(ka);function $a(e,t){return ji(function(n,r){var o=0;n.subscribe(new wo(r,function(i){r.next(e.call(t,i,o++))}))})}var Qd=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function Kd(e){return Ee(null==e?void 0:e.then)}function Yd(e,t){return new Re(function(n){var r=0;return t.schedule(function(){r===e.length?n.complete():(n.next(e[r++]),n.closed||this.schedule())})})}var Zd="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator";function Jd(e,t){if(!e)throw new Error("Iterable cannot be null");return new Re(function(n){var r=new $n;return r.add(t.schedule(function(){var o=e[Symbol.asyncIterator]();r.add(t.schedule(function(){var i=this;o.next().then(function(s){s.done?n.complete():(n.next(s.value),i.schedule())})}))})),r})}function Xd(e){return Ee(e[Bi])}function ef(e){return Ee(null==e?void 0:e[Zd])}function tf(e){return Symbol.asyncIterator&&Ee(null==e?void 0:e[Symbol.asyncIterator])}function nf(e){return new TypeError("You provided "+(null!==e&&"object"==typeof e?"an invalid object":"'"+e+"'")+" where a stream was expected. You can provide an Observable, Promise, ReadableStream, Array, AsyncIterable, or Iterable.")}function rf(e){return Cv(this,arguments,function(){var n,r,o;return Vd(this,function(s){switch(s.label){case 0:n=e.getReader(),s.label=1;case 1:s.trys.push([1,,9,10]),s.label=2;case 2:return[4,Hn(n.read())];case 3:return r=s.sent(),o=r.value,r.done?[4,Hn(void 0)]:[3,5];case 4:return[2,s.sent()];case 5:return[4,Hn(o)];case 6:return[4,s.sent()];case 7:return s.sent(),[3,2];case 8:return[3,10];case 9:return n.releaseLock(),[7];case 10:return[2]}})})}function of(e){return Ee(null==e?void 0:e.getReader)}function sf(e,t){return t?function(e,t){if(null!=e){if(Xd(e))return function(e,t){return new Re(function(n){var r=new $n;return r.add(t.schedule(function(){var o=e[Bi]();r.add(o.subscribe({next:function(i){r.add(t.schedule(function(){return n.next(i)}))},error:function(i){r.add(t.schedule(function(){return n.error(i)}))},complete:function(){r.add(t.schedule(function(){return n.complete()}))}}))})),r})}(e,t);if(Qd(e))return Yd(e,t);if(Kd(e))return function(e,t){return new Re(function(n){return t.schedule(function(){return e.then(function(r){n.add(t.schedule(function(){n.next(r),n.add(t.schedule(function(){return n.complete()}))}))},function(r){n.add(t.schedule(function(){return n.error(r)}))})})})}(e,t);if(tf(e))return Jd(e,t);if(ef(e))return function(e,t){return new Re(function(n){var r;return n.add(t.schedule(function(){r=e[Zd](),function(e,t,n,r){void 0===r&&(r=0);var o=t.schedule(function(){try{n.call(this)}catch(i){e.error(i)}},r);e.add(o)}(n,t,function(){var o=r.next(),i=o.value;o.done?n.complete():(n.next(i),this.schedule())})})),function(){return Ee(null==r?void 0:r.return)&&r.return()}})}(e,t);if(of(e))return function(e,t){return Jd(rf(e),t)}(e,t)}throw nf(e)}(e,t):Mo(e)}function Mo(e){if(e instanceof Re)return e;if(null!=e){if(Xd(e))return function(e){return new Re(function(t){var n=e[Bi]();if(Ee(n.subscribe))return n.subscribe(t);throw new TypeError("Provided object does not correctly implement Symbol.observable")})}(e);if(Qd(e))return af(e);if(Kd(e))return function(e){return new Re(function(t){e.then(function(n){t.closed||(t.next(n),t.complete())},function(n){return t.error(n)}).then(null,$d)})}(e);if(tf(e))return lf(e);if(ef(e))return function(e){return new Re(function(t){var n,r;try{for(var o=gr(e),i=o.next();!i.done;i=o.next())if(t.next(i.value),t.closed)return}catch(a){n={error:a}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}t.complete()})}(e);if(of(e))return function(e){return lf(rf(e))}(e)}throw nf(e)}function af(e){return new Re(function(t){for(var n=0;n<e.length&&!t.closed;n++)t.next(e[n]);t.complete()})}function lf(e){return new Re(function(t){(function(e,t){var n,r,o,i;return function(e,t,n,r){return new(n||(n=Promise))(function(i,s){function a(c){try{u(r.next(c))}catch(d){s(d)}}function l(c){try{u(r.throw(c))}catch(d){s(d)}}function u(c){c.done?i(c.value):function(i){return i instanceof n?i:new n(function(s){s(i)})}(c.value).then(a,l)}u((r=r.apply(e,t||[])).next())})}(this,void 0,void 0,function(){var a;return Vd(this,function(l){switch(l.label){case 0:l.trys.push([0,5,6,11]),n=function(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n,t=e[Symbol.asyncIterator];return t?t.call(e):(e=gr(e),n={},r("next"),r("throw"),r("return"),n[Symbol.asyncIterator]=function(){return this},n);function r(i){n[i]=e[i]&&function(s){return new Promise(function(a,l){!function(i,s,a,l){Promise.resolve(l).then(function(u){i({value:u,done:a})},s)}(a,l,(s=e[i](s)).done,s.value)})}}}(e),l.label=1;case 1:return[4,n.next()];case 2:if((r=l.sent()).done)return[3,4];if(t.next(r.value),t.closed)return[2];l.label=3;case 3:return[3,1];case 4:return[3,11];case 5:return a=l.sent(),o={error:a},[3,11];case 6:return l.trys.push([6,,9,10]),r&&!r.done&&(i=n.return)?[4,i.call(n)]:[3,8];case 7:l.sent(),l.label=8;case 8:return[3,10];case 9:if(o)throw o.error;return[7];case 10:return[7];case 11:return t.complete(),[2]}})})})(e,t).catch(function(n){return t.error(n)})})}function uf(e,t,n){return void 0===n&&(n=1/0),Ee(t)?uf(function(r,o){return $a(function(i,s){return t(r,i,o,s)})(Mo(e(r,o)))},n):("number"==typeof t&&(n=t),ji(function(r,o){return function(e,t,n,r,o,i,s,a){var l=[],u=0,c=0,d=!1,f=function(){d&&!l.length&&!u&&t.complete()},h=function(m){return u<r?p(m):l.push(m)},p=function(m){u++;var g=!1;Mo(n(m,c++)).subscribe(new wo(t,function(y){t.next(y)},function(){g=!0},void 0,function(){if(g)try{u--;for(;l.length&&u<r;)_=void 0,_=l.shift(),p(_);f()}catch(_){t.error(_)}var _}))};return e.subscribe(new wo(t,h,function(){d=!0,f()})),function(){}}(r,o,e,n)}))}function Gv(e){return void 0===e&&(e=1/0),uf(Gd,e)}function Wv(e,t){return t?Yd(e,t):af(e)}var Ua=new Re(function(e){return e.complete()});function Ga(e){return e[e.length-1]}function Qv(e){return Ee(Ga(e))?e.pop():void 0}function Kv(e){return function(e){return e&&Ee(e.schedule)}(Ga(e))?e.pop():void 0}function Yv(e,t){return"number"==typeof Ga(e)?e.pop():t}function Jv(e){return e<=0?function(){return Ua}:ji(function(t,n){var r=0;t.subscribe(new wo(n,function(o){++r<=e&&(n.next(o),e<=r&&n.complete())}))})}function Wa(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return!0===t?(e(),null):!1===t?null:t.apply(void 0,mr([],jn(n))).pipe(Jv(1)).subscribe(function(){return e()})}function K(e){for(let t in e)if(e[t]===K)return t;throw Error("Could not find renamed property on target object.")}function qa(e,t){for(const n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function $(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map($).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return`${e.overriddenName}`;if(e.name)return`${e.name}`;const t=e.toString();if(null==t)return""+t;const n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function za(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}const eD=K({__forward_ref__:K});function re(e){return e.__forward_ref__=re,e.toString=function(){return $(this())},e}function T(e){return cf(e)?e():e}function cf(e){return"function"==typeof e&&e.hasOwnProperty(eD)&&e.__forward_ref__===re}class Wn extends Error{constructor(t,n){super(function(e,t){return`${e?`NG0${e}: `:""}${t}`}(t,n)),this.code=t}}function B(e){return"string"==typeof e?e:null==e?"":String(e)}function Ge(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():B(e)}function Hi(e,t){const n=t?` in ${t}`:"";throw new Wn("201",`No provider for ${Ge(e)} found${n}`)}function it(e,t){null==e&&function(e,t,n,r){throw new Error(`ASSERTION ERROR: ${e}`+(null==r?"":` [Expected=> ${n} ${r} ${t} <=Actual]`))}(t,e,null,"!=")}function ee(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function xt(e){return{providers:e.providers||[],imports:e.imports||[]}}function ln(e){return df(e,$i)||df(e,hf)}function df(e,t){return e.hasOwnProperty(t)?e[t]:null}function ff(e){return e&&(e.hasOwnProperty(Ka)||e.hasOwnProperty(aD))?e[Ka]:null}const $i=K({\u0275prov:K}),Ka=K({\u0275inj:K}),hf=K({ngInjectableDef:K}),aD=K({ngInjectorDef:K});var N=(()=>((N=N||{})[N.Default=0]="Default",N[N.Host=1]="Host",N[N.Self=2]="Self",N[N.SkipSelf=4]="SkipSelf",N[N.Optional=8]="Optional",N))();let Ya;function bn(e){const t=Ya;return Ya=e,t}function pf(e,t,n){const r=ln(e);return r&&"root"==r.providedIn?void 0===r.value?r.value=r.factory():r.value:n&N.Optional?null:void 0!==t?t:void Hi($(e),"Injector")}function wn(e){return{toString:e}.toString()}var ht=(()=>((ht=ht||{})[ht.OnPush=0]="OnPush",ht[ht.Default=1]="Default",ht))(),Ie=(()=>((Ie=Ie||{})[Ie.Emulated=0]="Emulated",Ie[Ie.None=2]="None",Ie[Ie.ShadowDom=3]="ShadowDom",Ie))();const uD="undefined"!=typeof globalThis&&globalThis,cD="undefined"!=typeof window&&window,dD="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,fD="undefined"!=typeof global&&global,Y=uD||fD||cD||dD,_r={},te=[],Ui=K({\u0275cmp:K}),Za=K({\u0275dir:K}),Ja=K({\u0275pipe:K}),gf=K({\u0275mod:K}),hD=K({\u0275loc:K}),un=K({\u0275fac:K}),Io=K({__NG_ELEMENT_ID__:K});let pD=0;function Gi(e){return wn(()=>{const n={},r={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===ht.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||te,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||Ie.Emulated,id:"c",styles:e.styles||te,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,i=e.features,s=e.pipes;return r.id+=pD++,r.inputs=Cf(e.inputs,n),r.outputs=Cf(e.outputs),i&&i.forEach(a=>a(r)),r.directiveDefs=o?()=>("function"==typeof o?o():o).map(mf):null,r.pipeDefs=s?()=>("function"==typeof s?s():s).map(_f):null,r})}function mf(e){return We(e)||function(e){return e[Za]||null}(e)}function _f(e){return function(e){return e[Ja]||null}(e)}const yf={};function cn(e){return wn(()=>{const t={type:e.type,bootstrap:e.bootstrap||te,declarations:e.declarations||te,imports:e.imports||te,exports:e.exports||te,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&(yf[e.id]=e.type),t})}function Cf(e,t){if(null==e)return _r;const n={};for(const r in e)if(e.hasOwnProperty(r)){let o=e[r],i=o;Array.isArray(o)&&(i=o[1],o=o[0]),n[o]=r,t&&(t[o]=i)}return n}const R=Gi;function We(e){return e[Ui]||null}function pt(e,t){const n=e[gf]||null;if(!n&&!0===t)throw new Error(`Type ${$(e)} does not have '\u0275mod' property.`);return n}const j=11;function Wt(e){return Array.isArray(e)&&"object"==typeof e[1]}function St(e){return Array.isArray(e)&&!0===e[1]}function tl(e){return 0!=(8&e.flags)}function Qi(e){return 2==(2&e.flags)}function Ki(e){return 1==(1&e.flags)}function Nt(e){return null!==e.template}function DD(e){return 0!=(512&e[2])}function Yn(e,t){return e.hasOwnProperty(un)?e[un]:null}class Df{constructor(t,n,r){this.previousValue=t,this.currentValue=n,this.firstChange=r}isFirstChange(){return this.firstChange}}function at(){return Ef}function Ef(e){return e.type.prototype.ngOnChanges&&(e.setInput=MD),wD}function wD(){const e=wf(this),t=null==e?void 0:e.current;if(t){const n=e.previous;if(n===_r)e.previous=t;else for(let r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}}function MD(e,t,n,r){const o=wf(e)||function(e,t){return e[bf]=t}(e,{previous:_r,current:null}),i=o.current||(o.current={}),s=o.previous,a=this.declaredInputs[n],l=s[a];i[a]=new Df(l&&l.currentValue,t,s===_r),e[r]=t}at.ngInherit=!0;const bf="__ngSimpleChanges__";function wf(e){return e[bf]||null}let ol;function _e(e){return!!e.listen}const Af={createRenderer:(e,t)=>void 0!==ol?ol:"undefined"!=typeof document?document:void 0};function be(e){for(;Array.isArray(e);)e=e[0];return e}function Yi(e,t){return be(t[e])}function _t(e,t){return be(t[e.index])}function sl(e,t){return e.data[t]}function lt(e,t){const n=t[e];return Wt(n)?n:n[0]}function al(e){return 128==(128&e[2])}function In(e,t){return null==t?null:e[t]}function Tf(e){e[18]=0}function ll(e,t){e[5]+=t;let n=e,r=e[3];for(;null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}const F={lFrame:kf(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function Sf(){return F.bindingsEnabled}function C(){return F.lFrame.lView}function z(){return F.lFrame.tView}function nt(e){return F.lFrame.contextLView=e,e[8]}function Ae(){let e=Nf();for(;null!==e&&64===e.type;)e=e.parent;return e}function Nf(){return F.lFrame.currentTNode}function qt(e,t){const n=F.lFrame;n.currentTNode=e,n.isParent=t}function ul(){return F.lFrame.isParent}function Zi(){return F.isInCheckNoChangesMode}function Ji(e){F.isInCheckNoChangesMode=e}function br(){return F.lFrame.bindingIndex++}function jD(e,t){const n=F.lFrame;n.bindingIndex=n.bindingRootIndex=e,dl(t)}function dl(e){F.lFrame.currentDirectiveIndex=e}function hl(e){F.lFrame.currentQueryIndex=e}function $D(e){const t=e[1];return 2===t.type?t.declTNode:1===t.type?e[6]:null}function Ff(e,t,n){if(n&N.SkipSelf){let o=t,i=e;for(;!(o=o.parent,null!==o||n&N.Host||(o=$D(i),null===o||(i=i[15],10&o.type))););if(null===o)return!1;t=o,e=i}const r=F.lFrame=Vf();return r.currentTNode=t,r.lView=e,!0}function Xi(e){const t=Vf(),n=e[1];F.lFrame=t,t.currentTNode=n.firstChild,t.lView=e,t.tView=n,t.contextLView=e,t.bindingIndex=n.bindingStartIndex,t.inI18n=!1}function Vf(){const e=F.lFrame,t=null===e?null:e.child;return null===t?kf(e):t}function kf(e){const t={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:-1,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null,inI18n:!1};return null!==e&&(e.child=t),t}function Lf(){const e=F.lFrame;return F.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}const Bf=Lf;function es(){const e=Lf();e.isParent=!0,e.tView=null,e.selectedIndex=-1,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function ze(){return F.lFrame.selectedIndex}function An(e){F.lFrame.selectedIndex=e}function ts(e,t){for(let n=t.directiveStart,r=t.directiveEnd;n<r;n++){const i=e.data[n].type.prototype,{ngAfterContentInit:s,ngAfterContentChecked:a,ngAfterViewInit:l,ngAfterViewChecked:u,ngOnDestroy:c}=i;s&&(e.contentHooks||(e.contentHooks=[])).push(-n,s),a&&((e.contentHooks||(e.contentHooks=[])).push(n,a),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,a)),l&&(e.viewHooks||(e.viewHooks=[])).push(-n,l),u&&((e.viewHooks||(e.viewHooks=[])).push(n,u),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,u)),null!=c&&(e.destroyHooks||(e.destroyHooks=[])).push(n,c)}}function ns(e,t,n){jf(e,t,3,n)}function rs(e,t,n,r){(3&e[2])===n&&jf(e,t,n,r)}function pl(e,t){let n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function jf(e,t,n,r){const i=null!=r?r:-1,s=t.length-1;let a=0;for(let l=void 0!==r?65535&e[18]:0;l<s;l++)if("number"==typeof t[l+1]){if(a=t[l],null!=r&&a>=r)break}else t[l]<0&&(e[18]+=65536),(a<i||-1==i)&&(ZD(e,n,t,l),e[18]=(4294901760&e[18])+l+2),l++}function ZD(e,t,n,r){const o=n[r]<0,i=n[r+1],a=e[o?-n[r]:n[r]];if(o){if(e[2]>>11<e[18]>>16&&(3&e[2])===t){e[2]+=2048;try{i.call(a)}finally{}}}else try{i.call(a)}finally{}}class No{constructor(t,n,r){this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r}}function os(e,t,n){const r=_e(e);let o=0;for(;o<n.length;){const i=n[o];if("number"==typeof i){if(0!==i)break;o++;const s=n[o++],a=n[o++],l=n[o++];r?e.setAttribute(t,a,l,s):t.setAttributeNS(s,a,l)}else{const s=i,a=n[++o];ml(s)?r&&e.setProperty(t,s,a):r?e.setAttribute(t,s,a):t.setAttribute(s,a),o++}}return o}function Hf(e){return 3===e||4===e||6===e}function ml(e){return 64===e.charCodeAt(0)}function is(e,t){if(null!==t&&0!==t.length)if(null===e||0===e.length)e=t.slice();else{let n=-1;for(let r=0;r<t.length;r++){const o=t[r];"number"==typeof o?n=o:0===n||$f(e,n,o,null,-1===n||2===n?t[++r]:null)}}return e}function $f(e,t,n,r,o){let i=0,s=e.length;if(-1===t)s=-1;else for(;i<e.length;){const a=e[i++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=i-1;break}}}for(;i<e.length;){const a=e[i];if("number"==typeof a)break;if(a===n){if(null===r)return void(null!==o&&(e[i+1]=o));if(r===e[i+1])return void(e[i+2]=o)}i++,null!==r&&i++,null!==o&&i++}-1!==s&&(e.splice(s,0,t),i=s+1),e.splice(i++,0,n),null!==r&&e.splice(i++,0,r),null!==o&&e.splice(i++,0,o)}function Uf(e){return-1!==e}function wr(e){return 32767&e}function Mr(e,t){let n=function(e){return e>>16}(e),r=t;for(;n>0;)r=r[15],n--;return r}let _l=!0;function ss(e){const t=_l;return _l=e,t}let rE=0;function Oo(e,t){const n=Cl(e,t);if(-1!==n)return n;const r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,yl(r.data,e),yl(t,null),yl(r.blueprint,null));const o=as(e,t),i=e.injectorIndex;if(Uf(o)){const s=wr(o),a=Mr(o,t),l=a[1].data;for(let u=0;u<8;u++)t[i+u]=a[s+u]|l[s+u]}return t[i+8]=o,i}function yl(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Cl(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===t[e.injectorIndex+8]?-1:e.injectorIndex}function as(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;let n=0,r=null,o=t;for(;null!==o;){const i=o[1],s=i.type;if(r=2===s?i.declTNode:1===s?o[6]:null,null===r)return-1;if(n++,o=o[15],-1!==r.injectorIndex)return r.injectorIndex|n<<16}return-1}function ls(e,t,n){!function(e,t,n){let r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Io)&&(r=n[Io]),null==r&&(r=n[Io]=rE++);const o=255&r;t.data[e+(o>>5)]|=1<<o}(e,t,n)}function qf(e,t,n){if(n&N.Optional)return e;Hi(t,"NodeInjector")}function zf(e,t,n,r){if(n&N.Optional&&void 0===r&&(r=null),0==(n&(N.Self|N.Host))){const o=e[9],i=bn(void 0);try{return o?o.get(t,r,n&N.Optional):pf(t,r,n&N.Optional)}finally{bn(i)}}return qf(r,t,n)}function Qf(e,t,n,r=N.Default,o){if(null!==e){const i=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;const t=e.hasOwnProperty(Io)?e[Io]:void 0;return"number"==typeof t?t>=0?255&t:sE:t}(n);if("function"==typeof i){if(!Ff(t,e,r))return r&N.Host?qf(o,n,r):zf(t,n,r,o);try{const s=i(r);if(null!=s||r&N.Optional)return s;Hi(n)}finally{Bf()}}else if("number"==typeof i){let s=null,a=Cl(e,t),l=-1,u=r&N.Host?t[16][6]:null;for((-1===a||r&N.SkipSelf)&&(l=-1===a?as(e,t):t[a+8],-1!==l&&Zf(r,!1)?(s=t[1],a=wr(l),t=Mr(l,t)):a=-1);-1!==a;){const c=t[1];if(Yf(i,a,c.data)){const d=aE(a,t,n,s,r,u);if(d!==Kf)return d}l=t[a+8],-1!==l&&Zf(r,t[1].data[a+8]===u)&&Yf(i,a,t)?(s=c,a=wr(l),t=Mr(l,t)):a=-1}}}return zf(t,n,r,o)}const Kf={};function sE(){return new Ir(Ae(),C())}function aE(e,t,n,r,o,i){const s=t[1],a=s.data[e+8],c=function(e,t,n,r,o){const i=e.providerIndexes,s=t.data,a=1048575&i,l=e.directiveStart,c=i>>20,f=o?a+c:e.directiveEnd;for(let h=r?a:a+c;h<f;h++){const p=s[h];if(h<l&&n===p||h>=l&&p.type===n)return h}if(o){const h=s[l];if(h&&Nt(h)&&h.type===n)return l}return null}(a,s,n,null==r?Qi(a)&&_l:r!=s&&0!=(3&a.type),o&N.Host&&i===a);return null!==c?Ro(t,s,c,a):Kf}function Ro(e,t,n,r){let o=e[n];const i=t.data;if(function(e){return e instanceof No}(o)){const s=o;s.resolving&&function(e,t){throw new Wn("200",`Circular dependency in DI detected for ${e}`)}(Ge(i[n]));const a=ss(s.canSeeViewProviders);s.resolving=!0;const l=s.injectImpl?bn(s.injectImpl):null;Ff(e,r,N.Default);try{o=e[n]=s.factory(void 0,i,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){const{ngOnChanges:r,ngOnInit:o,ngDoCheck:i}=t.type.prototype;if(r){const s=Ef(t);(n.preOrderHooks||(n.preOrderHooks=[])).push(e,s),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,s)}o&&(n.preOrderHooks||(n.preOrderHooks=[])).push(0-e,o),i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,i))}(n,i[n],t)}finally{null!==l&&bn(l),ss(a),s.resolving=!1,Bf()}}return o}function Yf(e,t,n){return!!(n[t+(e>>5)]&1<<e)}function Zf(e,t){return!(e&N.Self||e&N.Host&&t)}class Ir{constructor(t,n){this._tNode=t,this._lView=n}get(t,n){return Qf(this._tNode,this._lView,t,void 0,n)}}function yt(e){return wn(()=>{const t=e.prototype.constructor,n=t[un]||vl(t),r=Object.prototype;let o=Object.getPrototypeOf(e.prototype).constructor;for(;o&&o!==r;){const i=o[un]||vl(o);if(i&&i!==n)return i;o=Object.getPrototypeOf(o)}return i=>new i})}function vl(e){return cf(e)?()=>{const t=vl(T(e));return t&&t()}:Yn(e)}const xr="__parameters__";function Zn(e,t,n){return wn(()=>{const r=function(e){return function(...n){if(e){const r=e(...n);for(const o in r)this[o]=r[o]}}}(t);function o(...i){if(this instanceof o)return r.apply(this,i),this;const s=new o(...i);return a.annotation=s,a;function a(l,u,c){const d=l.hasOwnProperty(xr)?l[xr]:Object.defineProperty(l,xr,{value:[]})[xr];for(;d.length<=c;)d.push(null);return(d[c]=d[c]||[]).push(s),l}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o})}class Q{constructor(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=ee({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}toString(){return`InjectionToken ${this._desc}`}}function Qt(e,t){e.forEach(n=>Array.isArray(n)?Qt(n,t):t(n))}function ds(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Jn(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function ut(e,t,n){let r=Sr(e,t);return r>=0?e[1|r]=n:(r=~r,function(e,t,n,r){let o=e.length;if(o==t)e.push(n,r);else if(1===o)e.push(r,e[0]),e[0]=n;else{for(o--,e.push(e[o-1],e[o]);o>t;)e[o]=e[o-2],o--;e[t]=n,e[t+1]=r}}(e,r,t,n)),r}function wl(e,t){const n=Sr(e,t);if(n>=0)return e[1|n]}function Sr(e,t){return function(e,t,n){let r=0,o=e.length>>n;for(;o!==r;){const i=r+(o-r>>1),s=e[i<<n];if(t===s)return i<<n;s>t?o=i:r=i+1}return~(o<<n)}(e,t,1)}const Lo={},Il="__NG_DI_FLAG__",Nr="ngTempTokenPath",vE=/\n/gm,Al="__source",xl=K({provide:String,useValue:K});let Bo;function Pr(e){const t=Bo;return Bo=e,t}function EE(e,t=N.Default){if(void 0===Bo)throw new Error("inject() must be called from an injection context");return null===Bo?pf(e,void 0,t):Bo.get(e,t&N.Optional?null:void 0,t)}function q(e,t=N.Default){return(Ya||EE)(T(e),t)}function Xn(e){const t=[];for(let n=0;n<e.length;n++){const r=T(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");let o,i=N.Default;for(let s=0;s<r.length;s++){const a=r[s],l=bE(a);"number"==typeof l?-1===l?o=a.token:i|=l:o=a}t.push(q(o,i))}else t.push(q(r))}return t}function jo(e,t){return e[Il]=t,e.prototype[Il]=t,e}function bE(e){return e[Il]}function rh(e,t,n,r){const o=e[Nr];throw t[Al]&&o.unshift(t[Al]),e.message=function(e,t,n,r=null){e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;let o=$(t);if(Array.isArray(t))o=t.map($).join(" -> ");else if("object"==typeof t){let i=[];for(let s in t)if(t.hasOwnProperty(s)){let a=t[s];i.push(s+":"+("string"==typeof a?JSON.stringify(a):$(a)))}o=`{${i.join(", ")}}`}return`${n}${r?"("+r+")":""}[${o}]: ${e.replace(vE,"\n ")}`}("\n"+e.message,o,n,r),e.ngTokenPath=o,e[Nr]=null,e}const Ho=jo(Zn("Inject",e=>({token:e})),-1),Kt=jo(Zn("Optional"),8),er=jo(Zn("SkipSelf"),4);const bh="__ngContext__";function ke(e,t){e[bh]=t}function kl(e){const t=function(e){return e[bh]||null}(e);return t?Array.isArray(t)?t:t.lView:null}function ys(e){return e.ngOriginalError}function mb(e,...t){e.error(...t)}class nr{constructor(){this._console=console}handleError(t){const n=this._findOriginalError(t),r=this._findContext(t),o=(e=t)&&e.ngErrorLogger||mb;var e;o(this._console,"ERROR",t),n&&o(this._console,"ORIGINAL ERROR",n),r&&o(this._console,"ERROR CONTEXT",r)}_findContext(t){return t?t.ngDebugContext||this._findContext(ys(t)):null}_findOriginalError(t){let n=t&&ys(t);for(;n&&ys(n);)n=ys(n);return n||null}}const Ph=(()=>("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Y))();function Jt(e){return e instanceof Function?e():e}var dt=(()=>((dt=dt||{})[dt.Important=1]="Important",dt[dt.DashCase=2]="DashCase",dt))();function jl(e,t){return undefined(e,t)}function zo(e){const t=e[3];return St(t)?t[3]:t}function Hl(e){return kh(e[13])}function $l(e){return kh(e[4])}function kh(e){for(;null!==e&&!St(e);)e=e[4];return e}function Vr(e,t,n,r,o){if(null!=r){let i,s=!1;St(r)?i=r:Wt(r)&&(s=!0,r=r[0]);const a=be(r);0===e&&null!==n?null==o?Uh(t,n,a):rr(t,n,a,o||null,!0):1===e&&null!==n?rr(t,n,a,o||null,!0):2===e?function(e,t,n){const r=vs(e,t);r&&function(e,t,n,r){_e(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=i&&function(e,t,n,r,o){const i=n[7];i!==be(n)&&Vr(t,e,r,i,o);for(let a=10;a<n.length;a++){const l=n[a];Qo(l[1],l,e,t,r,i)}}(t,e,i,n,o)}}function Gl(e,t,n){return _e(e)?e.createElement(t,n):null===n?e.createElement(t):e.createElementNS(n,t)}function Bh(e,t){const n=e[9],r=n.indexOf(t),o=t[3];1024&t[2]&&(t[2]&=-1025,ll(o,-1)),n.splice(r,1)}function Wl(e,t){if(e.length<=10)return;const n=10+t,r=e[n];if(r){const o=r[17];null!==o&&o!==e&&Bh(o,r),t>0&&(e[n-1][4]=r[4]);const i=Jn(e,10+t);!function(e,t){Qo(e,t,t[j],2,null,null),t[0]=null,t[6]=null}(r[1],r);const s=i[19];null!==s&&s.detachView(i[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}function jh(e,t){if(!(256&t[2])){const n=t[j];_e(n)&&n.destroyNode&&Qo(e,t,n,3,null,null),function(e){let t=e[13];if(!t)return ql(e[1],e);for(;t;){let n=null;if(Wt(t))n=t[13];else{const r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)Wt(t)&&ql(t[1],t),t=t[3];null===t&&(t=e),Wt(t)&&ql(t[1],t),n=t&&t[4]}t=n}}(t)}}function ql(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){let n;if(null!=e&&null!=(n=e.destroyHooks))for(let r=0;r<n.length;r+=2){const o=t[n[r]];if(!(o instanceof No)){const i=n[r+1];if(Array.isArray(i))for(let s=0;s<i.length;s+=2){const a=o[i[s]],l=i[s+1];try{l.call(a)}finally{}}else try{i.call(o)}finally{}}}}(e,t),function(e,t){const n=e.cleanup,r=t[7];let o=-1;if(null!==n)for(let i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){const s=n[i+1],a="function"==typeof s?s(t):be(t[s]),l=r[o=n[i+2]],u=n[i+3];"boolean"==typeof u?a.removeEventListener(n[i],l,u):u>=0?r[o=u]():r[o=-u].unsubscribe(),i+=2}else{const s=r[o=n[i+1]];n[i].call(s)}if(null!==r){for(let i=o+1;i<r.length;i++)r[i]();t[7]=null}}(e,t),1===t[1].type&&_e(t[j])&&t[j].destroy();const n=t[17];if(null!==n&&St(t[3])){n!==t[3]&&Bh(n,t);const r=t[19];null!==r&&r.detachView(e)}}}function Hh(e,t,n){return function(e,t,n){let r=t;for(;null!==r&&40&r.type;)r=(t=r).parent;if(null===r)return n[0];if(2&r.flags){const o=e.data[r.directiveStart].encapsulation;if(o===Ie.None||o===Ie.Emulated)return null}return _t(r,n)}(e,t.parent,n)}function rr(e,t,n,r,o){_e(e)?e.insertBefore(t,n,r,o):t.insertBefore(n,r,o)}function Uh(e,t,n){_e(e)?e.appendChild(t,n):t.appendChild(n)}function Gh(e,t,n,r,o){null!==r?rr(e,t,n,r,o):Uh(e,t,n)}function vs(e,t){return _e(e)?e.parentNode(t):t.parentNode}let zh=function(e,t,n){return 40&e.type?_t(e,n):null};function Ds(e,t,n,r){const o=Hh(e,r,t),i=t[j],a=function(e,t,n){return zh(e,t,n)}(r.parent||t[6],r,t);if(null!=o)if(Array.isArray(n))for(let l=0;l<n.length;l++)Gh(i,o,n[l],a,!1);else Gh(i,o,n,a,!1)}function Es(e,t){if(null!==t){const n=t.type;if(3&n)return _t(t,e);if(4&n)return Ql(-1,e[t.index]);if(8&n){const r=t.child;if(null!==r)return Es(e,r);{const o=e[t.index];return St(o)?Ql(-1,o):be(o)}}if(32&n)return jl(t,e)()||be(e[t.index]);{const r=Kh(e,t);return null!==r?Array.isArray(r)?r[0]:Es(zo(e[16]),r):Es(e,t.next)}}return null}function Kh(e,t){return null!==t?e[16][6].projection[t.projection]:null}function Ql(e,t){const n=10+e+1;if(n<t.length){const r=t[n],o=r[1].firstChild;if(null!==o)return Es(r,o)}return t[7]}function Kl(e,t,n,r,o,i,s){for(;null!=n;){const a=r[n.index],l=n.type;if(s&&0===t&&(a&&ke(be(a),r),n.flags|=4),64!=(64&n.flags))if(8&l)Kl(e,t,n.child,r,o,i,!1),Vr(t,e,o,a,i);else if(32&l){const u=jl(n,r);let c;for(;c=u();)Vr(t,e,o,c,i);Vr(t,e,o,a,i)}else 16&l?Zh(e,t,r,n,o,i):Vr(t,e,o,a,i);n=s?n.projectionNext:n.next}}function Qo(e,t,n,r,o,i){Kl(n,r,e.firstChild,t,o,i,!1)}function Zh(e,t,n,r,o,i){const s=n[16],l=s[6].projection[r.projection];if(Array.isArray(l))for(let u=0;u<l.length;u++)Vr(t,e,o,l[u],i);else Kl(e,t,l,s[3],o,i,!0)}function Jh(e,t,n){_e(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Yl(e,t,n){_e(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}function Xh(e,t,n){let r=e.length;for(;;){const o=e.indexOf(t,n);if(-1===o)return o;if(0===o||e.charCodeAt(o-1)<=32){const i=t.length;if(o+i===r||e.charCodeAt(o+i)<=32)return o}n=o+1}}const ep="ng-template";function $b(e,t,n){let r=0;for(;r<e.length;){let o=e[r++];if(n&&"class"===o){if(o=e[r],-1!==Xh(o.toLowerCase(),t,0))return!0}else if(1===o){for(;r<e.length&&"string"==typeof(o=e[r++]);)if(o.toLowerCase()===t)return!0;return!1}}return!1}function tp(e){return 4===e.type&&e.value!==ep}function Ub(e,t,n){return t===(4!==e.type||n?e.value:ep)}function Gb(e,t,n){let r=4;const o=e.attrs||[],i=function(e){for(let t=0;t<e.length;t++)if(Hf(e[t]))return t;return e.length}(o);let s=!1;for(let a=0;a<t.length;a++){const l=t[a];if("number"!=typeof l){if(!s)if(4&r){if(r=2|1&r,""!==l&&!Ub(e,l,n)||""===l&&1===t.length){if(Pt(r))return!1;s=!0}}else{const u=8&r?l:t[++a];if(8&r&&null!==e.attrs){if(!$b(e.attrs,u,n)){if(Pt(r))return!1;s=!0}continue}const d=Wb(8&r?"class":l,o,tp(e),n);if(-1===d){if(Pt(r))return!1;s=!0;continue}if(""!==u){let f;f=d>i?"":o[d+1].toLowerCase();const h=8&r?f:null;if(h&&-1!==Xh(h,u,0)||2&r&&u!==f){if(Pt(r))return!1;s=!0}}}}else{if(!s&&!Pt(r)&&!Pt(l))return!1;if(s&&Pt(l))continue;s=!1,r=l|1&r}}return Pt(r)||s}function Pt(e){return 0==(1&e)}function Wb(e,t,n,r){if(null===t)return-1;let o=0;if(r||!n){let i=!1;for(;o<t.length;){const s=t[o];if(s===e)return o;if(3===s||6===s)i=!0;else{if(1===s||2===s){let a=t[++o];for(;"string"==typeof a;)a=t[++o];continue}if(4===s)break;if(0===s){o+=4;continue}}o+=i?1:2}return-1}return function(e,t){let n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){const r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function np(e,t,n=!1){for(let r=0;r<t.length;r++)if(Gb(e,t[r],n))return!0;return!1}function rp(e,t){return e?":not("+t.trim()+")":t}function Yb(e){let t=e[0],n=1,r=2,o="",i=!1;for(;n<e.length;){let s=e[n];if("string"==typeof s)if(2&r){const a=e[++n];o+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?o+="."+s:4&r&&(o+=" "+s);else""!==o&&!Pt(s)&&(t+=rp(i,o),o=""),r=s,i=i||!Pt(r);n++}return""!==o&&(t+=rp(i,o)),t}const k={};function x(e){op(z(),C(),ze()+e,Zi())}function op(e,t,n,r){if(!r)if(3==(3&t[2])){const i=e.preOrderCheckHooks;null!==i&&ns(t,i,n)}else{const i=e.preOrderHooks;null!==i&&rs(t,i,0,n)}An(n)}function bs(e,t){return e<<17|t<<2}function Ot(e){return e>>17&32767}function Zl(e){return 2|e}function fn(e){return(131068&e)>>2}function Jl(e,t){return-131069&e|t<<2}function Xl(e){return 1|e}function pp(e,t){const n=e.contentQueries;if(null!==n)for(let r=0;r<n.length;r+=2){const o=n[r],i=n[r+1];if(-1!==i){const s=e.data[i];hl(o),s.contentQueries(2,t[i],i)}}}function Ko(e,t,n,r,o,i,s,a,l,u){const c=t.blueprint.slice();return c[0]=o,c[2]=140|r,Tf(c),c[3]=c[15]=e,c[8]=n,c[10]=s||e&&e[10],c[j]=a||e&&e[j],c[12]=l||e&&e[12]||null,c[9]=u||e&&e[9]||null,c[6]=i,c[16]=2==t.type?e[16]:c,c}function kr(e,t,n,r,o){let i=e.data[t];if(null===i)i=function(e,t,n,r,o){const i=Nf(),s=ul(),l=e.data[t]=function(e,t,n,r,o,i){return{type:n,index:r,insertBeforeIndex:null,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,value:o,attrs:i,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:t,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,s?i:i&&i.parent,n,t,r,o);return null===e.firstChild&&(e.firstChild=l),null!==i&&(s?null==i.child&&null!==l.parent&&(i.child=l):null===i.next&&(i.next=l)),l}(e,t,n,r,o),F.lFrame.inI18n&&(i.flags|=64);else if(64&i.type){i.type=n,i.value=r,i.attrs=o;const s=function(){const e=F.lFrame,t=e.currentTNode;return e.isParent?t:t.parent}();i.injectorIndex=null===s?-1:s.injectorIndex}return qt(i,!0),i}function Lr(e,t,n,r){if(0===n)return-1;const o=t.length;for(let i=0;i<n;i++)t.push(r),e.blueprint.push(r),e.data.push(null);return o}function Yo(e,t,n){Xi(t);try{const r=e.viewQuery;null!==r&&gu(1,r,n);const o=e.template;null!==o&&gp(e,t,o,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&pp(e,t),e.staticViewQueries&&gu(2,e.viewQuery,n);const i=e.components;null!==i&&function(e,t){for(let n=0;n<t.length;n++)Tw(e,t[n])}(t,i)}catch(r){throw e.firstCreatePass&&(e.incompleteFirstPass=!0,e.firstCreatePass=!1),r}finally{t[2]&=-5,es()}}function Br(e,t,n,r){const o=t[2];if(256==(256&o))return;Xi(t);const i=Zi();try{Tf(t),function(e){F.lFrame.bindingIndex=e}(e.bindingStartIndex),null!==n&&gp(e,t,n,2,r);const s=3==(3&o);if(!i)if(s){const u=e.preOrderCheckHooks;null!==u&&ns(t,u,null)}else{const u=e.preOrderHooks;null!==u&&rs(t,u,0,null),pl(t,0)}if(function(e){for(let t=Hl(e);null!==t;t=$l(t)){if(!t[2])continue;const n=t[9];for(let r=0;r<n.length;r++){const o=n[r],i=o[3];0==(1024&o[2])&&ll(i,1),o[2]|=1024}}}(t),function(e){for(let t=Hl(e);null!==t;t=$l(t))for(let n=10;n<t.length;n++){const r=t[n],o=r[1];al(r)&&Br(o,r,o.template,r[8])}}(t),null!==e.contentQueries&&pp(e,t),!i)if(s){const u=e.contentCheckHooks;null!==u&&ns(t,u)}else{const u=e.contentHooks;null!==u&&rs(t,u,1),pl(t,1)}!function(e,t){const n=e.hostBindingOpCodes;if(null!==n)try{for(let r=0;r<n.length;r++){const o=n[r];if(o<0)An(~o);else{const i=o,s=n[++r],a=n[++r];jD(s,i),a(2,t[i])}}}finally{An(-1)}}(e,t);const a=e.components;null!==a&&function(e,t){for(let n=0;n<t.length;n++)xw(e,t[n])}(t,a);const l=e.viewQuery;if(null!==l&&gu(2,l,r),!i)if(s){const u=e.viewCheckHooks;null!==u&&ns(t,u)}else{const u=e.viewHooks;null!==u&&rs(t,u,2),pl(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),i||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,ll(t[3],-1))}finally{es()}}function uw(e,t,n,r){const o=t[10],i=!Zi(),s=function(e){return 4==(4&e[2])}(t);try{i&&!s&&o.begin&&o.begin(),s&&Yo(e,t,r),Br(e,t,n,r)}finally{i&&!s&&o.end&&o.end()}}function gp(e,t,n,r,o){const i=ze(),s=2&r;try{An(-1),s&&t.length>20&&op(e,t,20,Zi()),n(r,o)}finally{An(i)}}function au(e,t,n){!Sf()||(function(e,t,n,r){const o=n.directiveStart,i=n.directiveEnd;e.firstCreatePass||Oo(n,t),ke(r,t);const s=n.initialInputs;for(let a=o;a<i;a++){const l=e.data[a],u=Nt(l);u&&bw(t,n,l);const c=Ro(t,e,a,n);ke(c,t),null!==s&&ww(0,a-o,c,l,0,s),u&&(lt(n.index,t)[8]=c)}}(e,t,n,_t(n,t)),128==(128&n.flags)&&function(e,t,n){const r=n.directiveStart,o=n.directiveEnd,s=n.index,a=F.lFrame.currentDirectiveIndex;try{An(s);for(let l=r;l<o;l++){const u=e.data[l],c=t[l];dl(l),(null!==u.hostBindings||0!==u.hostVars||null!==u.hostAttrs)&&wp(u,c)}}finally{An(-1),dl(a)}}(e,t,n))}function lu(e,t,n=_t){const r=t.localNames;if(null!==r){let o=t.index+1;for(let i=0;i<r.length;i+=2){const s=r[i+1],a=-1===s?n(t,e):e[s];e[o++]=a}}}function _p(e){const t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Is(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Is(e,t,n,r,o,i,s,a,l,u){const c=20+r,d=c+o,f=function(e,t){const n=[];for(let r=0;r<t;r++)n.push(r<e?null:k);return n}(c,d),h="function"==typeof u?u():u;return f[1]={type:e,blueprint:f,template:n,queries:null,viewQuery:a,declTNode:t,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:d,hostBindingOpCodes:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof i?i():i,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:l,consts:h,incompleteFirstPass:!1}}function Dp(e,t,n){for(let r in e)if(e.hasOwnProperty(r)){const o=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,o):n[r]=[t,o]}return n}function uu(e,t,n,r){let o=!1;if(Sf()){const i=function(e,t,n){const r=e.directiveRegistry;let o=null;if(r)for(let i=0;i<r.length;i++){const s=r[i];np(n,s.selectors,!1)&&(o||(o=[]),ls(Oo(n,t),e,s.type),Nt(s)?(Mp(e,n),o.unshift(s)):o.push(s))}return o}(e,t,n),s=null===r?null:{"":-1};if(null!==i){o=!0,Ip(n,e.data.length,i.length);for(let c=0;c<i.length;c++){const d=i[c];d.providersResolver&&d.providersResolver(d)}let a=!1,l=!1,u=Lr(e,t,i.length,null);for(let c=0;c<i.length;c++){const d=i[c];n.mergedAttrs=is(n.mergedAttrs,d.hostAttrs),Ap(e,n,t,u,d),Ew(u,d,s),null!==d.contentQueries&&(n.flags|=8),(null!==d.hostBindings||null!==d.hostAttrs||0!==d.hostVars)&&(n.flags|=128);const f=d.type.prototype;!a&&(f.ngOnChanges||f.ngOnInit||f.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index),a=!0),!l&&(f.ngOnChanges||f.ngDoCheck)&&((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index),l=!0),u++}!function(e,t){const r=t.directiveEnd,o=e.data,i=t.attrs,s=[];let a=null,l=null;for(let u=t.directiveStart;u<r;u++){const c=o[u],d=c.inputs,f=null===i||tp(t)?null:Mw(d,i);s.push(f),a=Dp(d,u,a),l=Dp(c.outputs,u,l)}null!==a&&(a.hasOwnProperty("class")&&(t.flags|=16),a.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=s,t.inputs=a,t.outputs=l}(e,n)}s&&function(e,t,n){if(t){const r=e.localNames=[];for(let o=0;o<t.length;o+=2){const i=n[t[o+1]];if(null==i)throw new Wn("301",`Export of name '${t[o+1]}' not found!`);r.push(t[o],i)}}}(n,r,s)}return n.mergedAttrs=is(n.mergedAttrs,n.attrs),o}function bp(e,t,n,r,o,i){const s=i.hostBindings;if(s){let a=e.hostBindingOpCodes;null===a&&(a=e.hostBindingOpCodes=[]);const l=~t.index;(function(e){let t=e.length;for(;t>0;){const n=e[--t];if("number"==typeof n&&n<0)return n}return 0})(a)!=l&&a.push(l),a.push(r,o,s)}}function wp(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Mp(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function Ew(e,t,n){if(n){if(t.exportAs)for(let r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;Nt(t)&&(n[""]=e)}}function Ip(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function Ap(e,t,n,r,o){e.data[r]=o;const i=o.factory||(o.factory=Yn(o.type)),s=new No(i,Nt(o),null);e.blueprint[r]=s,n[r]=s,bp(e,t,0,r,Lr(e,n,o.hostVars,k),o)}function bw(e,t,n){const r=_t(t,e),o=_p(n),i=e[10],s=As(e,Ko(e,o,null,n.onPush?64:16,r,t,i,i.createRenderer(r,n),null,null));e[t.index]=s}function ww(e,t,n,r,o,i){const s=i[t];if(null!==s){const a=r.setInput;for(let l=0;l<s.length;){const u=s[l++],c=s[l++],d=s[l++];null!==a?r.setInput(n,d,u,c):n[c]=d}}}function Mw(e,t){let n=null,r=0;for(;r<t.length;){const o=t[r];if(0!==o)if(5!==o){if("number"==typeof o)break;e.hasOwnProperty(o)&&(null===n&&(n=[]),n.push(o,e[o],t[r+1])),r+=2}else r+=2;else r+=4}return n}function xp(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function xw(e,t){const n=lt(t,e);if(al(n)){const r=n[1];80&n[2]?Br(r,n,r.template,n[8]):n[5]>0&&du(n)}}function du(e){for(let r=Hl(e);null!==r;r=$l(r))for(let o=10;o<r.length;o++){const i=r[o];if(1024&i[2]){const s=i[1];Br(s,i,s.template,i[8])}else i[5]>0&&du(i)}const n=e[1].components;if(null!==n)for(let r=0;r<n.length;r++){const o=lt(n[r],e);al(o)&&o[5]>0&&du(o)}}function Tw(e,t){const n=lt(t,e),r=n[1];(function(e,t){for(let n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])})(r,n),Yo(r,n,n[8])}function As(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function fu(e){for(;e;){e[2]|=64;const t=zo(e);if(DD(e)&&!t)return e;e=t}return null}function pu(e,t,n){const r=t[10];r.begin&&r.begin();try{Br(e,t,e.template,n)}catch(o){throw Op(t,o),o}finally{r.end&&r.end()}}function Tp(e){!function(e){for(let t=0;t<e.components.length;t++){const n=e.components[t],r=kl(n),o=r[1];uw(o,r,o.template,n)}}(e[8])}function gu(e,t,n){hl(0),t(e,n)}const Rw=(()=>Promise.resolve(null))();function Sp(e){return e[7]||(e[7]=[])}function Np(e){return e.cleanup||(e.cleanup=[])}function Op(e,t){const n=e[9],r=n?n.get(nr,null):null;r&&r.handleError(t)}function Rp(e,t,n,r,o){for(let i=0;i<n.length;){const s=n[i++],a=n[i++],l=t[s],u=e.data[s];null!==u.setInput?u.setInput(l,o,r,a):l[a]=o}}function pn(e,t,n){const r=Yi(t,e);!function(e,t,n){_e(e)?e.setValue(t,n):t.textContent=n}(e[j],r,n)}function xs(e,t,n){let r=n?e.styles:null,o=n?e.classes:null,i=0;if(null!==t)for(let s=0;s<t.length;s++){const a=t[s];"number"==typeof a?i=a:1==i?o=za(o,a):2==i&&(r=za(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=o:e.classesWithoutHost=o}const jr=new Q("INJECTOR",-1);class Fp{get(t,n=Lo){if(n===Lo){const r=new Error(`NullInjectorError: No provider for ${$(t)}!`);throw r.name="NullInjectorError",r}return n}}const Zo=new Q("Set Injector scope."),Jo={},kw={};let mu;function Vp(){return void 0===mu&&(mu=new Fp),mu}function kp(e,t=null,n=null,r){return new Bw(e,n,t||Vp(),r)}class Bw{constructor(t,n,r,o=null){this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;const i=[];n&&Qt(n,a=>this.processProvider(a,t,n)),Qt([t],a=>this.processInjectorType(a,[],i)),this.records.set(jr,Hr(void 0,this));const s=this.records.get(Zo);this.scope=null!=s?s.value:null,this.source=o||("object"==typeof t?null:$(t))}get destroyed(){return this._destroyed}destroy(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach(t=>t.ngOnDestroy())}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}get(t,n=Lo,r=N.Default){this.assertNotDestroyed();const o=Pr(this),i=bn(void 0);try{if(!(r&N.SkipSelf)){let a=this.records.get(t);if(void 0===a){const l=("function"==typeof(e=t)||"object"==typeof e&&e instanceof Q)&&ln(t);a=l&&this.injectableDefInScope(l)?Hr(_u(t),Jo):null,this.records.set(t,a)}if(null!=a)return this.hydrate(t,a)}return(r&N.Self?Vp():this.parent).get(t,n=r&N.Optional&&n===Lo?null:n)}catch(s){if("NullInjectorError"===s.name){if((s[Nr]=s[Nr]||[]).unshift($(t)),o)throw s;return rh(s,t,"R3InjectorError",this.source)}throw s}finally{bn(i),Pr(o)}var e}_resolveInjectorDefTypes(){this.injectorDefTypes.forEach(t=>this.get(t))}toString(){const t=[];return this.records.forEach((r,o)=>t.push($(o))),`R3Injector[${t.join(", ")}]`}assertNotDestroyed(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}processInjectorType(t,n,r){if(!(t=T(t)))return!1;let o=ff(t);const i=null==o&&t.ngModule||void 0,s=void 0===i?t:i,a=-1!==r.indexOf(s);if(void 0!==i&&(o=ff(i)),null==o)return!1;if(null!=o.imports&&!a){let c;r.push(s);try{Qt(o.imports,d=>{this.processInjectorType(d,n,r)&&(void 0===c&&(c=[]),c.push(d))})}finally{}if(void 0!==c)for(let d=0;d<c.length;d++){const{ngModule:f,providers:h}=c[d];Qt(h,p=>this.processProvider(p,f,h||te))}}this.injectorDefTypes.add(s);const l=Yn(s)||(()=>new s);this.records.set(s,Hr(l,Jo));const u=o.providers;if(null!=u&&!a){const c=t;Qt(u,d=>this.processProvider(d,c,u))}return void 0!==i&&void 0!==t.providers}processProvider(t,n,r){let o=$r(t=T(t))?t:T(t&&t.provide);const i=Bp(e=t)?Hr(void 0,e.useValue):Hr(Lp(e),Jo);var e;if($r(t)||!0!==t.multi)this.records.get(o);else{let s=this.records.get(o);s||(s=Hr(void 0,Jo,!0),s.factory=()=>Xn(s.multi),this.records.set(o,s)),o=t,s.multi.push(t)}this.records.set(o,i)}hydrate(t,n){return n.value===Jo&&(n.value=kw,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(e=n.value)&&"object"==typeof e&&"function"==typeof e.ngOnDestroy&&this.onDestroy.add(n.value),n.value;var e}injectableDefInScope(t){if(!t.providedIn)return!1;const n=T(t.providedIn);return"string"==typeof n?"any"===n||n===this.scope:this.injectorDefTypes.has(n)}}function _u(e){const t=ln(e),n=null!==t?t.factory:Yn(e);if(null!==n)return n;if(e instanceof Q)throw new Error(`Token ${$(e)} is missing a \u0275prov definition.`);if(e instanceof Function)return function(e){const t=e.length;if(t>0){const r=function(e,t){const n=[];for(let r=0;r<e;r++)n.push(t);return n}(t,"?");throw new Error(`Can't resolve all parameters for ${$(e)}: (${r.join(", ")}).`)}const n=function(e){const t=e&&(e[$i]||e[hf]);if(t){const n=function(e){if(e.hasOwnProperty("name"))return e.name;const t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn(`DEPRECATED: DI is instantiating a token "${n}" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "${n}" class.`),t}return null}(e);return null!==n?()=>n.factory(e):()=>new e}(e);throw new Error("unreachable")}function Lp(e,t,n){let r;if($r(e)){const o=T(e);return Yn(o)||_u(o)}if(Bp(e))r=()=>T(e.useValue);else if(function(e){return!(!e||!e.useFactory)}(e))r=()=>e.useFactory(...Xn(e.deps||[]));else if(function(e){return!(!e||!e.useExisting)}(e))r=()=>q(T(e.useExisting));else{const o=T(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Yn(o)||_u(o);r=()=>new o(...Xn(e.deps))}return r}function Hr(e,t,n=!1){return{factory:e,value:t,multi:n?[]:void 0}}function Bp(e){return null!==e&&"object"==typeof e&&xl in e}function $r(e){return"function"==typeof e}const jp=function(e,t,n){return function(e,t=null,n=null,r){const o=kp(e,t,n,r);return o._resolveInjectorDefTypes(),o}({name:n},t,e,n)};class Z{static create(t,n){return Array.isArray(t)?jp(t,n,""):jp(t.providers,t.parent,t.name||"")}}function s0(e,t){ts(kl(e)[1],Ae())}function le(e){let t=function(e){return Object.getPrototypeOf(e.prototype).constructor}(e.type),n=!0;const r=[e];for(;t;){let o;if(Nt(e))o=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");o=t.\u0275dir}if(o){if(n){r.push(o);const s=e;s.inputs=bu(e.inputs),s.declaredInputs=bu(e.declaredInputs),s.outputs=bu(e.outputs);const a=o.hostBindings;a&&c0(e,a);const l=o.viewQuery,u=o.contentQueries;if(l&&l0(e,l),u&&u0(e,u),qa(e.inputs,o.inputs),qa(e.declaredInputs,o.declaredInputs),qa(e.outputs,o.outputs),Nt(o)&&o.data.animation){const c=e.data;c.animation=(c.animation||[]).concat(o.data.animation)}}const i=o.features;if(i)for(let s=0;s<i.length;s++){const a=i[s];a&&a.ngInherit&&a(e),a===le&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){let t=0,n=null;for(let r=e.length-1;r>=0;r--){const o=e[r];o.hostVars=t+=o.hostVars,o.hostAttrs=is(o.hostAttrs,n=is(n,o.hostAttrs))}}(r)}function bu(e){return e===_r?{}:e===te?[]:e}function l0(e,t){const n=e.viewQuery;e.viewQuery=n?(r,o)=>{t(r,o),n(r,o)}:t}function u0(e,t){const n=e.contentQueries;e.contentQueries=n?(r,o,i)=>{t(r,o,i),n(r,o,i)}:t}function c0(e,t){const n=e.hostBindings;e.hostBindings=n?(r,o)=>{t(r,o),n(r,o)}:t}Z.THROW_IF_NOT_FOUND=Lo,Z.NULL=new Fp,Z.\u0275prov=ee({token:Z,providedIn:"any",factory:()=>q(jr)}),Z.__NG_ELEMENT_ID__=-1;let Ts=null;function Ur(){if(!Ts){const e=Y.Symbol;if(e&&e.iterator)Ts=e.iterator;else{const t=Object.getOwnPropertyNames(Map.prototype);for(let n=0;n<t.length;++n){const r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(Ts=r)}}}return Ts}function ei(e){return!!wu(e)&&(Array.isArray(e)||!(e instanceof Map)&&Ur()in e)}function wu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function Le(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function ie(e,t,n,r,o,i,s,a){const l=C(),u=z(),c=e+20,d=u.firstCreatePass?function(e,t,n,r,o,i,s,a,l){const u=t.consts,c=kr(t,e,4,s||null,In(u,a));uu(t,n,c,In(u,l)),ts(t,c);const d=c.tViews=Is(2,c,r,o,i,t.directiveRegistry,t.pipeRegistry,null,t.schemas,u);return null!==t.queries&&(t.queries.template(t,c),d.queries=t.queries.embeddedTView(c)),c}(c,u,l,t,n,r,o,i,s):u.data[c];qt(d,!1);const f=l[j].createComment("");Ds(u,l,f,d),ke(f,l),As(l,l[c]=xp(f,l,f,d)),Ki(d)&&au(u,l,d),null!=s&&lu(l,d,a)}function Xr(e){return function(e,t){return e[t]}(F.lFrame.contextLView,20+e)}function E(e,t=N.Default){const n=C();return null===n?q(e,t):Qf(Ae(),n,T(e),t)}function J(e,t,n){const r=C();return Le(r,br(),t)&&function(e,t,n,r,o,i,s,a){const l=_t(t,n);let c,u=t.inputs;!a&&null!=u&&(c=u[r])?(Rp(e,n,c,r,o),Qi(t)&&function(e,t){const n=lt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3&t.type&&(r=function(e){return"class"===e?"className":"for"===e?"htmlFor":"formaction"===e?"formAction":"innerHtml"===e?"innerHTML":"readonly"===e?"readOnly":"tabindex"===e?"tabIndex":e}(r),o=null!=s?s(o,t.value||"",r):o,_e(i)?i.setProperty(l,r,o):ml(r)||(l.setProperty?l.setProperty(r,o):l[r]=o))}(z(),function(){const e=F.lFrame;return sl(e.tView,e.selectedIndex)}(),r,e,t,r[j],n,!1),J}function Tu(e,t,n,r,o){const s=o?"class":"style";Rp(e,n,t.inputs[s],s,r)}function v(e,t,n,r){const o=C(),i=z(),s=20+e,a=o[j],l=o[s]=Gl(a,t,F.lFrame.currentNamespace),u=i.firstCreatePass?function(e,t,n,r,o,i,s){const a=t.consts,u=kr(t,e,2,o,In(a,i));return uu(t,n,u,In(a,s)),null!==u.attrs&&xs(u,u.attrs,!1),null!==u.mergedAttrs&&xs(u,u.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,u),u}(s,i,o,0,t,n,r):i.data[s];qt(u,!0);const c=u.mergedAttrs;null!==c&&os(a,l,c);const d=u.classes;null!==d&&Yl(a,l,d);const f=u.styles;null!==f&&Jh(a,l,f),64!=(64&u.flags)&&Ds(i,o,l,u),0===F.lFrame.elementDepthCount&&ke(l,o),F.lFrame.elementDepthCount++,Ki(u)&&(au(i,o,u),function(e,t,n){if(tl(t)){const o=t.directiveEnd;for(let i=t.directiveStart;i<o;i++){const s=e.data[i];s.contentQueries&&s.contentQueries(1,n[i],i)}}}(i,u,o)),null!==r&&lu(o,u)}function D(){let e=Ae();ul()?F.lFrame.isParent=!1:(e=e.parent,qt(e,!1));const t=e;F.lFrame.elementDepthCount--;const n=z();n.firstCreatePass&&(ts(n,e),tl(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Tu(n,t,C(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Tu(n,t,C(),t.stylesWithoutHost,!1)}function U(e,t,n,r){v(e,t,n,r),D()}function to(){return C()}function Ps(e){return!!e&&"function"==typeof e.then}const Su=function(e){return!!e&&"function"==typeof e.subscribe};function ce(e,t,n,r){const o=C(),i=z(),s=Ae();return function(e,t,n,r,o,i,s,a){const l=Ki(r),c=e.firstCreatePass&&Np(e),d=t[8],f=Sp(t);let h=!0;if(3&r.type||a){const g=_t(r,t),y=a?a(g):g,_=f.length,M=a?I=>a(be(I[r.index])):r.index;if(_e(n)){let I=null;if(!a&&l&&(I=function(e,t,n,r){const o=e.cleanup;if(null!=o)for(let i=0;i<o.length-1;i+=2){const s=o[i];if(s===n&&o[i+1]===r){const a=t[7],l=o[i+2];return a.length>l?a[l]:null}"string"==typeof s&&(i+=2)}return null}(e,t,o,r.index)),null!==I)(I.__ngLastListenerFn__||I).__ngNextListenerFn__=i,I.__ngLastListenerFn__=i,h=!1;else{i=Nu(r,t,d,i,!1);const O=n.listen(y,o,i);f.push(i,O),c&&c.push(o,M,_,_+1)}}else i=Nu(r,t,d,i,!0),y.addEventListener(o,i,s),f.push(i),c&&c.push(o,M,_,s)}else i=Nu(r,t,d,i,!1);const p=r.outputs;let m;if(h&&null!==p&&(m=p[o])){const g=m.length;if(g)for(let y=0;y<g;y+=2){const he=t[m[y]][m[y+1]].subscribe(i),At=f.length;f.push(i,he),c&&c.push(o,r.index,At,-(At+1))}}}(i,o,o[j],s,e,t,!!n,r),ce}function Tg(e,t,n,r){try{return!1!==n(r)}catch(o){return Op(e,o),!1}}function Nu(e,t,n,r,o){return function i(s){if(s===Function)return r;const a=2&e.flags?lt(e.index,t):t;0==(32&t[2])&&fu(a);let l=Tg(t,0,r,s),u=i.__ngNextListenerFn__;for(;u;)l=Tg(t,0,u,s)&&l,u=u.__ngNextListenerFn__;return o&&!1===l&&(s.preventDefault(),s.returnValue=!1),l}}function de(e=1){return function(e){return(F.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,F.lFrame.contextLView))[8]}(e)}function Bg(e,t,n,r,o){const i=e[n+1],s=null===t;let a=r?Ot(i):fn(i),l=!1;for(;0!==a&&(!1===l||s);){const c=e[a+1];Y0(e[a],t)&&(l=!0,e[a+1]=r?Xl(c):Zl(c)),a=r?Ot(c):fn(c)}l&&(e[n+1]=r?Zl(i):Xl(i))}function Y0(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Sr(e,t)>=0}function Os(e,t){return function(e,t,n,r){const o=C(),i=z(),s=function(e){const t=F.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}(2);i.firstUpdatePass&&function(e,t,n,r){const o=e.data;if(null===o[n+1]){const i=o[ze()],s=function(e,t){return t>=e.expandoStartIndex}(e,n);(function(e,t){return 0!=(e.flags&(t?16:32))})(i,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){const o=function(e){const t=F.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e);let i=r?t.residualClasses:t.residualStyles;if(null===o)0===(r?t.classBindings:t.styleBindings)&&(n=ni(n=Ou(null,e,t,n,r),t.attrs,r),i=null);else{const s=t.directiveStylingLast;if(-1===s||e[s]!==o)if(n=Ou(o,e,t,n,r),null===i){let l=function(e,t,n){const r=n?t.classBindings:t.styleBindings;if(0!==fn(r))return e[Ot(r)]}(e,t,r);void 0!==l&&Array.isArray(l)&&(l=Ou(null,e,t,l[1],r),l=ni(l,t.attrs,r),function(e,t,n,r){e[Ot(n?t.classBindings:t.styleBindings)]=r}(e,t,r,l))}else i=function(e,t,n){let r;const o=t.directiveEnd;for(let i=1+t.directiveStylingLast;i<o;i++)r=ni(r,e[i].hostAttrs,n);return ni(r,t.attrs,n)}(e,t,r)}return void 0!==i&&(r?t.residualClasses=i:t.residualStyles=i),n}(o,i,t,r),function(e,t,n,r,o,i){let s=i?t.classBindings:t.styleBindings,a=Ot(s),l=fn(s);e[r]=n;let c,u=!1;if(Array.isArray(n)){const d=n;c=d[1],(null===c||Sr(d,c)>0)&&(u=!0)}else c=n;if(o)if(0!==l){const f=Ot(e[a+1]);e[r+1]=bs(f,a),0!==f&&(e[f+1]=Jl(e[f+1],r)),e[a+1]=function(e,t){return 131071&e|t<<17}(e[a+1],r)}else e[r+1]=bs(a,0),0!==a&&(e[a+1]=Jl(e[a+1],r)),a=r;else e[r+1]=bs(l,0),0===a?a=r:e[l+1]=Jl(e[l+1],r),l=r;u&&(e[r+1]=Zl(e[r+1])),Bg(e,c,r,!0),Bg(e,c,r,!1),function(e,t,n,r,o){const i=o?e.residualClasses:e.residualStyles;null!=i&&"string"==typeof t&&Sr(i,t)>=0&&(n[r+1]=Xl(n[r+1]))}(t,c,e,r,i),s=bs(a,l),i?t.classBindings=s:t.styleBindings=s}(o,i,t,n,s,r)}}(i,e,s,r),t!==k&&Le(o,s,t)&&function(e,t,n,r,o,i,s,a){if(!(3&t.type))return;const l=e.data,u=l[a+1];Rs(function(e){return 1==(1&e)}(u)?Zg(l,t,n,o,fn(u),s):void 0)||(Rs(i)||function(e){return 2==(2&e)}(u)&&(i=Zg(l,null,n,o,a,s)),function(e,t,n,r,o){const i=_e(e);if(t)o?i?e.addClass(n,r):n.classList.add(r):i?e.removeClass(n,r):n.classList.remove(r);else{let s=-1===r.indexOf("-")?void 0:dt.DashCase;if(null==o)i?e.removeStyle(n,r,s):n.style.removeProperty(r);else{const a="string"==typeof o&&o.endsWith("!important");a&&(o=o.slice(0,-10),s|=dt.Important),i?e.setStyle(n,r,o,s):n.style.setProperty(r,o,a?"important":"")}}}(r,s,Yi(ze(),n),o,i))}(i,i.data[ze()],o,o[j],e,o[s+1]=function(e,t){return null==e||("string"==typeof t?e+=t:"object"==typeof e&&(e=$(function(e){return e instanceof class{constructor(t){this.changingThisBreaksApplicationSecurity=t}toString(){return`SafeValue must use [property]=binding: ${this.changingThisBreaksApplicationSecurity} (see https://g.co/ng/security#xss)`}}?e.changingThisBreaksApplicationSecurity:e}(e)))),e}(t,n),r,s)}(e,t,null,!0),Os}function Ou(e,t,n,r,o){let i=null;const s=n.directiveEnd;let a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(i=t[a],r=ni(r,i.hostAttrs,o),i!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function ni(e,t,n){const r=n?1:2;let o=-1;if(null!==t)for(let i=0;i<t.length;i++){const s=t[i];"number"==typeof s?o=s:o===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),ut(e,s,!!n||t[++i]))}return void 0===e?null:e}function Zg(e,t,n,r,o,i){const s=null===t;let a;for(;o>0;){const l=e[o],u=Array.isArray(l),c=u?l[1]:l,d=null===c;let f=n[o+1];f===k&&(f=d?te:void 0);let h=d?wl(f,r):c===r?f:void 0;if(u&&!Rs(h)&&(h=wl(l,r)),Rs(h)&&(a=h,s))return a;const p=e[o+1];o=s?Ot(p):fn(p)}if(null!==t){let l=i?t.residualClasses:t.residualStyles;null!=l&&(a=wl(l,r))}return a}function Rs(e){return void 0!==e}function A(e,t=""){const n=C(),r=z(),o=e+20,i=r.firstCreatePass?kr(r,o,1,t,null):r.data[o],s=n[o]=function(e,t){return _e(e)?e.createText(t):e.createTextNode(t)}(n[j],t);Ds(r,n,s,i),qt(i,!1)}function pe(e){return _n("",e,""),pe}function _n(e,t,n){const r=C(),o=function(e,t,n,r){return Le(e,br(),n)?t+B(n)+r:k}(r,e,t,n);return o!==k&&pn(r,ze(),o),_n}const ir=void 0;var NM=["en",[["a","p"],["AM","PM"],ir],[["AM","PM"],ir,ir],[["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"]],ir,[["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"]],ir,[["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}",ir,"{1} 'at' {0}",ir],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){const t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}];let ro={};function Cm(e){return e in ro||(ro[e]=Y.ng&&Y.ng.common&&Y.ng.common.locales&&Y.ng.common.locales[e]),ro[e]}var w=(()=>((w=w||{})[w.LocaleId=0]="LocaleId",w[w.DayPeriodsFormat=1]="DayPeriodsFormat",w[w.DayPeriodsStandalone=2]="DayPeriodsStandalone",w[w.DaysFormat=3]="DaysFormat",w[w.DaysStandalone=4]="DaysStandalone",w[w.MonthsFormat=5]="MonthsFormat",w[w.MonthsStandalone=6]="MonthsStandalone",w[w.Eras=7]="Eras",w[w.FirstDayOfWeek=8]="FirstDayOfWeek",w[w.WeekendRange=9]="WeekendRange",w[w.DateFormat=10]="DateFormat",w[w.TimeFormat=11]="TimeFormat",w[w.DateTimeFormat=12]="DateTimeFormat",w[w.NumberSymbols=13]="NumberSymbols",w[w.NumberFormats=14]="NumberFormats",w[w.CurrencyCode=15]="CurrencyCode",w[w.CurrencySymbol=16]="CurrencySymbol",w[w.CurrencyName=17]="CurrencyName",w[w.Currencies=18]="Currencies",w[w.Directionality=19]="Directionality",w[w.PluralCase=20]="PluralCase",w[w.ExtraData=21]="ExtraData",w))();const Fs="en-US";let vm=Fs;function Ru(e){it(e,"Expected localeId to be defined"),"string"==typeof e&&(vm=e.toLowerCase().replace(/_/g,"-"))}function ku(e,t,n,r,o){if(e=T(e),Array.isArray(e))for(let i=0;i<e.length;i++)ku(e[i],t,n,r,o);else{const i=z(),s=C();let a=$r(e)?e:T(e.provide),l=Lp(e);const u=Ae(),c=1048575&u.providerIndexes,d=u.directiveStart,f=u.providerIndexes>>20;if($r(e)||!e.multi){const h=new No(l,o,E),p=Bu(a,t,o?c:c+f,d);-1===p?(ls(Oo(u,s),i,a),Lu(i,e,t.length),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(h),s.push(h)):(n[p]=h,s[p]=h)}else{const h=Bu(a,t,c+f,d),p=Bu(a,t,c,c+f),m=h>=0&&n[h],g=p>=0&&n[p];if(o&&!g||!o&&!m){ls(Oo(u,s),i,a);const y=function(e,t,n,r,o){const i=new No(e,n,E);return i.multi=[],i.index=t,i.componentProviders=0,Gm(i,o,r&&!n),i}(o?xI:AI,n.length,o,r,l);!o&&g&&(n[p].providerFactory=y),Lu(i,e,t.length,0),t.push(a),u.directiveStart++,u.directiveEnd++,o&&(u.providerIndexes+=1048576),n.push(y),s.push(y)}else Lu(i,e,h>-1?h:p,Gm(n[o?p:h],l,!o&&r));!o&&r&&g&&n[p].componentProviders++}}}function Lu(e,t,n,r){const o=$r(t);if(o||function(e){return!!e.useClass}(t)){const s=(t.useClass||t).prototype.ngOnDestroy;if(s){const a=e.destroyHooks||(e.destroyHooks=[]);if(!o&&t.multi){const l=a.indexOf(n);-1===l?a.push(n,[r,s]):a[l+1].push(r,s)}else a.push(n,s)}}}function Gm(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function Bu(e,t,n,r){for(let o=n;o<r;o++)if(t[o]===e)return o;return-1}function AI(e,t,n,r){return ju(this.multi,[])}function xI(e,t,n,r){const o=this.multi;let i;if(this.providerFactory){const s=this.providerFactory.componentProviders,a=Ro(n,n[1],this.providerFactory.index,r);i=a.slice(0,s),ju(o,i);for(let l=s;l<a.length;l++)i.push(a[l])}else i=[],ju(o,i);return i}function ju(e,t){for(let n=0;n<e.length;n++)t.push((0,e[n])());return t}function fe(e,t=[]){return n=>{n.providersResolver=(r,o)=>function(e,t,n){const r=z();if(r.firstCreatePass){const o=Nt(e);ku(n,r.data,r.blueprint,o,!0),ku(t,r.data,r.blueprint,o,!1)}}(r,o?o(e):e,t)}}class Wm{}const zm="ngComponent";class NI{resolveComponentFactory(t){throw function(e){const t=Error(`No component factory found for ${$(e)}. Did you add it to @NgModule.entryComponents?`);return t[zm]=e,t}(t)}}class sr{}function js(...e){}function io(e,t){return new Be(_t(e,t))}sr.NULL=new NI;const RI=function(){return io(Ae(),C())};let Be=(()=>{class e{constructor(n){this.nativeElement=n}}return e.__NG_ELEMENT_ID__=RI,e})();class Hs{}let ar=(()=>{class e{}return e.__NG_ELEMENT_ID__=()=>VI(),e})();const VI=function(){const e=C(),n=lt(Ae().index,e);return function(e){return e[j]}(Wt(n)?n:e)};let $u=(()=>{class e{}return e.\u0275prov=ee({token:e,providedIn:"root",factory:()=>null}),e})();class $s{constructor(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}const Km=new $s("12.2.3");class Ym{constructor(){}supports(t){return ei(t)}create(t){return new jI(t)}}const BI=(e,t)=>t;class jI{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||BI}forEachItem(t){let n;for(n=this._itHead;null!==n;n=n._next)t(n)}forEachOperation(t){let n=this._itHead,r=this._removalsHead,o=0,i=null;for(;n||r;){const s=!r||n&&n.currentIndex<Jm(r,o,i)?n:r,a=Jm(s,o,i),l=s.currentIndex;if(s===r)o--,r=r._nextRemoved;else if(n=n._next,null==s.previousIndex)o++;else{i||(i=[]);const u=a-o,c=l-o;if(u!=c){for(let f=0;f<u;f++){const h=f<i.length?i[f]:i[f]=0,p=h+f;c<=p&&p<u&&(i[f]=h+1)}i[s.previousIndex]=c-u}}a!==l&&t(s,a,l)}}forEachPreviousItem(t){let n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachMovedItem(t){let n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}forEachIdentityChange(t){let n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)}diff(t){if(null==t&&(t=[]),!ei(t))throw new Error(`Error trying to diff '${$(t)}'. Only arrays and iterables are allowed`);return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let o,i,s,n=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(let a=0;a<this.length;a++)i=t[a],s=this._trackByFn(a,i),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,i,s,a)),Object.is(n.item,i)||this._addIdentityChange(n,i)):(n=this._mismatch(n,i,s,a),r=!0),n=n._next}else o=0,function(e,t){if(Array.isArray(e))for(let n=0;n<e.length;n++)t(e[n]);else{const n=e[Ur()]();let r;for(;!(r=n.next()).done;)t(r.value)}}(t,a=>{s=this._trackByFn(o,a),null!==n&&Object.is(n.trackById,s)?(r&&(n=this._verifyReinsertion(n,a,s,o)),Object.is(n.item,a)||this._addIdentityChange(n,a)):(n=this._mismatch(n,a,s,o),r=!0),n=n._next,o++}),this.length=o;return this._truncate(n),this.collection=t,this.isDirty}get isDirty(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}_reset(){if(this.isDirty){let t;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=t._nextMoved)t.previousIndex=t.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}_mismatch(t,n,r,o){let i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,i,o)):null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(r,o))?(Object.is(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,i,o)):t=this._addAfter(new HI(n,r),i,o),t}_verifyReinsertion(t,n,r,o){let i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(r,null);return null!==i?t=this._reinsertAfter(i,t._prev,o):t.currentIndex!=o&&(t.currentIndex=o,this._addToMoves(t,o)),t}_truncate(t){for(;null!==t;){const n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}_reinsertAfter(t,n,r){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);const o=t._prevRemoved,i=t._nextRemoved;return null===o?this._removalsHead=i:o._nextRemoved=i,null===i?this._removalsTail=o:i._prevRemoved=o,this._insertAfter(t,n,r),this._addToMoves(t,r),t}_moveAfter(t,n,r){return this._unlink(t),this._insertAfter(t,n,r),this._addToMoves(t,r),t}_addAfter(t,n,r){return this._insertAfter(t,n,r),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t}_insertAfter(t,n,r){const o=null===n?this._itHead:n._next;return t._next=o,t._prev=n,null===o?this._itTail=t:o._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Zm),this._linkedRecords.put(t),t.currentIndex=r,t}_remove(t){return this._addToRemovals(this._unlink(t))}_unlink(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);const n=t._prev,r=t._next;return null===n?this._itHead=r:n._next=r,null===r?this._itTail=n:r._prev=n,t}_addToMoves(t,n){return t.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t),t}_addToRemovals(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Zm),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t}_addIdentityChange(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t}}class HI{constructor(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}class $I{constructor(){this._head=null,this._tail=null}add(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)}get(t,n){let r;for(r=this._head;null!==r;r=r._nextDup)if((null===n||n<=r.currentIndex)&&Object.is(r.trackById,t))return r;return null}remove(t){const n=t._prevDup,r=t._nextDup;return null===n?this._head=r:n._nextDup=r,null===r?this._tail=n:r._prevDup=n,null===this._head}}class Zm{constructor(){this.map=new Map}put(t){const n=t.trackById;let r=this.map.get(n);r||(r=new $I,this.map.set(n,r)),r.add(t)}get(t,n){const o=this.map.get(t);return o?o.get(t,n):null}remove(t){const n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t}get isEmpty(){return 0===this.map.size}clear(){this.map.clear()}}function Jm(e,t,n){const r=e.previousIndex;if(null===r)return r;let o=0;return n&&r<n.length&&(o=n[r]),r+t+o}class Xm{constructor(){}supports(t){return t instanceof Map||wu(t)}create(){return new UI}}class UI{constructor(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}get isDirty(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}forEachItem(t){let n;for(n=this._mapHead;null!==n;n=n._next)t(n)}forEachPreviousItem(t){let n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)}forEachChangedItem(t){let n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)}forEachAddedItem(t){let n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)}forEachRemovedItem(t){let n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)}diff(t){if(t){if(!(t instanceof Map||wu(t)))throw new Error(`Error trying to diff '${$(t)}'. Only maps and objects are allowed`)}else t=new Map;return this.check(t)?this:null}onDestroy(){}check(t){this._reset();let n=this._mapHead;if(this._appendAfter=null,this._forEach(t,(r,o)=>{if(n&&n.key===o)this._maybeAddToChanges(n,r),this._appendAfter=n,n=n._next;else{const i=this._getOrCreateRecordForKey(o,r);n=this._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(let r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}_insertBeforeOrAppend(t,n){if(t){const r=t._prev;return n._next=t,n._prev=r,t._prev=n,r&&(r._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}_getOrCreateRecordForKey(t,n){if(this._records.has(t)){const o=this._records.get(t);this._maybeAddToChanges(o,n);const i=o._prev,s=o._next;return i&&(i._next=s),s&&(s._prev=i),o._next=null,o._prev=null,o}const r=new GI(t);return this._records.set(t,r),r.currentValue=n,this._addToAdditions(r),r}_reset(){if(this.isDirty){let t;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}_maybeAddToChanges(t,n){Object.is(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))}_addToAdditions(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)}_addToChanges(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)}_forEach(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(r=>n(t[r],r))}}class GI{constructor(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}function e_(){return new ai([new Ym])}let ai=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(null!=r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||e_()),deps:[[e,new er,new Kt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(null!=r)return r;throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'`)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:e_}),e})();function t_(){return new so([new Xm])}let so=(()=>{class e{constructor(n){this.factories=n}static create(n,r){if(r){const o=r.factories.slice();n=n.concat(o)}return new e(n)}static extend(n){return{provide:e,useFactory:r=>e.create(n,r||t_()),deps:[[e,new er,new Kt]]}}find(n){const r=this.factories.find(o=>o.supports(n));if(r)return r;throw new Error(`Cannot find a differ supporting object '${n}'`)}}return e.\u0275prov=ee({token:e,providedIn:"root",factory:t_}),e})();function Us(e,t,n,r,o=!1){for(;null!==n;){const i=t[n.index];if(null!==i&&r.push(be(i)),St(i))for(let a=10;a<i.length;a++){const l=i[a],u=l[1].firstChild;null!==u&&Us(l[1],l,u,r)}const s=n.type;if(8&s)Us(e,t,n.child,r);else if(32&s){const a=jl(n,t);let l;for(;l=a();)r.push(l)}else if(16&s){const a=Kh(t,n);if(Array.isArray(a))r.push(...a);else{const l=zo(t[16]);Us(l[1],l,a,r,!0)}}n=o?n.projectionNext:n.next}return r}class li{constructor(t,n){this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._attachedToViewContainer=!1}get rootNodes(){const t=this._lView,n=t[1];return Us(n,t,n.firstChild,[])}get context(){return this._lView[8]}set context(t){this._lView[8]=t}get destroyed(){return 256==(256&this._lView[2])}destroy(){if(this._appRef)this._appRef.detachView(this);else if(this._attachedToViewContainer){const t=this._lView[3];if(St(t)){const n=t[8],r=n?n.indexOf(this):-1;r>-1&&(Wl(t,r),Jn(n,r))}this._attachedToViewContainer=!1}jh(this._lView[1],this._lView)}onDestroy(t){!function(e,t,n,r){const o=Sp(t);null===n?o.push(r):(o.push(n),e.firstCreatePass&&Np(e).push(r,o.length-1))}(this._lView[1],this._lView,null,t)}markForCheck(){fu(this._cdRefInjectingView||this._lView)}detach(){this._lView[2]&=-129}reattach(){this._lView[2]|=128}detectChanges(){pu(this._lView[1],this._lView,this.context)}checkNoChanges(){!function(e,t,n){Ji(!0);try{pu(e,t,n)}finally{Ji(!1)}}(this._lView[1],this._lView,this.context)}attachToViewContainerRef(){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._attachedToViewContainer=!0}detachFromAppRef(){var t;this._appRef=null,Qo(this._lView[1],t=this._lView,t[j],2,null,null)}attachToAppRef(t){if(this._attachedToViewContainer)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t}}class qI extends li{constructor(t){super(t),this._view=t}detectChanges(){Tp(this._view)}checkNoChanges(){!function(e){Ji(!0);try{Tp(e)}finally{Ji(!1)}}(this._view)}get context(){return null}}const JI=[new Xm],e1=new ai([new Ym]),t1=new so(JI),r1=function(){return Gs(Ae(),C())};let yn=(()=>{class e{}return e.__NG_ELEMENT_ID__=r1,e})();const o1=yn,i1=class extends o1{constructor(t,n,r){super(),this._declarationLView=t,this._declarationTContainer=n,this.elementRef=r}createEmbeddedView(t){const n=this._declarationTContainer.tViews,r=Ko(this._declarationLView,n,t,16,null,n.declTNode,null,null,null,null);r[17]=this._declarationLView[this._declarationTContainer.index];const i=this._declarationLView[19];return null!==i&&(r[19]=i.createEmbeddedView(n)),Yo(n,r,t),new li(r)}};function Gs(e,t){return 4&e.type?new i1(t,e,io(e,t)):null}class lr{}const u1=function(){return function(e,t){let n;const r=t[e.index];if(St(r))n=r;else{let o;if(8&e.type)o=be(r);else{const i=t[j];o=i.createComment("");const s=_t(e,t);rr(i,vs(i,s),o,function(e,t){return _e(e)?e.nextSibling(t):t.nextSibling}(i,s),!1)}t[e.index]=n=xp(r,t,o,e),As(t,n)}return new n_(n,e,t)}(Ae(),C())};let rn=(()=>{class e{}return e.__NG_ELEMENT_ID__=u1,e})();const d1=rn,n_=class extends d1{constructor(t,n,r){super(),this._lContainer=t,this._hostTNode=n,this._hostLView=r}get element(){return io(this._hostTNode,this._hostLView)}get injector(){return new Ir(this._hostTNode,this._hostLView)}get parentInjector(){const t=as(this._hostTNode,this._hostLView);if(Uf(t)){const n=Mr(t,this._hostLView),r=wr(t);return new Ir(n[1].data[r+8],n)}return new Ir(null,this._hostLView)}clear(){for(;this.length>0;)this.remove(this.length-1)}get(t){const n=r_(this._lContainer);return null!==n&&n[t]||null}get length(){return this._lContainer.length-10}createEmbeddedView(t,n,r){const o=t.createEmbeddedView(n||{});return this.insert(o,r),o}createComponent(t,n,r,o,i){const s=r||this.parentInjector;if(!i&&null==t.ngModule&&s){const l=s.get(lr,null);l&&(i=l)}const a=t.create(s,o,void 0,i);return this.insert(a.hostView,n),a}insert(t,n){const r=t._lView,o=r[1];if(St(r[3])){const c=this.indexOf(t);if(-1!==c)this.detach(c);else{const d=r[3],f=new n_(d,d[6],d[3]);f.detach(f.indexOf(t))}}const i=this._adjustIndex(n),s=this._lContainer;!function(e,t,n,r){const o=10+r,i=n.length;r>0&&(n[o-1][4]=t),r<i-10?(t[4]=n[o],ds(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;const s=t[17];null!==s&&n!==s&&function(e,t){const n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);const a=t[19];null!==a&&a.insertView(e),t[2]|=128}(o,r,s,i);const a=Ql(i,s),l=r[j],u=vs(l,s[7]);return null!==u&&function(e,t,n,r,o,i){r[0]=o,r[6]=t,Qo(e,r,n,1,o,i)}(o,s[6],l,r,u,a),t.attachToViewContainerRef(),ds(Uu(s),i,t),t}move(t,n){return this.insert(t,n)}indexOf(t){const n=r_(this._lContainer);return null!==n?n.indexOf(t):-1}remove(t){const n=this._adjustIndex(t,-1),r=Wl(this._lContainer,n);r&&(Jn(Uu(this._lContainer),n),jh(r[1],r))}detach(t){const n=this._adjustIndex(t,-1),r=Wl(this._lContainer,n);return r&&null!=Jn(Uu(this._lContainer),n)?new li(r):null}_adjustIndex(t,n=0){return null==t?this.length+n:t}};function r_(e){return e[8]}function Uu(e){return e[8]||(e[8]=[])}const co={};class w_ extends sr{constructor(t){super(),this.ngModule=t}resolveComponentFactory(t){const n=We(t);return new I_(n,this.ngModule)}}function M_(e){const t=[];for(let n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}const aA=new Q("SCHEDULER_TOKEN",{providedIn:"root",factory:()=>Ph});class I_ extends Wm{constructor(t,n){super(),this.componentDef=t,this.ngModule=n,this.componentType=t.type,this.selector=t.selectors.map(Yb).join(","),this.ngContentSelectors=t.ngContentSelectors?t.ngContentSelectors:[],this.isBoundToModule=!!n}get inputs(){return M_(this.componentDef.inputs)}get outputs(){return M_(this.componentDef.outputs)}create(t,n,r,o){const i=(o=o||this.ngModule)?function(e,t){return{get:(n,r,o)=>{const i=e.get(n,co,o);return i!==co||r===co?i:t.get(n,r,o)}}}(t,o.injector):t,s=i.get(Hs,Af),a=i.get($u,null),l=s.createRenderer(null,this.componentDef),u=this.componentDef.selectors[0][0]||"div",c=r?function(e,t,n){if(_e(e))return e.selectRootElement(t,n===Ie.ShadowDom);let r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,r,this.componentDef.encapsulation):Gl(s.createRenderer(null,this.componentDef),u,function(e){const t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(u)),d=this.componentDef.onPush?576:528,f=function(e,t){return{components:[],scheduler:e||Ph,clean:Rw,playerHandler:t||null,flags:0}}(),h=Is(0,null,null,1,0,null,null,null,null,null),p=Ko(null,h,f,d,null,null,s,l,a,i);let m,g;Xi(p);try{const y=function(e,t,n,r,o,i){const s=n[1];n[20]=e;const l=kr(s,20,2,"#host",null),u=l.mergedAttrs=t.hostAttrs;null!==u&&(xs(l,u,!0),null!==e&&(os(o,e,u),null!==l.classes&&Yl(o,e,l.classes),null!==l.styles&&Jh(o,e,l.styles)));const c=r.createRenderer(e,t),d=Ko(n,_p(t),null,t.onPush?64:16,n[20],l,r,c,i||null,null);return s.firstCreatePass&&(ls(Oo(l,n),s,t.type),Mp(s,l),Ip(l,n.length,1)),As(n,d),n[20]=d}(c,this.componentDef,p,s,l);if(c)if(r)os(l,c,["ng-version",Km.full]);else{const{attrs:_,classes:M}=function(e){const t=[],n=[];let r=1,o=2;for(;r<e.length;){let i=e[r];if("string"==typeof i)2===o?""!==i&&t.push(i,e[++r]):8===o&&n.push(i);else{if(!Pt(o))break;o=i}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]);_&&os(l,c,_),M&&M.length>0&&Yl(l,c,M.join(" "))}if(g=sl(h,20),void 0!==n){const _=g.projection=[];for(let M=0;M<this.ngContentSelectors.length;M++){const I=n[M];_.push(null!=I?Array.from(I):null)}}m=function(e,t,n,r,o){const i=n[1],s=function(e,t,n){const r=Ae();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Ap(e,r,t,Lr(e,t,1,null),n));const o=Ro(t,e,r.directiveStart,r);ke(o,t);const i=_t(r,t);return i&&ke(i,t),o}(i,n,t);if(r.components.push(s),e[8]=s,o&&o.forEach(l=>l(s,t)),t.contentQueries){const l=Ae();t.contentQueries(1,s,l.directiveStart)}const a=Ae();return!i.firstCreatePass||null===t.hostBindings&&null===t.hostAttrs||(An(a.index),bp(n[1],a,0,a.directiveStart,a.directiveEnd,t),wp(t,s)),s}(y,this.componentDef,p,f,[s0]),Yo(h,p,null)}finally{es()}return new cA(this.componentType,m,io(g,p),p,g)}}class cA extends class{}{constructor(t,n,r,o,i){super(),this.location=r,this._rootLView=o,this._tNode=i,this.instance=n,this.hostView=this.changeDetectorRef=new qI(o),this.componentType=t}get injector(){return new Ir(this._tNode,this._rootLView)}destroy(){this.hostView.destroy()}onDestroy(t){this.hostView.onDestroy(t)}}const fo=new Map;class hA extends lr{constructor(t,n){super(),this._parent=n,this._bootstrapComponents=[],this.injector=this,this.destroyCbs=[],this.componentFactoryResolver=new w_(this);const r=pt(t),o=t[hD]||null;o&&Ru(o),this._bootstrapComponents=Jt(r.bootstrap),this._r3Injector=kp(t,n,[{provide:lr,useValue:this},{provide:sr,useValue:this.componentFactoryResolver}],$(t)),this._r3Injector._resolveInjectorDefTypes(),this.instance=this.get(t)}get(t,n=Z.THROW_IF_NOT_FOUND,r=N.Default){return t===Z||t===lr||t===jr?this:this._r3Injector.get(t,n,r)}destroy(){const t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach(n=>n()),this.destroyCbs=null}onDestroy(t){this.destroyCbs.push(t)}}class nc extends class{}{constructor(t){super(),this.moduleType=t,null!==pt(t)&&function(e){const t=new Set;!function n(r){const o=pt(r,!0),i=o.id;null!==i&&(function(e,t,n){if(t&&t!==n)throw new Error(`Duplicate module registered for ${e} - ${$(t)} vs ${$(t.name)}`)}(i,fo.get(i),r),fo.set(i,r));const s=Jt(o.imports);for(const a of s)t.has(a)||(t.add(a),n(a))}(e)}(t)}create(t){return new hA(this.moduleType,t)}}function rc(e,t,n,r){return function(e,t,n,r,o,i){const s=t+n;return Le(e,s,o)?function(e,t,n){return e[t]=n}(e,s+1,i?r.call(i,o):r(o)):function(e,t){const n=e[t];return n===k?void 0:n}(e,s+1)}(C(),function(){const e=F.lFrame;let t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}(),e,t,n,r)}function oc(e){return t=>{setTimeout(e,void 0,t)}}const $e=class extends Ha{constructor(t=!1){super(),this.__isAsync=t}emit(t){super.next(t)}subscribe(t,n,r){var o,i,s;let a=t,l=n||(()=>null),u=r;if(t&&"object"==typeof t){const d=t;a=null===(o=d.next)||void 0===o?void 0:o.bind(d),l=null===(i=d.error)||void 0===i?void 0:i.bind(d),u=null===(s=d.complete)||void 0===s?void 0:s.bind(d)}this.__isAsync&&(l=oc(l),a&&(a=oc(a)),u&&(u=oc(u)));const c=super.subscribe({next:a,error:l,complete:u});return t instanceof $n&&t.add(c),c}};function on(e,t){return Gs(e,t)}Symbol;const Js=new Q("Application Initializer");let po=(()=>{class e{constructor(n){this.appInits=n,this.resolve=js,this.reject=js,this.initialized=!1,this.done=!1,this.donePromise=new Promise((r,o)=>{this.resolve=r,this.reject=o})}runInitializers(){if(this.initialized)return;const n=[],r=()=>{this.done=!0,this.resolve()};if(this.appInits)for(let o=0;o<this.appInits.length;o++){const i=this.appInits[o]();if(Ps(i))n.push(i);else if(Su(i)){const s=new Promise((a,l)=>{i.subscribe({complete:a,error:l})});n.push(s)}}Promise.all(n).then(()=>{r()}).catch(o=>{this.reject(o)}),0===n.length&&r(),this.initialized=!0}}return e.\u0275fac=function(n){return new(n||e)(q(Js,8))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const vi=new Q("AppId"),mx={provide:vi,useFactory:function(){return`${gc()}${gc()}${gc()}`},deps:[]};function gc(){return String.fromCharCode(97+Math.floor(25*Math.random()))}const ny=new Q("Platform Initializer"),mc=new Q("Platform ID"),_x=new Q("appBootstrapListener");let _c=(()=>{class e{log(n){console.log(n)}warn(n){console.warn(n)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const On=new Q("LocaleId"),ry=new Q("DefaultCurrencyCode");class Cx{constructor(t,n){this.ngModuleFactory=t,this.componentFactories=n}}const yc=function(e){return new nc(e)},vx=yc,Dx=function(e){return Promise.resolve(yc(e))},oy=function(e){const t=yc(e),r=Jt(pt(e).declarations).reduce((o,i)=>{const s=We(i);return s&&o.push(new I_(s)),o},[]);return new Cx(t,r)},Ex=oy,bx=function(e){return Promise.resolve(oy(e))};let ea=(()=>{class e{constructor(){this.compileModuleSync=vx,this.compileModuleAsync=Dx,this.compileModuleAndAllComponentsSync=Ex,this.compileModuleAndAllComponentsAsync=bx}clearCache(){}clearCacheFor(n){}getModuleId(n){}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Ix=(()=>Promise.resolve(0))();function Cc(e){"undefined"==typeof Zone?Ix.then(()=>{e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}class Fe{constructor({enableLongStackTrace:t=!1,shouldCoalesceEventChangeDetection:n=!1,shouldCoalesceRunChangeDetection:r=!1}){if(this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new $e(!1),this.onMicrotaskEmpty=new $e(!1),this.onStable=new $e(!1),this.onError=new $e(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched();const o=this;o._nesting=0,o._outer=o._inner=Zone.current,Zone.TaskTrackingZoneSpec&&(o._inner=o._inner.fork(new Zone.TaskTrackingZoneSpec)),t&&Zone.longStackTraceZoneSpec&&(o._inner=o._inner.fork(Zone.longStackTraceZoneSpec)),o.shouldCoalesceEventChangeDetection=!r&&n,o.shouldCoalesceRunChangeDetection=r,o.lastRequestAnimationFrameId=-1,o.nativeRequestAnimationFrame=function(){let e=Y.requestAnimationFrame,t=Y.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){const n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);const r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,function(e){const t=()=>{!function(e){e.isCheckStableRunning||-1!==e.lastRequestAnimationFrameId||(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Y,()=>{e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",()=>{e.lastRequestAnimationFrameId=-1,Dc(e),e.isCheckStableRunning=!0,vc(e),e.isCheckStableRunning=!1},void 0,()=>{},()=>{})),e.fakeTopEventTask.invoke()}),Dc(e))}(e)};e._inner=e._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:(n,r,o,i,s,a)=>{try{return iy(e),n.invokeTask(o,i,s,a)}finally{(e.shouldCoalesceEventChangeDetection&&"eventTask"===i.type||e.shouldCoalesceRunChangeDetection)&&t(),sy(e)}},onInvoke:(n,r,o,i,s,a,l)=>{try{return iy(e),n.invoke(o,i,s,a,l)}finally{e.shouldCoalesceRunChangeDetection&&t(),sy(e)}},onHasTask:(n,r,o,i)=>{n.hasTask(o,i),r===o&&("microTask"==i.change?(e._hasPendingMicrotasks=i.microTask,Dc(e),vc(e)):"macroTask"==i.change&&(e.hasPendingMacrotasks=i.macroTask))},onHandleError:(n,r,o,i)=>(n.handleError(o,i),e.runOutsideAngular(()=>e.onError.emit(i)),!1)})}(o)}static isInAngularZone(){return!0===Zone.current.get("isAngularZone")}static assertInAngularZone(){if(!Fe.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}static assertNotInAngularZone(){if(Fe.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}run(t,n,r){return this._inner.run(t,n,r)}runTask(t,n,r,o){const i=this._inner,s=i.scheduleEventTask("NgZoneEvent: "+o,t,xx,js,js);try{return i.runTask(s,n,r)}finally{i.cancelTask(s)}}runGuarded(t,n,r){return this._inner.runGuarded(t,n,r)}runOutsideAngular(t){return this._outer.run(t)}}const xx={};function vc(e){if(0==e._nesting&&!e.hasPendingMicrotasks&&!e.isStable)try{e._nesting++,e.onMicrotaskEmpty.emit(null)}finally{if(e._nesting--,!e.hasPendingMicrotasks)try{e.runOutsideAngular(()=>e.onStable.emit(null))}finally{e.isStable=!0}}}function Dc(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||(e.shouldCoalesceEventChangeDetection||e.shouldCoalesceRunChangeDetection)&&-1!==e.lastRequestAnimationFrameId)}function iy(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function sy(e){e._nesting--,vc(e)}class Nx{constructor(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new $e,this.onMicrotaskEmpty=new $e,this.onStable=new $e,this.onError=new $e}run(t,n,r){return t.apply(n,r)}runGuarded(t,n,r){return t.apply(n,r)}runOutsideAngular(t){return t()}runTask(t,n,r,o){return t.apply(n,r)}}let Ec=(()=>{class e{constructor(n){this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run(()=>{this.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")})}_watchAngularEvents(){this._ngZone.onUnstable.subscribe({next:()=>{this._didWork=!0,this._isZoneStable=!1}}),this._ngZone.runOutsideAngular(()=>{this._ngZone.onStable.subscribe({next:()=>{Fe.assertNotInAngularZone(),Cc(()=>{this._isZoneStable=!0,this._runCallbacksIfReady()})}})})}increasePendingRequestCount(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}decreasePendingRequestCount(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}isStable(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}_runCallbacksIfReady(){if(this.isStable())Cc(()=>{for(;0!==this._callbacks.length;){let n=this._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(this._didWork)}this._didWork=!1});else{let n=this.getPendingTasks();this._callbacks=this._callbacks.filter(r=>!r.updateCb||!r.updateCb(n)||(clearTimeout(r.timeoutId),!1)),this._didWork=!0}}getPendingTasks(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(n=>({source:n.source,creationLocation:n.creationLocation,data:n.data})):[]}addCallback(n,r,o){let i=-1;r&&r>0&&(i=setTimeout(()=>{this._callbacks=this._callbacks.filter(s=>s.timeoutId!==i),n(this._didWork,this.getPendingTasks())},r)),this._callbacks.push({doneCb:n,timeoutId:i,updateCb:o})}whenStable(n,r,o){if(o&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/plugins/task-tracking" loaded?');this.addCallback(n,r,o),this._runCallbacksIfReady()}getPendingRequestCount(){return this._pendingCount}findProviders(n,r,o){return[]}}return e.\u0275fac=function(n){return new(n||e)(q(Fe))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),ay=(()=>{class e{constructor(){this._applications=new Map,bc.addToWindow(this)}registerApplication(n,r){this._applications.set(n,r)}unregisterApplication(n){this._applications.delete(n)}unregisterAllApplications(){this._applications.clear()}getTestability(n){return this._applications.get(n)||null}getAllTestabilities(){return Array.from(this._applications.values())}getAllRootElements(){return Array.from(this._applications.keys())}findTestabilityInTree(n,r=!0){return bc.findTestabilityInTree(this,n,r)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Px{addToWindow(t){}findTestabilityInTree(t,n,r){return null}}let bc=new Px,ly=!0,uy=!1;let jt;const dy=new Q("AllowMultipleToken");function fy(e,t,n=[]){const r=`Platform: ${t}`,o=new Q(r);return(i=[])=>{let s=hy();if(!s||s.injector.get(dy,!1))if(e)e(n.concat(i).concat({provide:o,useValue:!0}));else{const a=n.concat(i).concat({provide:o,useValue:!0},{provide:Zo,useValue:"platform"});!function(e){if(jt&&!jt.destroyed&&!jt.injector.get(dy,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");jt=e.get(py);const t=e.get(ny,null);t&&t.forEach(n=>n())}(Z.create({providers:a,name:r}))}return function(e){const t=hy();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function hy(){return jt&&!jt.destroyed?jt:null}let py=(()=>{class e{constructor(n){this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}bootstrapModuleFactory(n,r){const a=function(e,t){let n;return n="noop"===e?new Nx:("zone.js"===e?void 0:e)||new Fe({enableLongStackTrace:(uy=!0,ly),shouldCoalesceEventChangeDetection:!!(null==t?void 0:t.ngZoneEventCoalescing),shouldCoalesceRunChangeDetection:!!(null==t?void 0:t.ngZoneRunCoalescing)}),n}(r?r.ngZone:void 0,{ngZoneEventCoalescing:r&&r.ngZoneEventCoalescing||!1,ngZoneRunCoalescing:r&&r.ngZoneRunCoalescing||!1}),l=[{provide:Fe,useValue:a}];return a.run(()=>{const u=Z.create({providers:l,parent:this.injector,name:n.moduleType.name}),c=n.create(u),d=c.injector.get(nr,null);if(!d)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return a.runOutsideAngular(()=>{const f=a.onError.subscribe({next:h=>{d.handleError(h)}});c.onDestroy(()=>{wc(this._modules,c),f.unsubscribe()})}),function(e,t,n){try{const r=n();return Ps(r)?r.catch(o=>{throw t.runOutsideAngular(()=>e.handleError(o)),o}):r}catch(r){throw t.runOutsideAngular(()=>e.handleError(r)),r}}(d,a,()=>{const f=c.injector.get(po);return f.runInitializers(),f.donePromise.then(()=>(Ru(c.injector.get(On,Fs)||Fs),this._moduleDoBootstrap(c),c))})})}bootstrapModule(n,r=[]){const o=gy({},r);return function(e,t,n){const r=new nc(n);return Promise.resolve(r)}(0,0,n).then(i=>this.bootstrapModuleFactory(i,o))}_moduleDoBootstrap(n){const r=n.injector.get(Di);if(n._bootstrapComponents.length>0)n._bootstrapComponents.forEach(o=>r.bootstrap(o));else{if(!n.instance.ngDoBootstrap)throw new Error(`The module ${$(n.instance.constructor)} was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.`);n.instance.ngDoBootstrap(r)}this._modules.push(n)}onDestroy(n){this._destroyListeners.push(n)}get injector(){return this._injector}destroy(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(n=>n.destroy()),this._destroyListeners.forEach(n=>n()),this._destroyed=!0}get destroyed(){return this._destroyed}}return e.\u0275fac=function(n){return new(n||e)(q(Z))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function gy(e,t){return Array.isArray(t)?t.reduce(gy,e):Object.assign(Object.assign({},e),t)}let Di=(()=>{class e{constructor(n,r,o,i,s){this._zone=n,this._injector=r,this._exceptionHandler=o,this._componentFactoryResolver=i,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._onMicrotaskEmptySubscription=this._zone.onMicrotaskEmpty.subscribe({next:()=>{this._zone.run(()=>{this.tick()})}});const a=new Re(u=>{this._stable=this._zone.isStable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks,this._zone.runOutsideAngular(()=>{u.next(this._stable),u.complete()})}),l=new Re(u=>{let c;this._zone.runOutsideAngular(()=>{c=this._zone.onStable.subscribe(()=>{Fe.assertNotInAngularZone(),Cc(()=>{!this._stable&&!this._zone.hasPendingMacrotasks&&!this._zone.hasPendingMicrotasks&&(this._stable=!0,u.next(!0))})})});const d=this._zone.onUnstable.subscribe(()=>{Fe.assertInAngularZone(),this._stable&&(this._stable=!1,this._zone.runOutsideAngular(()=>{u.next(!1)}))});return()=>{c.unsubscribe(),d.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Kv(e),r=Yv(e,1/0),o=e;return o.length?1===o.length?Mo(o[0]):Gv(r)(Wv(o,n)):Ua}(a,l.pipe(function(e){void 0===e&&(e={});var t=e.connector,n=void 0===t?function(){return new Ha}:t,r=e.resetOnError,o=void 0===r||r,i=e.resetOnComplete,s=void 0===i||i,a=e.resetOnRefCountZero,l=void 0===a||a;return function(u){var c=null,d=null,f=null,h=0,p=!1,m=!1,g=function(){null==d||d.unsubscribe(),d=null},y=function(){g(),c=f=null,p=m=!1},_=function(){var M=c;y(),null==M||M.unsubscribe()};return ji(function(M,I){h++,!m&&!p&&g();var O=f=null!=f?f:n();I.add(function(){0==--h&&!m&&!p&&(d=Wa(_,l))}),O.subscribe(I),c||(c=new La({next:function(he){return O.next(he)},error:function(he){m=!0,g(),d=Wa(y,o,he),O.error(he)},complete:function(){p=!0,g(),d=Wa(y,s),O.complete()}}),sf(M).subscribe(c))})(u)}}()))}bootstrap(n,r){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 o;o=n instanceof Wm?n:this._componentFactoryResolver.resolveComponentFactory(n),this.componentTypes.push(o.componentType);const i=function(e){return e.isBoundToModule}(o)?void 0:this._injector.get(lr),a=o.create(Z.NULL,[],r||o.selector,i),l=a.location.nativeElement,u=a.injector.get(Ec,null),c=u&&a.injector.get(ay);return u&&c&&c.registerApplication(l,u),a.onDestroy(()=>{this.detachView(a.hostView),wc(this.components,a),c&&c.unregisterApplication(l)}),this._loadComponent(a),a}tick(){if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;for(let n of this._views)n.detectChanges()}catch(n){this._zone.runOutsideAngular(()=>this._exceptionHandler.handleError(n))}finally{this._runningTick=!1}}attachView(n){const r=n;this._views.push(r),r.attachToAppRef(this)}detachView(n){const r=n;wc(this._views,r),r.detachFromAppRef()}_loadComponent(n){this.attachView(n.hostView),this.tick(),this.components.push(n),this._injector.get(_x,[]).concat(this._bootstrapListeners).forEach(o=>o(n))}ngOnDestroy(){this._views.slice().forEach(n=>n.destroy()),this._onMicrotaskEmptySubscription.unsubscribe()}get viewCount(){return this._views.length}}return e.\u0275fac=function(n){return new(n||e)(q(Fe),q(Z),q(nr),q(sr),q(po))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function wc(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const iT=fy(null,"core",[{provide:mc,useValue:"unknown"},{provide:py,deps:[Z]},{provide:ay,deps:[]},{provide:_c,deps:[]}]),cT=[{provide:Di,useClass:Di,deps:[Fe,Z,nr,sr,po]},{provide:aA,deps:[Fe],useFactory:function(e){let t=[];return e.onStable.subscribe(()=>{for(;t.length;)t.pop()()}),function(n){t.push(n)}}},{provide:po,useClass:po,deps:[[new Kt,Js]]},{provide:ea,useClass:ea,deps:[]},mx,{provide:ai,useFactory:function(){return e1},deps:[]},{provide:so,useFactory:function(){return t1},deps:[]},{provide:On,useFactory:function(e){return Ru(e=e||"undefined"!=typeof $localize&&$localize.locale||Fs),e},deps:[[new Ho(On),new Kt,new er]]},{provide:ry,useValue:"USD"}];let fT=(()=>{class e{constructor(n){}}return e.\u0275fac=function(n){return new(n||e)(q(Di))},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({providers:cT}),e})(),ca=null;function hr(){return ca}const Je=new Q("DocumentToken");var we=(()=>((we=we||{})[we.Zero=0]="Zero",we[we.One=1]="One",we[we.Two=2]="Two",we[we.Few=3]="Few",we[we.Many=4]="Many",we[we.Other=5]="Other",we))();const vS=function(e){return function(e){const t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e);let n=Cm(t);if(n)return n;const r=t.split("-")[0];if(n=Cm(r),n)return n;if("en"===r)return NM;throw new Error(`Missing locale data for the locale "${e}".`)}(e)[w.PluralCase]};class va{}let KS=(()=>{class e extends va{constructor(n){super(),this.locale=n}getPluralCategory(n,r){switch(vS(r||this.locale)(n)){case we.Zero:return"zero";case we.One:return"one";case we.Two:return"two";case we.Few:return"few";case we.Many:return"many";default:return"other"}}}return e.\u0275fac=function(n){return new(n||e)(q(On))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Xy=(()=>{class e{constructor(n,r,o,i){this._iterableDiffers=n,this._keyValueDiffers=r,this._ngEl=o,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}set klass(n){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof n?n.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}set ngClass(n){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof n?n.split(/\s+/):n,this._rawClass&&(ei(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}ngDoCheck(){if(this._iterableDiffer){const n=this._iterableDiffer.diff(this._rawClass);n&&this._applyIterableChanges(n)}else if(this._keyValueDiffer){const n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}}_applyKeyValueChanges(n){n.forEachAddedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachChangedItem(r=>this._toggleClass(r.key,r.currentValue)),n.forEachRemovedItem(r=>{r.previousValue&&this._toggleClass(r.key,!1)})}_applyIterableChanges(n){n.forEachAddedItem(r=>{if("string"!=typeof r.item)throw new Error(`NgClass can only toggle CSS classes expressed as strings, got ${$(r.item)}`);this._toggleClass(r.item,!0)}),n.forEachRemovedItem(r=>this._toggleClass(r.item,!1))}_applyClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!0)):Object.keys(n).forEach(r=>this._toggleClass(r,!!n[r])))}_removeClasses(n){n&&(Array.isArray(n)||n instanceof Set?n.forEach(r=>this._toggleClass(r,!1)):Object.keys(n).forEach(r=>this._toggleClass(r,!1)))}_toggleClass(n,r){(n=n.trim())&&n.split(/\s+/g).forEach(o=>{r?this._renderer.addClass(this._ngEl.nativeElement,o):this._renderer.removeClass(this._ngEl.nativeElement,o)})}}return e.\u0275fac=function(n){return new(n||e)(E(ai),E(so),E(Be),E(ar))},e.\u0275dir=R({type:e,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),e})();class JS{constructor(t,n,r,o){this.$implicit=t,this.ngForOf=n,this.index=r,this.count=o}get first(){return 0===this.index}get last(){return this.index===this.count-1}get even(){return this.index%2==0}get odd(){return!this.even}}let eC=(()=>{class e{constructor(n,r,o){this._viewContainer=n,this._template=r,this._differs=o,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}set ngForOf(n){this._ngForOf=n,this._ngForOfDirty=!0}set ngForTrackBy(n){this._trackByFn=n}get ngForTrackBy(){return this._trackByFn}set ngForTemplate(n){n&&(this._template=n)}ngDoCheck(){if(this._ngForOfDirty){this._ngForOfDirty=!1;const n=this._ngForOf;if(!this._differ&&n)try{this._differ=this._differs.find(n).create(this.ngForTrackBy)}catch(r){throw new Error(`Cannot find a differ supporting object '${n}' of type '${function(e){return e.name||typeof e}(n)}'. NgFor only supports binding to Iterables such as Arrays.`)}}if(this._differ){const n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}_applyChanges(n){const r=[];n.forEachOperation((o,i,s)=>{if(null==o.previousIndex){const a=this._viewContainer.createEmbeddedView(this._template,new JS(null,this._ngForOf,-1,-1),null===s?void 0:s),l=new tC(o,a);r.push(l)}else if(null==s)this._viewContainer.remove(null===i?void 0:i);else if(null!==i){const a=this._viewContainer.get(i);this._viewContainer.move(a,s);const l=new tC(o,a);r.push(l)}});for(let o=0;o<r.length;o++)this._perViewChange(r[o].view,r[o].record);for(let o=0,i=this._viewContainer.length;o<i;o++){const s=this._viewContainer.get(o);s.context.index=o,s.context.count=i,s.context.ngForOf=this._ngForOf}n.forEachIdentityChange(o=>{this._viewContainer.get(o.currentIndex).context.$implicit=o.item})}_perViewChange(n,r){n.context.$implicit=r.item}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(E(rn),E(yn),E(ai))},e.\u0275dir=R({type:e,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),e})();class tC{constructor(t,n){this.record=t,this.view=n}}let nC=(()=>{class e{constructor(n,r){this._viewContainer=n,this._context=new eN,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=r}set ngIf(n){this._context.$implicit=this._context.ngIf=n,this._updateView()}set ngIfThen(n){rC("ngIfThen",n),this._thenTemplateRef=n,this._thenViewRef=null,this._updateView()}set ngIfElse(n){rC("ngIfElse",n),this._elseTemplateRef=n,this._elseViewRef=null,this._updateView()}_updateView(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}static ngTemplateContextGuard(n,r){return!0}}return e.\u0275fac=function(n){return new(n||e)(E(rn),E(yn))},e.\u0275dir=R({type:e,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),e})();class eN{constructor(){this.$implicit=null,this.ngIf=null}}function rC(e,t){if(t&&!t.createEmbeddedView)throw new Error(`${e} must be a TemplateRef, but received '${$(t)}'.`)}let IN=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({providers:[{provide:va,useClass:KS}]}),e})();class Zc extends class extends class{}{constructor(){super(...arguments),this.supportsDOMEvents=!0}}{static makeCurrent(){var e;e=new Zc,ca||(ca=e)}onAndCancel(t,n,r){return t.addEventListener(n,r,!1),()=>{t.removeEventListener(n,r,!1)}}dispatchEvent(t,n){t.dispatchEvent(n)}remove(t){t.parentNode&&t.parentNode.removeChild(t)}createElement(t,n){return(n=n||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,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null}getBaseHref(t){const n=(xi=xi||document.querySelector("base"),xi?xi.getAttribute("href"):null);return null==n?null:function(e){Da=Da||document.createElement("a"),Da.setAttribute("href",e);const t=Da.pathname;return"/"===t.charAt(0)?t:`/${t}`}(n)}resetBaseElement(){xi=null}getUserAgent(){return window.navigator.userAgent}getCookie(t){return function(e,t){t=encodeURIComponent(t);for(const n of e.split(";")){const r=n.indexOf("="),[o,i]=-1==r?[n,""]:[n.slice(0,r),n.slice(r+1)];if(o.trim()===t)return decodeURIComponent(i)}return null}(document.cookie,t)}}let Da,xi=null;const lC=new Q("TRANSITION_ID"),VN=[{provide:Js,useFactory:function(e,t,n){return()=>{n.get(po).donePromise.then(()=>{const r=hr(),o=t.querySelectorAll(`style[ng-transition="${e}"]`);for(let i=0;i<o.length;i++)r.remove(o[i])})}},deps:[lC,Je,Z],multi:!0}];class Jc{static init(){var e;e=new Jc,bc=e}addToWindow(t){Y.getAngularTestability=(r,o=!0)=>{const i=t.findTestabilityInTree(r,o);if(null==i)throw new Error("Could not find testability for element.");return i},Y.getAllAngularTestabilities=()=>t.getAllTestabilities(),Y.getAllAngularRootElements=()=>t.getAllRootElements(),Y.frameworkStabilizers||(Y.frameworkStabilizers=[]),Y.frameworkStabilizers.push(r=>{const o=Y.getAllAngularTestabilities();let i=o.length,s=!1;const a=function(l){s=s||l,i--,0==i&&r(s)};o.forEach(function(l){l.whenStable(a)})})}findTestabilityInTree(t,n,r){if(null==n)return null;const o=t.getTestability(n);return null!=o?o:r?hr().isShadowRoot(n)?this.findTestabilityInTree(t,n.host,!0):this.findTestabilityInTree(t,n.parentElement,!0):null}}let kN=(()=>{class e{build(){return new XMLHttpRequest}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const Ti=new Q("EventManagerPlugins");let ba=(()=>{class e{constructor(n,r){this._zone=r,this._eventNameToPlugin=new Map,n.forEach(o=>o.manager=this),this._plugins=n.slice().reverse()}addEventListener(n,r,o){return this._findPluginFor(r).addEventListener(n,r,o)}addGlobalEventListener(n,r,o){return this._findPluginFor(r).addGlobalEventListener(n,r,o)}getZone(){return this._zone}_findPluginFor(n){const r=this._eventNameToPlugin.get(n);if(r)return r;const o=this._plugins;for(let i=0;i<o.length;i++){const s=o[i];if(s.supports(n))return this._eventNameToPlugin.set(n,s),s}throw new Error(`No event manager plugin found for event ${n}`)}}return e.\u0275fac=function(n){return new(n||e)(q(Ti),q(Fe))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class Xc{constructor(t){this._doc=t}addGlobalEventListener(t,n,r){const o=hr().getGlobalEventTarget(this._doc,t);if(!o)throw new Error(`Unsupported event target ${o} for event ${n}`);return this.addEventListener(o,n,r)}}let cC=(()=>{class e{constructor(){this._stylesSet=new Set}addStyles(n){const r=new Set;n.forEach(o=>{this._stylesSet.has(o)||(this._stylesSet.add(o),r.add(o))}),this.onStylesAdded(r)}onStylesAdded(n){}getAllStyles(){return Array.from(this._stylesSet)}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})(),Si=(()=>{class e extends cC{constructor(n){super(),this._doc=n,this._hostNodes=new Map,this._hostNodes.set(n.head,[])}_addStylesToHost(n,r,o){n.forEach(i=>{const s=this._doc.createElement("style");s.textContent=i,o.push(r.appendChild(s))})}addHost(n){const r=[];this._addStylesToHost(this._stylesSet,n,r),this._hostNodes.set(n,r)}removeHost(n){const r=this._hostNodes.get(n);r&&r.forEach(dC),this._hostNodes.delete(n)}onStylesAdded(n){this._hostNodes.forEach((r,o)=>{this._addStylesToHost(n,o,r)})}ngOnDestroy(){this._hostNodes.forEach(n=>n.forEach(dC))}}return e.\u0275fac=function(n){return new(n||e)(q(Je))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();function dC(e){hr().remove(e)}const ed={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/"},td=/%COMP%/g;function wa(e,t,n){for(let r=0;r<t.length;r++){let o=t[r];Array.isArray(o)?wa(e,o,n):(o=o.replace(td,e),n.push(o))}return n}function pC(e){return t=>{if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}let nd=(()=>{class e{constructor(n,r,o){this.eventManager=n,this.sharedStylesHost=r,this.appId=o,this.rendererByCompId=new Map,this.defaultRenderer=new rd(n)}createRenderer(n,r){if(!n||!r)return this.defaultRenderer;switch(r.encapsulation){case Ie.Emulated:{let o=this.rendererByCompId.get(r.id);return o||(o=new JN(this.eventManager,this.sharedStylesHost,r,this.appId),this.rendererByCompId.set(r.id,o)),o.applyToHost(n),o}case 1:case Ie.ShadowDom:return new XN(this.eventManager,this.sharedStylesHost,n,r);default:if(!this.rendererByCompId.has(r.id)){const o=wa(r.id,r.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(r.id,this.defaultRenderer)}return this.defaultRenderer}}begin(){}end(){}}return e.\u0275fac=function(n){return new(n||e)(q(ba),q(Si),q(vi))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();class rd{constructor(t){this.eventManager=t,this.data=Object.create(null)}destroy(){}createElement(t,n){return n?document.createElementNS(ed[n]||n,t):document.createElement(t)}createComment(t){return document.createComment(t)}createText(t){return document.createTextNode(t)}appendChild(t,n){t.appendChild(n)}insertBefore(t,n,r){t&&t.insertBefore(n,r)}removeChild(t,n){t&&t.removeChild(n)}selectRootElement(t,n){let r="string"==typeof t?document.querySelector(t):t;if(!r)throw new Error(`The selector "${t}" did not match any elements`);return n||(r.textContent=""),r}parentNode(t){return t.parentNode}nextSibling(t){return t.nextSibling}setAttribute(t,n,r,o){if(o){n=o+":"+n;const i=ed[o];i?t.setAttributeNS(i,n,r):t.setAttribute(n,r)}else t.setAttribute(n,r)}removeAttribute(t,n,r){if(r){const o=ed[r];o?t.removeAttributeNS(o,n):t.removeAttribute(`${r}:${n}`)}else t.removeAttribute(n)}addClass(t,n){t.classList.add(n)}removeClass(t,n){t.classList.remove(n)}setStyle(t,n,r,o){o&(dt.DashCase|dt.Important)?t.style.setProperty(n,r,o&dt.Important?"important":""):t.style[n]=r}removeStyle(t,n,r){r&dt.DashCase?t.style.removeProperty(n):t.style[n]=""}setProperty(t,n,r){t[n]=r}setValue(t,n){t.nodeValue=n}listen(t,n,r){return"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,pC(r)):this.eventManager.addEventListener(t,n,pC(r))}}class JN extends rd{constructor(t,n,r,o){super(t),this.component=r;const i=wa(o+"-"+r.id,r.styles,[]);n.addStyles(i),this.contentAttr="_ngcontent-%COMP%".replace(td,o+"-"+r.id),this.hostAttr="_nghost-%COMP%".replace(td,o+"-"+r.id)}applyToHost(t){super.setAttribute(t,this.hostAttr,"")}createElement(t,n){const r=super.createElement(t,n);return super.setAttribute(r,this.contentAttr,""),r}}class XN extends rd{constructor(t,n,r,o){super(t),this.sharedStylesHost=n,this.hostEl=r,this.shadowRoot=r.attachShadow({mode:"open"}),this.sharedStylesHost.addHost(this.shadowRoot);const i=wa(o.id,o.styles,[]);for(let s=0;s<i.length;s++){const a=document.createElement("style");a.textContent=i[s],this.shadowRoot.appendChild(a)}}nodeOrShadowRoot(t){return t===this.hostEl?this.shadowRoot:t}destroy(){this.sharedStylesHost.removeHost(this.shadowRoot)}appendChild(t,n){return super.appendChild(this.nodeOrShadowRoot(t),n)}insertBefore(t,n,r){return super.insertBefore(this.nodeOrShadowRoot(t),n,r)}removeChild(t,n){return super.removeChild(this.nodeOrShadowRoot(t),n)}parentNode(t){return this.nodeOrShadowRoot(super.parentNode(this.nodeOrShadowRoot(t)))}}let eP=(()=>{class e extends Xc{constructor(n){super(n)}supports(n){return!0}addEventListener(n,r,o){return n.addEventListener(r,o,!1),()=>this.removeEventListener(n,r,o)}removeEventListener(n,r,o){return n.removeEventListener(r,o)}}return e.\u0275fac=function(n){return new(n||e)(q(Je))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const _C=["alt","control","meta","shift"],aP={"\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"},yC={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"},lP={alt:e=>e.altKey,control:e=>e.ctrlKey,meta:e=>e.metaKey,shift:e=>e.shiftKey};let uP=(()=>{class e extends Xc{constructor(n){super(n)}supports(n){return null!=e.parseEventName(n)}addEventListener(n,r,o){const i=e.parseEventName(r),s=e.eventCallback(i.fullKey,o,this.manager.getZone());return this.manager.getZone().runOutsideAngular(()=>hr().onAndCancel(n,i.domEventName,s))}static parseEventName(n){const r=n.toLowerCase().split("."),o=r.shift();if(0===r.length||"keydown"!==o&&"keyup"!==o)return null;const i=e._normalizeKey(r.pop());let s="";if(_C.forEach(l=>{const u=r.indexOf(l);u>-1&&(r.splice(u,1),s+=l+".")}),s+=i,0!=r.length||0===i.length)return null;const a={};return a.domEventName=o,a.fullKey=s,a}static getEventFullKey(n){let r="",o=function(e){let t=e.key;if(null==t){if(t=e.keyIdentifier,null==t)return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&yC.hasOwnProperty(t)&&(t=yC[t]))}return aP[t]||t}(n);return o=o.toLowerCase()," "===o?o="space":"."===o&&(o="dot"),_C.forEach(i=>{i!=o&&lP[i](n)&&(r+=i+".")}),r+=o,r}static eventCallback(n,r,o){return i=>{e.getEventFullKey(i)===n&&o.runGuarded(()=>r(i))}}static _normalizeKey(n){switch(n){case"esc":return"escape";default:return n}}}return e.\u0275fac=function(n){return new(n||e)(q(Je))},e.\u0275prov=ee({token:e,factory:e.\u0275fac}),e})();const _P=fy(iT,"browser",[{provide:mc,useValue:"browser"},{provide:ny,useValue:function(){Zc.makeCurrent(),Jc.init()},multi:!0},{provide:Je,useFactory:function(){return e=document,ol=e,document;var e},deps:[]}]),yP=[[],{provide:Zo,useValue:"root"},{provide:nr,useFactory:function(){return new nr},deps:[]},{provide:Ti,useClass:eP,multi:!0,deps:[Je,Fe,mc]},{provide:Ti,useClass:uP,multi:!0,deps:[Je]},[],{provide:nd,useClass:nd,deps:[ba,Si,vi]},{provide:Hs,useExisting:nd},{provide:cC,useExisting:Si},{provide:Si,useClass:Si,deps:[Je]},{provide:Ec,useClass:Ec,deps:[Fe]},{provide:ba,useClass:ba,deps:[Ti,Fe]},{provide:class{},useClass:kN,deps:[]},[]];let CP=(()=>{class e{constructor(n){if(n)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(n){return{ngModule:e,providers:[{provide:vi,useValue:n.appId},{provide:lC,useExisting:vi},VN]}}}return e.\u0275fac=function(n){return new(n||e)(q(e,12))},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({providers:yP,imports:[IN,fT]}),e})();"undefined"!=typeof window&&window;var AP=Array.isArray,xP=Object.getPrototypeOf,TP=Object.prototype,SP=Object.keys;function NP(e){if(1===e.length){var t=e[0];if(AP(t))return{args:t,keys:null};if(function(e){return e&&"object"==typeof e&&xP(e)===TP}(t)){var n=SP(t);return{args:n.map(function(r){return t[r]}),keys:n}}}return{args:e,keys:null}}var OP=Array.isArray;function FP(e){return $a(function(t){return function(e,t){return OP(t)?e.apply(void 0,mr([],jn(t))):e(t)}(e,t)})}function VP(e,t){return e.reduce(function(n,r,o){return n[r]=t[o],n},{})}let vC=(()=>{class e{constructor(n,r){this._renderer=n,this._elementRef=r,this.onChange=o=>{},this.onTouched=()=>{}}setProperty(n,r){this._renderer.setProperty(this._elementRef.nativeElement,n,r)}registerOnTouched(n){this.onTouched=n}registerOnChange(n){this.onChange=n}setDisabledState(n){this.setProperty("disabled",n)}}return e.\u0275fac=function(n){return new(n||e)(E(ar),E(Be))},e.\u0275dir=R({type:e}),e})(),pr=(()=>{class e extends vC{}return e.\u0275fac=function(){let t;return function(r){return(t||(t=yt(e)))(r||e)}}(),e.\u0275dir=R({type:e,features:[le]}),e})();const sn=new Q("NgValueAccessor"),LP={provide:sn,useExisting:re(()=>ld),multi:!0};let ld=(()=>{class e extends pr{writeValue(n){this.setProperty("checked",n)}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=yt(e)))(r||e)}}(),e.\u0275dir=R({type:e,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(n,r){1&n&&ce("change",function(i){return r.onChange(i.target.checked)})("blur",function(){return r.onTouched()})},features:[fe([LP]),le]}),e})();const BP={provide:sn,useExisting:re(()=>Ma),multi:!0},HP=new Q("CompositionEventMode");let Ma=(()=>{class e extends vC{constructor(n,r,o){super(n,r),this._compositionMode=o,this._composing=!1,null==this._compositionMode&&(this._compositionMode=!function(){const e=hr()?hr().getUserAgent():"";return/android (\d+)/.test(e.toLowerCase())}())}writeValue(n){this.setProperty("value",null==n?"":n)}_handleInput(n){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(n)}_compositionStart(){this._composing=!0}_compositionEnd(n){this._composing=!1,this._compositionMode&&this.onChange(n)}}return e.\u0275fac=function(n){return new(n||e)(E(ar),E(Be),E(HP,8))},e.\u0275dir=R({type:e,selectors:[["input","formControlName","",3,"type","checkbox"],["textarea","formControlName",""],["input","formControl","",3,"type","checkbox"],["textarea","formControl",""],["input","ngModel","",3,"type","checkbox"],["textarea","ngModel",""],["","ngDefaultControl",""]],hostBindings:function(n,r){1&n&&ce("input",function(i){return r._handleInput(i.target.value)})("blur",function(){return r.onTouched()})("compositionstart",function(){return r._compositionStart()})("compositionend",function(i){return r._compositionEnd(i.target.value)})},features:[fe([BP]),le]}),e})();const Ue=new Q("NgValidators"),kn=new Q("NgAsyncValidators");function SC(e){return null!=e}function NC(e){const t=Ps(e)?sf(e):e;return Su(t),t}function PC(e){let t={};return e.forEach(n=>{t=null!=n?Object.assign(Object.assign({},t),n):t}),0===Object.keys(t).length?null:t}function OC(e,t){return t.map(n=>n(e))}function RC(e){return e.map(t=>function(e){return!e.validate}(t)?t:n=>t.validate(n))}function ud(e){return null!=e?function(e){if(!e)return null;const t=e.filter(SC);return 0==t.length?null:function(n){return PC(OC(n,t))}}(RC(e)):null}function cd(e){return null!=e?function(e){if(!e)return null;const t=e.filter(SC);return 0==t.length?null:function(n){return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Qv(e),r=NP(e),o=r.args,i=r.keys,s=new Re(function(a){var l=o.length;if(l)for(var u=new Array(l),c=l,d=l,f=function(p){var m=!1;Mo(o[p]).subscribe(new wo(a,function(g){m||(m=!0,d--),u[p]=g},function(){(!--c||!m)&&(d||a.next(i?VP(i,u):u),a.complete())}))},h=0;h<l;h++)f(h);else a.complete()});return n?s.pipe(FP(n)):s}(OC(n,t).map(NC)).pipe($a(PC))}}(RC(e)):null}function kC(e,t){return null===e?[t]:Array.isArray(e)?[...e,t]:[e,t]}function dd(e){return e?Array.isArray(e)?e:[e]:[]}function Ia(e,t){return Array.isArray(e)?e.includes(t):e===t}function jC(e,t){const n=dd(t);return dd(e).forEach(o=>{Ia(n,o)||n.push(o)}),n}function HC(e,t){return dd(t).filter(n=>!Ia(e,n))}let $C=(()=>{class e{constructor(){this._rawValidators=[],this._rawAsyncValidators=[],this._onDestroyCallbacks=[]}get value(){return this.control?this.control.value:null}get valid(){return this.control?this.control.valid:null}get invalid(){return this.control?this.control.invalid:null}get pending(){return this.control?this.control.pending:null}get disabled(){return this.control?this.control.disabled:null}get enabled(){return this.control?this.control.enabled:null}get errors(){return this.control?this.control.errors:null}get pristine(){return this.control?this.control.pristine:null}get dirty(){return this.control?this.control.dirty:null}get touched(){return this.control?this.control.touched:null}get status(){return this.control?this.control.status:null}get untouched(){return this.control?this.control.untouched:null}get statusChanges(){return this.control?this.control.statusChanges:null}get valueChanges(){return this.control?this.control.valueChanges:null}get path(){return null}_setValidators(n){this._rawValidators=n||[],this._composedValidatorFn=ud(this._rawValidators)}_setAsyncValidators(n){this._rawAsyncValidators=n||[],this._composedAsyncValidatorFn=cd(this._rawAsyncValidators)}get validator(){return this._composedValidatorFn||null}get asyncValidator(){return this._composedAsyncValidatorFn||null}_registerOnDestroy(n){this._onDestroyCallbacks.push(n)}_invokeOnDestroyCallbacks(){this._onDestroyCallbacks.forEach(n=>n()),this._onDestroyCallbacks=[]}reset(n){this.control&&this.control.reset(n)}hasError(n,r){return!!this.control&&this.control.hasError(n,r)}getError(n,r){return this.control?this.control.getError(n,r):null}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275dir=R({type:e}),e})(),Xe=(()=>{class e extends $C{get formDirective(){return null}get path(){return null}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=yt(e)))(r||e)}}(),e.\u0275dir=R({type:e,features:[le]}),e})();class Bn extends $C{constructor(){super(...arguments),this._parent=null,this.name=null,this.valueAccessor=null}}let GC=(()=>{class e extends class{constructor(t){this._cd=t}is(t){var n,r,o;return"submitted"===t?!!(null===(n=this._cd)||void 0===n?void 0:n.submitted):!!(null===(o=null===(r=this._cd)||void 0===r?void 0:r.control)||void 0===o?void 0:o[t])}}{constructor(n){super(n)}}return e.\u0275fac=function(n){return new(n||e)(E(Bn,2))},e.\u0275dir=R({type:e,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(n,r){2&n&&Os("ng-untouched",r.is("untouched"))("ng-touched",r.is("touched"))("ng-pristine",r.is("pristine"))("ng-dirty",r.is("dirty"))("ng-valid",r.is("valid"))("ng-invalid",r.is("invalid"))("ng-pending",r.is("pending"))},features:[le]}),e})();function Ni(e,t){(function(e,t){const n=function(e){return e._rawValidators}(e);null!==t.validator?e.setValidators(kC(n,t.validator)):"function"==typeof n&&e.setValidators([n]);const r=function(e){return e._rawAsyncValidators}(e);null!==t.asyncValidator?e.setAsyncValidators(kC(r,t.asyncValidator)):"function"==typeof r&&e.setAsyncValidators([r]);const o=()=>e.updateValueAndValidity();Ta(t._rawValidators,o),Ta(t._rawAsyncValidators,o)})(e,t),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange(n=>{e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&WC(e,t)})}(e,t),function(e,t){const n=(r,o)=>{t.valueAccessor.writeValue(r),o&&t.viewToModelUpdate(r)};e.registerOnChange(n),t._registerOnDestroy(()=>{e._unregisterOnChange(n)})}(e,t),function(e,t){t.valueAccessor.registerOnTouched(()=>{e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&WC(e,t),"submit"!==e.updateOn&&e.markAsTouched()})}(e,t),function(e,t){if(t.valueAccessor.setDisabledState){const n=r=>{t.valueAccessor.setDisabledState(r)};e.registerOnDisabledChange(n),t._registerOnDestroy(()=>{e._unregisterOnDisabledChange(n)})}}(e,t)}function Ta(e,t){e.forEach(n=>{n.registerOnValidatorChange&&n.registerOnValidatorChange(t)})}function WC(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Na(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Pi="VALID",Pa="INVALID",_o="PENDING",Oi="DISABLED";function gd(e){return(_d(e)?e.validators:e)||null}function QC(e){return Array.isArray(e)?ud(e):e||null}function md(e,t){return(_d(t)?t.asyncValidators:e)||null}function KC(e){return Array.isArray(e)?cd(e):e||null}function _d(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}class yd{constructor(t,n){this._hasOwnPendingAsyncValidator=!1,this._onCollectionChange=()=>{},this._parent=null,this.pristine=!0,this.touched=!1,this._onDisabledChange=[],this._rawValidators=t,this._rawAsyncValidators=n,this._composedValidatorFn=QC(this._rawValidators),this._composedAsyncValidatorFn=KC(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===Pi}get invalid(){return this.status===Pa}get pending(){return this.status==_o}get disabled(){return this.status===Oi}get enabled(){return this.status!==Oi}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=QC(t)}setAsyncValidators(t){this._rawAsyncValidators=t,this._composedAsyncValidatorFn=KC(t)}addValidators(t){this.setValidators(jC(t,this._rawValidators))}addAsyncValidators(t){this.setAsyncValidators(jC(t,this._rawAsyncValidators))}removeValidators(t){this.setValidators(HC(t,this._rawValidators))}removeAsyncValidators(t){this.setAsyncValidators(HC(t,this._rawAsyncValidators))}hasValidator(t){return Ia(this._rawValidators,t)}hasAsyncValidator(t){return Ia(this._rawAsyncValidators,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(n=>{n.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(n=>{n.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)}markAsPending(t={}){this.status=_o,!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)}disable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Oi,this.errors=null,this._forEachChild(r=>{r.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:n})),this._onDisabledChange.forEach(r=>r(!0))}enable(t={}){const n=this._parentMarkedDirty(t.onlySelf);this.status=Pi,this._forEachChild(r=>{r.enable(Object.assign(Object.assign({},t),{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},t),{skipPristineCheck:n})),this._onDisabledChange.forEach(r=>r(!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===Pi||this.status===_o)&&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(n=>n._updateTreeValidity(t)),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})}_setInitialStatus(){this.status=this._allControlsDisabled()?Oi:Pi}_runValidator(){return this.validator?this.validator(this):null}_runAsyncValidator(t){if(this.asyncValidator){this.status=_o,this._hasOwnPendingAsyncValidator=!0;const n=NC(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(r=>{this._hasOwnPendingAsyncValidator=!1,this.setErrors(r,{emitEvent:t})})}}_cancelExistingSubscription(){this._asyncValidationSubscription&&(this._asyncValidationSubscription.unsubscribe(),this._hasOwnPendingAsyncValidator=!1)}setErrors(t,n={}){this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)}get(t){return function(e,t,n){if(null==t||(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length))return null;let r=e;return t.forEach(o=>{r=r instanceof Cd?r.controls.hasOwnProperty(o)?r.controls[o]:null:r instanceof eO&&r.at(o)||null}),r}(this,t)}getError(t,n){const r=n?this.get(n):this;return r&&r.errors?r.errors[t]:null}hasError(t,n){return!!this.getError(t,n)}get root(){let t=this;for(;t._parent;)t=t._parent;return t}_updateControlsErrors(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)}_initObservables(){this.valueChanges=new $e,this.statusChanges=new $e}_calculateStatus(){return this._allControlsDisabled()?Oi:this.errors?Pa:this._hasOwnPendingAsyncValidator||this._anyControlsHaveStatus(_o)?_o:this._anyControlsHaveStatus(Pa)?Pa:Pi}_anyControlsHaveStatus(t){return this._anyControls(n=>n.status===t)}_anyControlsDirty(){return this._anyControls(t=>t.dirty)}_anyControlsTouched(){return this._anyControls(t=>t.touched)}_updatePristine(t={}){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){_d(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)}_parentMarkedDirty(t){return!t&&!(!this._parent||!this._parent.dirty)&&!this._parent._anyControlsDirty()}}class Oa extends yd{constructor(t=null,n,r){super(gd(n),md(r,n)),this._onChange=[],this._applyFormState(t),this._setUpdateStrategy(n),this._initObservables(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}setValue(t,n={}){this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(r=>r(this.value,!1!==n.emitViewToModelChange)),this.updateValueAndValidity(n)}patchValue(t,n={}){this.setValue(t,n)}reset(t=null,n={}){this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1}_updateValue(){}_anyControls(t){return!1}_allControlsDisabled(){return this.disabled}registerOnChange(t){this._onChange.push(t)}_unregisterOnChange(t){Na(this._onChange,t)}registerOnDisabledChange(t){this._onDisabledChange.push(t)}_unregisterOnDisabledChange(t){Na(this._onDisabledChange,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 Cd extends yd{constructor(t,n,r){super(gd(n),md(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}registerControl(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)}addControl(t,n,r={}){this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}removeControl(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}contains(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled}setValue(t,n={}){this._checkAllValuesPresent(t),Object.keys(t).forEach(r=>{this._throwIfControlMissing(r),this.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(Object.keys(t).forEach(r=>{this.controls[r]&&this.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t={},n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this._reduceChildren({},(t,n,r)=>(t[r]=n instanceof Oa?n.value:n.getRawValue(),t))}_syncPendingControls(){let t=this._reduceChildren(!1,(n,r)=>!!r._syncPendingControls()||n);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(n=>{const r=this.controls[n];r&&t(r,n)})}_setUpControls(){this._forEachChild(t=>{t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)})}_updateValue(){this.value=this._reduceValue()}_anyControls(t){for(const n of Object.keys(this.controls)){const r=this.controls[n];if(this.contains(n)&&t(r))return!0}return!1}_reduceValue(){return this._reduceChildren({},(t,n,r)=>((n.enabled||this.disabled)&&(t[r]=n.value),t))}_reduceChildren(t,n){let r=t;return this._forEachChild((o,i)=>{r=n(r,o,i)}),r}_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((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control with name: '${r}'.`)})}}class eO extends yd{constructor(t,n,r){super(gd(n),md(r,n)),this.controls=t,this._initObservables(),this._setUpdateStrategy(n),this._setUpControls(),this.updateValueAndValidity({onlySelf:!0,emitEvent:!!this.asyncValidator})}at(t){return this.controls[t]}push(t,n={}){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity({emitEvent:n.emitEvent}),this._onCollectionChange()}insert(t,n,r={}){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity({emitEvent:r.emitEvent})}removeAt(t,n={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),this.updateValueAndValidity({emitEvent:n.emitEvent})}setControl(t,n,r={}){this.controls[t]&&this.controls[t]._registerOnCollectionChange(()=>{}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity({emitEvent:r.emitEvent}),this._onCollectionChange()}get length(){return this.controls.length}setValue(t,n={}){this._checkAllValuesPresent(t),t.forEach((r,o)=>{this._throwIfControlMissing(o),this.at(o).setValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)}patchValue(t,n={}){null!=t&&(t.forEach((r,o)=>{this.at(o)&&this.at(o).patchValue(r,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n))}reset(t=[],n={}){this._forEachChild((r,o)=>{r.reset(t[o],{onlySelf:!0,emitEvent:n.emitEvent})}),this._updatePristine(n),this._updateTouched(n),this.updateValueAndValidity(n)}getRawValue(){return this.controls.map(t=>t instanceof Oa?t.value:t.getRawValue())}clear(t={}){this.controls.length<1||(this._forEachChild(n=>n._registerOnCollectionChange(()=>{})),this.controls.splice(0),this.updateValueAndValidity({emitEvent:t.emitEvent}))}_syncPendingControls(){let t=this.controls.reduce((n,r)=>!!r._syncPendingControls()||n,!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((n,r)=>{t(n,r)})}_updateValue(){this.value=this.controls.filter(t=>t.enabled||this.disabled).map(t=>t.value)}_anyControls(t){return this.controls.some(n=>n.enabled&&t(n))}_setUpControls(){this._forEachChild(t=>this._registerControl(t))}_checkAllValuesPresent(t){this._forEachChild((n,r)=>{if(void 0===t[r])throw new Error(`Must supply a value for form control at index: ${r}.`)})}_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 rO={provide:Bn,useExisting:re(()=>Dd)},JC=(()=>Promise.resolve(null))();let Dd=(()=>{class e extends Bn{constructor(n,r,o,i){super(),this.control=new Oa,this._registered=!1,this.update=new $e,this._parent=n,this._setValidators(r),this._setAsyncValidators(o),this.valueAccessor=function(e,t){if(!t)return null;let n,r,o;return Array.isArray(t),t.forEach(i=>{i.constructor===Ma?n=i:function(e){return Object.getPrototypeOf(e.constructor)===pr}(i)?r=i:o=i}),o||r||n||null}(0,i)}ngOnChanges(n){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in n&&this._updateDisabled(n),function(e,t){if(!e.hasOwnProperty("model"))return!1;const n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(n,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}ngOnDestroy(){this.formDirective&&this.formDirective.removeControl(this)}get path(){return this._parent?function(e,t){return[...t.path,e]}(this.name,this._parent):[this.name]}get formDirective(){return this._parent?this._parent.formDirective:null}viewToModelUpdate(n){this.viewModel=n,this.update.emit(n)}_setUpControl(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}_setUpdateStrategy(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}_isStandalone(){return!this._parent||!(!this.options||!this.options.standalone)}_setUpStandalone(){Ni(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}_checkForErrors(){this._isStandalone()||this._checkParentType(),this._checkName()}_checkParentType(){}_checkName(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()}_updateValue(n){JC.then(()=>{this.control.setValue(n,{emitViewToModelChange:!1})})}_updateDisabled(n){const r=n.isDisabled.currentValue,o=""===r||r&&"false"!==r;JC.then(()=>{o&&!this.control.disabled?this.control.disable():!o&&this.control.disabled&&this.control.enable()})}}return e.\u0275fac=function(n){return new(n||e)(E(Xe,9),E(Ue,10),E(kn,10),E(sn,10))},e.\u0275dir=R({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[fe([rO]),le,at]}),e})();const iO={provide:sn,useExisting:re(()=>Ed),multi:!0};let Ed=(()=>{class e extends pr{writeValue(n){this.setProperty("value",null==n?"":n)}registerOnChange(n){this.onChange=r=>{n(""==r?null:parseFloat(r))}}}return e.\u0275fac=function(){let t;return function(r){return(t||(t=yt(e)))(r||e)}}(),e.\u0275dir=R({type:e,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(n,r){1&n&&ce("input",function(i){return r.onChange(i.target.value)})("blur",function(){return r.onTouched()})},features:[fe([iO]),le]}),e})(),XC=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({}),e})(),mv=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({imports:[[XC]]}),e})(),xO=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=cn({type:e}),e.\u0275inj=xt({imports:[mv]}),e})();function TO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score1)}}function SO(e,t){1&e&&A(0,"--")}function NO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score2)}}function PO(e,t){1&e&&A(0,"--")}function OO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score3)}}function RO(e,t){1&e&&A(0,"--")}function FO(e,t){if(1&e&&(v(0,"div"),v(1,"ul",27),v(2,"li",28),A(3),v(4,"span",29),ie(5,TO,2,1,"div",15),ie(6,SO,1,0,"ng-template",null,30,on),D(),D(),v(8,"li",31),A(9),v(10,"span",29),ie(11,NO,2,1,"div",15),ie(12,PO,1,0,"ng-template",null,30,on),D(),D(),v(14,"li",32),A(15),v(16,"span",29),ie(17,OO,2,1,"div",15),ie(18,RO,1,0,"ng-template",null,30,on),D(),D(),D(),D()),2&e){const n=t.$implicit,r=Xr(7);x(3),pe(n.team1),x(2),J("ngIf",-1!=n.score1)("ngIfElse",r),x(4),pe(n.team2),x(2),J("ngIf",-1!=n.score2)("ngIfElse",r),x(4),pe(n.team3),x(2),J("ngIf",-1!=n.score3)("ngIfElse",r)}}const _v=function(e){return{current:e}};function VO(e,t){if(1&e&&(v(0,"div"),v(1,"div",23),v(2,"div",24),v(3,"div",25),A(4),U(5,"br"),v(6,"span",26),A(7),D(),D(),ie(8,FO,20,9,"div",21),D(),D(),D()),2&e){const n=t.$implicit,r=de(2);x(2),J("ngClass",rc(4,_v,r.currentRoundIndex==n.num-1)),x(2),_n("Round ",n.num,""),x(3),_n(" ",n.date,""),x(1),J("ngForOf",n.matches)}}function kO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score1)}}function LO(e,t){1&e&&A(0,"--")}function BO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score2)}}function jO(e,t){1&e&&A(0,"--")}function HO(e,t){if(1&e&&(v(0,"div"),A(1),D()),2&e){const n=de().$implicit;x(1),pe(n.score3)}}function $O(e,t){1&e&&A(0,"--")}function UO(e,t){if(1&e&&(v(0,"div"),v(1,"ul",27),v(2,"li",28),A(3),v(4,"span",29),ie(5,kO,2,1,"div",15),ie(6,LO,1,0,"ng-template",null,30,on),D(),D(),v(8,"li",31),A(9),v(10,"span",29),ie(11,BO,2,1,"div",15),ie(12,jO,1,0,"ng-template",null,30,on),D(),D(),v(14,"li",32),A(15),v(16,"span",29),ie(17,HO,2,1,"div",15),ie(18,$O,1,0,"ng-template",null,30,on),D(),D(),D(),D()),2&e){const n=t.$implicit,r=Xr(7);x(3),pe(n.team1),x(2),J("ngIf",-1!=n.score1)("ngIfElse",r),x(4),pe(n.team2),x(2),J("ngIf",-1!=n.score2)("ngIfElse",r),x(4),pe(n.team3),x(2),J("ngIf",-1!=n.score3)("ngIfElse",r)}}function GO(e,t){if(1&e&&(v(0,"div"),v(1,"div",24),v(2,"div",33),U(3,"i",34),D(),v(4,"div",25),A(5),U(6,"br"),v(7,"span",26),A(8),D(),D(),ie(9,UO,20,9,"div",21),D(),D()),2&e){const n=t.$implicit,r=de(2);x(1),J("ngClass",rc(4,_v,r.currentRoundIndex==r.numRounds)),x(4),_n("",r.championshipTitle," "),x(3),pe(n.date),x(1),J("ngForOf",n.matches)}}function WO(e,t){if(1&e&&(v(0,"div"),v(1,"div",20),ie(2,VO,9,6,"div",21),v(3,"div",22),ie(4,GO,10,6,"div",21),D(),D(),D()),2&e){const n=de();x(2),J("ngForOf",n.rounds),x(2),J("ngForOf",n.final)}}function qO(e,t){1&e&&A(0,"-hiding bracket while loading-")}function zO(e,t){if(1&e){const n=to();v(0,"div"),A(1),v(2,"input",45),ce("ngModelChange",function(o){const s=nt(n).$implicit;return de(2).date[s-1]=o}),D(),D()}if(2&e){const n=t.$implicit,r=de(2);x(1),_n(" Round\t",n.toString(),": Date "),x(1),J("ngModel",r.date[n-1])}}function QO(e,t){if(1&e){const n=to();v(0,"div"),A(1),v(2,"input",46),ce("ngModelChange",function(o){const s=nt(n).$implicit;return de(2).teams[s-1]=o}),D(),D()}if(2&e){const n=t.$implicit,r=de(2);x(1),_n(" Team\t",n.toString(),": "),x(1),J("ngModel",r.teams[n-1])}}function KO(e,t){if(1&e){const n=to();v(0,"div"),U(1,"br"),A(2," num rounds: "),v(3,"input",35),ce("ngModelChange",function(o){return nt(n),de().numRounds=o}),D(),U(4,"br"),ie(5,zO,3,2,"div",21),U(6,"br"),U(7,"br"),A(8," num teams: "),v(9,"input",36),ce("ngModelChange",function(o){return nt(n),de().numTeams=o}),D(),U(10,"br"),ie(11,QO,3,2,"div",21),U(12,"br"),v(13,"input",37),ce("ngModelChange",function(o){return nt(n),de().randomSeed=o}),D(),v(14,"label",38),A(15," Use random seed"),D(),U(16,"br"),v(17,"input",39),ce("ngModelChange",function(o){return nt(n),de().generateWholeBracket=o}),D(),v(18,"label",40),A(19," Generate whole tournament (Leave unchecked to have swiss tournment style)"),D(),U(20,"br"),v(21,"input",41),ce("ngModelChange",function(o){return nt(n),de().AllowRepeatVersus=o}),D(),v(22,"label",42),A(23," Allow teams to play same opponents again (Mainly for swiss tournment style)"),D(),U(24,"br"),U(25,"br"),U(26,"br"),v(27,"input",43),ce("click",function(){return nt(n),de().generateBracket()}),D(),U(28,"br"),v(29,"input",44),ce("click",function(){return nt(n),de().readyTournament()}),D(),U(30,"br"),U(31,"br"),D()}if(2&e){const n=de();x(3),J("ngModel",n.numRounds),x(2),J("ngForOf",n.fakeArray(n.numRounds)),x(4),J("ngModel",n.numTeams),x(2),J("ngForOf",n.fakeArray(n.numTeams)),x(2),J("ngModel",n.randomSeed),x(4),J("ngModel",n.generateWholeBracket),x(4),J("ngModel",n.AllowRepeatVersus)}}function YO(e,t){1&e&&A(0,"-hiding bracket Configuration-")}function ZO(e,t){if(1&e){const n=to();v(0,"div"),v(1,"ul",51),v(2,"li",52),A(3),v(4,"span",29),v(5,"input",53),ce("ngModelChange",function(o){return nt(n).$implicit.score1=o}),D(),D(),D(),v(6,"li",54),A(7),v(8,"span",29),v(9,"input",55),ce("ngModelChange",function(o){return nt(n).$implicit.score2=o}),D(),D(),D(),v(10,"li",56),A(11),v(12,"span",29),v(13,"input",57),ce("ngModelChange",function(o){return nt(n).$implicit.score3=o}),D(),D(),D(),D(),D()}if(2&e){const n=t.$implicit;x(3),pe(n.team1),x(2),J("ngModel",n.score1),x(2),pe(n.team2),x(2),J("ngModel",n.score2),x(2),pe(n.team3),x(2),J("ngModel",n.score3)}}function JO(e,t){if(1&e){const n=to();v(0,"div"),v(1,"div",47),A(2," submit scores: "),v(3,"div",48),v(4,"div",49),v(5,"div",25),A(6),U(7,"br"),v(8,"span",26),A(9),D(),D(),ie(10,ZO,14,6,"div",21),D(),D(),v(11,"div",23),v(12,"input",50),ce("click",function(){return nt(n),de().endRound()}),D(),D(),D(),D()}if(2&e){const n=de();x(6),_n("Round ",n.currentRound.num,""),x(3),pe(n.currentRound.date),x(1),J("ngForOf",n.currentRound.matches)}}function XO(e,t){1&e&&A(0,"-hiding score submit-")}let eR=(()=>{class e{constructor(){this.numTeamsPerMatch=3,this.emptyTeamString="TBA",this.seeded=!1,this.match={team1:this.emptyTeamString,score1:-1,team2:this.emptyTeamString,score2:-1,team3:this.emptyTeamString,score3:-1},this.matches=[this.match,this.match,this.match,this.match,this.match],this.round1={matches:JSON.parse(JSON.stringify(this.matches)),num:1,date:this.emptyTeamString},this.round2={matches:JSON.parse(JSON.stringify(this.matches)),num:2,date:this.emptyTeamString},this.round3={matches:JSON.parse(JSON.stringify(this.matches)),num:3,date:this.emptyTeamString},this.matchfi={team1:this.emptyTeamString,score1:-1,team2:this.emptyTeamString,score2:-1,team3:this.emptyTeamString,score3:-1},this.final=[{matches:[JSON.parse(JSON.stringify(this.matchfi))],num:4,date:this.emptyTeamString}],this.rounds=[this.round1,this.round2,this.round3],this.currentRoundIndex=0,this.currentRound={matches:[{team1:"null",score1:-1,team2:"null",score2:"-1",team3:"null",score3:-1}],num:-1,date:"-1"},this.Tournament={name:"",headline:"",date:"",tagline:""},this.championshipTitle="",this.loadingBracket=!1,this.generateWholeBracket=!0,this.randomSeed=!0,this.AllowRepeatVersus=!1,this.delim=",",this.teamsInput="place holder, list ",this.a="",this.b="",this.numRounds=3,this.numTeams=6,this.teams=[""],this.date=[""],this.other="otheradf",this.tournmentReady=!1,this.Tournament.name="Name",this.Tournament.headline="headline",this.Tournament.date="date",this.Tournament.tagline="tagline",this.championshipTitle="championship",this.currentRoundIndex=0,this.currentRound=this.rounds[this.currentRoundIndex],console.log(this.currentRound)}ngOnInit(){}onPress(){this.currentRoundIndex=-1,"newline"==this.delim.toString()&&(this.delim="==",this.teamsInput=this.teamsInput.toString().replace(/\r\n/g,"\n"),this.teamsInput=this.teamsInput.toString().replace(/\n\r/g,"\n"),console.log(this.teamsInput),this.teamsInput=this.teamsInput.toString().replace(/\n/g,"==")),this.other=this.teamsInput.toString().split(this.delim.toString()).join("||")}generateBracket(){this.loadingBracket=!0,console.log(this.teams),console.log(this.date);var n=Math.ceil(this.teams.length/this.numTeamsPerMatch);console.log(n),this.randomSeed&&(this.teams=this.shuffle(this.teams)),this.rounds=[];var r={team1:"",score1:-1,team2:"",score2:-1,team3:"",score3:-1},o={matches:JSON.parse(JSON.stringify(r)),num:0,date:"blank"},i=0,s=0,a=[];for(var l in this.date){if(o={matches:JSON.parse(JSON.stringify(r)),num:0,date:"blank"},a=[],0==i){s=0;for(var u=0;u<n;u++)a[u]=r={team1:this.teams[s],score1:-1,team2:this.teams[s+1],score2:-1,team3:this.teams[s+2],score3:-1},s+=3}else if(this.generateWholeBracket)a=this.generateNthRoundMatches(i);else for(u=0;u<n;u++)a[u]=r={team1:this.emptyTeamString,score1:-1,team2:this.emptyTeamString,score2:-1,team3:this.emptyTeamString,score3:-1};o={matches:JSON.parse(JSON.stringify(a)),num:i+1,date:this.date[i]},this.rounds[i]=o,i++}this.final=[],this.final[0]={matches:JSON.parse(JSON.stringify([{team1:this.emptyTeamString,score1:-1,team2:this.emptyTeamString,score2:-1,team3:this.emptyTeamString,score3:-1}])),num:i+1,date:"final"},this.loadingBracket=!1}readyTournament(){this.currentRoundIndex=0,this.currentRound=this.rounds[this.currentRoundIndex],this.tournmentReady=!0}endRound(){if(!(this.currentRoundIndex>this.numRounds))return this.currentRoundIndex++,this.currentRoundIndex==this.numRounds?(console.log("building championship round"),this.final[0]=this.generateNthRound(this.currentRoundIndex,this.final[0].date),void(this.currentRound=this.final[0])):(this.generateWholeBracket||(this.rounds[this.currentRoundIndex]=this.generateNthRound(this.currentRoundIndex,this.rounds[this.currentRoundIndex].date)),void(this.currentRound=this.rounds[this.currentRoundIndex]));console.log("Tournament is over. doing nothing")}generateNthRoundMatches(n){console.log("Generating round: ",n);for(var r={},o=0;o<this.teams.length;o++)r[this.teams[o].toString()]={name:this.teams[o],wins:0,points:0,score:0,teamsSeen:[],index:o};console.log(r);var i=0,s=Math.ceil(this.teams.length/this.numTeamsPerMatch),a=s;n>=this.numRounds&&(a=1);for(var l=0;l<this.rounds.length;l++){i=0;for(var u=0;u<s;u++){if(this.rounds[l].matches[u].team1==this.emptyTeamString&&this.rounds[l].matches[u].team2==this.emptyTeamString&&this.rounds[l].matches[u].team3==this.emptyTeamString){console.log("looks like this this round is TBA",l," ",u);break}var c=[this.rounds[l].matches[u].team1,this.rounds[l].matches[u].team2,this.rounds[l].matches[u].team3].filter(O=>O!==this.emptyTeamString&&void 0!==O);console.log("teams in match ",c),c.length<=1?i+=2:2==c.length?(i+=1,r[this.rounds[l].matches[u].team1].score+=this.rounds[l].matches[u].score1,r[this.rounds[l].matches[u].team2].score+=this.rounds[l].matches[u].score2,this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score2?(r[this.rounds[l].matches[u].team1].wins+=1,r[this.rounds[l].matches[u].team1].points+=4):this.rounds[l].matches[u].score1==this.rounds[l].matches[u].score2?(r[this.rounds[l].matches[u].team2].points+=2,r[this.rounds[l].matches[u].team2].points+=2):(r[this.rounds[l].matches[u].team2].wins+=1,r[this.rounds[l].matches[u].team2].points+=4),r[this.rounds[l].matches[u].team1].teamsSeen=r[this.rounds[l].matches[u].team1].teamsSeen.concat([this.rounds[l].matches[u].team2]),r[this.rounds[l].matches[u].team2].teamsSeen=r[this.rounds[l].matches[u].team2].teamsSeen.concat([this.rounds[l].matches[u].team1])):(r[this.rounds[l].matches[u].team1].score+=this.rounds[l].matches[u].score1,r[this.rounds[l].matches[u].team2].score+=this.rounds[l].matches[u].score2,r[this.rounds[l].matches[u].team3].score+=this.rounds[l].matches[u].score3,this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score2&&this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score3?(r[this.rounds[l].matches[u].team1].wins+=1,r[this.rounds[l].matches[u].team1].points+=4,this.rounds[l].matches[u].score2>this.rounds[l].matches[u].score3?r[this.rounds[l].matches[u].team2].points+=1:this.rounds[l].matches[u].score3>this.rounds[l].matches[u].score2&&(r[this.rounds[l].matches[u].team3].points+=1)):this.rounds[l].matches[u].score2>this.rounds[l].matches[u].score1&&this.rounds[l].matches[u].score2>this.rounds[l].matches[u].score3?(r[this.rounds[l].matches[u].team2].wins+=1,r[this.rounds[l].matches[u].team2].points+=4,this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score3?r[this.rounds[l].matches[u].team1].points+=1:this.rounds[l].matches[u].score3>this.rounds[l].matches[u].score1&&(r[this.rounds[l].matches[u].team3].points+=1)):this.rounds[l].matches[u].score3>this.rounds[l].matches[u].score2&&this.rounds[l].matches[u].score3>this.rounds[l].matches[u].score1?(r[this.rounds[l].matches[u].team3].wins+=1,r[this.rounds[l].matches[u].team3].points+=4,this.rounds[l].matches[u].score2>this.rounds[l].matches[u].score1?r[this.rounds[l].matches[u].team2].points+=1:this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score2&&(r[this.rounds[l].matches[u].team1].points+=1)):this.rounds[l].matches[u].score1==this.rounds[l].matches[u].score2&&this.rounds[l].matches[u].score1==this.rounds[l].matches[u].score3?(r[this.rounds[l].matches[u].team1].points+=2,r[this.rounds[l].matches[u].team2].points+=2,r[this.rounds[l].matches[u].team3].points+=2):this.rounds[l].matches[u].score1==this.rounds[l].matches[u].score2&&this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score3?(r[this.rounds[l].matches[u].team1].points+=2,r[this.rounds[l].matches[u].team2].points+=2):this.rounds[l].matches[u].score1==this.rounds[l].matches[u].score3&&this.rounds[l].matches[u].score1>this.rounds[l].matches[u].score2?(r[this.rounds[l].matches[u].team1].points+=2,r[this.rounds[l].matches[u].team3].points+=2):this.rounds[l].matches[u].score2==this.rounds[l].matches[u].score3&&this.rounds[l].matches[u].score2>this.rounds[l].matches[u].score1?(r[this.rounds[l].matches[u].team2].points+=2,r[this.rounds[l].matches[u].team3].points+=2):console.log("edge case in wins/points: ",this.rounds[l].matches[u]),r[this.rounds[l].matches[u].team1].teamsSeen=r[this.rounds[l].matches[u].team1].teamsSeen.concat([this.rounds[l].matches[u].team2,this.rounds[l].matches[u].team3]),r[this.rounds[l].matches[u].team2].teamsSeen=r[this.rounds[l].matches[u].team2].teamsSeen.concat([this.rounds[l].matches[u].team1,this.rounds[l].matches[u].team3]),r[this.rounds[l].matches[u].team3].teamsSeen=r[this.rounds[l].matches[u].team3].teamsSeen.concat([this.rounds[l].matches[u].team1,this.rounds[l].matches[u].team2]))}}console.log(r);var d=[];for(o=0;o<this.teams.length;o++){for(var f={wins:-10,score:-1e3,points:-100,name:"minTeam"},h=0;h<this.teams.length;h++)f.wins<r[this.teams[h]].wins?-1==d.indexOf(this.teams[h])&&(f=r[this.teams[h]]):f.wins==r[this.teams[h]].wins&&(f.points<r[this.teams[h]].points?-1==d.indexOf(this.teams[h])&&(f=r[this.teams[h]]):f.points==r[this.teams[h]].points&&f.score<=r[this.teams[h]].score&&-1==d.indexOf(this.teams[h])&&(f=r[this.teams[h]]));d[o]=f.name}console.log(d);var p=[];let m=[];var g=this.AllowRepeatVersus;for(o=0;o<this.teams.length;o++){var y=!1;for(h=0;h<this.teams.length;h++)if(-1==p.indexOf(d[h])&&(g||-1==m.indexOf(d[h]))){console.log(d[h]),p[o]=d[h],m=m.concat(r[d[h]].teamsSeen),y=!0;break}y?g=this.AllowRepeatVersus:(g=!0,o--),o%3==0&&(m=[])}for(var _=0;_<i;_++)p[this.teams.length+_]=void 0;console.log(p);var M=[],I=0;for(u=0;u<a;u++)M[u]={team1:p[I],score1:-1,team2:p[I+1],score2:-1,team3:p[I+2],score3:-1},I+=3;return M}generateNthRound(n,r){var o=this.generateNthRoundMatches(n);return{matches:JSON.parse(JSON.stringify(o)),num:n+1,date:r}}fakeArray(n){return n>=0?Array(n).fill(1).map((r,o)=>o+1):Array()}shuffle(n){for(var r=n.length,o=0;0!=r;)o=Math.floor(Math.random()*r),r--,[n[r],n[o]]=[n[o],n[r]];return n}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Gi({type:e,selectors:[["app-bracket"]],decls:77,vars:10,consts:[["charset","utf-8"],["http-equiv","X-UA-Compatible","content","IE=edge,chrome=1"],["name","viewport","content","width=device-width,initial-scale=1.0"],["href","https://maxcdn.bootstrapcdn.com/font-awesome/4.2.0/css/font-awesome.min.css","rel","stylesheet"],["href","https://fonts.googleapis.com/css?family=Holtwood+One+SC","rel","stylesheet","type","text/css"],["href","https://fonts.googleapis.com/css?family=Kaushan+Script|Herr+Von+Muellerhoff","rel","stylesheet","type","text/css"],["href","https://fonts.googleapis.com/css?family=Abel","rel","stylesheet","type","text/css"],["href","https://fonts.googleapis.com/css?family=Istok+Web|Roboto+Condensed:700","rel","stylesheet","type","text/css"],[1,"hero"],[1,"hero-wrap"],["id","intro",1,"intro"],["id","headline"],[1,"year"],[1,"fa","fa-star"],["id","bracket"],[4,"ngIf","ngIfElse"],["elseBlockLoadingBracket",""],[2,"background-color","white"],["elseBlockHBC",""],["elseBlockHSS",""],[1,"container"],[4,"ngFor","ngForOf"],[1,"champion"],[1,"split","split-one"],[1,"round","round-one",3,"ngClass"],[1,"round-details"],[1,"date"],[1,"matchup"],[1,"team","team-top"],[1,"score"],["elseBlock",""],[1,"team","team-middle"],[1,"team","team-bottom"],[1,"centering"],[1,"fa","fa-trophy","centering"],["type","number","id","numRounds","name","numRounds","placeholder","3",3,"ngModel","ngModelChange"],["type","number","id","numTeams","name","numTeams","placeholder","5",3,"ngModel","ngModelChange"],["type","checkbox","id","randomSeed","name","randomSeed","value","true","checked","true",3,"ngModel","ngModelChange"],["for","randomSeed"],["type","checkbox","id","generateWholeBracket","name","generateWholeBracket","value","true","checked","true",3,"ngModel","ngModelChange"],["for","generateWholeBracket"],["type","checkbox","id","AllowRepeatVersus","name","AllowRepeatVersus","value","false","checked","false",3,"ngModel","ngModelChange"],["for","AllowRepeatVersus"],["type","submit","value","Generate Bracket",3,"click"],["type","submit","value","Ready Tournament",3,"click"],["type","text","id","date.num","name","date.num",3,"ngModel","ngModelChange"],["type","text","id","teams.num","name","teams.num",3,"ngModel","ngModelChange"],[1,"champion","editing"],[1,"split","split-one","editing"],[1,"round","round-one","current","editing"],["type","submit","value","End Round & Submit Scores",3,"click"],[1,"matchup","editing"],[1,"team","team-top","editing"],["type","number","id","match.score1","name","match.score1",3,"ngModel","ngModelChange"],[1,"team","team-middle","editing"],["type","number","id","match.score2","name","match.score2",3,"ngModel","ngModelChange"],[1,"team","team-bottom","editing"],["type","number","id","match.score3","name","match.score3",3,"ngModel","ngModelChange"]],template:function(n,r){if(1&n&&(v(0,"head"),U(1,"meta",0),U(2,"meta",1),U(3,"meta",2),U(4,"link",3),U(5,"link",4),U(6,"link",5),U(7,"link",6),U(8,"link",7),v(9,"title"),A(10,"titled Matchup"),D(),D(),v(11,"body"),v(12,"header",8),v(13,"div",9),v(14,"p",10),A(15),D(),v(16,"h1",11),A(17),D(),v(18,"p",12),U(19,"i",13),A(20),U(21,"i",13),D(),v(22,"p"),A(23),D(),D(),D(),v(24,"section",14),ie(25,WO,5,2,"div",15),ie(26,qO,1,0,"ng-template",null,16,on),D(),v(28,"div",17),U(29,"br"),U(30,"br"),U(31,"br"),U(32,"br"),v(33,"h1"),A(34,"*************************"),D(),v(35,"h1"),A(36,"* Bracket Configuration *"),D(),v(37,"h1"),A(38,"*************************"),D(),ie(39,KO,32,7,"div",15),ie(40,YO,1,0,"ng-template",null,18,on),U(42,"br"),U(43,"br"),D(),v(44,"div",17),ie(45,JO,13,3,"div",15),ie(46,XO,1,0,"ng-template",null,19,on),D(),v(48,"div",17),U(49,"br"),U(50,"br"),v(51,"h3"),A(52,"todos:"),D(),v(53,"h5"),A(54,"generate bracket and championship correctly as scores are submitted"),D(),v(55,"h5"),A(56,"options for numTeamsPerMatch and generating whole bracket from start"),D(),v(57,"h5"),A(58,"make changing number of teams and rounds delete older entries "),D(),v(59,"h5"),A(60,"make size auto adjust when there are many rounds "),D(),v(61,"h5"),A(62,"options for championship rounds "),D(),v(63,"h5"),A(64,"local download/upload"),D(),v(65,"h5"),A(66,"local cache"),D(),v(67,"h5"),A(68,"make editing easier/edit everything"),D(),v(69,"h5"),A(70,"local download/upload"),D(),v(71,"h5"),A(72,"nice input validations/blanks/repeats/warnings on button presses"),D(),v(73,"h5"),A(74,"database load/unload"),D(),v(75,"h5"),A(76,"database download/upload linked to short query string param url"),D(),D(),D()),2&n){const o=Xr(27),i=Xr(41),s=Xr(47);x(15),pe(r.Tournament.name),x(2),pe(r.Tournament.headline),x(3),pe(r.Tournament.date),x(3),pe(r.Tournament.tagline),x(2),J("ngIf",!r.loadingBracket)("ngIfElse",o),x(14),J("ngIf",r.currentRoundIndex>r.numRounds||!r.tournmentReady)("ngIfElse",i),x(6),J("ngIf",r.currentRoundIndex<=r.numRounds&&r.tournmentReady)("ngIfElse",s)}},directives:[nC,eC,Xy,Ed,Ma,GC,Dd,ld],styles:['body[_ngcontent-%COMP%]{font-family:"Istok Web",sans-serif;background-size:cover;min-height:100%;margin:0}.hero[_ngcontent-%COMP%]{position:relative;text-align:center;overflow:hidden;color:#fcfcfc;background-color:#2a0a5b}.hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-family:"Holtwood One SC",serif;font-weight:normal;font-size:5.4em;margin:0 0 20px;text-shadow:0 0 12px rgba(0,0,0,.5);text-transform:uppercase;letter-spacing:-1px}.hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-family:"Abel",sans-serif;text-transform:uppercase;color:#f5bd02;letter-spacing:6px;text-shadow:0 0 12px rgba(0,0,0,.5);font-size:1.2em}.hero-wrap[_ngcontent-%COMP%]{padding:5px;background-color:#2a0a5b}.hero[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{font-family:"Holtwood One SC",serif;text-transform:uppercase;letter-spacing:1px;font-size:3em;margin-bottom:-40px}.hero[_ngcontent-%COMP%] p.year[_ngcontent-%COMP%]{color:#fff;letter-spacing:20px;font-size:34px;margin:-25px 0 25px}.hero[_ngcontent-%COMP%] p.year[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:14px;vertical-align:middle}#bracket[_ngcontent-%COMP%]{overflow:hidden;background-color:#e1e1e1;background-color:#e1e1e1e6;font-size:12px;padding:40px 0}.container[_ngcontent-%COMP%]{max-width:1100px;margin:0 5vw;display:block;display:flex;flex-direction:row}.split[_ngcontent-%COMP%]{display:block;display:flex;width:100%;-moz-flex-direction:row;flex-direction:row}.champion[_ngcontent-%COMP%]{display:block;flex-direction:row;align-self:center;margin-top:-15px;text-align:left;width:20vw;margin-left:75px}.champion[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{color:#a0a6a8;font-size:45px;padding:10px 0}.round[_ngcontent-%COMP%]{display:block;float:left;flex-direction:column;width:95%;width:30.8333%\\\t;width:20vw}.centering[_ngcontent-%COMP%]{align-content:center;text-align:center;display:block;flex-direction:column;width:95%;width:20vw}.split-one[_ngcontent-%COMP%] .round[_ngcontent-%COMP%]{margin:0 2.5% 0 0}.split-two[_ngcontent-%COMP%] .round[_ngcontent-%COMP%]{margin:0 0 0 2.5%}.editing[_ngcontent-%COMP%]{width:70vw!important}.matchup[_ngcontent-%COMP%]{margin:0;width:100%;padding:10px 0;height:90px;transition:all .2s}.score[_ngcontent-%COMP%]{font-size:11px;text-transform:uppercase;float:right;color:#f5bd02;font-weight:bold;font-family:"Roboto Condensed",sans-serif;position:absolute;right:5px}.team[_ngcontent-%COMP%]{padding:0 10px;margin:3px 0;height:25px;line-height:25px;white-space:nowrap;overflow:hidden;position:relative}.round-two[_ngcontent-%COMP%] .matchup[_ngcontent-%COMP%]{margin:0;height:60px;padding:50px 0}.round-three[_ngcontent-%COMP%] .matchup[_ngcontent-%COMP%]{margin:0;height:60px;padding:130px 0}.round-details[_ngcontent-%COMP%]{font-family:"Roboto Condensed",sans-serif;font-size:13px;color:#2a0a5b;text-transform:uppercase;text-align:center;height:40px}.champion[_ngcontent-%COMP%] li[_ngcontent-%COMP%], .round[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{background-color:#fff;box-shadow:none;opacity:.45}.current[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{opacity:1}.current[_ngcontent-%COMP%] li.team[_ngcontent-%COMP%]{background-color:#fff;box-shadow:0 1px 4px #0000001a;opacity:1}.vote-options[_ngcontent-%COMP%]{display:block;height:52px}.share[_ngcontent-%COMP%] .container[_ngcontent-%COMP%]{margin:0 auto;text-align:center}.share-icon[_ngcontent-%COMP%]{font-size:24px;color:#fff;padding:25px}.share-wrap[_ngcontent-%COMP%]{max-width:1100px;text-align:center;margin:60px auto}.final[_ngcontent-%COMP%]{margin:4.5em 0}@keyframes pulse{0%{transform:scale(1)}50%{transform:scale(1.3)}to{transform:scale(1)}}.share-icon[_ngcontent-%COMP%]{color:#fff;opacity:.35}.share-icon[_ngcontent-%COMP%]:hover{opacity:1;animation:pulse .5s}.date[_ngcontent-%COMP%]{font-size:10px;letter-spacing:2px;font-family:"Istok Web",sans-serif;color:#000}@media screen and (min-width: 800px) and (max-width: 1099px){.container[_ngcontent-%COMP%]{margin:0 1%}.champion[_ngcontent-%COMP%]{width:90%}.split[_ngcontent-%COMP%]{width:90%}.split-one[_ngcontent-%COMP%] .vote-box[_ngcontent-%COMP%]{margin-left:138px}.hero[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{font-size:28px}.hero[_ngcontent-%COMP%] p.year[_ngcontent-%COMP%]{margin:5px 0 10px}}@media screen and (max-width: 800px){.container[_ngcontent-%COMP%]{-moz-flex-direction:column;flex-direction:column}.split[_ngcontent-%COMP%], .champion[_ngcontent-%COMP%]{width:90%;margin:35px 5%}.champion[_ngcontent-%COMP%]{order:3}.split[_ngcontent-%COMP%]{border-bottom:1px solid #b6b6b6;padding-bottom:20px}.hero[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{font-size:24px}.hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3em;margin:15px 0}.hero[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{font-size:1em}}@media screen and (max-width: 800px){.round[_ngcontent-%COMP%]{width:90%;width:70vw}.champion[_ngcontent-%COMP%]{width:70vw}.current[_ngcontent-%COMP%]{-moz-flex-grow:1;flex-grow:1}.hero[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:2.15em;letter-spacing:0;margin:0}.hero[_ngcontent-%COMP%] p.intro[_ngcontent-%COMP%]{font-size:1.15em;margin-bottom:-10px}.round-details[_ngcontent-%COMP%]{font-size:90%}.hero-wrap[_ngcontent-%COMP%]{padding:0}.hero[_ngcontent-%COMP%] p.year[_ngcontent-%COMP%]{margin:5px 0 10px;font-size:18px}}.input[_ngcontent-%COMP%], .textarea[_ngcontent-%COMP%]{border:1px solid #ccc;font-family:inherit;font-size:inherit;padding:1px 6px}.input-wrap[_ngcontent-%COMP%]{position:relative}.input-wrap[_ngcontent-%COMP%] .input[_ngcontent-%COMP%]{position:absolute;width:100%;left:0}.width-machine[_ngcontent-%COMP%]{padding:0 1rem}.textarea[_ngcontent-%COMP%]{display:block;width:98%;overflow:hidden;resize:both;min-height:40px;line-height:20px}.textarea[contenteditable][_ngcontent-%COMP%]:empty:before{content:"Placeholder still possible";color:gray}']}),e})(),tR=(()=>{class e{constructor(){this.newcomponent="Entered in new component created",this.techStack=-1,this.timesClicked=0,this.title="angular-template"}ngOnInit(){var n=parseInt(JSON.parse(localStorage.getItem("tech")||"-20"));this.techStack=n&&NaN!=n?n:0}onButtonClick(){this.timesClicked+=1,this.techStack+=1,this.newcomponent+="c",localStorage.setItem("tech",this.techStack.toString())}}return e.\u0275fac=function(n){return new(n||e)},e.\u0275cmp=Gi({type:e,selectors:[["app-root"]],decls:3,vars:0,template:function(n,r){1&n&&(v(0,"div"),U(1,"app-bracket"),U(2,"footer"),D())},directives:[eR],styles:['[_nghost-%COMP%]{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji","Segoe UI Symbol";font-size:14px;color:#333;box-sizing:border-box;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}h1[_ngcontent-%COMP%], h2[_ngcontent-%COMP%], h3[_ngcontent-%COMP%], h4[_ngcontent-%COMP%], h5[_ngcontent-%COMP%], h6[_ngcontent-%COMP%]{margin:8px 0}p[_ngcontent-%COMP%]{margin:0}.spacer[_ngcontent-%COMP%]{flex:1}.toolbar[_ngcontent-%COMP%]{position:absolute;top:0;left:0;right:0;height:60px;display:flex;align-items:center;background-color:#1976d2;color:#fff;font-weight:600}.toolbar[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin:0 16px}.toolbar[_ngcontent-%COMP%] #twitter-logo[_ngcontent-%COMP%]{height:40px;margin:0 8px}.toolbar[_ngcontent-%COMP%] #youtube-logo[_ngcontent-%COMP%]{height:40px;margin:0 16px}.toolbar[_ngcontent-%COMP%] #twitter-logo[_ngcontent-%COMP%]:hover, .toolbar[_ngcontent-%COMP%] #youtube-logo[_ngcontent-%COMP%]:hover{opacity:.8}.content[_ngcontent-%COMP%]{display:flex;margin:82px auto 32px;padding:0 16px;max-width:2200px;flex-direction:column}svg.material-icons[_ngcontent-%COMP%]{height:24px;width:auto}svg.material-icons[_ngcontent-%COMP%]:not(:last-child){margin-right:8px}.card[_ngcontent-%COMP%] svg.material-icons[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#888}.card-container[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;justify-content:center;margin-top:16px}.card[_ngcontent-%COMP%]{border-radius:4px;border:1px solid #eee;background-color:#fafafa;height:40px;width:200px;margin:0 8px 16px;padding:16px;display:flex;flex-direction:row;justify-content:center;align-items:center;transition:all .2s ease-in-out;line-height:24px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(:last-child){margin-right:0}.card.card-small[_ngcontent-%COMP%]{height:16px;width:168px}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card){cursor:pointer}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card):hover{transform:translateY(-3px);box-shadow:0 4px 17px #00000059}.card-container[_ngcontent-%COMP%] .card[_ngcontent-%COMP%]:not(.highlight-card):hover .material-icons[_ngcontent-%COMP%] path[_ngcontent-%COMP%]{fill:#696767}.card.highlight-card[_ngcontent-%COMP%]{background-color:#1976d2;color:#fff;font-weight:600;border:none;width:auto;min-width:30%;position:relative}.card.card.highlight-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:60px}svg#rocket[_ngcontent-%COMP%]{width:80px;position:absolute;left:-10px;top:-24px}svg#rocket-smoke[_ngcontent-%COMP%]{height:calc(100vh - 95px);position:absolute;top:10px;right:180px;z-index:-10}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:visited, a[_ngcontent-%COMP%]:hover{color:#1976d2;text-decoration:none}a[_ngcontent-%COMP%]:hover{color:#125699}.terminal[_ngcontent-%COMP%]{position:relative;width:80%;max-width:600px;border-radius:6px;padding-top:45px;margin-top:8px;overflow:hidden;background-color:#0f0f10}.terminal[_ngcontent-%COMP%]:before{content:"\\2022\\2022\\2022";position:absolute;top:0;left:0;height:4px;background:rgb(58,58,58);color:#c2c3c4;width:100%;font-size:2rem;line-height:0;padding:14px 0;text-indent:4px}.terminal[_ngcontent-%COMP%] pre[_ngcontent-%COMP%]{font-family:SFMono-Regular,Consolas,Liberation Mono,Menlo,monospace;color:#fff;padding:0 1rem 1rem;margin:0}.circle-link[_ngcontent-%COMP%]{height:40px;width:40px;border-radius:40px;margin:8px;background-color:#fff;border:1px solid #eeeeee;display:flex;justify-content:center;align-items:center;cursor:pointer;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;transition:1s ease-out}.circle-link[_ngcontent-%COMP%]:hover{transform:translateY(-.25rem);box-shadow:0 3px 15px #0003}footer[_ngcontent-%COMP%]{margin-top:8px;display:flex;align-items:center;line-height:20px}footer[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{display:flex;align-items:center}.github-star-badge[_ngcontent-%COMP%]{color:#24292e;display:flex;align-items:center;font-size:12px;padding:3px 10px;border:1px solid rgba(27,31,35,.2);border-radius:3px;background-image:linear-gradient(-180deg,#fafbfc,#eff3f6 90%);margin-left:4px;font-weight:600;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Helvetica,Arial,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol}.github-star-badge[_ngcontent-%COMP%]:hover{background-image:linear-gradient(-180deg,#f0f3f6,#e6ebf1 90%);border-color:#1b1f2359;background-position:-.5em}.github-star-badge[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{height:16px;width:16px;margin-right:4px}svg#clouds[_ngcontent-%COMP%]{position:fixed;bottom:-160px;left:-230px;z-index:-10;width:1920px}@media screen and (max-width: 767px){.card-container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]:not(.circle-link), .terminal[_ngcontent-%COMP%]{width:100%}.card[_ngcontent-%COMP%]:not(.highlight-card){height:16px;margin:8px 0}.card.highlight-card[_ngcontent-%COMP%] span[_ngcontent-%COMP%]{margin-left:72px}svg#rocket-smoke[_ngcontent-%COMP%]{right:120px;transform:rotate(-5deg)}}@media screen and (max-width: 575px){svg#rocket-smoke[_ngcontent-%COMP%]{display:none;visibility:hidden}}',""]}),e})(),nR=(()=>{class e{}return e.\u0275fac=function(n){return new(n||e)},e.\u0275mod=cn({type:e,bootstrap:[tR]}),e.\u0275inj=xt({providers:[],imports:[[CP,xO]]}),e})();(function(){if(uy)throw new Error("Cannot enable prod mode after platform setup.");ly=!1})(),_P().bootstrapModule(nR).catch(e=>console.error(e))}},Do=>{Do(Do.s=419)}]);