-
-
Notifications
You must be signed in to change notification settings - Fork 274
/
main.js
1 lines (1 loc) · 247 KB
/
main.js
1
function _slicedToArray(e,t){return _arrayWithHoles(e)||_iterableToArrayLimit(e,t)||_unsupportedIterableToArray(e,t)||_nonIterableRest()}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _iterableToArrayLimit(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,i=!1,o=void 0;try{for(var s,a=e[Symbol.iterator]();!(r=(s=a.next()).done)&&(n.push(s.value),!t||n.length!==t);r=!0);}catch(u){i=!0,o=u}finally{try{r||null==a.return||a.return()}finally{if(i)throw o}}return n}}function _arrayWithHoles(e){if(Array.isArray(e))return e}function _createForOfIteratorHelper(e,t){var n;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(n=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var r=0,i=function(){};return{s:i,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:i}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,s=!0,a=!1;return{s:function(){n=e[Symbol.iterator]()},n:function(){var e=n.next();return s=e.done,e},e:function(e){a=!0,o=e},f:function(){try{s||null==n.return||n.return()}finally{if(a)throw o}}}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _construct(e,t,n){return(_construct=_isNativeReflectConstruct()?Reflect.construct:function(e,t,n){var r=[null];r.push.apply(r,t);var i=new(Function.bind.apply(e,r));return n&&_setPrototypeOf(i,n.prototype),i}).apply(null,arguments)}function _get(e,t,n){return(_get="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,t,n){var r=_superPropBase(e,t);if(r){var i=Object.getOwnPropertyDescriptor(r,t);return i.get?i.get.call(n):i.value}})(e,t,n||e)}function _superPropBase(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=_getPrototypeOf(e)););return e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(e){var t=_isNativeReflectConstruct();return function(){var n,r=_getPrototypeOf(e);if(t){var i=_getPrototypeOf(this).constructor;n=Reflect.construct(r,arguments,i)}else n=r.apply(this,arguments);return _possibleConstructorReturn(this,n)}}function _possibleConstructorReturn(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?_assertThisInitialized(e):t}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function _createClass(e,t,n){return t&&_defineProperties(e.prototype,t),n&&_defineProperties(e,n),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},crnd:function(e,t){function n(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="crnd"},zUnb:function(e,t,n){"use strict";function r(e){return"function"==typeof e}n.r(t);var i=!1,o={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var t=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+t.stack)}else i&&console.log("RxJS: Back to a better error behavior. Thank you. <3");i=e},get useDeprecatedSynchronousErrorHandling(){return i}};function s(e){setTimeout((function(){throw e}),0)}var a={closed:!0,next:function(e){},error:function(e){if(o.useDeprecatedSynchronousErrorHandling)throw e;s(e)},complete:function(){}},u=Array.isArray||function(e){return e&&"number"==typeof e.length};function l(e){return null!==e&&"object"==typeof e}var c,h=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,t){return"".concat(t+1,") ").concat(e.toString())})).join("\n ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),f=((c=function(){function e(t){_classCallCheck(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return _createClass(e,[{key:"unsubscribe",value:function(){var t;if(!this.closed){var n=this._parentOrParents,i=this._unsubscribe,o=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,n instanceof e)n.remove(this);else if(null!==n)for(var s=0;s<n.length;++s)n[s].remove(this);if(r(i))try{i.call(this)}catch(v){t=v instanceof h?d(v.errors):[v]}if(u(o))for(var a=-1,c=o.length;++a<c;){var f=o[a];if(l(f))try{f.unsubscribe()}catch(v){t=t||[],v instanceof h?t=t.concat(d(v.errors)):t.push(v)}}if(t)throw new h(t)}}},{key:"add",value:function(t){var n=t;if(!t)return e.EMPTY;switch(typeof t){case"function":n=new e(t);case"object":if(n===this||n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if(!(n instanceof e)){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}var i=n._parentOrParents;if(null===i)n._parentOrParents=this;else if(i instanceof e){if(i===this)return n;n._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return n;i.push(this)}var o=this._subscriptions;return null===o?this._subscriptions=[n]:o.push(n),n}},{key:"remove",value:function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new c),c);function d(e){return e.reduce((function(e,t){return e.concat(t instanceof h?t.errors:t)}),[])}var v="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),p=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;switch(_classCallCheck(this,n),(o=t.call(this)).syncErrorValue=null,o.syncErrorThrown=!1,o.syncErrorThrowable=!1,o.isStopped=!1,arguments.length){case 0:o.destination=a;break;case 1:if(!e){o.destination=a;break}if("object"==typeof e){e instanceof n?(o.syncErrorThrowable=e.syncErrorThrowable,o.destination=e,e.add(_assertThisInitialized(o))):(o.syncErrorThrowable=!0,o.destination=new g(_assertThisInitialized(o),e));break}default:o.syncErrorThrowable=!0,o.destination=new g(_assertThisInitialized(o),e,r,i)}return o}return _createClass(n,[{key:v,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,_get(_getPrototypeOf(n.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,t,r){var i=new n(e,t,r);return i.syncErrorThrowable=!1,i}}]),n}(f),g=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,i,o,s){var u,l;_classCallCheck(this,n),(u=t.call(this))._parentSubscriber=e;var c=_assertThisInitialized(u);return r(i)?l=i:i&&(l=i.next,o=i.error,s=i.complete,i!==a&&(r((c=Object.create(i)).unsubscribe)&&u.add(c.unsubscribe.bind(c)),c.unsubscribe=u.unsubscribe.bind(_assertThisInitialized(u)))),u._context=c,u._next=l,u._error=o,u._complete=s,u}return _createClass(n,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var t=this._parentSubscriber,n=o.useDeprecatedSynchronousErrorHandling;if(this._error)n&&t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(t.syncErrorThrowable)n?(t.syncErrorValue=e,t.syncErrorThrown=!0):s(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;s(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};o.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),o.useDeprecatedSynchronousErrorHandling)throw n;s(n)}}},{key:"__tryOrSetError",value:function(e,t,n){if(!o.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return o.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(s(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),n}(p),y="function"==typeof Symbol&&Symbol.observable||"@@observable";function _(){}var m,C=((m=function(){function e(t){_classCallCheck(this,e),this._isScalar=!1,t&&(this._subscribe=t)}return _createClass(e,[{key:"lift",value:function(t){var n=new e;return n.source=this,n.operator=t,n}},{key:"subscribe",value:function(e,t,n){var r=this.operator,i=function(e,t,n){if(e){if(e instanceof p)return e;if(e[v])return e[v]()}return e||t||n?new p(e,t,n):new p(a)}(e,t,n);if(i.add(r?r.call(i,this.source):this.source||o.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),o.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(t){o.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e,n=t.closed,r=t.destination,i=t.isStopped;if(n||i)return!1;e=r&&r instanceof p?r:null}return!0}(e)?e.error(t):console.warn(t)}}},{key:"forEach",value:function(e,t){var n=this;return new(t=k(t))((function(t,r){var i;i=n.subscribe((function(t){try{e(t)}catch(n){r(n),i&&i.unsubscribe()}}),r,t)}))}},{key:"_subscribe",value:function(e){var t=this.source;return t&&t.subscribe(e)}},{key:y,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?this:((r=t)?1===r.length?r[0]:function(e){return r.reduce((function(e,t){return t(e)}),e)}:_)(this);var r}},{key:"toPromise",value:function(e){var t=this;return new(e=k(e))((function(e,n){var r;t.subscribe((function(e){return r=e}),(function(e){return n(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new m(e)},m);function k(e){if(e||(e=o.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var b,w=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),E=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return _createClass(n,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}}}]),n}(f),S=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e)).destination=e,r}return n}(p),I=((b=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return _createClass(n,[{key:v,value:function(){return new S(this)}},{key:"lift",value:function(e){var t=new O(this,this);return t.operator=e,t}},{key:"next",value:function(e){if(this.closed)throw new w;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new w;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),i=0;i<n;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new w;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new w;return _get(_getPrototypeOf(n.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new w;return this.hasError?(e.error(this.thrownError),f.EMPTY):this.isStopped?(e.complete(),f.EMPTY):(this.observers.push(e),new E(this,e))}},{key:"asObservable",value:function(){var e=new C;return e.source=this,e}}]),n}(C)).create=function(e,t){return new O(e,t)},b),O=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).destination=e,i.source=r,i}return _createClass(n,[{key:"next",value:function(e){var t=this.destination;t&&t.next&&t.next(e)}},{key:"error",value:function(e){var t=this.destination;t&&t.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):f.EMPTY}}]),n}(I),A=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this)).parent=e,o.outerValue=r,o.outerIndex=i,o.index=0,o}return _createClass(n,[{key:"_next",value:function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)}},{key:"_error",value:function(e){this.parent.notifyError(e,this),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(this),this.unsubscribe()}}]),n}(p),x=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.complete()}};var T="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",V=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function D(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var N=function(e){if(e&&"function"==typeof e[y])return r=e,function(e){var t=r[y]();if("function"!=typeof t.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return t.subscribe(e)};if(V(e))return x(e);if(D(e))return n=e,function(e){return n.then((function(t){e.closed||(e.next(t),e.complete())}),(function(t){return e.error(t)})).then(null,s),e};if(e&&"function"==typeof e[T])return t=e,function(e){for(var n=t[T]();;){var r=n.next();if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof n.return&&e.add((function(){n.return&&n.return()})),e};var t,n,r,i=l(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(i," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))},P=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyError",value:function(e,t){this.destination.error(e)}},{key:"notifyComplete",value:function(e){this.destination.complete()}}]),n}(p);function M(e,t){return function(n){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new H(e,t))}}var H=function(){function e(t,n){_classCallCheck(this,e),this.project=t,this.thisArg=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new R(e,this.project,this.thisArg))}}]),e}(),R=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,e)).project=r,o.count=0,o.thisArg=i||_assertThisInitialized(o),o}return _createClass(n,[{key:"_next",value:function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(n){return void this.destination.error(n)}this.destination.next(t)}}]),n}(p);function j(e,t){return new C((function(n){var r=new f,i=0;return r.add(t.schedule((function(){i!==e.length?(n.next(e[i++]),n.closed||r.add(this.schedule())):n.complete()}))),r}))}function z(e,t){return t?function(e,t){if(null!=e){if(function(e){return e&&"function"==typeof e[y]}(e))return function(e,t){return new C((function(n){var r=new f;return r.add(t.schedule((function(){var i=e[y]();r.add(i.subscribe({next:function(e){r.add(t.schedule((function(){return n.next(e)})))},error:function(e){r.add(t.schedule((function(){return n.error(e)})))},complete:function(){r.add(t.schedule((function(){return n.complete()})))}}))}))),r}))}(e,t);if(D(e))return function(e,t){return new C((function(n){var r=new f;return r.add(t.schedule((function(){return e.then((function(e){r.add(t.schedule((function(){n.next(e),r.add(t.schedule((function(){return n.complete()})))})))}),(function(e){r.add(t.schedule((function(){return n.error(e)})))}))}))),r}))}(e,t);if(V(e))return j(e,t);if(function(e){return e&&"function"==typeof e[T]}(e)||"string"==typeof e)return function(e,t){if(!e)throw new Error("Iterable cannot be null");return new C((function(n){var r,i=new f;return i.add((function(){r&&"function"==typeof r.return&&r.return()})),i.add(t.schedule((function(){r=e[T](),i.add(t.schedule((function(){if(!n.closed){var e,t;try{var i=r.next();e=i.value,t=i.done}catch(o){return void n.error(o)}t?n.complete():(n.next(e),this.schedule())}})))}))),i}))}(e,t)}throw new TypeError((null!==e&&typeof e||e)+" is not observable")}(e,t):e instanceof C?e:new C(N(e))}var F=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;_classCallCheck(this,e),this.project=t,this.concurrent=n}return _createClass(e,[{key:"call",value:function(e,t){return t.subscribe(new L(e,this.project,this.concurrent))}}]),e}(),L=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return _classCallCheck(this,n),(i=t.call(this,e)).project=r,i.concurrent=o,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return _createClass(n,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(t,e,n)}},{key:"_innerSub",value:function(e,t,n){var r=new A(this,void 0,void 0);this.destination.add(r),function(e,t,n,r){var i=arguments.length>4&&void 0!==arguments[4]?arguments[4]:new A(e,n,r);i.closed||(t instanceof C?t.subscribe(i):N(t)(i))}(this,e,t,n,r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e,t,n,r,i){this.destination.next(t)}},{key:"notifyComplete",value:function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),n}(P);function B(e){return e}function U(){return function(e){return e.lift(new Z(e))}}var G,Z=function(){function e(t){_classCallCheck(this,e),this.connectable=t}return _createClass(e,[{key:"call",value:function(e,t){var n=this.connectable;n._refCount++;var r=new q(e,n),i=t.subscribe(r);return r.closed||(r.connection=n.connect()),i}}]),e}(),q=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null}}]),n}(p),W={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(G=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return _createClass(n,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new f).add(this.source.subscribe(new $(this.getSubject(),this))),e.closed&&(this._connection=null,e=f.EMPTY)),e}},{key:"refCount",value:function(){return U()(this)}}]),n}(C).prototype)._subscribe},_isComplete:{value:G._isComplete,writable:!0},getSubject:{value:G.getSubject},connect:{value:G.connect},refCount:{value:G.refCount}},$=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this,e)).connectable=r,i}return _createClass(n,[{key:"_error",value:function(e){this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),_get(_getPrototypeOf(n.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}}}]),n}(S);function J(){return new I}function Q(e){return{toString:e}.toString()}function K(e,t,n){return Q((function(){var r=function(e){return function(){if(e){var t=e.apply(void 0,arguments);for(var n in t)this[n]=t[n]}}}(t);function i(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(this instanceof i)return r.apply(this,t),this;var o=_construct(i,t);return s.annotation=o,s;function s(e,t,n){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(o),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}var Y=K("Inject",(function(e){return{token:e}})),X=K("Optional"),ee=K("Self"),te=K("SkipSelf"),ne=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function re(e){for(var t in e)if(e[t]===re)return t;throw Error("Could not find renamed property on target object.")}function ie(e,t){for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n])}function oe(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function se(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function ae(e){return ue(e,e[ce])||ue(e,e[de])}function ue(e,t){return t&&t.token===e?t:null}function le(e){return e&&(e.hasOwnProperty(he)||e.hasOwnProperty(ve))?e[he]:null}var ce=re({"\u0275prov":re}),he=re({"\u0275inj":re}),fe=re({"\u0275provFallback":re}),de=re({ngInjectableDef:re}),ve=re({ngInjectorDef:re});function pe(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(pe).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function ge(e,t){return null==e||""===e?null===t?"":t:null==t||""===t?e:e+" "+t}var ye=re({__forward_ref__:re});function _e(e){return e.__forward_ref__=_e,e.toString=function(){return pe(this())},e}function me(e){return Ce(e)?e():e}function Ce(e){return"function"==typeof e&&e.hasOwnProperty(ye)&&e.__forward_ref__===_e}var ke,be="undefined"!=typeof globalThis&&globalThis,we="undefined"!=typeof window&&window,Ee="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Se="undefined"!=typeof global&&global,Ie=be||Se||we||Ee,Oe=re({"\u0275cmp":re}),Ae=re({"\u0275dir":re}),xe=re({"\u0275pipe":re}),Te=re({"\u0275mod":re}),Ve=re({"\u0275loc":re}),De=re({"\u0275fac":re}),Ne=re({__NG_ELEMENT_ID__:re}),Pe=function(){function e(t,n){_classCallCheck(this,e),this._desc=t,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof n?this.__NG_ELEMENT_ID__=n:void 0!==n&&(this.\u0275prov=oe({token:this,providedIn:n.providedIn||"root",factory:n.factory}))}return _createClass(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),Me=new Pe("INJECTOR",-1),He={},Re=/\n/gm,je=re({provide:String,useValue:re}),ze=void 0;function Fe(e){var t=ze;return ze=e,t}function Le(e){var t=ke;return ke=e,t}function Be(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;if(void 0===ze)throw new Error("inject() must be called from an injection context");return null===ze?Ge(e,void 0,t):ze.get(e,t&ne.Optional?null:void 0,t)}function Ue(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default;return(ke||Be)(me(e),t)}function Ge(e,t,n){var r=ae(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(n&ne.Optional)return null;if(void 0!==t)return t;throw new Error("Injector: NOT_FOUND [".concat(pe(e),"]"))}function Ze(e){for(var t=[],n=0;n<e.length;n++){var r=me(e[n]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,o=ne.Default,s=0;s<r.length;s++){var a=r[s];a instanceof X||"Optional"===a.ngMetadataName||a===X?o|=ne.Optional:a instanceof te||"SkipSelf"===a.ngMetadataName||a===te?o|=ne.SkipSelf:a instanceof ee||"Self"===a.ngMetadataName||a===ee?o|=ne.Self:i=a instanceof Y||a===Y?a.token:a}t.push(Ue(i,o))}else t.push(Ue(r))}return t}var qe=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He;if(t===He){var n=new Error("NullInjectorError: No provider for ".concat(pe(e),"!"));throw n.name="NullInjectorError",n}return t}}]),e}(),We=function e(){_classCallCheck(this,e)};function $e(e,t){e.forEach((function(e){return Array.isArray(e)?$e(e,t):t(e)}))}function Je(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Qe(e,t){return t>=e.length-1?e.pop():e.splice(t,1)[0]}function Ke(e,t,n){var r=Xe(e,t);return r>=0?e[1|r]=n:function(e,t,n,r){var i=e.length;if(i==t)e.push(n,r);else if(1===i)e.push(r,e[0]),e[0]=n;else{for(i--,e.push(e[i-1],e[i]);i>t;)e[i]=e[i-2],i--;e[t]=n,e[t+1]=r}}(e,r=~r,t,n),r}function Ye(e,t){var n=Xe(e,t);if(n>=0)return e[1|n]}function Xe(e,t){return function(e,t,n){for(var r=0,i=e.length>>1;i!==r;){var o=r+(i-r>>1),s=e[o<<1];if(t===s)return o<<1;s>t?i=o:r=o+1}return~(i<<1)}(e,t)}var et,tt=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),nt=((et={})[et.Emulated=0]="Emulated",et[et.Native=1]="Native",et[et.None=2]="None",et[et.ShadowDom=3]="ShadowDom",et),rt={},it=[],ot=0;function st(e){return Q((function(){var t=e.type,n=t.prototype,r={},i={type:t,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:r,inputs:null,outputs:null,exportAs:e.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:e.changeDetection===tt.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||it,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||nt.Emulated,id:"c",styles:e.styles||it,_:null,setInput:null,schemas:e.schemas||null,tView:null},o=e.directives,s=e.features,a=e.pipes;return i.id+=ot++,i.inputs=ht(e.inputs,r),i.outputs=ht(e.outputs),s&&s.forEach((function(e){return e(i)})),i.directiveDefs=o?function(){return("function"==typeof o?o():o).map(at)}:null,i.pipeDefs=a?function(){return("function"==typeof a?a():a).map(ut)}:null,i}))}function at(e){return dt(e)||function(e){return e[Ae]||null}(e)}function ut(e){return function(e){return e[xe]||null}(e)}var lt={};function ct(e){var t={type:e.type,bootstrap:e.bootstrap||it,declarations:e.declarations||it,imports:e.imports||it,exports:e.exports||it,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&Q((function(){lt[e.id]=e.type})),t}function ht(e,t){if(null==e)return rt;var n={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],o=i;Array.isArray(i)&&(o=i[1],i=i[0]),n[i]=r,t&&(t[i]=o)}return n}var ft=st;function dt(e){return e[Oe]||null}function vt(e,t){return e.hasOwnProperty(De)?e[De]:null}function pt(e,t){var n=e[Te]||null;if(!n&&!0===t)throw new Error("Type ".concat(pe(e)," does not have '\u0275mod' property."));return n}function gt(e){return Array.isArray(e)&&"object"==typeof e[1]}function yt(e){return Array.isArray(e)&&!0===e[1]}function _t(e){return 0!=(8&e.flags)}function mt(e){return 2==(2&e.flags)}function Ct(e){return 1==(1&e.flags)}function kt(e){return null!==e.template}function bt(e){return 0!=(512&e[2])}var wt=void 0;function Et(e){return!!e.listen}var St={createRenderer:function(e,t){return void 0!==wt?wt:"undefined"!=typeof document?document:void 0}};function It(e){for(;Array.isArray(e);)e=e[0];return e}function Ot(e,t){return It(t[e+20])}function At(e,t){return It(t[e.index])}function xt(e,t){return e.data[t+20]}function Tt(e,t){var n=t[e];return gt(n)?n:n[0]}function Vt(e){var t=function(e){return e.__ngContext__||null}(e);return t?Array.isArray(t)?t:t.lView:null}function Dt(e){return 128==(128&e[2])}function Nt(e,t){return null===e||null==t?null:e[t]}function Pt(e){e[18]=0}function Mt(e,t){e[5]+=t;for(var n=e,r=e[3];null!==r&&(1===t&&1===n[5]||-1===t&&0===n[5]);)r[5]+=t,n=r,r=r[3]}var Ht={lFrame:nn(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Rt(){return Ht.bindingsEnabled}function jt(){return Ht.lFrame.lView}function zt(){return Ht.lFrame.tView}function Ft(e){Ht.lFrame.contextLView=e}function Lt(){return Ht.lFrame.previousOrParentTNode}function Bt(e,t){Ht.lFrame.previousOrParentTNode=e,Ht.lFrame.isParent=t}function Ut(){return Ht.lFrame.isParent}function Gt(){Ht.lFrame.isParent=!1}function Zt(){return Ht.checkNoChangesMode}function qt(e){Ht.checkNoChangesMode=e}function Wt(){var e=Ht.lFrame,t=e.bindingRootIndex;return-1===t&&(t=e.bindingRootIndex=e.tView.bindingStartIndex),t}function $t(){return Ht.lFrame.bindingIndex++}function Jt(e){var t=Ht.lFrame,n=t.bindingIndex;return t.bindingIndex=t.bindingIndex+e,n}function Qt(e,t){var n=Ht.lFrame;n.bindingIndex=n.bindingRootIndex=e,Kt(t)}function Kt(e){Ht.lFrame.currentDirectiveIndex=e}function Yt(e){Ht.lFrame.currentQueryIndex=e}function Xt(e,t){var n=tn();Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e}function en(e,t){var n=tn(),r=e[1];Ht.lFrame=n,n.previousOrParentTNode=t,n.lView=e,n.tView=r,n.contextLView=e,n.bindingIndex=r.bindingStartIndex}function tn(){var e=Ht.lFrame,t=null===e?null:e.child;return null===t?nn(e):t}function nn(e){var t={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=t),t}function rn(){var e=Ht.lFrame;return Ht.lFrame=e.parent,e.previousOrParentTNode=null,e.lView=null,e}var on=rn;function sn(){var e=rn();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function an(){return Ht.lFrame.selectedIndex}function un(e){Ht.lFrame.selectedIndex=e}function ln(){var e=Ht.lFrame;return xt(e.tView,e.selectedIndex)}function cn(e,t){for(var n=t.directiveStart,r=t.directiveEnd;n<r;n++){var i=e.data[n];i.afterContentInit&&(e.contentHooks||(e.contentHooks=[])).push(-n,i.afterContentInit),i.afterContentChecked&&((e.contentHooks||(e.contentHooks=[])).push(n,i.afterContentChecked),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(n,i.afterContentChecked)),i.afterViewInit&&(e.viewHooks||(e.viewHooks=[])).push(-n,i.afterViewInit),i.afterViewChecked&&((e.viewHooks||(e.viewHooks=[])).push(n,i.afterViewChecked),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(n,i.afterViewChecked)),null!=i.onDestroy&&(e.destroyHooks||(e.destroyHooks=[])).push(n,i.onDestroy)}}function hn(e,t,n){vn(e,t,3,n)}function fn(e,t,n,r){(3&e[2])===n&&vn(e,t,n,r)}function dn(e,t){var n=e[2];(3&n)===t&&(n&=2047,n+=1,e[2]=n)}function vn(e,t,n,r){for(var i=null!=r?r:-1,o=0,s=void 0!==r?65535&e[18]:0;s<t.length;s++)if("number"==typeof t[s+1]){if(o=t[s],null!=r&&o>=r)break}else t[s]<0&&(e[18]+=65536),(o<i||-1==i)&&(pn(e,n,t,s),e[18]=(4294901760&e[18])+s+2),s++}function pn(e,t,n,r){var i=n[r]<0,o=n[r+1],s=e[i?-n[r]:n[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===t&&(e[2]+=2048,o.call(s)):o.call(s)}var gn=function e(t,n,r){_classCallCheck(this,e),this.factory=t,this.resolving=!1,this.canSeeViewProviders=n,this.injectImpl=r};function yn(e,t,n){for(var r=Et(e),i=0;i<n.length;){var o=n[i];if("number"==typeof o){if(0!==o)break;i++;var s=n[i++],a=n[i++],u=n[i++];r?e.setAttribute(t,a,u,s):t.setAttributeNS(s,a,u)}else{var l=o,c=n[++i];_n(l)?r&&e.setProperty(t,l,c):r?e.setAttribute(t,l,c):t.setAttribute(l,c),i++}}return i}function _n(e){return 64===e.charCodeAt(0)}function mn(e,t){if(null===t||0===t.length);else if(null===e||0===e.length)e=t.slice();else for(var n=-1,r=0;r<t.length;r++){var i=t[r];"number"==typeof i?n=i:0===n||Cn(e,n,i,null,-1===n||2===n?t[++r]:null)}return e}function Cn(e,t,n,r,i){var o=0,s=e.length;if(-1===t)s=-1;else for(;o<e.length;){var a=e[o++];if("number"==typeof a){if(a===t){s=-1;break}if(a>t){s=o-1;break}}}for(;o<e.length;){var u=e[o];if("number"==typeof u)break;if(u===n){if(null===r)return void(null!==i&&(e[o+1]=i));if(r===e[o+1])return void(e[o+2]=i)}o++,null!==r&&o++,null!==i&&o++}-1!==s&&(e.splice(s,0,t),o=s+1),e.splice(o++,0,n),null!==r&&e.splice(o++,0,r),null!==i&&e.splice(o++,0,i)}function kn(e){return-1!==e}function bn(e){return 32767&e}function wn(e){return e>>16}function En(e,t){for(var n=wn(e),r=t;n>0;)r=r[15],n--;return r}function Sn(e){return"string"==typeof e?e:null==e?"":""+e}function In(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Sn(e)}var On=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ie);function An(e){return{name:"window",target:e.ownerDocument.defaultView}}function xn(e){return e instanceof Function?e():e}var Tn=!0;function Vn(e){var t=Tn;return Tn=e,t}var Dn=0;function Nn(e,t){var n=Mn(e,t);if(-1!==n)return n;var r=t[1];r.firstCreatePass&&(e.injectorIndex=t.length,Pn(r.data,e),Pn(t,null),Pn(r.blueprint,null));var i=Hn(e,t),o=e.injectorIndex;if(kn(i))for(var s=bn(i),a=En(i,t),u=a[1].data,l=0;l<8;l++)t[o+l]=a[s+l]|u[s+l];return t[o+8]=i,o}function Pn(e,t){e.push(0,0,0,0,0,0,0,0,t)}function Mn(e,t){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null==t[e.injectorIndex+8]?-1:e.injectorIndex}function Hn(e,t){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var n=t[6],r=1;n&&-1===n.injectorIndex;)n=(t=t[15])?t[6]:null,r++;return n?n.injectorIndex|r<<16:-1}function Rn(e,t,n){!function(e,t,n){var r;"string"==typeof n?r=n.charCodeAt(0)||0:n.hasOwnProperty(Ne)&&(r=n[Ne]),null==r&&(r=n[Ne]=Dn++);var i=255&r,o=1<<i,s=64&i,a=32&i,u=t.data;128&i?s?a?u[e+7]|=o:u[e+6]|=o:a?u[e+5]|=o:u[e+4]|=o:s?a?u[e+3]|=o:u[e+2]|=o:a?u[e+1]|=o:u[e]|=o}(e,t,n)}function jn(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:ne.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var o=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var t=e.hasOwnProperty(Ne)?e[Ne]:void 0;return"number"==typeof t&&t>0?255&t:t}(n);if("function"==typeof o){Xt(t,e);try{var s=o();if(null!=s||r&ne.Optional)return s;throw new Error("No provider for ".concat(In(n),"!"))}finally{on()}}else if("number"==typeof o){if(-1===o)return new Gn(e,t);var a=null,u=Mn(e,t),l=-1,c=r&ne.Host?t[16][6]:null;for((-1===u||r&ne.SkipSelf)&&(l=-1===u?Hn(e,t):t[u+8],Un(r,!1)?(a=t[1],u=bn(l),t=En(l,t)):u=-1);-1!==u;){l=t[u+8];var h=t[1];if(Bn(o,u,h.data)){var f=Fn(u,t,n,a,r,c);if(f!==zn)return f}Un(r,t[1].data[u+8]===c)&&Bn(o,u,t)?(a=h,u=bn(l),t=En(l,t)):u=-1}}}if(r&ne.Optional&&void 0===i&&(i=null),0==(r&(ne.Self|ne.Host))){var d=t[9],v=Le(void 0);try{return d?d.get(n,i,r&ne.Optional):Ge(n,i,r&ne.Optional)}finally{Le(v)}}if(r&ne.Optional)return i;throw new Error("NodeInjector: NOT_FOUND [".concat(In(n),"]"))}var zn={};function Fn(e,t,n,r,i,o){var s=t[1],a=s.data[e+8],u=function(e,t,n,r,i){for(var o=e.providerIndexes,s=t.data,a=65535&o,u=e.directiveStart,l=o>>16,c=i?a+l:e.directiveEnd,h=r?a:a+l;h<c;h++){var f=s[h];if(h<u&&n===f||h>=u&&f.type===n)return h}if(i){var d=s[u];if(d&&kt(d)&&d.type===n)return u}return null}(a,s,n,null==r?mt(a)&&Tn:r!=s&&3===a.type,i&ne.Host&&o===a);return null!==u?Ln(t,s,u,a):zn}function Ln(e,t,n,r){var i=e[n],o=t.data;if(i instanceof gn){var s=i;if(s.resolving)throw new Error("Circular dep for "+In(o[n]));var a,u=Vn(s.canSeeViewProviders);s.resolving=!0,s.injectImpl&&(a=Le(s.injectImpl)),Xt(e,r);try{i=e[n]=s.factory(void 0,o,e,r),t.firstCreatePass&&n>=r.directiveStart&&function(e,t,n){var r=t.onChanges,i=t.onInit,o=t.doCheck;r&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,r),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,r)),i&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-e,i),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(e,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(e,o))}(n,o[n],t)}finally{s.injectImpl&&Le(a),Vn(u),s.resolving=!1,on()}}return i}function Bn(e,t,n){var r=64&e,i=32&e;return!!((128&e?r?i?n[t+7]:n[t+6]:i?n[t+5]:n[t+4]:r?i?n[t+3]:n[t+2]:i?n[t+1]:n[t])&1<<e)}function Un(e,t){return!(e&ne.Self||e&ne.Host&&t)}var Gn=function(){function e(t,n){_classCallCheck(this,e),this._tNode=t,this._lView=n}return _createClass(e,[{key:"get",value:function(e,t){return jn(this._tNode,this._lView,e,void 0,t)}}]),e}();function Zn(e){var t=e;if(Ce(e))return function(){var e=Zn(me(t));return e?e():null};var n=vt(t);if(null===n){var r=le(t);n=r&&r.factory}return n||null}function qn(e){return Q((function(){for(var t=e.prototype.constructor,n=t[De]||Zn(t),r=Object.prototype,i=Object.getPrototypeOf(e.prototype).constructor;i&&i!==r;){var o=i[De]||Zn(i);if(o&&o!==n)return o;i=Object.getPrototypeOf(i)}return function(e){return new e}}))}function Wn(e){return e.ngDebugContext}function $n(e){return e.ngOriginalError}function Jn(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];e.error.apply(e,n)}var Qn=function(){function e(){_classCallCheck(this,e),this._console=console}return _createClass(e,[{key:"handleError",value:function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e.ngErrorLogger||Jn}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)}},{key:"_findContext",value:function(e){return e?Wn(e)?Wn(e):this._findContext($n(e)):null}},{key:"_findOriginalError",value:function(e){for(var t=$n(e);t&&$n(t);)t=$n(t);return t}}]),e}(),Kn=function(){function e(t){_classCallCheck(this,e),this.changingThisBreaksApplicationSecurity=t}return _createClass(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),e}();function Yn(e){return e instanceof Kn?e.changingThisBreaksApplicationSecurity:e}var Xn=!0,er=!1;function tr(){return er=!0,Xn}var nr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,rr=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,ir=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function or(e){var t,n,r=(t=jt())&&t[12];return r?r.sanitize(ir.URL,e)||"":function(e,t){var n=function(e){return e instanceof Kn&&e.getTypeName()||null}(e);if(null!=n&&"URL"!==n){if("ResourceURL"===n)return!0;throw new Error("Required a safe ".concat("URL",", got a ").concat(n," (see http://g.co/ng/security#xss)"))}return"URL"===n}(e)?Yn(e):(n=Sn(e),(n=String(n)).match(nr)||n.match(rr)?n:(tr()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(n," (see http://g.co/ng/security#xss)")),"unsafe:"+n))}function sr(e,t){e.__ngContext__=t}function ar(e){throw new Error("Multiple components match node with tagname "+e.tagName)}function ur(){throw new Error("Cannot mix multi providers and regular providers")}function lr(e,t,n){for(var r=e.length;;){var i=e.indexOf(t,n);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var o=t.length;if(i+o===r||e.charCodeAt(i+o)<=32)return i}n=i+1}}function cr(e,t,n){for(var r=0;r<e.length;){var i=e[r++];if(n&&"class"===i){if(-1!==lr((i=e[r]).toLowerCase(),t,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===t)return!0;return!1}}return!1}function hr(e){return 0===e.type&&"ng-template"!==e.tagName}function fr(e,t,n){return t===(0!==e.type||n?e.tagName:"ng-template")}function dr(e,t,n){for(var r=4,i=e.attrs||[],o=function(e){for(var t=0;t<e.length;t++)if(3===(n=e[t])||4===n||6===n)return t;var n;return e.length}(i),s=!1,a=0;a<t.length;a++){var u=t[a];if("number"!=typeof u){if(!s)if(4&r){if(r=2|1&r,""!==u&&!fr(e,u,n)||""===u&&1===t.length){if(vr(r))return!1;s=!0}}else{var l=8&r?u:t[++a];if(8&r&&null!==e.attrs){if(!cr(e.attrs,l,n)){if(vr(r))return!1;s=!0}continue}var c=pr(8&r?"class":u,i,hr(e),n);if(-1===c){if(vr(r))return!1;s=!0;continue}if(""!==l){var h;h=c>o?"":i[c+1].toLowerCase();var f=8&r?h:null;if(f&&-1!==lr(f,l,0)||2&r&&l!==h){if(vr(r))return!1;s=!0}}}}else{if(!s&&!vr(r)&&!vr(u))return!1;if(s&&vr(u))continue;s=!1,r=u|1&r}}return vr(r)||s}function vr(e){return 0==(1&e)}function pr(e,t,n,r){if(null===t)return-1;var i=0;if(r||!n){for(var o=!1;i<t.length;){var s=t[i];if(s===e)return i;if(3===s||6===s)o=!0;else{if(1===s||2===s){for(var a=t[++i];"string"==typeof a;)a=t[++i];continue}if(4===s)break;if(0===s){i+=4;continue}}i+=o?1:2}return-1}return function(e,t){var n=e.indexOf(4);if(n>-1)for(n++;n<e.length;){var r=e[n];if("number"==typeof r)return-1;if(r===t)return n;n++}return-1}(t,e)}function gr(e,t){for(var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<t.length;r++)if(dr(e,t[r],n))return!0;return!1}function yr(e,t){return e?":not("+t.trim()+")":t}function _r(e){for(var t=e[0],n=1,r=2,i="",o=!1;n<e.length;){var s=e[n];if("string"==typeof s)if(2&r){var a=e[++n];i+="["+s+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+s:4&r&&(i+=" "+s);else""===i||vr(s)||(t+=yr(o,i),i=""),r=s,o=o||!vr(r);n++}return""!==i&&(t+=yr(o,i)),t}var mr={};function Cr(e){var t=e[3];return yt(t)?t[3]:t}function kr(e){return wr(e[13])}function br(e){return wr(e[4])}function wr(e){for(;null!==e&&!yt(e);)e=e[4];return e}function Er(e){Sr(zt(),jt(),an()+e,Zt())}function Sr(e,t,n,r){if(!r)if(3==(3&t[2])){var i=e.preOrderCheckHooks;null!==i&&hn(t,i,n)}else{var o=e.preOrderHooks;null!==o&&fn(t,o,0,n)}un(n)}function Ir(e,t){return e<<17|t<<2}function Or(e){return e>>17&32767}function Ar(e){return 2|e}function xr(e){return(131068&e)>>2}function Tr(e,t){return-131069&e|t<<2}function Vr(e){return 1|e}function Dr(e,t){var n=e.contentQueries;if(null!==n)for(var r=0;r<n.length;r+=2){var i=n[r],o=n[r+1];if(-1!==o){var s=e.data[o];Yt(i),s.contentQueries(2,t[o],o)}}}function Nr(e,t,n){return Et(t)?t.createElement(e,n):null===n?t.createElement(e):t.createElementNS(n,e)}function Pr(e,t,n,r,i,o,s,a,u,l){var c=t.blueprint.slice();return c[0]=i,c[2]=140|r,Pt(c),c[3]=c[15]=e,c[8]=n,c[10]=s||e&&e[10],c[11]=a||e&&e[11],c[12]=u||e&&e[12]||null,c[9]=l||e&&e[9]||null,c[6]=o,c[16]=2==t.type?e[16]:c,c}function Mr(e,t,n,r,i,o){var s=n+20,a=e.data[s]||function(e,t,n,r,i,o){var s=Lt(),a=Ut(),u=a?s:s&&s.parent,l=e.data[n]=Zr(0,u&&u!==t?u:null,r,n,i,o);return null===e.firstChild&&(e.firstChild=l),s&&(!a||null!=s.child||null===l.parent&&2!==s.type?a||(s.next=l):s.child=l),l}(e,t,s,r,i,o);return Bt(a,!0),a}function Hr(e,t,n){en(t,t[6]);try{var r=e.viewQuery;null!==r&&di(1,r,n);var i=e.template;null!==i&&zr(e,t,i,1,n),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Dr(e,t),e.staticViewQueries&&di(2,e.viewQuery,n);var o=e.components;null!==o&&function(e,t){for(var n=0;n<t.length;n++)ui(e,t[n])}(t,o)}catch(s){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),s}finally{t[2]&=-5,sn()}}function Rr(e,t,n,r){var i=t[2];if(256!=(256&i)){en(t,t[6]);var o=Zt();try{Pt(t),Ht.lFrame.bindingIndex=e.bindingStartIndex,null!==n&&zr(e,t,n,2,r);var s=3==(3&i);if(!o)if(s){var a=e.preOrderCheckHooks;null!==a&&hn(t,a,null)}else{var u=e.preOrderHooks;null!==u&&fn(t,u,0,null),dn(t,0)}if(function(e){for(var t=kr(e);null!==t;t=br(t))if(t[2])for(var n=t[9],r=0;r<n.length;r++){var i=n[r],o=i[3];0==(1024&i[2])&&Mt(o,1),i[2]|=1024}}(t),function(e){for(var t=kr(e);null!==t;t=br(t))for(var n=10;n<t.length;n++){var r=t[n],i=r[1];Dt(r)&&Rr(i,r,i.template,r[8])}}(t),null!==e.contentQueries&&Dr(e,t),!o)if(s){var l=e.contentCheckHooks;null!==l&&hn(t,l)}else{var c=e.contentHooks;null!==c&&fn(t,c,1),dn(t,1)}!function(e,t){try{var n=e.expandoInstructions;if(null!==n)for(var r=e.expandoStartIndex,i=-1,o=0;o<n.length;o++){var s=n[o];"number"==typeof s?s<=0?(un(0-s),i=r+=9+n[++o]):r+=s:(null!==s&&(Qt(r,i),s(2,t[i])),i++)}}finally{un(-1)}}(e,t);var h=e.components;null!==h&&function(e,t){for(var n=0;n<t.length;n++)ai(e,t[n])}(t,h);var f=e.viewQuery;if(null!==f&&di(2,f,r),!o)if(s){var d=e.viewCheckHooks;null!==d&&hn(t,d)}else{var v=e.viewHooks;null!==v&&fn(t,v,2),dn(t,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),o||(t[2]&=-73),1024&t[2]&&(t[2]&=-1025,Mt(t[3],-1))}finally{sn()}}}function jr(e,t,n,r){var i=t[10],o=!Zt(),s=4==(4&t[2]);try{o&&!s&&i.begin&&i.begin(),s&&Hr(e,t,r),Rr(e,t,n,r)}finally{o&&!s&&i.end&&i.end()}}function zr(e,t,n,r,i){var o=an();try{un(-1),2&r&&t.length>20&&Sr(e,t,0,Zt()),n(r,i)}finally{un(o)}}function Fr(e,t,n){if(_t(t))for(var r=t.directiveEnd,i=t.directiveStart;i<r;i++){var o=e.data[i];o.contentQueries&&o.contentQueries(1,n[i],i)}}function Lr(e,t,n){Rt()&&(function(e,t,n,r){var i=n.directiveStart,o=n.directiveEnd;e.firstCreatePass||Nn(n,t),sr(r,t);for(var s=n.initialInputs,a=i;a<o;a++){var u=e.data[a],l=kt(u);l&&ri(t,n,u);var c=Ln(t,e,a,n);sr(c,t),null!==s&&ii(0,a-i,c,u,0,s),l&&(Tt(n.index,t)[8]=c)}}(e,t,n,At(n,t)),128==(128&n.flags)&&function(e,t,n){var r=n.directiveStart,i=n.directiveEnd,o=e.expandoInstructions,s=e.firstCreatePass,a=n.index-20,u=Ht.lFrame.currentDirectiveIndex;try{un(a);for(var l=r;l<i;l++){var c=e.data[l],h=t[l];Kt(l),null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?Kr(c,h):s&&o.push(null)}}finally{un(-1),Kt(u)}}(e,t,n))}function Br(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:At,r=t.localNames;if(null!==r)for(var i=t.index+1,o=0;o<r.length;o+=2){var s=r[o+1],a=-1===s?n(t,e):e[s];e[i++]=a}}function Ur(e){var t=e.tView;return null===t||t.incompleteFirstPass?e.tView=Gr(1,-1,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):t}function Gr(e,t,n,r,i,o,s,a,u,l){var c=20+r,h=c+i,f=function(e,t){for(var n=[],r=0;r<t;r++)n.push(r<e?null:mr);return n}(c,h);return f[1]={type:e,id:t,blueprint:f,template:n,queries:null,viewQuery:a,node:null,data:f.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:h,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof s?s():s,firstChild:null,schemas:u,consts:l,incompleteFirstPass:!1}}function Zr(e,t,n,r,i,o){return{type:n,index:r,injectorIndex:t?t.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:o,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}}function qr(e,t,n){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(n=null===n?{}:n).hasOwnProperty(r)?n[r].push(t,i):n[r]=[t,i]}return n}function Wr(e,t,n,r,i,o,s,a){var u,l,c=At(t,n),h=t.inputs;!a&&null!=h&&(u=h[r])?(yi(e,n,u,r,i),mt(t)&&function(e,t){var n=Tt(t,e);16&n[2]||(n[2]|=64)}(n,t.index)):3===t.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=s?s(i,t.tagName||"",r):i,Et(o)?o.setProperty(c,r,i):_n(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}function $r(e,t,n,r){var i=!1;if(Rt()){var o=function(e,t,n){var r=e.directiveRegistry,i=null;if(r)for(var o=0;o<r.length;o++){var s=r[o];gr(n,s.selectors,!1)&&(i||(i=[]),Rn(Nn(n,t),e,s.type),kt(s)?(2&n.flags&&ar(n),Xr(e,n),i.unshift(s)):i.push(s))}return i}(e,t,n),s=null===r?null:{"":-1};if(null!==o){var a=0;i=!0,ti(n,e.data.length,o.length);for(var u=0;u<o.length;u++){var l=o[u];l.providersResolver&&l.providersResolver(l)}Yr(e,n,o.length);for(var c=!1,h=!1,f=0;f<o.length;f++){var d=o[f];n.mergedAttrs=mn(n.mergedAttrs,d.hostAttrs),ni(e,t,d),ei(e.data.length-1,d,s),null!==d.contentQueries&&(n.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(n.flags|=128),!c&&(d.onChanges||d.onInit||d.doCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(n.index-20),c=!0),h||!d.onChanges&&!d.doCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(n.index-20),h=!0),Jr(e,d),a+=d.hostVars}!function(e,t){for(var n=t.directiveEnd,r=e.data,i=t.attrs,o=[],s=null,a=null,u=t.directiveStart;u<n;u++){var l=r[u],c=l.inputs,h=null===i||hr(t)?null:oi(c,i);o.push(h),s=qr(c,u,s),a=qr(l.outputs,u,a)}null!==s&&(s.hasOwnProperty("class")&&(t.flags|=16),s.hasOwnProperty("style")&&(t.flags|=32)),t.initialInputs=o,t.inputs=s,t.outputs=a}(e,n),Qr(e,t,a)}s&&function(e,t,n){if(t)for(var r=e.localNames=[],i=0;i<t.length;i+=2){var o=n[t[i+1]];if(null==o)throw new Error("Export of name '".concat(t[i+1],"' not found!"));r.push(t[i],o)}}(n,r,s)}return n.mergedAttrs=mn(n.mergedAttrs,n.attrs),i}function Jr(e,t){var n=e.expandoInstructions;n.push(t.hostBindings),0!==t.hostVars&&n.push(t.hostVars)}function Qr(e,t,n){for(var r=0;r<n;r++)t.push(mr),e.blueprint.push(mr),e.data.push(null)}function Kr(e,t){null!==e.hostBindings&&e.hostBindings(1,t)}function Yr(e,t,n){var r=20-t.index,i=e.data.length-(65535&t.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,n)}function Xr(e,t){t.flags|=2,(e.components||(e.components=[])).push(t.index)}function ei(e,t,n){if(n){if(t.exportAs)for(var r=0;r<t.exportAs.length;r++)n[t.exportAs[r]]=e;kt(t)&&(n[""]=e)}}function ti(e,t,n){e.flags|=1,e.directiveStart=t,e.directiveEnd=t+n,e.providerIndexes=t}function ni(e,t,n){e.data.push(n);var r=n.factory||(n.factory=vt(n.type)),i=new gn(r,kt(n),null);e.blueprint.push(i),t.push(i)}function ri(e,t,n){var r=At(t,e),i=Ur(n),o=e[10],s=li(e,Pr(e,i,null,n.onPush?64:16,r,t,o,o.createRenderer(r,n)));e[t.index]=s}function ii(e,t,n,r,i,o){var s=o[t];if(null!==s)for(var a=r.setInput,u=0;u<s.length;){var l=s[u++],c=s[u++],h=s[u++];null!==a?r.setInput(n,h,l,c):n[c]=h}}function oi(e,t){for(var n=null,r=0;r<t.length;){var i=t[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===n&&(n=[]),n.push(i,e[i],t[r+1])),r+=2}else r+=2;else r+=4}return n}function si(e,t,n,r){return new Array(e,!0,!1,t,null,0,r,n,null,null)}function ai(e,t){var n=Tt(t,e);if(Dt(n)){var r=n[1];80&n[2]?Rr(r,n,r.template,n[8]):n[5]>0&&function e(t){for(var n=kr(t);null!==n;n=br(n))for(var r=10;r<n.length;r++){var i=n[r];if(1024&i[2]){var o=i[1];Rr(o,i,o.template,i[8])}else i[5]>0&&e(i)}var s=t[1].components;if(null!==s)for(var a=0;a<s.length;a++){var u=Tt(s[a],t);Dt(u)&&u[5]>0&&e(u)}}(n)}}function ui(e,t){var n=Tt(t,e),r=n[1];!function(e,t){for(var n=t.length;n<e.blueprint.length;n++)t.push(e.blueprint[n])}(r,n),Hr(r,n,n[8])}function li(e,t){return e[13]?e[14][4]=t:e[13]=t,e[14]=t,t}function ci(e){for(;e;){e[2]|=64;var t=Cr(e);if(bt(e)&&!t)return e;e=t}return null}function hi(e,t,n){var r=t[10];r.begin&&r.begin();try{Rr(e,t,e.template,n)}catch(i){throw gi(t,i),i}finally{r.end&&r.end()}}function fi(e){!function(e){for(var t=0;t<e.components.length;t++){var n=e.components[t],r=Vt(n),i=r[1];jr(i,r,i.template,n)}}(e[8])}function di(e,t,n){Yt(0),t(e,n)}var vi=Promise.resolve(null);function pi(e){return e[7]||(e[7]=[])}function gi(e,t){var n=e[9],r=n?n.get(Qn,null):null;r&&r.handleError(t)}function yi(e,t,n,r,i){for(var o=0;o<n.length;){var s=n[o++],a=n[o++],u=t[s],l=e.data[s];null!==l.setInput?l.setInput(u,i,r,a):u[a]=i}}function _i(e,t){var n=t[3];return-1===e.index?yt(n)?n:null:n}function mi(e,t){var n=_i(e,t);return n?Ti(t[11],n[7]):null}function Ci(e,t,n,r,i){if(null!=r){var o,s=!1;yt(r)?o=r:gt(r)&&(s=!0,r=r[0]);var a=It(r);0===e&&null!==n?null==i?Ai(t,n,a):Oi(t,n,a,i||null):1===e&&null!==n?Oi(t,n,a,i||null):2===e?function(e,t,n){var r=Ti(e,t);r&&function(e,t,n,r){Et(e)?e.removeChild(t,n,r):t.removeChild(n)}(e,r,t,n)}(t,a,s):3===e&&t.destroyNode(a),null!=o&&function(e,t,n,r,i){var o=n[7];o!==It(n)&&Ci(t,e,r,o,i);for(var s=10;s<n.length;s++){var a=n[s];Pi(a[1],a,e,t,r,o)}}(t,e,o,n,i)}}function ki(e,t,n,r){var i=mi(e.node,t);i&&Pi(e,t,t[11],n?1:2,i,r)}function bi(e,t){var n=e[9],r=n.indexOf(t);1024&t[2]&&Mt(t[3],-1),n.splice(r,1)}function wi(e,t){if(!(e.length<=10)){var n=10+t,r=e[n];if(r){var i=r[17];null!==i&&i!==e&&bi(i,r),t>0&&(e[n-1][4]=r[4]);var o=Qe(e,10+t);ki(r[1],r,!1,null);var s=o[19];null!==s&&s.detachView(o[1]),r[3]=null,r[4]=null,r[2]&=-129}return r}}function Ei(e,t){if(!(256&t[2])){var n=t[11];Et(n)&&n.destroyNode&&Pi(e,t,n,3,null,null),function(e){var t=e[13];if(!t)return Ii(e[1],e);for(;t;){var n=null;if(gt(t))n=t[13];else{var r=t[10];r&&(n=r)}if(!n){for(;t&&!t[4]&&t!==e;)gt(t)&&Ii(t[1],t),t=Si(t,e);null===t&&(t=e),gt(t)&&Ii(t[1],t),n=t&&t[4]}t=n}}(t)}}function Si(e,t){var n;return gt(e)&&(n=e[6])&&2===n.type?_i(n,e):e[3]===t?null:e[3]}function Ii(e,t){if(!(256&t[2])){t[2]&=-129,t[2]|=256,function(e,t){var n;if(null!=e&&null!=(n=e.destroyHooks))for(var r=0;r<n.length;r+=2){var i=t[n[r]];if(!(i instanceof gn)){var o=n[r+1];if(Array.isArray(o))for(var s=0;s<o.length;s+=2)o[s+1].call(i[o[s]]);else o.call(i)}}}(e,t),function(e,t){var n=e.cleanup;if(null!==n){for(var r=t[7],i=0;i<n.length-1;i+=2)if("string"==typeof n[i]){var o=n[i+1],s="function"==typeof o?o(t):It(t[o]),a=r[n[i+2]],u=n[i+3];"boolean"==typeof u?s.removeEventListener(n[i],a,u):u>=0?r[u]():r[-u].unsubscribe(),i+=2}else n[i].call(r[n[i+1]]);t[7]=null}}(e,t);var n=t[6];n&&3===n.type&&Et(t[11])&&t[11].destroy();var r=t[17];if(null!==r&&yt(t[3])){r!==t[3]&&bi(r,t);var i=t[19];null!==i&&i.detachView(e)}}}function Oi(e,t,n,r){Et(e)?e.insertBefore(t,n,r):t.insertBefore(n,r,!0)}function Ai(e,t,n){Et(e)?e.appendChild(t,n):t.appendChild(n)}function xi(e,t,n,r){null!==r?Oi(e,t,n,r):Ai(e,t,n)}function Ti(e,t){return Et(e)?e.parentNode(t):t.parentNode}function Vi(e,t,n,r){var i=function(e,t,n){for(var r=t.parent;null!=r&&(4===r.type||5===r.type);)r=(t=r).parent;if(null==r){var i=n[6];return 2===i.type?mi(i,n):n[0]}if(t&&5===t.type&&4&t.flags)return At(t,n).parentNode;if(2&r.flags){var o=e.data,s=o[o[r.index].directiveStart].encapsulation;if(s!==nt.ShadowDom&&s!==nt.Native)return null}return At(r,n)}(e,r,t);if(null!=i){var o=t[11],s=function(e,t){if(2===e.type){var n=_i(e,t);return null===n?null:Di(n.indexOf(t,10)-10,n)}return 4===e.type||5===e.type?At(e,t):null}(r.parent||t[6],t);if(Array.isArray(n))for(var a=0;a<n.length;a++)xi(o,i,n[a],s);else xi(o,i,n,s)}}function Di(e,t){var n=10+e+1;if(n<t.length){var r=t[n],i=r[1].firstChild;if(null!==i)return function e(t,n){if(null!==n){var r=n.type;if(3===r)return At(n,t);if(0===r)return Di(-1,t[n.index]);if(4===r||5===r){var i=n.child;if(null!==i)return e(t,i);var o=t[n.index];return yt(o)?Di(-1,o):It(o)}var s=t[16],a=s[6],u=Cr(s),l=a.projection[n.projection];return null!=l?e(u,l):e(t,n.next)}return null}(r,i)}return t[7]}function Ni(e,t,n,r,i,o,s){for(;null!=n;){var a=r[n.index],u=n.type;s&&0===t&&(a&&sr(It(a),r),n.flags|=4),64!=(64&n.flags)&&(4===u||5===u?(Ni(e,t,n.child,r,i,o,!1),Ci(t,e,i,a,o)):1===u?Mi(e,t,r,n,i,o):Ci(t,e,i,a,o)),n=s?n.projectionNext:n.next}}function Pi(e,t,n,r,i,o){Ni(n,r,e.node.child,t,i,o,!1)}function Mi(e,t,n,r,i,o){var s=n[16],a=s[6].projection[r.projection];if(Array.isArray(a))for(var u=0;u<a.length;u++)Ci(t,e,i,a[u],o);else Ni(e,t,a,s[3],i,o,!0)}function Hi(e,t,n){Et(e)?e.setAttribute(t,"style",n):t.style.cssText=n}function Ri(e,t,n){Et(e)?""===n?e.removeAttribute(t,"class"):e.setAttribute(t,"class",n):t.className=n}var ji,zi,Fi,Li=function(){function e(t,n){_classCallCheck(this,e),this._lView=t,this._cdRefInjectingView=n,this._appRef=null,this._viewContainerRef=null}return _createClass(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Ei(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var t,n,r,i;t=this._lView[1],n=this._lView,r=e,(i=pi(n)).push(null),t.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(t).push(r,i.length-1)}},{key:"markForCheck",value:function(){ci(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){hi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,t,n){qt(!0);try{hi(e,t,n)}finally{qt(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Pi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView;return null==e[0]?function e(t,n,r,i){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==r;){var s=n[r.index];if(null!==s&&i.push(It(s)),yt(s))for(var a=10;a<s.length;a++){var u=s[a],l=u[1].firstChild;null!==l&&e(u[1],u,l,i)}var c=r.type;if(4===c||5===c)e(t,n,r.child,i);else if(1===c){var h=n[16],f=h[6].projection[r.projection];if(Array.isArray(f))i.push.apply(i,_toConsumableArray(f));else{var d=Cr(h);e(d[1],d,f,i,!0)}}r=o?r.projectionNext:r.next}return i}(e[1],e,e[6].child,[]):[]}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Bi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this,e))._view=e,r}return _createClass(n,[{key:"detectChanges",value:function(){fi(this._view)}},{key:"checkNoChanges",value:function(){!function(e){qt(!0);try{fi(e)}finally{qt(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),n}(Li);function Ui(e,t,n){return ji||(ji=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return n}(e)),new ji(At(t,n))}var Gi=new Pe("Set Injector scope."),Zi={},qi={},Wi=[],$i=void 0;function Ji(){return void 0===$i&&($i=new qe),$i}function Qi(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new Ki(e,n,t||Ji(),r)}var Ki=function(){function e(t,n,r){var i=this,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;_classCallCheck(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var s=[];n&&$e(n,(function(e){return i.processProvider(e,t,n)})),$e([t],(function(e){return i.processInjectorType(e,[],s)})),this.records.set(Me,eo(void 0,this));var a=this.records.get(Gi);this.scope=null!=a?a.value:null,this.source=o||("object"==typeof t?null:pe(t))}return _createClass(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:He,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;this.assertNotDestroyed();var r,i=Fe(this);try{if(!(n&ne.SkipSelf)){var o=this.records.get(e);if(void 0===o){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Pe)&&ae(e);o=s&&this.injectableDefInScope(s)?eo(Yi(e),Zi):null,this.records.set(e,o)}if(null!=o)return this.hydrate(e,o)}return(n&ne.Self?Ji():this.parent).get(e,t=n&ne.Optional&&t===He?null:t)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(pe(e)),i)throw a;return function(e,t,n,r){var i=e.ngTempTokenPath;throw t.__source&&i.unshift(t.__source),e.message=function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=pe(t);if(Array.isArray(t))i=t.map(pe).join(" -> ");else if("object"==typeof t){var o=[];for(var s in t)if(t.hasOwnProperty(s)){var a=t[s];o.push(s+":"+("string"==typeof a?JSON.stringify(a):pe(a)))}i="{".concat(o.join(", "),"}")}return"".concat(n).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Re,"\n "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Fe(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(t){return e.get(t)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(t,n){return e.push(pe(n))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,t,n){var r=this;if(!(e=me(e)))return!1;var i=le(e),o=null==i&&e.ngModule||void 0,s=void 0===o?e:o,a=-1!==n.indexOf(s);if(void 0!==o&&(i=le(o)),null==i)return!1;if(null!=i.imports&&!a){var u;n.push(s);try{$e(i.imports,(function(e){r.processInjectorType(e,t,n)&&(void 0===u&&(u=[]),u.push(e))}))}finally{}if(void 0!==u)for(var l=function(e){var t=u[e],n=t.ngModule,i=t.providers;$e(i,(function(e){return r.processProvider(e,n,i||Wi)}))},c=0;c<u.length;c++)l(c)}this.injectorDefTypes.add(s),this.records.set(s,eo(i.factory,Zi));var h=i.providers;if(null!=h&&!a){var f=e;$e(h,(function(e){return r.processProvider(e,f,h)}))}return void 0!==o&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,n){var r=no(e=me(e))?e:me(e&&e.provide),i=function(e,t,n){return to(e)?eo(void 0,e.useValue):eo(Xi(e,t,n),Zi)}(e,t,n);if(no(e)||!0!==e.multi){var o=this.records.get(r);o&&void 0!==o.multi&&ur()}else{var s=this.records.get(r);s?void 0===s.multi&&ur():((s=eo(void 0,Zi,!0)).factory=function(){return Ze(s.multi)},this.records.set(r,s)),r=e,s.multi.push(e)}this.records.set(r,i)}},{key:"hydrate",value:function(e,t){var n;return t.value===qi?function(e){throw new Error("Cannot instantiate cyclic dependency! "+e)}(pe(e)):t.value===Zi&&(t.value=qi,t.value=t.factory()),"object"==typeof t.value&&t.value&&null!==(n=t.value)&&"object"==typeof n&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function Yi(e){var t=ae(e),n=null!==t?t.factory:vt(e);if(null!==n)return n;var r=le(e);if(null!==r)return r.factory;if(e instanceof Pe)throw new Error("Token ".concat(pe(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var t=e.length;if(t>0){var n=function(e,t){for(var n=[],r=0;r<e;r++)n.push("?");return n}(t);throw new Error("Can't resolve all parameters for ".concat(pe(e),": (").concat(n.join(", "),")."))}var r=function(e){var t=e&&(e[ce]||e[de]||e[fe]&&e[fe]());if(t){var n=function(e){if(e.hasOwnProperty("name"))return e.name;var t=(""+e).match(/^function\s*([^\s(]+)/);return null===t?"":t[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(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 "').concat(n,'" class.')),t}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function Xi(e,t,n){var r,i=void 0;if(no(e)){var o=me(e);return vt(o)||Yi(o)}if(to(e))i=function(){return me(e.useValue)};else if((r=e)&&r.useFactory)i=function(){return e.useFactory.apply(e,_toConsumableArray(Ze(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))i=function(){return Ue(me(e.useExisting))};else{var s=me(e&&(e.useClass||e.provide));if(s||function(e,t,n){var r="";throw e&&t&&(r=" - only instances of Provider and Type are allowed, got: [".concat(t.map((function(e){return e==n?"?"+n+"?":"..."})).join(", "),"]")),new Error("Invalid provider for the NgModule '".concat(pe(e),"'")+r)}(t,n,e),!function(e){return!!e.deps}(e))return vt(s)||Yi(s);i=function(){return _construct(s,_toConsumableArray(Ze(e.deps)))}}return i}function eo(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:t,multi:n?[]:void 0}}function to(e){return null!==e&&"object"==typeof e&&je in e}function no(e){return"function"==typeof e}var ro=function(e,t,n){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=Qi(e,t,n,r);return i._resolveInjectorDefTypes(),i}({name:n},t,e,n)},io=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"create",value:function(e,t){return Array.isArray(e)?ro(e,t,""):ro(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=He,e.NULL=new qe,e.\u0275prov=oe({token:e,providedIn:"any",factory:function(){return Ue(Me)}}),e.__NG_ELEMENT_ID__=-1,e}();function oo(e,t,n){var r=n?e.styles:null,i=n?e.classes:null,o=0;if(null!==t)for(var s=0;s<t.length;s++){var a=t[s];"number"==typeof a?o=a:1==o?i=ge(i,a):2==o&&(r=ge(r,a+": "+t[++s]+";"))}n?e.styles=r:e.stylesWithoutHost=r,n?e.classes=i:e.classesWithoutHost=i}var so=null;function ao(){if(!so){var e=Ie.Symbol;if(e&&e.iterator)so=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(so=r)}}return so}var uo=function(){function e(t){_classCallCheck(this,e),this.wrapped=t}return _createClass(e,null,[{key:"wrap",value:function(t){return new e(t)}},{key:"unwrap",value:function(t){return e.isWrapped(t)?t.wrapped:t}},{key:"isWrapped",value:function(t){return t instanceof e}}]),e}();function lo(e){return!!co(e)&&(Array.isArray(e)||!(e instanceof Map)&&ao()in e)}function co(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function ho(e,t,n){return e[t]=n}function fo(e,t,n){return!Object.is(e[t],n)&&(e[t]=n,!0)}function vo(e,t,n,r){var i=fo(e,t,n);return fo(e,t+1,r)||i}function po(e,t,n,r){var i=jt();return fo(i,$t(),t)&&(zt(),function(e,t,n,r,i,o){var s=At(e,t),a=t[11];if(null==r)Et(a)?a.removeAttribute(s,n,o):s.removeAttribute(n);else{var u=null==i?Sn(r):i(r,e.tagName||"",n);Et(a)?a.setAttribute(s,n,u,o):o?s.setAttributeNS(o,n,u):s.setAttribute(n,u)}}(ln(),i,e,t,n,r)),po}function go(e,t,n,r){return fo(e,$t(),n)?t+Sn(n)+r:mr}function yo(e,t,n,r,i,o,s,a){var u=jt(),l=zt(),c=e+20,h=l.firstCreatePass?function(e,t,n,r,i,o,s,a,u){var l=t.consts,c=Mr(t,n[6],e,0,s||null,Nt(l,a));$r(t,n,c,Nt(l,u)),cn(t,c);var h=c.tViews=Gr(2,-1,r,i,o,t.directiveRegistry,t.pipeRegistry,null,t.schemas,l),f=Zr(0,null,2,-1,null,null);return f.injectorIndex=c.injectorIndex,h.node=f,null!==t.queries&&(t.queries.template(t,c),h.queries=t.queries.embeddedTView(c)),c}(e,l,u,t,n,r,i,o,s):l.data[c];Bt(h,!1);var f=u[11].createComment("");Vi(l,u,f,h),sr(f,u),li(u,u[c]=si(f,u,f,h)),Ct(h)&&Lr(l,u,h),null!=s&&Br(u,h,a)}function _o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:ne.Default,n=jt();return null==n?Ue(e,t):jn(Lt(),n,me(e),t)}function mo(e,t,n){var r=jt();return fo(r,$t(),t)&&Wr(zt(),ln(),r,e,t,r[11],n,!1),mo}function Co(e,t,n,r,i){var o=i?"class":"style";yi(e,n,t.inputs[o],o,r)}function ko(e,t,n,r){var i=jt(),o=zt(),s=20+e,a=i[11],u=i[s]=Nr(t,a,Ht.lFrame.currentNamespace),l=o.firstCreatePass?function(e,t,n,r,i,o,s){var a=t.consts,u=Nt(a,o),l=Mr(t,n[6],e,3,i,u);return $r(t,n,l,Nt(a,s)),null!==l.attrs&&oo(l,l.attrs,!1),null!==l.mergedAttrs&&oo(l,l.mergedAttrs,!0),null!==t.queries&&t.queries.elementStart(t,l),l}(e,o,i,0,t,n,r):o.data[s];Bt(l,!0);var c=l.mergedAttrs;null!==c&&yn(a,u,c);var h=l.classes;null!==h&&Ri(a,u,h);var f=l.styles;null!==f&&Hi(a,u,f),Vi(o,i,u,l),0===Ht.lFrame.elementDepthCount&&sr(u,i),Ht.lFrame.elementDepthCount++,Ct(l)&&(Lr(o,i,l),Fr(o,l,i)),null!==r&&Br(i,l)}function bo(){var e=Lt();Ut()?Gt():Bt(e=e.parent,!1);var t=e;Ht.lFrame.elementDepthCount--;var n=zt();n.firstCreatePass&&(cn(n,e),_t(e)&&n.queries.elementEnd(e)),null!=t.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(t)&&Co(n,t,jt(),t.classesWithoutHost,!0),null!=t.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(t)&&Co(n,t,jt(),t.stylesWithoutHost,!1)}function wo(e,t,n,r){ko(e,t,n,r),bo()}function Eo(e,t,n){var r=jt(),i=zt(),o=e+20,s=i.firstCreatePass?function(e,t,n,r,i){var o=t.consts,s=Nt(o,r),a=Mr(t,n[6],e,4,"ng-container",s);return null!==s&&oo(a,s,!0),$r(t,n,a,Nt(o,i)),null!==t.queries&&t.queries.elementStart(t,a),a}(e,i,r,t,n):i.data[o];Bt(s,!0);var a=r[o]=r[11].createComment("");Vi(i,r,a,s),sr(a,r),Ct(s)&&(Lr(i,r,s),Fr(i,s,r)),null!=n&&Br(r,s)}function So(){var e=Lt(),t=zt();Ut()?Gt():Bt(e=e.parent,!1),t.firstCreatePass&&(cn(t,e),_t(e)&&t.queries.elementEnd(e))}function Io(){return jt()}function Oo(e){return!!e&&"function"==typeof e.then}function Ao(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=jt(),o=zt(),s=Lt();return function(e,t,n,r,i,o){var s=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,u=Ct(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=pi(t),h=!0;if(3===r.type){var f=At(r,t),d=a?a(f):rt,v=d.target||f,p=c.length,g=a?function(e){return a(It(e[r.index])).target}:r.index;if(Et(n)){var y=null;if(!a&&u&&(y=function(e,t,n,r){var i=e.cleanup;if(null!=i)for(var o=0;o<i.length-1;o+=2){var s=i[o];if(s===n&&i[o+1]===r){var a=t[7],u=i[o+2];return a.length>u?a[u]:null}"string"==typeof s&&(o+=2)}return null}(e,t,i,r.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,h=!1;else{o=To(r,t,o,!1);var _=n.listen(d.name||v,i,o);c.push(o,_),l&&l.push(i,g,p,p+1)}}else o=To(r,t,o,!0),v.addEventListener(i,o,s),c.push(o),l&&l.push(i,g,p,s)}var m,C=r.outputs;if(h&&null!==C&&(m=C[i])){var k=m.length;if(k)for(var b=0;b<k;b+=2){var w=t[m[b]][m[b+1]].subscribe(o),E=c.length;c.push(o,w),l&&l.push(i,r.index,E,-(E+1))}}}(o,i,i[11],s,e,t,n,r),Ao}function xo(e,t,n){try{return!1!==t(n)}catch(r){return gi(e,r),!1}}function To(e,t,n,r){return function i(o){if(o===Function)return n;var s=2&e.flags?Tt(e.index,t):t;0==(32&t[2])&&ci(s);for(var a=xo(t,n,o),u=i.__ngNextListenerFn__;u;)a=xo(t,u,o)&&a,u=u.__ngNextListenerFn__;return r&&!1===a&&(o.preventDefault(),o.returnValue=!1),a}}function Vo(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Ht.lFrame.contextLView=function(e,t){for(;e>0;)t=t[15],e--;return t}(e,Ht.lFrame.contextLView))[8]}(e)}function Do(e,t,n){return No(e,"",t,"",n),Do}function No(e,t,n,r,i){var o=jt(),s=go(o,t,n,r);return s!==mr&&Wr(zt(),ln(),o,e,s,o[11],i,!1),No}var Po=[];function Mo(e,t,n,r,i){for(var o=e[n+1],s=null===t,a=r?Or(o):xr(o),u=!1;0!==a&&(!1===u||s);){var l=e[a+1];Ho(e[a],t)&&(u=!0,e[a+1]=r?Vr(l):Ar(l)),a=r?Or(l):xr(l)}u&&(e[n+1]=r?Ar(o):Vr(o))}function Ho(e,t){return null===e||null==t||(Array.isArray(e)?e[1]:e)===t||!(!Array.isArray(e)||"string"!=typeof t)&&Xe(e,t)>=0}var Ro={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function jo(e){return e.substring(Ro.key,Ro.keyEnd)}function zo(e,t){var n=Ro.textEnd;return n===t?-1:(t=Ro.keyEnd=function(e,t,n){for(;t<n&&e.charCodeAt(t)>32;)t++;return t}(e,Ro.key=t,n),Fo(e,t,n))}function Fo(e,t,n){for(;t<n&&e.charCodeAt(t)<=32;)t++;return t}function Lo(e,t){return function(e,t,n,r){var i=jt(),o=zt(),s=Jt(2);o.firstUpdatePass&&Go(o,e,s,!0),t!==mr&&fo(i,s,t)&&Wo(o,o.data[an()+20],i,i[11],e,i[s+1]=function(e,t){return null==e||"object"==typeof e&&(e=pe(Yn(e))),e}(t),!0,s)}(e,t),Lo}function Bo(e,t){for(var n=function(e){return function(e){Ro.key=0,Ro.keyEnd=0,Ro.value=0,Ro.valueEnd=0,Ro.textEnd=e.length}(e),zo(e,Fo(e,0,Ro.textEnd))}(t);n>=0;n=zo(t,n))Ke(e,jo(t),!0)}function Uo(e,t){return t>=e.expandoStartIndex}function Go(e,t,n,r){var i=e.data;if(null===i[n+1]){var o=i[an()+20],s=Uo(e,n);Qo(o,r)&&null===t&&!s&&(t=!1),t=function(e,t,n,r){var i=function(e){var t=Ht.lFrame.currentDirectiveIndex;return-1===t?null:e[t]}(e),o=r?t.residualClasses:t.residualStyles;if(null===i)0===(r?t.classBindings:t.styleBindings)&&(n=qo(n=Zo(null,e,t,n,r),t.attrs,r),o=null);else{var s=t.directiveStylingLast;if(-1===s||e[s]!==i)if(n=Zo(i,e,t,n,r),null===o){var a=function(e,t,n){var r=n?t.classBindings:t.styleBindings;if(0!==xr(r))return e[Or(r)]}(e,t,r);void 0!==a&&Array.isArray(a)&&function(e,t,n,r){e[Or(n?t.classBindings:t.styleBindings)]=r}(e,t,r,a=qo(a=Zo(null,e,t,a[1],r),t.attrs,r))}else o=function(e,t,n){for(var r=void 0,i=t.directiveEnd,o=1+t.directiveStylingLast;o<i;o++)r=qo(r,e[o].hostAttrs,n);return qo(r,t.attrs,n)}(e,t,r)}return void 0!==o&&(r?t.residualClasses=o:t.residualStyles=o),n}(i,o,t,r),function(e,t,n,r,i,o){var s=o?t.classBindings:t.styleBindings,a=Or(s),u=xr(s);e[r]=n;var l,c=!1;if(Array.isArray(n)){var h=n;(null===(l=h[1])||Xe(h,l)>0)&&(c=!0)}else l=n;if(i)if(0!==u){var f=Or(e[a+1]);e[r+1]=Ir(f,a),0!==f&&(e[f+1]=Tr(e[f+1],r)),e[a+1]=131071&e[a+1]|r<<17}else e[r+1]=Ir(a,0),0!==a&&(e[a+1]=Tr(e[a+1],r)),a=r;else e[r+1]=Ir(u,0),0===a?a=r:e[u+1]=Tr(e[u+1],r),u=r;c&&(e[r+1]=Ar(e[r+1])),Mo(e,l,r,!0),Mo(e,l,r,!1),function(e,t,n,r,i){var o=i?e.residualClasses:e.residualStyles;null!=o&&"string"==typeof t&&Xe(o,t)>=0&&(n[r+1]=Vr(n[r+1]))}(t,l,e,r,o),s=Ir(a,u),o?t.classBindings=s:t.styleBindings=s}(i,o,t,n,s,r)}}function Zo(e,t,n,r,i){var o=null,s=n.directiveEnd,a=n.directiveStylingLast;for(-1===a?a=n.directiveStart:a++;a<s&&(r=qo(r,(o=t[a]).hostAttrs,i),o!==e);)a++;return null!==e&&(n.directiveStylingLast=a),r}function qo(e,t,n){var r=n?1:2,i=-1;if(null!==t)for(var o=0;o<t.length;o++){var s=t[o];"number"==typeof s?i=s:i===r&&(Array.isArray(e)||(e=void 0===e?[]:["",e]),Ke(e,s,!!n||t[++o]))}return void 0===e?null:e}function Wo(e,t,n,r,i,o,s,a){if(3===t.type){var u=e.data,l=u[a+1];Jo(1==(1&l)?$o(u,t,n,i,xr(l),s):void 0)||(Jo(o)||2==(2&l)&&(o=$o(u,null,n,i,a,s)),function(e,t,n,r,i){var o=Et(e);if(t)i?o?e.addClass(n,r):n.classList.add(r):o?e.removeClass(n,r):n.classList.remove(r);else{var s=-1==r.indexOf("-")?void 0:2;null==i?o?e.removeStyle(n,r,s):n.style.removeProperty(r):o?e.setStyle(n,r,i,s):n.style.setProperty(r,i)}}(r,s,Ot(an(),n),i,o))}}function $o(e,t,n,r,i,o){for(var s=null===t,a=void 0;i>0;){var u=e[i],l=Array.isArray(u),c=l?u[1]:u,h=null===c,f=n[i+1];f===mr&&(f=h?Po:void 0);var d=h?Ye(f,r):c===r?f:void 0;if(l&&!Jo(d)&&(d=Ye(u,r)),Jo(d)&&(a=d,s))return a;var v=e[i+1];i=s?Or(v):xr(v)}if(null!==t){var p=o?t.residualClasses:t.residualStyles;null!=p&&(a=Ye(p,r))}return a}function Jo(e){return void 0!==e}function Qo(e,t){return 0!=(e.flags&(t?16:32))}function Ko(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=jt(),r=zt(),i=e+20,o=r.firstCreatePass?Mr(r,n[6],e,3,null,null):r.data[i],s=n[i]=function(e,t){return Et(t)?t.createText(e):t.createTextNode(e)}(t,n[11]);Vi(r,n,s,o),Bt(o,!1)}function Yo(e){return Xo("",e,""),Yo}function Xo(e,t,n){var r=jt(),i=go(r,e,t,n);return i!==mr&&function(e,t,n){var r=Ot(t,e),i=e[11];Et(i)?i.setValue(r,n):r.textContent=n}(r,an(),i),Xo}function es(e,t,n){!function(e,t,n,r){var i=zt(),o=Jt(2);i.firstUpdatePass&&Go(i,null,o,!0);var s=jt();if(n!==mr&&fo(s,o,n)){var a=i.data[an()+20];if(Qo(a,!0)&&!Uo(i,o)){var u=a.classesWithoutHost;null!==u&&(n=ge(u,n||"")),Co(i,a,s,n,!0)}else!function(e,t,n,r,i,o,s,a){i===mr&&(i=Po);for(var u=0,l=0,c=0<i.length?i[0]:null,h=0<o.length?o[0]:null;null!==c||null!==h;){var f=u<i.length?i[u+1]:void 0,d=l<o.length?o[l+1]:void 0,v=null,p=void 0;c===h?(u+=2,l+=2,f!==d&&(v=h,p=d)):null===h||null!==c&&c<h?(u+=2,v=c):(l+=2,v=h,p=d),null!==v&&Wo(e,t,n,r,v,p,!0,a),c=u<i.length?i[u]:null,h=l<o.length?o[l]:null}}(i,a,s,s[11],s[o+1],s[o+1]=function(e,t,n){if(null==n||""===n)return Po;var r=[],i=Yn(n);if(Array.isArray(i))for(var o=0;o<i.length;o++)e(r,i[o],!0);else if("object"==typeof i)for(var s in i)i.hasOwnProperty(s)&&e(r,s,i[s]);else"string"==typeof i&&t(r,i);return r}(e,t,n),0,o)}}(Ke,Bo,go(jt(),e,t,n))}function ts(e,t){var n=Vt(e)[1],r=n.data.length-1;cn(n,{directiveStart:r,directiveEnd:r+1})}function ns(e){for(var t=Object.getPrototypeOf(e.type.prototype).constructor,n=!0,r=[e];t;){var i=void 0;if(kt(e))i=t.\u0275cmp||t.\u0275dir;else{if(t.\u0275cmp)throw new Error("Directives cannot inherit Components");i=t.\u0275dir}if(i){if(n){r.push(i);var o=e;o.inputs=rs(e.inputs),o.declaredInputs=rs(e.declaredInputs),o.outputs=rs(e.outputs);var s=i.hostBindings;s&&ss(e,s);var a=i.viewQuery,u=i.contentQueries;if(a&&is(e,a),u&&os(e,u),ie(e.inputs,i.inputs),ie(e.declaredInputs,i.declaredInputs),ie(e.outputs,i.outputs),kt(i)&&i.data.animation){var l=e.data;l.animation=(l.animation||[]).concat(i.data.animation)}o.afterContentChecked=o.afterContentChecked||i.afterContentChecked,o.afterContentInit=e.afterContentInit||i.afterContentInit,o.afterViewChecked=e.afterViewChecked||i.afterViewChecked,o.afterViewInit=e.afterViewInit||i.afterViewInit,o.doCheck=e.doCheck||i.doCheck,o.onDestroy=e.onDestroy||i.onDestroy,o.onInit=e.onInit||i.onInit}var c=i.features;if(c)for(var h=0;h<c.length;h++){var f=c[h];f&&f.ngInherit&&f(e),f===ns&&(n=!1)}}t=Object.getPrototypeOf(t)}!function(e){for(var t=0,n=null,r=e.length-1;r>=0;r--){var i=e[r];i.hostVars=t+=i.hostVars,i.hostAttrs=mn(i.hostAttrs,n=mn(n,i.hostAttrs))}}(r)}function rs(e){return e===rt?{}:e===it?[]:e}function is(e,t){var n=e.viewQuery;e.viewQuery=n?function(e,r){t(e,r),n(e,r)}:t}function os(e,t){var n=e.contentQueries;e.contentQueries=n?function(e,r,i){t(e,r,i),n(e,r,i)}:t}function ss(e,t){var n=e.hostBindings;e.hostBindings=n?function(e,r){t(e,r),n(e,r)}:t}var as=function(){function e(t,n,r){_classCallCheck(this,e),this.previousValue=t,this.currentValue=n,this.firstChange=r}return _createClass(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function us(e){e.type.prototype.ngOnChanges&&(e.setInput=ls,e.onChanges=function(){var e=cs(this),t=e&&e.current;if(t){var n=e.previous;if(n===rt)e.previous=t;else for(var r in t)n[r]=t[r];e.current=null,this.ngOnChanges(t)}})}function ls(e,t,n,r){var i=cs(e)||function(e,t){return e.__ngSimpleChanges__=t}(e,{previous:rt,current:null}),o=i.current||(i.current={}),s=i.previous,a=this.declaredInputs[n],u=s[a];o[a]=new as(u&&u.currentValue,t,s===rt),e[r]=t}function cs(e){return e.__ngSimpleChanges__||null}function hs(e,t,n,r,i){if(e=me(e),Array.isArray(e))for(var o=0;o<e.length;o++)hs(e[o],t,n,r,i);else{var s=zt(),a=jt(),u=no(e)?e:me(e.provide),l=Xi(e),c=Lt(),h=65535&c.providerIndexes,f=c.directiveStart,d=c.providerIndexes>>16;if(no(e)||!e.multi){var v=new gn(l,i,_o),p=vs(u,t,i?h:h+d,f);-1===p?(Rn(Nn(c,a),s,u),fs(s,e,t.length),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(v),a.push(v)):(n[p]=v,a[p]=v)}else{var g=vs(u,t,h+d,f),y=vs(u,t,h,h+d),_=g>=0&&n[g],m=y>=0&&n[y];if(i&&!m||!i&&!_){Rn(Nn(c,a),s,u);var C=function(e,t,n,r,i){var o=new gn(e,n,_o);return o.multi=[],o.index=t,o.componentProviders=0,ds(o,i,r&&!n),o}(i?gs:ps,n.length,i,r,l);!i&&m&&(n[y].providerFactory=C),fs(s,e,t.length,0),t.push(u),c.directiveStart++,c.directiveEnd++,i&&(c.providerIndexes+=65536),n.push(C),a.push(C)}else fs(s,e,g>-1?g:y,ds(n[i?y:g],l,!i&&r));!i&&r&&m&&n[y].componentProviders++}}}function fs(e,t,n,r){var i=no(t);if(i||t.useClass){var o=(t.useClass||t).prototype.ngOnDestroy;if(o){var s=e.destroyHooks||(e.destroyHooks=[]);if(!i&&t.multi){var a=s.indexOf(n);-1===a?s.push(n,[r,o]):s[a+1].push(r,o)}else s.push(n,o)}}}function ds(e,t,n){return n&&e.componentProviders++,e.multi.push(t)-1}function vs(e,t,n,r){for(var i=n;i<r;i++)if(t[i]===e)return i;return-1}function ps(e,t,n,r){return ys(this.multi,[])}function gs(e,t,n,r){var i,o=this.multi;if(this.providerFactory){var s=this.providerFactory.componentProviders,a=Ln(n,n[1],this.providerFactory.index,r);ys(o,i=a.slice(0,s));for(var u=s;u<a.length;u++)i.push(a[u])}else ys(o,i=[]);return i}function ys(e,t){for(var n=0;n<e.length;n++)t.push((0,e[n])());return t}function _s(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return function(n){n.providersResolver=function(n,r){return function(e,t,n){var r=zt();if(r.firstCreatePass){var i=kt(e);hs(n,r.data,r.blueprint,i,!0),hs(t,r.data,r.blueprint,i,!1)}}(n,r?r(e):e,t)}}}us.ngInherit=!0;var ms=function e(){_classCallCheck(this,e)},Cs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var t=Error("No component factory found for ".concat(pe(e),". Did you add it to @NgModule.entryComponents?"));return t.ngComponent=e,t}(e)}}]),e}(),ks=function(){var e=function e(){_classCallCheck(this,e)};return e.NULL=new Cs,e}(),bs=function(){var e=function e(t){_classCallCheck(this,e),this.nativeElement=t};return e.__NG_ELEMENT_ID__=function(){return ws(e)},e}(),ws=function(e){return Ui(e,Lt(),jt())},Es=function e(){_classCallCheck(this,e)},Ss=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Is=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return Os()},e}(),Os=function(){var e=jt(),t=Tt(Lt().index,e);return function(e){var t=e[11];if(Et(t))return t;throw new Error("Cannot inject Renderer2 when the application uses Renderer3!")}(gt(t)?t:e)},As=function(){var e=function e(){_classCallCheck(this,e)};return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return null}}),e}(),xs=new function e(t){_classCallCheck(this,e),this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}("10.0.2"),Ts=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return lo(e)}},{key:"create",value:function(e){return new Ds(e)}}]),e}(),Vs=function(e,t){return t},Ds=function(){function e(t){_classCallCheck(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||Vs}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)}},{key:"forEachOperation",value:function(e){for(var t=this._itHead,n=this._removalsHead,r=0,i=null;t||n;){var o=!n||t&&t.currentIndex<Hs(n,r,i)?t:n,s=Hs(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(t=t._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,l=a-r;if(u!=l){for(var c=0;c<u;c++){var h=c<i.length?i[c]:i[c]=0,f=h+c;l<=f&&f<u&&(i[c]=h+1)}i[o.previousIndex]=l-u}}s!==a&&e(o,s,a)}}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachMovedItem",value:function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"forEachIdentityChange",value:function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!lo(e))throw new Error("Error trying to diff '".concat(pe(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n,r,i,o=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=e[a],i=this._trackByFn(a,r),null!==o&&Object.is(o.trackById,i)?(s&&(o=this._verifyReinsertion(o,r,i,a)),Object.is(o.item,r)||this._addIdentityChange(o,r)):(o=this._mismatch(o,r,i,a),s=!0),o=o._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r,i=e[ao()]();!(r=i.next()).done;)t(r.value)}(e,(function(e){i=t._trackByFn(n,e),null!==o&&Object.is(o.trackById,i)?(s&&(o=t._verifyReinsertion(o,e,i,n)),Object.is(o.item,e)||t._addIdentityChange(o,e)):(o=t._mismatch(o,e,i,n),s=!0),o=o._next,n++})),this.length=n;return this._truncate(o),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e,t;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,t,n,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(Object.is(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,i,r)):e=this._addAfter(new Ns(t,n),i,r),e}},{key:"_verifyReinsertion",value:function(e,t,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_moveAfter",value:function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e}},{key:"_addAfter",value:function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Ms),this._linkedRecords.put(e),e.currentIndex=n,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e}},{key:"_addToMoves",value:function(e,t){return e.previousIndex===t||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ms),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),Ns=function e(t,n){_classCallCheck(this,e),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},Ps=function(){function e(){_classCallCheck(this,e),this._head=null,this._tail=null}return _createClass(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&Object.is(n.trackById,e))return n;return null}},{key:"remove",value:function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head}}]),e}(),Ms=function(){function e(){_classCallCheck(this,e),this.map=new Map}return _createClass(e,[{key:"put",value:function(e){var t=e.trackById,n=this.map.get(t);n||(n=new Ps,this.map.set(t,n)),n.add(e)}},{key:"get",value:function(e,t){var n=this.map.get(e);return n?n.get(e,t):null}},{key:"remove",value:function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function Hs(e,t,n){var r=e.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+t+i}var Rs=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"supports",value:function(e){return e instanceof Map||co(e)}},{key:"create",value:function(){return new js}}]),e}(),js=function(){function e(){_classCallCheck(this,e),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}return _createClass(e,[{key:"forEachItem",value:function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)}},{key:"forEachPreviousItem",value:function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)}},{key:"forEachChangedItem",value:function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)}},{key:"forEachAddedItem",value:function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)}},{key:"forEachRemovedItem",value:function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||co(e)))throw new Error("Error trying to diff '".concat(pe(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var i=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,i)}})),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var 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}},{key:"_insertBeforeOrAppend",value:function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null}},{key:"_getOrCreateRecordForKey",value:function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new zs(e);return this._records.set(e,o),o.currentValue=t,this._addToAdditions(o),o}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,t){Object.is(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach((function(n){return t(e[n],n)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),zs=function e(t){_classCallCheck(this,e),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},Fs=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t,n=this.factories.find((function(t){return t.supports(e)}));if(null!=n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'"))}}],[{key:"create",value:function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new te,new X]]}}}]),e}();return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return new e([new Ts])}}),e}(),Ls=function(){var e=function(){function e(t){_classCallCheck(this,e),this.factories=t}return _createClass(e,[{key:"find",value:function(e){var t=this.factories.find((function(t){return t.supports(e)}));if(t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)}},{key:"extend",value:function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new te,new X]]}}}]),e}();return e.\u0275prov=oe({token:e,providedIn:"root",factory:function(){return new e([new Rs])}}),e}(),Bs=[new Rs],Us=new Fs([new Ts]),Gs=new Ls(Bs),Zs=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return qs(e,bs)},e}(),qs=function(e,t){return function(e,t,n,r){return zi||(zi=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._declarationView=e,o._declarationTContainer=r,o.elementRef=i,o}return _createClass(n,[{key:"createEmbeddedView",value:function(e){var t=this._declarationTContainer.tViews,n=Pr(this._declarationView,t,e,16,null,t.node);n[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(n[19]=r.createEmbeddedView(t)),Hr(t,n,e),new Li(n)}}]),n}(e)),0===n.type?new zi(r,n,Ui(t,n,r)):null}(e,t,Lt(),jt())},Ws=function(){var e=function e(){_classCallCheck(this,e)};return e.__NG_ELEMENT_ID__=function(){return $s(e,bs)},e}(),$s=function(e,t){return function(e,t,n,r){var i;Fi||(Fi=function(e){_inherits(r,e);var n=_createSuper(r);function r(e,t,i){var o;return _classCallCheck(this,r),(o=n.call(this))._lContainer=e,o._hostTNode=t,o._hostView=i,o}return _createClass(r,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r}},{key:"createComponent",value:function(e,t,n,r,i){var o=n||this.parentInjector;if(!i&&null==e.ngModule&&o){var s=o.get(We,null);s&&(i=s)}var a=e.create(o,r,void 0,i);return this.insert(a.hostView,t),a}},{key:"insert",value:function(e,t){var n=e._lView,r=n[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),yt(n[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var o=n[3],s=new Fi(o,o[6],o[3]);s.detach(s.indexOf(e))}}var a=this._adjustIndex(t);return function(e,t,n,r){var i=10+r,o=n.length;r>0&&(n[i-1][4]=t),r<o-10?(t[4]=n[i],Je(n,10+r,t)):(n.push(t),t[4]=null),t[3]=n;var s=t[17];null!==s&&n!==s&&function(e,t){var n=e[9];t[16]!==t[3][3][16]&&(e[2]=!0),null===n?e[9]=[t]:n.push(t)}(s,t);var a=t[19];null!==a&&a.insertView(e),t[2]|=128}(r,n,this._lContainer,a),ki(r,n,!0,Di(a,this._lContainer)),e.attachToViewContainerRef(this),Je(this._lContainer[8],a,e),e}},{key:"move",value:function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,t)}},{key:"indexOf",value:function(e){var t=this._lContainer[8];return null!==t?t.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1);!function(e,t){var n=wi(e,t);n&&Ei(n[1],n)}(this._lContainer,t),Qe(this._lContainer[8],t)}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var t=this._adjustIndex(e,-1),n=wi(this._lContainer,t);return n&&null!=Qe(this._lContainer[8],t)?new Li(n):null}},{key:"_adjustIndex",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+t:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ui(t,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Gn(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Hn(this._hostTNode,this._hostView),t=En(e,this._hostView),n=function(e,t,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var r=n.parent.injectorIndex,i=n.parent;null!=i.parent&&r==i.parent.injectorIndex;)i=i.parent;return i}for(var o=wn(e),s=t,a=t[6];o>1;)a=(s=s[15])[6],o--;return a}(e,this._hostView,this._hostTNode);return kn(e)&&null!=n?new Gn(n,t):new Gn(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(e));var o=r[n.index];if(yt(o))i=o;else{var s;if(4===n.type)s=It(o);else if(s=r[11].createComment(""),bt(r)){var a=r[11],u=At(n,r);Oi(a,Ti(a,u),s,function(e,t){return Et(e)?e.nextSibling(t):t.nextSibling}(a,u))}else Vi(r[1],r,s,n);r[n.index]=i=si(o,r,s,n),li(r,i)}return new Fi(i,n,r)}(e,t,Lt(),jt())},Js={},Qs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).ngModule=e,r}return _createClass(n,[{key:"resolveComponentFactory",value:function(e){var t=dt(e);return new Xs(t,this.ngModule)}}]),n}(ks);function Ks(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var Ys=new Pe("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return On}}),Xs=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(_r).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return _createClass(n,[{key:"create",value:function(e,t,n,r){var i,o,s=(r=r||this.ngModule)?function(e,t){return{get:function(n,r,i){var o=e.get(n,Js,i);return o!==Js||r===Js?o:t.get(n,r,i)}}}(e,r.injector):e,a=s.get(Es,St),u=s.get(As,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",h=n?function(e,t,n){if(Et(e))return e.selectRootElement(t,n===nt.ShadowDom);var r="string"==typeof t?e.querySelector(t):t;return r.textContent="",r}(l,n,this.componentDef.encapsulation):Nr(c,a.createRenderer(null,this.componentDef),function(e){var t=e.toLowerCase();return"svg"===t?"http://www.w3.org/2000/svg":"math"===t?"http://www.w3.org/1998/MathML/":null}(c)),f=this.componentDef.onPush?576:528,d={components:[],scheduler:On,clean:vi,playerHandler:null,flags:0},v=Gr(0,-1,null,1,0,null,null,null,null,null),p=Pr(null,v,d,f,null,null,a,l,u,s);en(p,null);try{var g=function(e,t,n,r,i,o){var s=n[1];n[20]=e;var a=Mr(s,null,0,3,null,null),u=a.mergedAttrs=t.hostAttrs;null!==u&&(oo(a,u,!0),null!==e&&(yn(i,e,u),null!==a.classes&&Ri(i,e,a.classes),null!==a.styles&&Hi(i,e,a.styles)));var l=r.createRenderer(e,t),c=Pr(n,Ur(t),null,t.onPush?64:16,n[20],a,r,l,void 0);return s.firstCreatePass&&(Rn(Nn(a,n),s,t.type),Xr(s,a),ti(a,n.length,1)),li(n,c),n[20]=c}(h,this.componentDef,p,a,l);if(h)if(n)yn(l,h,["ng-version",xs.full]);else{var y=function(e){for(var t=[],n=[],r=1,i=2;r<e.length;){var o=e[r];if("string"==typeof o)2===i?""!==o&&t.push(o,e[++r]):8===i&&n.push(o);else{if(!vr(i))break;i=o}r++}return{attrs:t,classes:n}}(this.componentDef.selectors[0]),_=y.attrs,m=y.classes;_&&yn(l,h,_),m&&m.length>0&&Ri(l,h,m.join(" "))}if(o=xt(v,0),void 0!==t)for(var C=o.projection=[],k=0;k<this.ngContentSelectors.length;k++){var b=t[k];C.push(null!=b?Array.from(b):null)}i=function(e,t,n,r,i){var o=n[1],s=function(e,t,n){var r=Lt();e.firstCreatePass&&(n.providersResolver&&n.providersResolver(n),Yr(e,r,1),ni(e,t,n));var i=Ln(t,e,t.length-1,r);sr(i,t);var o=At(r,t);return o&&sr(o,t),i}(o,n,t);r.components.push(s),e[8]=s,i&&i.forEach((function(e){return e(s,t)})),t.contentQueries&&t.contentQueries(1,s,n.length-1);var a=Lt();if(o.firstCreatePass&&(null!==t.hostBindings||null!==t.hostAttrs)){un(a.index-20);var u=n[1];Jr(u,t),Qr(u,n,t.hostVars),Kr(t,s)}return s}(g,this.componentDef,p,d,[ts]),Hr(v,p,null)}finally{sn()}var w=new ea(this.componentType,i,Ui(bs,o,p),p,o);return v.node.child=o,w}},{key:"inputs",get:function(){return Ks(this.componentDef.inputs)}},{key:"outputs",get:function(){return Ks(this.componentDef.outputs)}}]),n}(ms),ea=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o,s){var a,u,l,c;return _classCallCheck(this,n),(a=t.call(this)).location=i,a._rootLView=o,a._tNode=s,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new Bi(o),u=o[1],l=o,null==(c=u.node)&&(u.node=c=Zr(0,null,2,-1,null,null)),l[6]=c,a.componentType=e,a}return _createClass(n,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Gn(this._tNode,this._rootLView)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}()),ta=void 0,na=["en",[["a","p"],["AM","PM"],ta],[["AM","PM"],ta,ta],[["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"]],ta,[["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"]],ta,[["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}",ta,"{1} 'at' {0}",ta],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],ra={};function ia(e){return e in ra||(ra[e]=Ie.ng&&Ie.ng.common&&Ie.ng.common.locales&&Ie.ng.common.locales[e]),ra[e]}var oa=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function sa(e){var t;null==(t=e)&&function(e,t,n,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(t," <=Actual]"))}(0,t),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var aa=new Map,ua=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;_classCallCheck(this,n),(i=t.call(this))._parent=r,i._bootstrapComponents=[],i.injector=_assertThisInitialized(i),i.destroyCbs=[],i.componentFactoryResolver=new Qs(_assertThisInitialized(i));var o=pt(e),s=e[Ve]||null;return s&&sa(s),i._bootstrapComponents=xn(o.bootstrap),i._r3Injector=Qi(e,r,[{provide:We,useValue:_assertThisInitialized(i)},{provide:ks,useValue:i.componentFactoryResolver}],pe(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return _createClass(n,[{key:"get",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:io.THROW_IF_NOT_FOUND,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ne.Default;return e===io||e===We||e===Me?this:this._r3Injector.get(e,t,n)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),n}(We),la=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).moduleType=e,null!==pt(e)&&function e(t){if(null!==t.\u0275mod.id){var n=t.\u0275mod.id;(function(e,t,n){if(t&&t!==n)throw new Error("Duplicate module registered for ".concat(e," - ").concat(pe(t)," vs ").concat(pe(t.name)))})(n,aa.get(n),t),aa.set(n,t)}var r=t.\u0275mod.imports;r instanceof Function&&(r=r()),r&&r.forEach((function(t){return e(t)}))}(e),r}return _createClass(n,[{key:"create",value:function(e){return new ua(this.moduleType,e)}}]),n}(function(){return function e(){_classCallCheck(this,e)}}());function ca(e,t,n,r){return function(e,t,n,r,i,o){var s=t+n;return fo(e,s,i)?ho(e,s+1,o?r.call(o,i):r(i)):da(e,s+1)}(jt(),Wt(),e,t,n,r)}function ha(e,t,n,r,i){return function(e,t,n,r,i,o,s){var a=t+n;return vo(e,a,i,o)?ho(e,a+2,s?r.call(s,i,o):r(i,o)):da(e,a+2)}(jt(),Wt(),e,t,n,r,i)}function fa(e,t,n,r,i,o){return va(jt(),Wt(),e,t,n,r,i,o)}function da(e,t){var n=e[t];return n===mr?void 0:n}function va(e,t,n,r,i,o,s,a){var u=t+n;return function(e,t,n,r,i){var o=vo(e,t,n,r);return fo(e,t+2,i)||o}(e,u,i,o,s)?ho(e,u+3,a?r.call(a,i,o,s):r(i,o,s)):da(e,u+3)}var pa=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return _classCallCheck(this,n),(e=t.call(this)).__isAsync=r,e}return _createClass(n,[{key:"emit",value:function(e){_get(_getPrototypeOf(n.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,t,r){var i,o=function(e){return null},s=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},t&&(o=this.__isAsync?function(e){setTimeout((function(){return t(e)}))}:function(e){t(e)}),r&&(s=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var a=_get(_getPrototypeOf(n.prototype),"subscribe",this).call(this,i,o,s);return e instanceof f&&e.add(a),a}}]),n}(I),ga=new Pe("Application Initializer"),ya=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,t){n.resolve=e,n.reject=t}))}return _createClass(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Oo(i)&&t.push(i)}Promise.all(t).then((function(){n()})).catch((function(t){e.reject(t)})),0===t.length&&n(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(ga,8))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),_a=new Pe("AppId"),ma={provide:_a,useFactory:function(){return"".concat(Ca()).concat(Ca()).concat(Ca())},deps:[]};function Ca(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ka=new Pe("Platform Initializer"),ba=new Pe("Platform ID"),wa=new Pe("appBootstrapListener"),Ea=function(){var e=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Sa=new Pe("LocaleId"),Ia=new Pe("DefaultCurrencyCode"),Oa=function e(t,n){_classCallCheck(this,e),this.ngModuleFactory=t,this.componentFactories=n},Aa=function(e){return new la(e)},xa=Aa,Ta=function(e){return Promise.resolve(Aa(e))},Va=function(e){var t=Aa(e),n=xn(pt(e).declarations).reduce((function(e,t){var n=dt(t);return n&&e.push(new Xs(n)),e}),[]);return new Oa(t,n)},Da=Va,Na=function(e){return Promise.resolve(Va(e))},Pa=function(){var e=function(){function e(){_classCallCheck(this,e),this.compileModuleSync=xa,this.compileModuleAsync=Ta,this.compileModuleAndAllComponentsSync=Da,this.compileModuleAndAllComponentsAsync=Na}return _createClass(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Ma=Promise.resolve(0);function Ha(e){"undefined"==typeof Zone?Ma.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Ra=function(){function e(t){var n,r,i=t.enableLongStackTrace,o=void 0!==i&&i,s=t.shouldCoalesceEventChangeDetection,a=void 0!==s&&s;if(_classCallCheck(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new pa(!1),this.onMicrotaskEmpty=new pa(!1),this.onStable=new pa(!1),this.onError=new pa(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),o&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=a,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Ie.requestAnimationFrame,t=Ie.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&t){var n=e[Zone.__symbol__("OriginalDelegate")];n&&(e=n);var r=t[Zone.__symbol__("OriginalDelegate")];r&&(t=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:t}}().nativeRequestAnimationFrame,r=!!(n=this).shouldCoalesceEventChangeDetection&&n.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Ie,(function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){e.lastRequestAnimationFrameId=-1,La(e),Fa(e)}),void 0,(function(){}),(function(){}))),e.fakeTopEventTask.invoke()})),La(e))}(n)},n._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(e,t,i,o,s,a){try{return Ba(n),e.invokeTask(i,o,s,a)}finally{r&&"eventTask"===o.type&&r(),Ua(n)}},onInvoke:function(e,t,r,i,o,s,a){try{return Ba(n),e.invoke(r,i,o,s,a)}finally{Ua(n)}},onHasTask:function(e,t,r,i){e.hasTask(r,i),t===r&&("microTask"==i.change?(n._hasPendingMicrotasks=i.microTask,La(n),Fa(n)):"macroTask"==i.change&&(n.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,t,r,i){return e.handleError(r,i),n.runOutsideAngular((function(){return n.onError.emit(i)})),!1}})}return _createClass(e,[{key:"run",value:function(e,t,n){return this._inner.run(e,t,n)}},{key:"runTask",value:function(e,t,n,r){var i=this._inner,o=i.scheduleEventTask("NgZoneEvent: "+r,e,za,ja,ja);try{return i.runTask(o,t,n)}finally{i.cancelTask(o)}}},{key:"runGuarded",value:function(e,t,n){return this._inner.runGuarded(e,t,n)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function ja(){}var za={};function Fa(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((function(){return e.onStable.emit(null)}))}finally{e.isStable=!0}}}function La(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Ba(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Ua(e){e._nesting--,Fa(e)}var Ga,Za=function(){function e(){_classCallCheck(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new pa,this.onMicrotaskEmpty=new pa,this.onStable=new pa,this.onError=new pa}return _createClass(e,[{key:"run",value:function(e,t,n){return e.apply(t,n)}},{key:"runGuarded",value:function(e,t,n){return e.apply(t,n)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,t,n,r){return e.apply(t,n)}}]),e}(),qa=function(){var e=function(){function e(t){var n=this;_classCallCheck(this,e),this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),t.run((function(){n.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return _createClass(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Ra.assertNotInAngularZone(),Ha((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Ha((function(){for(;0!==e._callbacks.length;){var t=e._callbacks.pop();clearTimeout(t.timeoutId),t.doneCb(e._didWork)}e._didWork=!1}));else{var t=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(t)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,t,n){var r=this,i=-1;t&&t>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),t)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:n})}},{key:"whenStable",value:function(e,t,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(e,t,n),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,t,n){return[]}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(Ra))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),Wa=function(){var e=function(){function e(){_classCallCheck(this,e),this._applications=new Map,$a.addToWindow(this)}return _createClass(e,[{key:"registerApplication",value:function(e,t){this._applications.set(e,t)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return $a.findTestabilityInTree(this,e,t)}}]),e}();return e.\u0275fac=function(t){return new(t||e)},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}(),$a=new(function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,t,n){return null}}]),e}()),Ja=new Pe("AllowMultipleToken");function Qa(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+t,i=new Pe(r);return function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],o=Ka();if(!o||o.injector.get(Ja,!1))if(e)e(n.concat(t).concat({provide:i,useValue:!0}));else{var s=n.concat(t).concat({provide:i,useValue:!0},{provide:Gi,useValue:"platform"});!function(e){if(Ga&&!Ga.destroyed&&!Ga.injector.get(Ja,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ga=e.get(Ya);var t=e.get(ka,null);t&&t.forEach((function(e){return e()}))}(io.create({providers:s,name:r}))}return function(e){var t=Ka();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}(i)}}function Ka(){return Ga&&!Ga.destroyed?Ga:null}var Ya=function(){var e=function(){function e(t){_classCallCheck(this,e),this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return _createClass(e,[{key:"bootstrapModuleFactory",value:function(e,t){var n,r,i=this,o=(n=t?t.ngZone:void 0,r=t&&t.ngZoneEventCoalescing||!1,"noop"===n?new Za:("zone.js"===n?void 0:n)||new Ra({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:r})),s=[{provide:Ra,useValue:o}];return o.run((function(){var t=io.create({providers:s,parent:i.injector,name:e.moduleType.name}),n=e.create(t),r=n.injector.get(Qn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return nu(i._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,t,r){try{var o=((s=n.injector.get(ya)).runInitializers(),s.donePromise.then((function(){return sa(n.injector.get(Sa,"en-US")||"en-US"),i._moduleDoBootstrap(n),n})));return Oo(o)?o.catch((function(n){throw t.runOutsideAngular((function(){return e.handleError(n)})),n})):o}catch(a){throw t.runOutsideAngular((function(){return e.handleError(a)})),a}var s}(r,o)}))}},{key:"bootstrapModule",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=Xa({},n);return function(e,t,n){var r=new la(n);return Promise.resolve(r)}(0,0,e).then((function(e){return t.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var t=e.injector.get(tu);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return t.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(pe(e.instance.constructor),' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.'));e.instance.ngDoBootstrap(t)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(t){return new(t||e)(Ue(io))},e.\u0275prov=oe({token:e,factory:e.\u0275fac}),e}();function Xa(e,t){return Array.isArray(t)?t.reduce(Xa,e):Object.assign(Object.assign({},e),t)}var eu,tu=((eu=function(){function e(t,n,r,i,o,s){var a=this;_classCallCheck(this,e),this._zone=t,this._console=n,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=s,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var u=new C((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new C((function(e){var t;a._zone.runOutsideAngular((function(){t=a._zone.onStable.subscribe((function(){Ra.assertNotInAngularZone(),Ha((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Ra.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){t.unsubscribe(),n.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r,i=Number.POSITIVE_INFINITY,o=null,s=t[t.length-1];return(r=s)&&"function"==typeof r.schedule?(o=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(i=t.pop())):"number"==typeof s&&(i=t.pop()),null===o&&1===t.length&&t[0]instanceof C?t[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return function e(t,n){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(i){return i.pipe(e((function(e,r){return z(t(e,r)).pipe(M((function(t,i){return n(e,t,r,i)})))}),r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new F(t,r))})}(B,e)}(i)(function(e,t){return t?j(e,t):new C(x(e))}(t,o))}(u,l.pipe((function(e){return U()((t=J,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,W);return r.source=e,r.subjectFactory=n,r})(e));var t})))}return _createClass(e,[{key:"bootstrap",value:function(e,t){var n,r=this;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.");n=e instanceof ms?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var i=n.isBoundToModule?void 0:this._injector.get(We),o=n.create(io.NULL,[],t||n.selector,i);o.onDestroy((function(){r._unloadComponent(o)}));var s=o.injector.get(qa,null);return s&&o.injector.get(Wa).registerApplication(o.location.nativeElement,s),this._loadComponent(o),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),o}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var t,n=_createForOfIteratorHelper(this._views);try{for(n.s();!(t=n.n()).done;)t.value.detectChanges()}catch(o){n.e(o)}finally{n.f()}if(this._enforceNoNewChanges){var r,i=_createForOfIteratorHelper(this._views);try{for(i.s();!(r=i.n()).done;)r.value.checkNoChanges()}catch(o){i.e(o)}finally{i.f()}}}catch(s){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(s)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var t=e;this._views.push(t),t.attachToAppRef(this)}},{key:"detachView",value:function(e){var t=e;nu(this._views,t),t.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(wa,[]).concat(this._bootstrapListeners).forEach((function(t){return t(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),nu(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||eu)(Ue(Ra),Ue(Ea),Ue(io),Ue(Qn),Ue(ks),Ue(ya))},eu.\u0275prov=oe({token:eu,factory:eu.\u0275fac}),eu);function nu(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var ru=Qa(null,"core",[{provide:ba,useValue:"unknown"},{provide:Ya,deps:[io]},{provide:Wa,deps:[]},{provide:Ea,deps:[]}]),iu=[{provide:tu,useClass:tu,deps:[Ra,Ea,io,Qn,ks,ya]},{provide:Ys,deps:[Ra],useFactory:function(e){var t=[];return e.onStable.subscribe((function(){for(;t.length;)t.pop()()})),function(e){t.push(e)}}},{provide:ya,useClass:ya,deps:[[new X,ga]]},{provide:Pa,useClass:Pa,deps:[]},ma,{provide:Fs,useFactory:function(){return Us},deps:[]},{provide:Ls,useFactory:function(){return Gs},deps:[]},{provide:Sa,useFactory:function(e){return sa(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new Y(Sa),new X,new te]]},{provide:Ia,useValue:"USD"}],ou=function(){var e=function e(t){_classCallCheck(this,e)};return e.\u0275mod=ct({type:e}),e.\u0275inj=se({factory:function(t){return new(t||e)(Ue(tu))},providers:iu}),e}(),su=null;function au(){return su}var uu,lu,cu,hu,fu=new Pe("DocumentToken"),du=function(e){return e[e.Zero=0]="Zero",e[e.One=1]="One",e[e.Two=2]="Two",e[e.Few=3]="Few",e[e.Many=4]="Many",e[e.Other=5]="Other",e}({}),vu=function e(){_classCallCheck(this,e)},pu=((lu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this)).locale=e,r}return _createClass(n,[{key:"getPluralCategory",value:function(e,t){switch(function(e){return function(e){var t=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),n=ia(t);if(n)return n;var r=t.split("-")[0];if(n=ia(r))return n;if("en"===r)return na;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[oa.PluralCase]}(t||this.locale)(e)){case du.Zero:return"zero";case du.One:return"one";case du.Two:return"two";case du.Few:return"few";case du.Many:return"many";default:return"other"}}}]),n}(vu)).\u0275fac=function(e){return new(e||lu)(Ue(Sa))},lu.\u0275prov=oe({token:lu,factory:lu.\u0275fac}),lu),gu=((uu=function(){function e(t,n,r,i){_classCallCheck(this,e),this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=r,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._iterableDiffer){var e=this._iterableDiffer.diff(this._rawClass);e&&this._applyIterableChanges(e)}else if(this._keyValueDiffer){var t=this._keyValueDiffer.diff(this._rawClass);t&&this._applyKeyValueChanges(t)}}},{key:"_applyKeyValueChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachChangedItem((function(e){return t._toggleClass(e.key,e.currentValue)})),e.forEachRemovedItem((function(e){e.previousValue&&t._toggleClass(e.key,!1)}))}},{key:"_applyIterableChanges",value:function(e){var t=this;e.forEachAddedItem((function(e){if("string"!=typeof e.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+pe(e.item));t._toggleClass(e.item,!0)})),e.forEachRemovedItem((function(e){return t._toggleClass(e.item,!1)}))}},{key:"_applyClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!0)})):Object.keys(e).forEach((function(n){return t._toggleClass(n,!!e[n])})))}},{key:"_removeClasses",value:function(e){var t=this;e&&(Array.isArray(e)||e instanceof Set?e.forEach((function(e){return t._toggleClass(e,!1)})):Object.keys(e).forEach((function(e){return t._toggleClass(e,!1)})))}},{key:"_toggleClass",value:function(e,t){var n=this;(e=e.trim())&&e.split(/\s+/g).forEach((function(e){t?n._renderer.addClass(n._ngEl.nativeElement,e):n._renderer.removeClass(n._ngEl.nativeElement,e)}))}},{key:"klass",set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)}},{key:"ngClass",set:function(e){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof e?e.split(/\s+/):e,this._rawClass&&(lo(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())}}]),e}()).\u0275fac=function(e){return new(e||uu)(_o(Fs),_o(Ls),_o(bs),_o(Is))},uu.\u0275dir=ft({type:uu,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),uu),yu=function(){function e(t,n,r,i){_classCallCheck(this,e),this.$implicit=t,this.ngForOf=n,this.index=r,this.count=i}return _createClass(e,[{key:"first",get:function(){return 0===this.index}},{key:"last",get:function(){return this.index===this.count-1}},{key:"even",get:function(){return this.index%2==0}},{key:"odd",get:function(){return!this.even}}]),e}(),_u=((cu=function(){function e(t,n,r){_classCallCheck(this,e),this._viewContainer=t,this._template=n,this._differs=r,this._ngForOf=null,this._ngForOfDirty=!0,this._differ=null}return _createClass(e,[{key:"ngDoCheck",value:function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var e=this._ngForOf;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(r){throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((t=e).name||typeof t,"'. NgFor only supports binding to Iterables such as Arrays."))}}var t;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}}},{key:"_applyChanges",value:function(e){var t=this,n=[];e.forEachOperation((function(e,r,i){if(null==e.previousIndex){var o=t._viewContainer.createEmbeddedView(t._template,new yu(null,t._ngForOf,-1,-1),null===i?void 0:i),s=new mu(e,o);n.push(s)}else if(null==i)t._viewContainer.remove(null===r?void 0:r);else if(null!==r){var a=t._viewContainer.get(r);t._viewContainer.move(a,i);var u=new mu(e,a);n.push(u)}}));for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var i=0,o=this._viewContainer.length;i<o;i++){var s=this._viewContainer.get(i);s.context.index=i,s.context.count=o,s.context.ngForOf=this._ngForOf}e.forEachIdentityChange((function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item}))}},{key:"_perViewChange",value:function(e,t){e.context.$implicit=t.item}},{key:"ngForOf",set:function(e){this._ngForOf=e,this._ngForOfDirty=!0}},{key:"ngForTrackBy",set:function(e){tr()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received ".concat(JSON.stringify(e),". See https://angular.io/api/common/NgForOf#change-propagation for more information.")),this._trackByFn=e},get:function(){return this._trackByFn}},{key:"ngForTemplate",set:function(e){e&&(this._template=e)}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||cu)(_o(Ws),_o(Zs),_o(Fs))},cu.\u0275dir=ft({type:cu,selectors:[["","ngFor","","ngForOf",""]],inputs:{ngForOf:"ngForOf",ngForTrackBy:"ngForTrackBy",ngForTemplate:"ngForTemplate"}}),cu),mu=function e(t,n){_classCallCheck(this,e),this.record=t,this.view=n},Cu=((hu=function(){function e(t,n){_classCallCheck(this,e),this._viewContainer=t,this._context=new ku,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return _createClass(e,[{key:"_updateView",value:function(){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)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){bu("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){bu("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,t){return!0}}]),e}()).\u0275fac=function(e){return new(e||hu)(_o(Ws),_o(Zs))},hu.\u0275dir=ft({type:hu,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),hu),ku=function e(){_classCallCheck(this,e),this.$implicit=null,this.ngIf=null};function bu(e,t){if(t&&!t.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(pe(t),"'."))}var wu,Eu,Su,Iu=((Su=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"transform",value:function(t,n,r){if(null==t)return t;if(!this.supports(t))throw function(e,t){return Error("InvalidPipeArgument: '".concat(t,"' for pipe '").concat(pe(e),"'"))}(e,t);return t.slice(n,r)}},{key:"supports",value:function(e){return"string"==typeof e||Array.isArray(e)}}]),e}()).\u0275fac=function(e){return new(e||Su)},Su.\u0275pipe={type:(Eu={name:"slice",type:Su,pure:!1}).type,name:Eu.name,factory:null,pure:!1!==Eu.pure,onDestroy:Eu.type.prototype.ngOnDestroy||null},Su),Ou=((wu=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:wu}),wu.\u0275inj=se({factory:function(e){return new(e||wu)},providers:[{provide:vu,useClass:pu}]}),wu);function Au(e,t){return new C((function(n){var r=e.length;if(0!==r)for(var i=new Array(r),o=0,s=0,a=function(a){var u=z(e[a]),l=!1;n.add(u.subscribe({next:function(e){l||(l=!0,s++),i[a]=e},error:function(e){return n.error(e)},complete:function(){++o!==r&&l||(s===r&&n.next(t?t.reduce((function(e,t,n){return e[t]=i[n],e}),{}):i),n.complete())}}))},u=0;u<r;u++)a(u);else n.complete()}))}var xu,Tu,Vu,Du,Nu=new Pe("NgValueAccessor"),Pu={provide:Nu,useExisting:_e((function(){return Mu})),multi:!0},Mu=((xu=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"checked",e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||xu)(_o(Is),_o(bs))},xu.\u0275dir=ft({type:xu,selectors:[["input","type","checkbox","formControlName",""],["input","type","checkbox","formControl",""],["input","type","checkbox","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target.checked)}))("blur",(function(){return t.onTouched()}))},features:[_s([Pu])]}),xu),Hu={provide:Nu,useExisting:_e((function(){return ju})),multi:!0},Ru=new Pe("CompositionEventMode"),ju=((Du=function(){function e(t,n,r){var i;_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._compositionMode=r,this.onChange=function(e){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=au()?au().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=e}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_handleInput",value:function(e){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(e)}},{key:"_compositionStart",value:function(){this._composing=!0}},{key:"_compositionEnd",value:function(e){this._composing=!1,this._compositionMode&&this.onChange(e)}}]),e}()).\u0275fac=function(e){return new(e||Du)(_o(Is),_o(bs),_o(Ru,8))},Du.\u0275dir=ft({type:Du,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(e,t){1&e&&Ao("input",(function(e){return t._handleInput(e.target.value)}))("blur",(function(){return t.onTouched()}))("compositionstart",(function(){return t._compositionStart()}))("compositionend",(function(e){return t._compositionEnd(e.target.value)}))},features:[_s([Hu])]}),Du),zu=((Vu=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"reset",value:function(e){this.control&&this.control.reset(e)}},{key:"hasError",value:function(e,t){return!!this.control&&this.control.hasError(e,t)}},{key:"getError",value:function(e,t){return this.control?this.control.getError(e,t):null}},{key:"value",get:function(){return this.control?this.control.value:null}},{key:"valid",get:function(){return this.control?this.control.valid:null}},{key:"invalid",get:function(){return this.control?this.control.invalid:null}},{key:"pending",get:function(){return this.control?this.control.pending:null}},{key:"disabled",get:function(){return this.control?this.control.disabled:null}},{key:"enabled",get:function(){return this.control?this.control.enabled:null}},{key:"errors",get:function(){return this.control?this.control.errors:null}},{key:"pristine",get:function(){return this.control?this.control.pristine:null}},{key:"dirty",get:function(){return this.control?this.control.dirty:null}},{key:"touched",get:function(){return this.control?this.control.touched:null}},{key:"status",get:function(){return this.control?this.control.status:null}},{key:"untouched",get:function(){return this.control?this.control.untouched:null}},{key:"statusChanges",get:function(){return this.control?this.control.statusChanges:null}},{key:"valueChanges",get:function(){return this.control?this.control.valueChanges:null}},{key:"path",get:function(){return null}}]),e}()).\u0275fac=function(e){return new(e||Vu)},Vu.\u0275dir=ft({type:Vu}),Vu),Fu=((Tu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"formDirective",get:function(){return null}},{key:"path",get:function(){return null}}]),n}(zu)).\u0275fac=function(e){return Lu(e||Tu)},Tu.\u0275dir=ft({type:Tu,features:[ns]}),Tu),Lu=qn(Fu);function Bu(){throw new Error("unimplemented")}var Uu,Gu=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e;return _classCallCheck(this,n),(e=t.apply(this,arguments))._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return _createClass(n,[{key:"validator",get:function(){return Bu()}},{key:"asyncValidator",get:function(){return Bu()}}]),n}(zu),Zu=((Uu=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return n}(function(){function e(t){_classCallCheck(this,e),this._cd=t}return _createClass(e,[{key:"ngClassUntouched",get:function(){return!!this._cd.control&&this._cd.control.untouched}},{key:"ngClassTouched",get:function(){return!!this._cd.control&&this._cd.control.touched}},{key:"ngClassPristine",get:function(){return!!this._cd.control&&this._cd.control.pristine}},{key:"ngClassDirty",get:function(){return!!this._cd.control&&this._cd.control.dirty}},{key:"ngClassValid",get:function(){return!!this._cd.control&&this._cd.control.valid}},{key:"ngClassInvalid",get:function(){return!!this._cd.control&&this._cd.control.invalid}},{key:"ngClassPending",get:function(){return!!this._cd.control&&this._cd.control.pending}}]),e}())).\u0275fac=function(e){return new(e||Uu)(_o(Gu,2))},Uu.\u0275dir=ft({type:Uu,selectors:[["","formControlName",""],["","ngModel",""],["","formControl",""]],hostVars:14,hostBindings:function(e,t){2&e&&Lo("ng-untouched",t.ngClassUntouched)("ng-touched",t.ngClassTouched)("ng-pristine",t.ngClassPristine)("ng-dirty",t.ngClassDirty)("ng-valid",t.ngClassValid)("ng-invalid",t.ngClassInvalid)("ng-pending",t.ngClassPending)},features:[ns]}),Uu);function qu(e){return null==e||0===e.length}function Wu(e){return null!=e&&"number"==typeof e.length}var $u=new Pe("NgValidators"),Ju=new Pe("NgAsyncValidators"),Qu=/^(?=.{1,254}$)(?=.{1,64}@)[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-zA-Z0-9!#$%&'*+/=?^_`{|}~-]+)*@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/,Ku=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"min",value:function(e){return function(t){if(qu(t.value)||qu(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n<e?{min:{min:e,actual:t.value}}:null}}},{key:"max",value:function(e){return function(t){if(qu(t.value)||qu(e))return null;var n=parseFloat(t.value);return!isNaN(n)&&n>e?{max:{max:e,actual:t.value}}:null}}},{key:"required",value:function(e){return qu(e.value)?{required:!0}:null}},{key:"requiredTrue",value:function(e){return!0===e.value?null:{required:!0}}},{key:"email",value:function(e){return qu(e.value)||Qu.test(e.value)?null:{email:!0}}},{key:"minLength",value:function(e){return function(t){return qu(t.value)||!Wu(t.value)?null:t.value.length<e?{minlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"maxLength",value:function(e){return function(t){return Wu(t.value)&&t.value.length>e?{maxlength:{requiredLength:e,actualLength:t.value.length}}:null}}},{key:"pattern",value:function(t){return t?("string"==typeof t?(r="","^"!==t.charAt(0)&&(r+="^"),r+=t,"$"!==t.charAt(t.length-1)&&(r+="$"),n=new RegExp(r)):(r=t.toString(),n=t),function(e){if(qu(e.value))return null;var t=e.value;return n.test(t)?null:{pattern:{requiredPattern:r,actualValue:t}}}):e.nullValidator;var n,r}},{key:"nullValidator",value:function(e){return null}},{key:"compose",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return el(function(e,t){return t.map((function(t){return t(e)}))}(e,t))}}},{key:"composeAsync",value:function(e){if(!e)return null;var t=e.filter(Yu);return 0==t.length?null:function(e){return function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(1===t.length){var r=t[0];if(u(r))return Au(r,null);if(l(r)&&Object.getPrototypeOf(r)===Object.prototype){var i=Object.keys(r);return Au(i.map((function(e){return r[e]})),i)}}if("function"==typeof t[t.length-1]){var o=t.pop();return Au(t=1===t.length&&u(t[0])?t[0]:t,null).pipe(M((function(e){return o.apply(void 0,_toConsumableArray(e))})))}return Au(t,null)}(function(e,t){return t.map((function(t){return t(e)}))}(e,t).map(Xu)).pipe(M(el))}}}]),e}();function Yu(e){return null!=e}function Xu(e){var t,n=Oo(e)?z(e):e;if(!(t=n)||"function"!=typeof t.subscribe)throw new Error("Expected validator to return Promise or Observable.");return n}function el(e){var t={};return e.forEach((function(e){t=null!=e?Object.assign(Object.assign({},t),e):t})),0===Object.keys(t).length?null:t}function tl(e){return e.validate?function(t){return e.validate(t)}:e}function nl(e){return e.validate?function(t){return e.validate(t)}:e}var rl,il,ol,sl,al={provide:Nu,useExisting:_e((function(){return ul})),multi:!0},ul=((rl=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==e?"":e)}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||rl)(_o(Is),_o(bs))},rl.\u0275dir=ft({type:rl,selectors:[["input","type","number","formControlName",""],["input","type","number","formControl",""],["input","type","number","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[_s([al])]}),rl),ll={provide:Nu,useExisting:_e((function(){return hl})),multi:!0},cl=((ol=function(){function e(){_classCallCheck(this,e),this._accessors=[]}return _createClass(e,[{key:"add",value:function(e,t){this._accessors.push([e,t])}},{key:"remove",value:function(e){for(var t=this._accessors.length-1;t>=0;--t)if(this._accessors[t][1]===e)return void this._accessors.splice(t,1)}},{key:"select",value:function(e){var t=this;this._accessors.forEach((function(n){t._isSameGroup(n,e)&&n[1]!==e&&n[1].fireUncheck(e.value)}))}},{key:"_isSameGroup",value:function(e,t){return!!e[0].control&&e[0]._parent===t._control._parent&&e[1].name===t.name}}]),e}()).\u0275fac=function(e){return new(e||ol)},ol.\u0275prov=oe({token:ol,factory:ol.\u0275fac}),ol),hl=((il=function(){function e(t,n,r,i){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._registry=r,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return _createClass(e,[{key:"ngOnInit",value:function(){this._control=this._injector.get(Gu),this._checkName(),this._registry.add(this._control,this)}},{key:"ngOnDestroy",value:function(){this._registry.remove(this)}},{key:"writeValue",value:function(e){this._state=e===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)}},{key:"registerOnChange",value:function(e){var t=this;this._fn=e,this.onChange=function(){e(t.value),t._registry.select(t)}}},{key:"fireUncheck",value:function(e){this.writeValue(e)}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_checkName",value:function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)}},{key:"_throwNameError",value:function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')}}]),e}()).\u0275fac=function(e){return new(e||il)(_o(Is),_o(bs),_o(cl),_o(io))},il.\u0275dir=ft({type:il,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(){return t.onChange()}))("blur",(function(){return t.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[_s([ll])]}),il),fl={provide:Nu,useExisting:_e((function(){return dl})),multi:!0},dl=((sl=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this.onChange=function(e){},this.onTouched=function(){}}return _createClass(e,[{key:"writeValue",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(e))}},{key:"registerOnChange",value:function(e){this.onChange=function(t){e(""==t?null:parseFloat(t))}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}}]),e}()).\u0275fac=function(e){return new(e||sl)(_o(Is),_o(bs))},sl.\u0275dir=ft({type:sl,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target.value)}))("input",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},features:[_s([fl])]}),sl),vl='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',pl='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',gl={provide:Nu,useExisting:_e((function(){return Cl})),multi:!0};function yl(e,t){return null==e?""+t:(t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var _l,ml,Cl=((ml=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return _createClass(e,[{key:"writeValue",value:function(e){this.value=e;var t=this._getOptionId(e);null==t&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=yl(t,e);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){t.value=t._getOptionValue(n),e(t.value)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(){return(this._idCounter++).toString()}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r),e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t):e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||ml)(_o(Is),_o(bs))},ml.\u0275dir=ft({type:ml,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target.value)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[_s([gl])]}),ml),kl=((_l=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption())}return _createClass(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._select._optionMap.set(this.id,e),this._setElementValue(yl(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._setElementValue(e),this._select&&this._select.writeValue(this._select.value)}}]),e}()).\u0275fac=function(e){return new(e||_l)(_o(bs),_o(Is),_o(Cl,9))},_l.\u0275dir=ft({type:_l,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),_l),bl={provide:Nu,useExisting:_e((function(){return Il})),multi:!0};function wl(e,t){return null==e?""+t:("string"==typeof t&&(t="'".concat(t,"'")),t&&"object"==typeof t&&(t="Object"),"".concat(e,": ").concat(t).slice(0,50))}var El,Sl,Il=((Sl=function(){function e(t,n){_classCallCheck(this,e),this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(e){},this.onTouched=function(){},this._compareWith=Object.is}return _createClass(e,[{key:"writeValue",value:function(e){var t,n=this;if(this.value=e,Array.isArray(e)){var r=e.map((function(e){return n._getOptionId(e)}));t=function(e,t){e._setSelected(r.indexOf(t.toString())>-1)}}else t=function(e,t){e._setSelected(!1)};this._optionMap.forEach(t)}},{key:"registerOnChange",value:function(e){var t=this;this.onChange=function(n){var r=[];if(void 0!==n.selectedOptions)for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=t._getOptionValue(s.value);r.push(a)}else for(var u=n.options,l=0;l<u.length;l++){var c=u.item(l);if(c.selected){var h=t._getOptionValue(c.value);r.push(h)}}t.value=r,e(r)}}},{key:"registerOnTouched",value:function(e){this.onTouched=e}},{key:"setDisabledState",value:function(e){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",e)}},{key:"_registerOption",value:function(e){var t=(this._idCounter++).toString();return this._optionMap.set(t,e),t}},{key:"_getOptionId",value:function(e){for(var t=0,n=Array.from(this._optionMap.keys());t<n.length;t++){var r=n[t];if(this._compareWith(this._optionMap.get(r)._value,e))return r}return null}},{key:"_getOptionValue",value:function(e){var t=function(e){return e.split(":")[0]}(e);return this._optionMap.has(t)?this._optionMap.get(t)._value:e}},{key:"compareWith",set:function(e){if("function"!=typeof e)throw new Error("compareWith must be a function, but received "+JSON.stringify(e));this._compareWith=e}}]),e}()).\u0275fac=function(e){return new(e||Sl)(_o(Is),_o(bs))},Sl.\u0275dir=ft({type:Sl,selectors:[["select","multiple","","formControlName",""],["select","multiple","","formControl",""],["select","multiple","","ngModel",""]],hostBindings:function(e,t){1&e&&Ao("change",(function(e){return t.onChange(e.target)}))("blur",(function(){return t.onTouched()}))},inputs:{compareWith:"compareWith"},features:[_s([bl])]}),Sl),Ol=((El=function(){function e(t,n,r){_classCallCheck(this,e),this._element=t,this._renderer=n,this._select=r,this._select&&(this.id=this._select._registerOption(this))}return _createClass(e,[{key:"_setElementValue",value:function(e){this._renderer.setProperty(this._element.nativeElement,"value",e)}},{key:"_setSelected",value:function(e){this._renderer.setProperty(this._element.nativeElement,"selected",e)}},{key:"ngOnDestroy",value:function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))}},{key:"ngValue",set:function(e){null!=this._select&&(this._value=e,this._setElementValue(wl(this.id,e)),this._select.writeValue(this._select.value))}},{key:"value",set:function(e){this._select?(this._value=e,this._setElementValue(wl(this.id,e)),this._select.writeValue(this._select.value)):this._setElementValue(e)}}]),e}()).\u0275fac=function(e){return new(e||El)(_o(bs),_o(Is),_o(Il,9))},El.\u0275dir=ft({type:El,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),El);function Al(e,t){return[].concat(_toConsumableArray(t.path),[e])}function xl(e,t){e||Vl(t,"Cannot find control with"),t.valueAccessor||Vl(t,"No value accessor for form control with"),e.validator=Ku.compose([e.validator,t.validator]),e.asyncValidator=Ku.composeAsync([e.asyncValidator,t.asyncValidator]),t.valueAccessor.writeValue(e.value),function(e,t){t.valueAccessor.registerOnChange((function(n){e._pendingValue=n,e._pendingChange=!0,e._pendingDirty=!0,"change"===e.updateOn&&Tl(e,t)}))}(e,t),function(e,t){e.registerOnChange((function(e,n){t.valueAccessor.writeValue(e),n&&t.viewToModelUpdate(e)}))}(e,t),function(e,t){t.valueAccessor.registerOnTouched((function(){e._pendingTouched=!0,"blur"===e.updateOn&&e._pendingChange&&Tl(e,t),"submit"!==e.updateOn&&e.markAsTouched()}))}(e,t),t.valueAccessor.setDisabledState&&e.registerOnDisabledChange((function(e){t.valueAccessor.setDisabledState(e)})),t._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))})),t._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange((function(){return e.updateValueAndValidity()}))}))}function Tl(e,t){e._pendingDirty&&e.markAsDirty(),e.setValue(e._pendingValue,{emitModelToViewChange:!1}),t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1}function Vl(e,t){var n;throw n=e.path.length>1?"path: '".concat(e.path.join(" -> "),"'"):e.path[0]?"name: '".concat(e.path,"'"):"unspecified name attribute",new Error("".concat(t," ").concat(n))}function Dl(e){return null!=e?Ku.compose(e.map(tl)):null}function Nl(e){return null!=e?Ku.composeAsync(e.map(nl)):null}var Pl=[Mu,dl,ul,Cl,Il,hl];function Ml(e){var t=Rl(e)?e.validators:e;return Array.isArray(t)?Dl(t):t||null}function Hl(e,t){var n=Rl(t)?t.asyncValidators:e;return Array.isArray(n)?Nl(n):n||null}function Rl(e){return null!=e&&!Array.isArray(e)&&"object"==typeof e}var jl,zl,Fl,Ll,Bl,Ul,Gl,Zl,ql,Wl,$l=function(){function e(t,n){_classCallCheck(this,e),this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return _createClass(e,[{key:"setValidators",value:function(e){this.validator=Ml(e)}},{key:"setAsyncValidators",value:function(e){this.asyncValidator=Hl(e)}},{key:"clearValidators",value:function(){this.validator=null}},{key:"clearAsyncValidators",value:function(){this.asyncValidator=null}},{key:"markAsTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!0,this._parent&&!e.onlySelf&&this._parent.markAsTouched(e)}},{key:"markAllAsTouched",value:function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(e){return e.markAllAsTouched()}))}},{key:"markAsUntouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=!1,this._pendingTouched=!1,this._forEachChild((function(e){e.markAsUntouched({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"markAsDirty",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!1,this._parent&&!e.onlySelf&&this._parent.markAsDirty(e)}},{key:"markAsPristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!0,this._pendingDirty=!1,this._forEachChild((function(e){e.markAsPristine({onlySelf:!0})})),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"markAsPending",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.status="PENDING",!1!==e.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!e.onlySelf&&this._parent.markAsPending(e)}},{key:"disable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(t){t.disable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this._updateValue(),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!0)}))}},{key:"enable",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this._parentMarkedDirty(e.onlySelf);this.status="VALID",this._forEachChild((function(t){t.enable(Object.assign(Object.assign({},e),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent}),this._updateAncestors(Object.assign(Object.assign({},e),{skipPristineCheck:t})),this._onDisabledChange.forEach((function(e){return e(!1)}))}},{key:"_updateAncestors",value:function(e){this._parent&&!e.onlySelf&&(this._parent.updateValueAndValidity(e),e.skipPristineCheck||this._parent._updatePristine(),this._parent._updateTouched())}},{key:"setParent",value:function(e){this._parent=e}},{key:"updateValueAndValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(e.emitEvent)),!1!==e.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!e.onlySelf&&this._parent.updateValueAndValidity(e)}},{key:"_updateTreeValidity",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{emitEvent:!0};this._forEachChild((function(t){return t._updateTreeValidity(e)})),this.updateValueAndValidity({onlySelf:!0,emitEvent:e.emitEvent})}},{key:"_setInitialStatus",value:function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"}},{key:"_runValidator",value:function(){return this.validator?this.validator(this):null}},{key:"_runAsyncValidator",value:function(e){var t=this;if(this.asyncValidator){this.status="PENDING";var n=Xu(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe((function(n){return t.setErrors(n,{emitEvent:e})}))}}},{key:"_cancelExistingSubscription",value:function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()}},{key:"setErrors",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.errors=e,this._updateControlsErrors(!1!==t.emitEvent)}},{key:"get",value:function(e){return function(e,t,n){if(null==t)return null;if(Array.isArray(t)||(t=t.split(".")),Array.isArray(t)&&0===t.length)return null;var r=e;return t.forEach((function(e){r=r instanceof Ql?r.controls.hasOwnProperty(e)?r.controls[e]:null:r instanceof Kl&&r.at(e)||null})),r}(this,e)}},{key:"getError",value:function(e,t){var n=t?this.get(t):this;return n&&n.errors?n.errors[e]:null}},{key:"hasError",value:function(e,t){return!!this.getError(e,t)}},{key:"_updateControlsErrors",value:function(e){this.status=this._calculateStatus(),e&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(e)}},{key:"_initObservables",value:function(){this.valueChanges=new pa,this.statusChanges=new pa}},{key:"_calculateStatus",value:function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"}},{key:"_anyControlsHaveStatus",value:function(e){return this._anyControls((function(t){return t.status===e}))}},{key:"_anyControlsDirty",value:function(){return this._anyControls((function(e){return e.dirty}))}},{key:"_anyControlsTouched",value:function(){return this._anyControls((function(e){return e.touched}))}},{key:"_updatePristine",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.pristine=!this._anyControlsDirty(),this._parent&&!e.onlySelf&&this._parent._updatePristine(e)}},{key:"_updateTouched",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.touched=this._anyControlsTouched(),this._parent&&!e.onlySelf&&this._parent._updateTouched(e)}},{key:"_isBoxedValue",value:function(e){return"object"==typeof e&&null!==e&&2===Object.keys(e).length&&"value"in e&&"disabled"in e}},{key:"_registerOnCollectionChange",value:function(e){this._onCollectionChange=e}},{key:"_setUpdateStrategy",value:function(e){Rl(e)&&null!=e.updateOn&&(this._updateOn=e.updateOn)}},{key:"_parentMarkedDirty",value:function(e){return!e&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()}},{key:"parent",get:function(){return this._parent}},{key:"valid",get:function(){return"VALID"===this.status}},{key:"invalid",get:function(){return"INVALID"===this.status}},{key:"pending",get:function(){return"PENDING"==this.status}},{key:"disabled",get:function(){return"DISABLED"===this.status}},{key:"enabled",get:function(){return"DISABLED"!==this.status}},{key:"dirty",get:function(){return!this.pristine}},{key:"untouched",get:function(){return!this.touched}},{key:"updateOn",get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"}},{key:"root",get:function(){for(var e=this;e._parent;)e=e._parent;return e}}]),e}(),Jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,i=arguments.length>1?arguments[1]:void 0,o=arguments.length>2?arguments[2]:void 0;return _classCallCheck(this,n),(e=t.call(this,Ml(i),Hl(o,i)))._onChange=[],e._applyFormState(r),e._setUpdateStrategy(i),e.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),e._initObservables(),e}return _createClass(n,[{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.value=this._pendingValue=e,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach((function(e){return e(t.value,!1!==n.emitViewToModelChange)})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.setValue(e,t)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._applyFormState(e),this.markAsPristine(t),this.markAsUntouched(t),this.setValue(this.value,t),this._pendingChange=!1}},{key:"_updateValue",value:function(){}},{key:"_anyControls",value:function(e){return!1}},{key:"_allControlsDisabled",value:function(){return this.disabled}},{key:"registerOnChange",value:function(e){this._onChange.push(e)}},{key:"_clearChangeFns",value:function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}}},{key:"registerOnDisabledChange",value:function(e){this._onDisabledChange.push(e)}},{key:"_forEachChild",value:function(e){}},{key:"_syncPendingControls",value:function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))}},{key:"_applyFormState",value:function(e){this._isBoxedValue(e)?(this.value=this._pendingValue=e.value,e.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=e}}]),n}($l),Ql=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"registerControl",value:function(e,t){return this.controls[e]?this.controls[e]:(this.controls[e]=t,t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange),t)}},{key:"addControl",value:function(e,t){this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"removeControl",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),delete this.controls[e],t&&this.registerControl(e,t),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"contains",value:function(e){return this.controls.hasOwnProperty(e)&&this.controls[e].enabled}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),Object.keys(e).forEach((function(r){t._throwIfControlMissing(r),t.controls[r].setValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};Object.keys(e).forEach((function(r){t.controls[r]&&t.controls[r].patchValue(e[r],{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this._reduceChildren({},(function(e,t,n){return e[n]=t instanceof Jl?t.value:t.getRawValue(),e}))}},{key:"_syncPendingControls",value:function(){var e=this._reduceChildren(!1,(function(e,t){return!!t._syncPendingControls()||e}));return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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[e])throw new Error("Cannot find form control with name: ".concat(e,"."))}},{key:"_forEachChild",value:function(e){var t=this;Object.keys(this.controls).forEach((function(n){return e(t.controls[n],n)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){t.setParent(e),t._registerOnCollectionChange(e._onCollectionChange)}))}},{key:"_updateValue",value:function(){this.value=this._reduceValue()}},{key:"_anyControls",value:function(e){for(var t=0,n=Object.keys(this.controls);t<n.length;t++){var r=n[t],i=this.controls[r];if(this.contains(r)&&e(i))return!0}return!1}},{key:"_reduceValue",value:function(){var e=this;return this._reduceChildren({},(function(t,n,r){return(n.enabled||e.disabled)&&(t[r]=n.value),t}))}},{key:"_reduceChildren",value:function(e,t){var n=e;return this._forEachChild((function(e,r){n=t(n,e,r)})),n}},{key:"_allControlsDisabled",value:function(){for(var e=0,t=Object.keys(this.controls);e<t.length;e++){var n=t[e];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control with name: '".concat(n,"'."))}))}}]),n}($l),Kl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this,Ml(r),Hl(i,r))).controls=e,o._initObservables(),o._setUpdateStrategy(r),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return _createClass(n,[{key:"at",value:function(e){return this.controls[e]}},{key:"push",value:function(e){this.controls.push(e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"insert",value:function(e,t){this.controls.splice(e,0,t),this._registerControl(t),this.updateValueAndValidity()}},{key:"removeAt",value:function(e){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),this.updateValueAndValidity()}},{key:"setControl",value:function(e,t){this.controls[e]&&this.controls[e]._registerOnCollectionChange((function(){})),this.controls.splice(e,1),t&&(this.controls.splice(e,0,t),this._registerControl(t)),this.updateValueAndValidity(),this._onCollectionChange()}},{key:"setValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._checkAllValuesPresent(e),e.forEach((function(e,r){t._throwIfControlMissing(r),t.at(r).setValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"patchValue",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.forEach((function(e,r){t.at(r)&&t.at(r).patchValue(e,{onlySelf:!0,emitEvent:n.emitEvent})})),this.updateValueAndValidity(n)}},{key:"reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._forEachChild((function(n,r){n.reset(e[r],{onlySelf:!0,emitEvent:t.emitEvent})})),this._updatePristine(t),this._updateTouched(t),this.updateValueAndValidity(t)}},{key:"getRawValue",value:function(){return this.controls.map((function(e){return e instanceof Jl?e.value:e.getRawValue()}))}},{key:"clear",value:function(){this.controls.length<1||(this._forEachChild((function(e){return e._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())}},{key:"_syncPendingControls",value:function(){var e=this.controls.reduce((function(e,t){return!!t._syncPendingControls()||e}),!1);return e&&this.updateValueAndValidity({onlySelf:!0}),e}},{key:"_throwIfControlMissing",value:function(e){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(e))throw new Error("Cannot find form control at index "+e)}},{key:"_forEachChild",value:function(e){this.controls.forEach((function(t,n){e(t,n)}))}},{key:"_updateValue",value:function(){var e=this;this.value=this.controls.filter((function(t){return t.enabled||e.disabled})).map((function(e){return e.value}))}},{key:"_anyControls",value:function(e){return this.controls.some((function(t){return t.enabled&&e(t)}))}},{key:"_setUpControls",value:function(){var e=this;this._forEachChild((function(t){return e._registerControl(t)}))}},{key:"_checkAllValuesPresent",value:function(e){this._forEachChild((function(t,n){if(void 0===e[n])throw new Error("Must supply a value for form control at index: ".concat(n,"."))}))}},{key:"_allControlsDisabled",value:function(){var e,t=_createForOfIteratorHelper(this.controls);try{for(t.s();!(e=t.n()).done;){if(e.value.enabled)return!1}}catch(n){t.e(n)}finally{t.f()}return this.controls.length>0||this.disabled}},{key:"_registerControl",value:function(e){e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange)}},{key:"length",get:function(){return this.controls.length}}]),n}($l),Yl={provide:Fu,useExisting:_e((function(){return ec}))},Xl=Promise.resolve(null),ec=((zl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).submitted=!1,i._directives=[],i.ngSubmit=new pa,i.form=new Ql({},Dl(e),Nl(r)),i}return _createClass(n,[{key:"ngAfterViewInit",value:function(){this._setUpdateStrategy()}},{key:"addControl",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);e.control=n.registerControl(e.name,e.control),xl(e.control,e),e.control.updateValueAndValidity({emitEvent:!1}),t._directives.push(e)}))}},{key:"getControl",value:function(e){return this.form.get(e.path)}},{key:"removeControl",value:function(e){var t=this;Xl.then((function(){var n,r,i,o=t._findContainer(e.path);o&&o.removeControl(e.name),n=t._directives,r=e,(i=n.indexOf(r))>-1&&n.splice(i,1)}))}},{key:"addFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path),r=new Ql({});(function(e,t){null==e&&Vl(t,"Cannot find control with"),e.validator=Ku.compose([e.validator,t.validator]),e.asyncValidator=Ku.composeAsync([e.asyncValidator,t.asyncValidator])})(r,e),n.registerControl(e.name,r),r.updateValueAndValidity({emitEvent:!1})}))}},{key:"removeFormGroup",value:function(e){var t=this;Xl.then((function(){var n=t._findContainer(e.path);n&&n.removeControl(e.name)}))}},{key:"getFormGroup",value:function(e){return this.form.get(e.path)}},{key:"updateModel",value:function(e,t){var n=this;Xl.then((function(){n.form.get(e.path).setValue(t)}))}},{key:"setValue",value:function(e){this.control.setValue(e)}},{key:"onSubmit",value:function(e){return this.submitted=!0,t=this._directives,this.form._syncPendingControls(),t.forEach((function(e){var t=e.control;"submit"===t.updateOn&&t._pendingChange&&(e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1)})),this.ngSubmit.emit(e),!1;var t}},{key:"onReset",value:function(){this.resetForm()}},{key:"resetForm",value:function(e){this.form.reset(e),this.submitted=!1}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)}},{key:"_findContainer",value:function(e){return e.pop(),e.length?this.form.get(e):this.form}},{key:"formDirective",get:function(){return this}},{key:"control",get:function(){return this.form}},{key:"path",get:function(){return[]}},{key:"controls",get:function(){return this.form.controls}}]),n}(Fu)).\u0275fac=function(e){return new(e||zl)(_o($u,10),_o(Ju,10))},zl.\u0275dir=ft({type:zl,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(e,t){1&e&&Ao("submit",(function(e){return t.onSubmit(e)}))("reset",(function(){return t.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[_s([Yl]),ns]}),zl),tc=((jl=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"ngOnInit",value:function(){this._checkParentType(),this.formDirective.addFormGroup(this)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeFormGroup(this)}},{key:"_checkParentType",value:function(){}},{key:"control",get:function(){return this.formDirective.getFormGroup(this)}},{key:"path",get:function(){return Al(null==this.name?this.name:this.name.toString(),this._parent)}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._validators)}},{key:"asyncValidator",get:function(){return Nl(this._asyncValidators)}}]),n}(Fu)).\u0275fac=function(e){return nc(e||jl)},jl.\u0275dir=ft({type:jl,features:[ns]}),jl),nc=qn(tc),rc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"modelParentException",value:function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')}},{key:"formGroupNameException",value:function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n ").concat(pl))}},{key:"missingNameException",value:function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')}},{key:"modelGroupParentException",value:function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n ".concat(vl,"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n ").concat(pl))}}]),e}(),ic={provide:Fu,useExisting:_e((function(){return oc}))},oc=((Fl=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i){var o;return _classCallCheck(this,n),(o=t.call(this))._parent=e,o._validators=r,o._asyncValidators=i,o}return _createClass(n,[{key:"_checkParentType",value:function(){this._parent instanceof n||this._parent instanceof ec||rc.modelGroupParentException()}}]),n}(tc)).\u0275fac=function(e){return new(e||Fl)(_o(Fu,5),_o($u,10),_o(Ju,10))},Fl.\u0275dir=ft({type:Fl,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[_s([ic]),ns]}),Fl),sc={provide:Gu,useExisting:_e((function(){return uc}))},ac=Promise.resolve(null),uc=((Ul=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;return _classCallCheck(this,n),(s=t.call(this)).control=new Jl,s._registered=!1,s.update=new pa,s._parent=e,s._rawValidators=r||[],s._rawAsyncValidators=i||[],s.valueAccessor=function(e,t){if(!t)return null;Array.isArray(t)||Vl(e,"Value accessor was not provided as an array for form control with");var n=void 0,r=void 0,i=void 0;return t.forEach((function(t){var o;t.constructor===ju?n=t:(o=t,Pl.some((function(e){return o.constructor===e}))?(r&&Vl(e,"More than one built-in value accessor matches form control with"),r=t):(i&&Vl(e,"More than one custom value accessor matches form control with"),i=t))})),i||r||n||(Vl(e,"No valid value accessor for form control with"),null)}(_assertThisInitialized(s),o),s}return _createClass(n,[{key:"ngOnChanges",value:function(e){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in e&&this._updateDisabled(e),function(e,t){if(!e.hasOwnProperty("model"))return!1;var n=e.model;return!!n.isFirstChange()||!Object.is(t,n.currentValue)}(e,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)}},{key:"ngOnDestroy",value:function(){this.formDirective&&this.formDirective.removeControl(this)}},{key:"viewToModelUpdate",value:function(e){this.viewModel=e,this.update.emit(e)}},{key:"_setUpControl",value:function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0}},{key:"_setUpdateStrategy",value:function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)}},{key:"_isStandalone",value:function(){return!this._parent||!(!this.options||!this.options.standalone)}},{key:"_setUpStandalone",value:function(){xl(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})}},{key:"_checkForErrors",value:function(){this._isStandalone()||this._checkParentType(),this._checkName()}},{key:"_checkParentType",value:function(){!(this._parent instanceof oc)&&this._parent instanceof tc?rc.formGroupNameException():this._parent instanceof oc||this._parent instanceof ec||rc.modelParentException()}},{key:"_checkName",value:function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||rc.missingNameException()}},{key:"_updateValue",value:function(e){var t=this;ac.then((function(){t.control.setValue(e,{emitViewToModelChange:!1})}))}},{key:"_updateDisabled",value:function(e){var t=this,n=e.isDisabled.currentValue,r=""===n||n&&"false"!==n;ac.then((function(){r&&!t.control.disabled?t.control.disable():!r&&t.control.disabled&&t.control.enable()}))}},{key:"path",get:function(){return this._parent?Al(this.name,this._parent):[this.name]}},{key:"formDirective",get:function(){return this._parent?this._parent.formDirective:null}},{key:"validator",get:function(){return Dl(this._rawValidators)}},{key:"asyncValidator",get:function(){return Nl(this._rawAsyncValidators)}}]),n}(Gu)).\u0275fac=function(e){return new(e||Ul)(_o(Fu,9),_o($u,10),_o(Ju,10),_o(Nu,10))},Ul.\u0275dir=ft({type:Ul,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[_s([sc]),ns,us]}),Ul),lc=((Bl=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Bl}),Bl.\u0275inj=se({factory:function(e){return new(e||Bl)}}),Bl),cc=((Ll=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Ll}),Ll.\u0275inj=se({factory:function(e){return new(e||Ll)},providers:[cl],imports:[lc]}),Ll),hc=function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.apply(this,arguments)}return _createClass(n,[{key:"getProperty",value:function(e,t){return e[t]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}}},{key:"dispatchEvent",value:function(e,t){e.dispatchEvent(t)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var t,n=fc||(fc=document.querySelector("base"))?fc.getAttribute("href"):null;return null==n?null:(t=n,Gl||(Gl=document.createElement("a")),Gl.setAttribute("href",t),"/"===Gl.pathname.charAt(0)?Gl.pathname:"/"+Gl.pathname)}},{key:"resetBaseElement",value:function(){fc=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(e){return function(e,t){t=encodeURIComponent(t);var n,r=_createForOfIteratorHelper(e.split(";"));try{for(r.s();!(n=r.n()).done;){var i=n.value,o=i.indexOf("="),s=_slicedToArray(-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],2),a=s[0],u=s[1];if(a.trim()===t)return decodeURIComponent(u)}}catch(l){r.e(l)}finally{r.f()}return null}(document.cookie,e)}}],[{key:"makeCurrent",value:function(){var e;e=new n,su||(su=e)}}]),n}(function(e){_inherits(n,e);var t=_createSuper(n);function n(){return _classCallCheck(this,n),t.call(this)}return _createClass(n,[{key:"supportsDOMEvents",value:function(){return!0}}]),n}(function(){return function e(){_classCallCheck(this,e)}}())),fc=null,dc=new Pe("TRANSITION_ID"),vc=[{provide:ga,useFactory:function(e,t,n){return function(){n.get(ya).donePromise.then((function(){var n=au();Array.prototype.slice.apply(t.querySelectorAll("style[ng-transition]")).filter((function(t){return t.getAttribute("ng-transition")===e})).forEach((function(e){return n.remove(e)}))}))}},deps:[dc,fu,io],multi:!0}],pc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"addToWindow",value:function(e){Ie.getAngularTestability=function(t){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},Ie.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Ie.getAllAngularRootElements=function(){return e.getAllRootElements()},Ie.frameworkStabilizers||(Ie.frameworkStabilizers=[]),Ie.frameworkStabilizers.push((function(e){var t=Ie.getAllAngularTestabilities(),n=t.length,r=!1,i=function(t){r=r||t,0==--n&&e(r)};t.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?au().isShadowRoot(t)?this.findTestabilityInTree(e,t.host,!0):this.findTestabilityInTree(e,t.parentElement,!0):null}}],[{key:"init",value:function(){var t;t=new e,$a=t}}]),e}(),gc=new Pe("EventManagerPlugins"),yc=((Zl=function(){function e(t,n){var r=this;_classCallCheck(this,e),this._zone=n,this._eventNameToPlugin=new Map,t.forEach((function(e){return e.manager=r})),this._plugins=t.slice().reverse()}return _createClass(e,[{key:"addEventListener",value:function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)}},{key:"addGlobalEventListener",value:function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||Zl)(Ue(gc),Ue(Ra))},Zl.\u0275prov=oe({token:Zl,factory:Zl.\u0275fac}),Zl),_c=function(){function e(t){_classCallCheck(this,e),this._doc=t}return _createClass(e,[{key:"addGlobalEventListener",value:function(e,t,n){var r=au().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(t));return this.addEventListener(r,t,n)}}]),e}(),mc=((Wl=function(){function e(){_classCallCheck(this,e),this._stylesSet=new Set}return _createClass(e,[{key:"addStyles",value:function(e){var t=this,n=new Set;e.forEach((function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))})),this.onStylesAdded(n)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Wl)},Wl.\u0275prov=oe({token:Wl,factory:Wl.\u0275fac}),Wl),Cc=((ql=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){var r;return _classCallCheck(this,n),(r=t.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return _createClass(n,[{key:"_addStylesToHost",value:function(e,t){var n=this;e.forEach((function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var t=this;this._hostNodes.forEach((function(n){return t._addStylesToHost(e,n)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return au().remove(e)}))}}]),n}(mc)).\u0275fac=function(e){return new(e||ql)(Ue(fu))},ql.\u0275prov=oe({token:ql,factory:ql.\u0275fac}),ql),kc={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/"},bc=/%COMP%/g;function wc(e,t,n){for(var r=0;r<t.length;r++){var i=t[r];Array.isArray(i)?wc(e,i,n):(i=i.replace(bc,e),n.push(i))}return n}function Ec(e){return function(t){if("__ngUnwrap__"===t)return e;!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var Sc,Ic,Oc,Ac,xc=((Sc=function(){function e(t,n,r){_classCallCheck(this,e),this.eventManager=t,this.sharedStylesHost=n,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new Tc(t)}return _createClass(e,[{key:"createRenderer",value:function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case nt.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Vc(this.eventManager,this.sharedStylesHost,t,this.appId),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case nt.Native:case nt.ShadowDom:return new Dc(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=wc(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Sc)(Ue(yc),Ue(Cc),Ue(_a))},Sc.\u0275prov=oe({token:Sc,factory:Sc.\u0275fac}),Sc),Tc=function(){function e(t){_classCallCheck(this,e),this.eventManager=t,this.data=Object.create(null)}return _createClass(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,t){return t?document.createElementNS(kc[t]||t,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,t){e.appendChild(t)}},{key:"insertBefore",value:function(e,t,n){e&&e.insertBefore(t,n)}},{key:"removeChild",value:function(e,t){e&&e.removeChild(t)}},{key:"selectRootElement",value:function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'.concat(e,'" did not match any elements'));return t||(n.textContent=""),n}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,t,n,r){if(r){t=r+":"+t;var i=kc[r];i?e.setAttributeNS(i,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)}},{key:"removeAttribute",value:function(e,t,n){if(n){var r=kc[n];r?e.removeAttributeNS(r,t):e.removeAttribute("".concat(n,":").concat(t))}else e.removeAttribute(t)}},{key:"addClass",value:function(e,t){e.classList.add(t)}},{key:"removeClass",value:function(e,t){e.classList.remove(t)}},{key:"setStyle",value:function(e,t,n,r){r&Ss.DashCase?e.style.setProperty(t,n,r&Ss.Important?"important":""):e.style[t]=n}},{key:"removeStyle",value:function(e,t,n){n&Ss.DashCase?e.style.removeProperty(t):e.style[t]=""}},{key:"setProperty",value:function(e,t,n){e[t]=n}},{key:"setValue",value:function(e,t){e.nodeValue=t}},{key:"listen",value:function(e,t,n){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Ec(n)):this.eventManager.addEventListener(e,t,Ec(n))}}]),e}(),Vc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;_classCallCheck(this,n),(s=t.call(this,e)).component=i;var a,u=wc(o+"-"+i.id,i.styles,[]);return r.addStyles(u),s.contentAttr="_ngcontent-%COMP%".replace(bc,o+"-"+i.id),s.hostAttr=(a=o+"-"+i.id,"_nghost-%COMP%".replace(bc,a)),s}return _createClass(n,[{key:"applyToHost",value:function(e){_get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,t){var r=_get(_getPrototypeOf(n.prototype),"createElement",this).call(this,e,t);return _get(_getPrototypeOf(n.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),n}(Tc),Dc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r,i,o){var s;_classCallCheck(this,n),(s=t.call(this,e)).sharedStylesHost=r,s.hostEl=i,s.component=o,s.shadowRoot=o.encapsulation===nt.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),s.sharedStylesHost.addHost(s.shadowRoot);for(var a=wc(o.id,o.styles,[]),u=0;u<a.length;u++){var l=document.createElement("style");l.textContent=a[u],s.shadowRoot.appendChild(l)}return s}return _createClass(n,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"insertBefore",value:function(e,t,r){return _get(_getPrototypeOf(n.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),t,r)}},{key:"removeChild",value:function(e,t){return _get(_getPrototypeOf(n.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),t)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(_get(_getPrototypeOf(n.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),n}(Tc),Nc=((Ic=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,t,n){var r=this;return e.addEventListener(t,n,!1),function(){return r.removeEventListener(e,t,n)}}},{key:"removeEventListener",value:function(e,t,n){return e.removeEventListener(t,n)}}]),n}(_c)).\u0275fac=function(e){return new(e||Ic)(Ue(fu))},Ic.\u0275prov=oe({token:Ic,factory:Ic.\u0275fac}),Ic),Pc=["alt","control","meta","shift"],Mc={"\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"},Hc={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"},Rc={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},jc=((Oc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e){return _classCallCheck(this,n),t.call(this,e)}return _createClass(n,[{key:"supports",value:function(e){return null!=n.parseEventName(e)}},{key:"addEventListener",value:function(e,t,r){var i=n.parseEventName(t),o=n.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return au().onAndCancel(e,i.domEventName,o)}))}}],[{key:"parseEventName",value:function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var i=n._normalizeKey(t.pop()),o="";if(Pc.forEach((function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),o+=e+".")})),o+=i,0!=t.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s}},{key:"getEventFullKey",value:function(e){var t="",n=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&Hc.hasOwnProperty(t)&&(t=Hc[t]))}return Mc[t]||t}(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Pc.forEach((function(r){r!=n&&(0,Rc[r])(e)&&(t+=r+".")})),t+=n}},{key:"eventCallback",value:function(e,t,r){return function(i){n.getEventFullKey(i)===e&&r.runGuarded((function(){return t(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),n}(_c)).\u0275fac=function(e){return new(e||Oc)(Ue(fu))},Oc.\u0275prov=oe({token:Oc,factory:Oc.\u0275fac}),Oc),zc=Qa(ru,"browser",[{provide:ba,useValue:"browser"},{provide:ka,useValue:function(){hc.makeCurrent(),pc.init()},multi:!0},{provide:fu,useFactory:function(){return function(e){wt=e}(document),document},deps:[]}]),Fc=[[],{provide:Gi,useValue:"root"},{provide:Qn,useFactory:function(){return new Qn},deps:[]},{provide:gc,useClass:Nc,multi:!0,deps:[fu,Ra,ba]},{provide:gc,useClass:jc,multi:!0,deps:[fu]},[],{provide:xc,useClass:xc,deps:[yc,Cc,_a]},{provide:Es,useExisting:xc},{provide:mc,useExisting:Cc},{provide:Cc,useClass:Cc,deps:[fu]},{provide:qa,useClass:qa,deps:[Ra]},{provide:yc,useClass:yc,deps:[gc,Ra]},[]],Lc=((Ac=function(){function e(t){if(_classCallCheck(this,e),t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return _createClass(e,null,[{key:"withServerTransition",value:function(t){return{ngModule:e,providers:[{provide:_a,useValue:t.appId},{provide:dc,useExisting:_a},vc]}}}]),e}()).\u0275mod=ct({type:Ac}),Ac.\u0275inj=se({factory:function(e){return new(e||Ac)(Ue(Ac,12))},providers:Fc,imports:[Ou,ou]}),Ac);"undefined"!=typeof window&&window;var Bc,Uc=((Bc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,[{key:"nativeWindow",get:function(){return window}}]),e}()).\u0275fac=function(e){return new(e||Bc)},Bc.\u0275prov=oe({token:Bc,factory:Bc.\u0275fac}),Bc),Gc=function e(){_classCallCheck(this,e),this.riskHotspotsSettings=null,this.coverageInfoSettings=null},Zc=function e(){_classCallCheck(this,e),this.groupingMaximum=0,this.grouping=0,this.historyComparisionDate="",this.historyComparisionType="",this.filter="",this.sortBy="name",this.sortOrder="asc",this.collapseStates=[]},qc=function(){function e(t){_classCallCheck(this,e),this.et="",this.et=t.et,this.cl=t.cl,this.ucl=t.ucl,this.cal=t.cal,this.tl=t.tl,this.lcq=t.lcq,this.cb=t.cb,this.tb=t.tb,this.bcq=t.bcq}return _createClass(e,[{key:"coverageRatioText",get:function(){return 0===this.tl?"-":this.cl+"/"+this.cal}},{key:"branchCoverageRatioText",get:function(){return 0===this.tb?"-":this.cb+"/"+this.tb}}]),e}(),Wc=function(){function e(){_classCallCheck(this,e)}return _createClass(e,null,[{key:"roundNumber",value:function(e,t){return Math.floor(e*Math.pow(10,t))/Math.pow(10,t)}},{key:"getNthOrLastIndexOf",value:function(e,t,n){for(var r=0,i=-1,o=-1;r<n&&-1!==(o=e.indexOf(t,i+1));)i=o,r++;return i}}]),e}(),$c=function(){function e(){_classCallCheck(this,e),this.name="",this.coveredLines=0,this.uncoveredLines=0,this.coverableLines=0,this.totalLines=0,this.coveredBranches=0,this.totalBranches=0}return _createClass(e,[{key:"coverage",get:function(){return 0===this.coverableLines?NaN:Wc.roundNumber(100*this.coveredLines/this.coverableLines,1)}},{key:"coveragePercentage",get:function(){return 0===this.coverableLines?"":this.coverage+"%"}},{key:"coverageRatioText",get:function(){return 0===this.coverableLines?"-":this.coveredLines+"/"+this.coverableLines}},{key:"branchCoverage",get:function(){return 0===this.totalBranches?NaN:Wc.roundNumber(100*this.coveredBranches/this.totalBranches,1)}},{key:"branchCoveragePercentage",get:function(){return 0===this.totalBranches?"":this.branchCoverage+"%"}},{key:"branchCoverageRatioText",get:function(){return 0===this.totalBranches?"-":this.coveredBranches+"/"+this.totalBranches}}]),e}(),Jc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).reportPath="",i._coverageType="",i.methodCoverage="",i.lineCoverageHistory=[],i.branchCoverageHistory=[],i.historicCoverages=[],i.currentHistoricCoverage=null,i.name=e.name,i.reportPath=e.rp?e.rp+r:e.rp,i.coveredLines=e.cl,i.uncoveredLines=e.ucl,i.coverableLines=e.cal,i.totalLines=e.tl,i._coverageType=e.ct,i.methodCoverage=e.mc,i.coveredBranches=e.cb,i.totalBranches=e.tb,i.lineCoverageHistory=e.lch,i.branchCoverageHistory=e.bch,e.hc.forEach((function(e){i.historicCoverages.push(new qc(e))})),i}return _createClass(n,[{key:"visible",value:function(e,t){if(""!==e&&-1===this.name.toLowerCase().indexOf(e.toLowerCase()))return!1;if(""===t||null===this.currentHistoricCoverage)return!0;if("allChanges"===t){if(this.coveredLines===this.currentHistoricCoverage.cl&&this.uncoveredLines===this.currentHistoricCoverage.ucl&&this.coverableLines===this.currentHistoricCoverage.cal&&this.totalLines===this.currentHistoricCoverage.tl&&this.coveredBranches===this.currentHistoricCoverage.cb&&this.totalBranches===this.currentHistoricCoverage.tb)return!1}else if("lineCoverageIncreaseOnly"===t){var n=this.coverage;if(isNaN(n)||n<=this.currentHistoricCoverage.lcq)return!1}else if("lineCoverageDecreaseOnly"===t){var r=this.coverage;if(isNaN(r)||r>=this.currentHistoricCoverage.lcq)return!1}else if("branchCoverageIncreaseOnly"===t){var i=this.branchCoverage;if(isNaN(i)||i<=this.currentHistoricCoverage.bcq)return!1}else if("branchCoverageDecreaseOnly"===t){var o=this.branchCoverage;if(isNaN(o)||o>=this.currentHistoricCoverage.bcq)return!1}return!0}},{key:"updateCurrentHistoricCoverage",value:function(e){if(this.currentHistoricCoverage=null,""!==e)for(var t=0;t<this.historicCoverages.length;t++)if(this.historicCoverages[t].et===e){this.currentHistoricCoverage=this.historicCoverages[t];break}}},{key:"coverage",get:function(){return 0===this.coverableLines?"-"!==this.methodCoverage?parseFloat(this.methodCoverage):NaN:Wc.roundNumber(100*this.coveredLines/this.coverableLines,1)}},{key:"coverageType",get:function(){return 0===this.coverableLines?"-"!==this.methodCoverage?this._coverageType:"":this._coverageType}}]),n}($c),Qc=function(e){_inherits(n,e);var t=_createSuper(n);function n(e,r){var i;return _classCallCheck(this,n),(i=t.call(this)).subElements=[],i.classes=[],i.collapsed=!1,i.name=e,i.collapsed=e.indexOf("Test")>-1&&null===r,i}return _createClass(n,[{key:"visible",value:function(e,t){if(""!==e&&this.name.toLowerCase().indexOf(e.toLowerCase())>-1)return!0;for(var n=0;n<this.subElements.length;n++)if(this.subElements[n].visible(e,t))return!0;for(var r=0;r<this.classes.length;r++)if(this.classes[r].visible(e,t))return!0;return!1}},{key:"insertClass",value:function(e,t){if(this.coveredLines+=e.coveredLines,this.uncoveredLines+=e.uncoveredLines,this.coverableLines+=e.coverableLines,this.totalLines+=e.totalLines,this.coveredBranches+=e.coveredBranches,this.totalBranches+=e.totalBranches,null!==t){for(var r=Wc.getNthOrLastIndexOf(e.name,".",t),i=-1===r?"-":e.name.substr(0,r),o=0;o<this.subElements.length;o++)if(this.subElements[o].name===i)return void this.subElements[o].insertClass(e,null);var s=new n(i,this);this.subElements.push(s),s.insertClass(e,null)}else this.classes.push(e)}},{key:"collapse",value:function(){this.collapsed=!0;for(var e=0;e<this.subElements.length;e++)this.subElements[e].collapse()}},{key:"expand",value:function(){this.collapsed=!1;for(var e=0;e<this.subElements.length;e++)this.subElements[e].expand()}},{key:"toggleCollapse",value:function(e){e.preventDefault(),this.collapsed=!this.collapsed}},{key:"updateCurrentHistoricCoverage",value:function(e){for(var t=0;t<this.subElements.length;t++)this.subElements[t].updateCurrentHistoricCoverage(e);for(var n=0;n<this.classes.length;n++)this.classes[n].updateCurrentHistoricCoverage(e)}},{key:"changeSorting",value:function(e,t){n.sortCodeElementViewModels(this.subElements,e,t);var r=t?-1:1,i=t?1:-1;"name"===e?this.classes.sort((function(e,t){return e.name===t.name?0:e.name<t.name?r:i})):"covered"===e?this.classes.sort((function(e,t){return e.coveredLines===t.coveredLines?0:e.coveredLines<t.coveredLines?r:i})):"uncovered"===e?this.classes.sort((function(e,t){return e.uncoveredLines===t.uncoveredLines?0:e.uncoveredLines<t.uncoveredLines?r:i})):"coverable"===e?this.classes.sort((function(e,t){return e.coverableLines===t.coverableLines?0:e.coverableLines<t.coverableLines?r:i})):"total"===e?this.classes.sort((function(e,t){return e.totalLines===t.totalLines?0:e.totalLines<t.totalLines?r:i})):"coverage"===e?this.classes.sort((function(e,t){return e.coverage===t.coverage?0:isNaN(e.coverage)?r:isNaN(t.coverage)?i:e.coverage<t.coverage?r:i})):"covered_branches"===e?this.classes.sort((function(e,t){return e.coveredBranches===t.coveredBranches?0:e.coveredBranches<t.coveredBranches?r:i})):"total_branches"===e?this.classes.sort((function(e,t){return e.totalBranches===t.totalBranches?0:e.totalBranches<t.totalBranches?r:i})):"branchcoverage"===e&&this.classes.sort((function(e,t){return e.branchCoverage===t.branchCoverage?0:isNaN(e.branchCoverage)?r:isNaN(t.branchCoverage)?i:e.branchCoverage<t.branchCoverage?r:i}));for(var o=0;o<this.subElements.length;o++)this.subElements[o].changeSorting(e,t)}}],[{key:"sortCodeElementViewModels",value:function(e,t,n){var r=n?-1:1,i=n?1:-1;"name"===t?e.sort((function(e,t){return e.name===t.name?0:e.name<t.name?r:i})):"covered"===t?e.sort((function(e,t){return e.coveredLines===t.coveredLines?0:e.coveredLines<t.coveredLines?r:i})):"uncovered"===t?e.sort((function(e,t){return e.uncoveredLines===t.uncoveredLines?0:e.uncoveredLines<t.uncoveredLines?r:i})):"coverable"===t?e.sort((function(e,t){return e.coverableLines===t.coverableLines?0:e.coverableLines<t.coverableLines?r:i})):"total"===t?e.sort((function(e,t){return e.totalLines===t.totalLines?0:e.totalLines<t.totalLines?r:i})):"coverage"===t?e.sort((function(e,t){return e.coverage===t.coverage?0:isNaN(e.coverage)?r:isNaN(t.coverage)?i:e.coverage<t.coverage?r:i})):"branchcoverage"===t&&e.sort((function(e,t){return e.branchCoverage===t.branchCoverage?0:isNaN(e.branchCoverage)?r:isNaN(t.branchCoverage)?i:e.branchCoverage<t.branchCoverage?r:i}))}}]),n}($c);function Kc(e,t){1&e&&wo(0,"td",3)}function Yc(e,t){1&e&&wo(0,"td"),2&e&&es("green ",Vo().greenClass,"")}function Xc(e,t){1&e&&wo(0,"td"),2&e&&es("red ",Vo().redClass,"")}var eh,th=((eh=function(){function e(){_classCallCheck(this,e),this.grayVisible=!0,this.greenVisible=!1,this.redVisible=!1,this.greenClass="",this.redClass="",this._percentage=NaN}return _createClass(e,[{key:"percentage",get:function(){return this._percentage},set:function(e){this._percentage=e,this.grayVisible=isNaN(e),this.greenVisible=!isNaN(e)&&Math.round(e)>0,this.redVisible=!isNaN(e)&&100-Math.round(e)>0,this.greenClass="covered"+Math.round(e),this.redClass="covered"+(100-Math.round(e))}}]),e}()).\u0275fac=function(e){return new(e||eh)},eh.\u0275cmp=st({type:eh,selectors:[["coverage-bar"]],inputs:{percentage:"percentage"},decls:4,vars:3,consts:[[1,"coverage"],["class","gray covered100",4,"ngIf"],[3,"class",4,"ngIf"],[1,"gray","covered100"]],template:function(e,t){1&e&&(ko(0,"table",0),yo(1,Kc,1,0,"td",1),yo(2,Yc,1,3,"td",2),yo(3,Xc,1,3,"td",2),bo()),2&e&&(Er(1),mo("ngIf",t.grayVisible),Er(1),mo("ngIf",t.greenVisible),Er(1),mo("ngIf",t.redVisible))},directives:[Cu],encapsulation:2,changeDetection:0}),eh),nh=["codeelement-row",""];function rh(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.coveredBranches)}}function ih(e,t){if(1&e&&(ko(0,"th",2),Ko(1),bo()),2&e){var n=Vo();Er(1),Yo(n.element.totalBranches)}}function oh(e,t){if(1&e&&(ko(0,"th",3),Ko(1),bo()),2&e){var n=Vo();mo("title",n.element.branchCoverageRatioText),Er(1),Yo(n.element.branchCoveragePercentage)}}function sh(e,t){if(1&e&&(ko(0,"th",2),wo(1,"coverage-bar",4),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.element.branchCoverage)}}var ah,uh,lh=function(e,t){return{"icon-plus":e,"icon-minus":t}},ch=((ah=function e(){_classCallCheck(this,e),this.element=null,this.collapsed=!1,this.branchCoverageAvailable=!1}).\u0275fac=function(e){return new(e||ah)},ah.\u0275cmp=st({type:ah,selectors:[["","codeelement-row",""]],inputs:{element:"element",collapsed:"collapsed",branchCoverageAvailable:"branchCoverageAvailable"},attrs:nh,decls:20,vars:16,consts:[["href","#",3,"click"],[3,"ngClass"],[1,"right"],[1,"right",3,"title"],[3,"percentage"],["class","right",4,"ngIf"],["class","right",3,"title",4,"ngIf"]],template:function(e,t){1&e&&(ko(0,"th"),ko(1,"a",0),Ao("click",(function(e){return t.element.toggleCollapse(e)})),wo(2,"i",1),Ko(3),bo(),bo(),ko(4,"th",2),Ko(5),bo(),ko(6,"th",2),Ko(7),bo(),ko(8,"th",2),Ko(9),bo(),ko(10,"th",2),Ko(11),bo(),ko(12,"th",3),Ko(13),bo(),ko(14,"th",2),wo(15,"coverage-bar",4),bo(),yo(16,rh,2,1,"th",5),yo(17,ih,2,1,"th",5),yo(18,oh,2,2,"th",6),yo(19,sh,2,1,"th",5)),2&e&&(Er(2),mo("ngClass",ha(13,lh,t.element.collapsed,!t.element.collapsed)),Er(1),Xo(" ",t.element.name,""),Er(2),Yo(t.element.coveredLines),Er(2),Yo(t.element.uncoveredLines),Er(2),Yo(t.element.coverableLines),Er(2),Yo(t.element.totalLines),Er(1),mo("title",t.element.coverageRatioText),Er(1),Yo(t.element.coveragePercentage),Er(2),mo("percentage",t.element.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[gu,th,Cu],encapsulation:2,changeDetection:0}),ah),hh=["coverage-history-chart",""],fh=((uh=function(){function e(){_classCallCheck(this,e),this.path=null,this._historicCoverages=[]}return _createClass(e,[{key:"historicCoverages",get:function(){return this._historicCoverages},set:function(e){if(this._historicCoverages=e,e.length>1){for(var t="",n=0;n<e.length;n++)t+=0===n?"M":"L",t+=""+Wc.roundNumber(30*n/(e.length-1),1),t+=","+Wc.roundNumber(18-18*e[n]/100,1);this.path=t}else this.path=null}}]),e}()).\u0275fac=function(e){return new(e||uh)},uh.\u0275cmp=st({type:uh,selectors:[["","coverage-history-chart",""]],inputs:{historicCoverages:"historicCoverages"},attrs:hh,decls:3,vars:1,consts:[["width","30","height","18",1,"ct-chart-line"],[1,"ct-series","ct-series-a"],[1,"ct-line"]],template:function(e,t){1&e&&(Ht.lFrame.currentNamespace="http://www.w3.org/2000/svg",ko(0,"svg",0),ko(1,"g",1),wo(2,"path",2),bo(),bo()),2&e&&(Er(2),po("d",t.path))},encapsulation:2,changeDetection:0}),uh),dh=["class-row",""];function vh(e,t){if(1&e&&(ko(0,"a",8),Ko(1),bo()),2&e){var n=Vo();mo("href",n.clazz.reportPath,or),Er(1),Yo(n.clazz.name)}}function ph(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Yo(n.clazz.name)}}function gh(e,t){if(1&e&&(Eo(0),ko(1,"div"),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo();Er(1),es("currenthistory ",n.getClassName(n.clazz.coveredLines,n.clazz.currentHistoricCoverage.cl),""),Er(1),Xo(" ",n.clazz.coveredLines," "),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Xo(" ",n.clazz.currentHistoricCoverage.cl," ")}}function yh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Xo(" ",n.clazz.coveredLines," ")}}function _h(e,t){if(1&e&&(Eo(0),ko(1,"div"),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo();Er(1),es("currenthistory ",n.getClassName(n.clazz.currentHistoricCoverage.ucl,n.clazz.uncoveredLines),""),Er(1),Xo(" ",n.clazz.uncoveredLines," "),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Xo(" ",n.clazz.currentHistoricCoverage.ucl," ")}}function mh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Xo(" ",n.clazz.uncoveredLines," ")}}function Ch(e,t){if(1&e&&(Eo(0),ko(1,"div",10),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo();Er(2),Yo(n.clazz.coverableLines),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Yo(n.clazz.currentHistoricCoverage.cal)}}function kh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Xo(" ",n.clazz.coverableLines," ")}}function bh(e,t){if(1&e&&(Eo(0),ko(1,"div",10),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo();Er(2),Yo(n.clazz.totalLines),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Yo(n.clazz.currentHistoricCoverage.tl)}}function wh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Xo(" ",n.clazz.totalLines," ")}}var Eh=function(e){return{historiccoverageoffset:e}};function Sh(e,t){if(1&e&&wo(0,"div",11),2&e){var n=Vo();Do("title",n.translations.history+": "+n.translations.coverage),mo("historicCoverages",n.clazz.lineCoverageHistory)("ngClass",ca(3,Eh,null!==n.clazz.currentHistoricCoverage))}}function Ih(e,t){if(1&e&&(Eo(0),ko(1,"div"),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo();Er(1),es("currenthistory ",n.getClassName(n.clazz.coverage,n.clazz.currentHistoricCoverage.lcq),""),Er(1),Xo(" ",n.clazz.coveragePercentage," "),Er(1),mo("title",n.clazz.currentHistoricCoverage.et+": "+n.clazz.currentHistoricCoverage.coverageRatioText),Er(1),Xo("",n.clazz.currentHistoricCoverage.lcq,"%")}}function Oh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo();Er(1),Xo(" ",n.clazz.coveragePercentage," ")}}function Ah(e,t){if(1&e&&(Eo(0),ko(1,"div"),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo(2);Er(1),es("currenthistory ",n.getClassName(n.clazz.coveredBranches,n.clazz.currentHistoricCoverage.cb),""),Er(1),Xo(" ",n.clazz.coveredBranches," "),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Xo(" ",n.clazz.currentHistoricCoverage.cb," ")}}function xh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Xo(" ",n.clazz.coveredBranches," ")}}function Th(e,t){if(1&e&&(ko(0,"td",2),yo(1,Ah,5,6,"ng-container",1),yo(2,xh,2,1,"ng-container",1),bo()),2&e){var n=Vo();Er(1),mo("ngIf",null!==n.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===n.clazz.currentHistoricCoverage)}}function Vh(e,t){if(1&e&&(Eo(0),ko(1,"div",10),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo(2);Er(2),Yo(n.clazz.totalBranches),Er(1),mo("title",n.clazz.currentHistoricCoverage.et),Er(1),Yo(n.clazz.currentHistoricCoverage.tb)}}function Dh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Xo(" ",n.clazz.totalBranches," ")}}function Nh(e,t){if(1&e&&(ko(0,"td",2),yo(1,Vh,5,3,"ng-container",1),yo(2,Dh,2,1,"ng-container",1),bo()),2&e){var n=Vo();Er(1),mo("ngIf",null!==n.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===n.clazz.currentHistoricCoverage)}}function Ph(e,t){if(1&e&&wo(0,"div",13),2&e){var n=Vo(2);Do("title",n.translations.history+": "+n.translations.branchCoverage),mo("historicCoverages",n.clazz.branchCoverageHistory)("ngClass",ca(3,Eh,null!==n.clazz.currentHistoricCoverage))}}function Mh(e,t){if(1&e&&(Eo(0),ko(1,"div"),Ko(2),bo(),ko(3,"div",9),Ko(4),bo(),So()),2&e){var n=Vo(2);Er(1),es("currenthistory ",n.getClassName(n.clazz.branchCoverage,n.clazz.currentHistoricCoverage.bcq),""),Er(1),Xo(" ",n.clazz.branchCoveragePercentage," "),Er(1),mo("title",n.clazz.currentHistoricCoverage.et+": "+n.clazz.currentHistoricCoverage.branchCoverageRatioText),Er(1),Xo("",n.clazz.currentHistoricCoverage.bcq,"%")}}function Hh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Xo(" ",n.clazz.branchCoveragePercentage," ")}}function Rh(e,t){if(1&e&&(ko(0,"td",3),yo(1,Ph,1,5,"div",12),yo(2,Mh,5,6,"ng-container",1),yo(3,Hh,2,1,"ng-container",1),bo()),2&e){var n=Vo();mo("title",n.clazz.branchCoverageRatioText),Er(1),mo("ngIf",n.clazz.branchCoverageHistory.length>1),Er(1),mo("ngIf",null!==n.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===n.clazz.currentHistoricCoverage)}}function jh(e,t){if(1&e&&(ko(0,"td",2),wo(1,"coverage-bar",5),bo()),2&e){var n=Vo();Er(1),mo("percentage",n.clazz.branchCoverage)}}var zh,Fh=((zh=function(){function e(){_classCallCheck(this,e),this.clazz=null,this.translations={},this.branchCoverageAvailable=!1,this.historyComparisionDate=""}return _createClass(e,[{key:"getClassName",value:function(e,t){return e>t?"lightgreen":e<t?"lightred":"lightgraybg"}}]),e}()).\u0275fac=function(e){return new(e||zh)},zh.\u0275cmp=st({type:zh,selectors:[["","class-row",""]],inputs:{clazz:"clazz",translations:"translations",branchCoverageAvailable:"branchCoverageAvailable",historyComparisionDate:"historyComparisionDate"},attrs:dh,decls:25,vars:19,consts:[[3,"href",4,"ngIf"],[4,"ngIf"],[1,"right"],[1,"right",3,"title"],["coverage-history-chart","","class","tinylinecoveragechart ct-chart",3,"historicCoverages","ngClass","title",4,"ngIf"],[3,"percentage"],["class","right",4,"ngIf"],["class","right",3,"title",4,"ngIf"],[3,"href"],[3,"title"],[1,"currenthistory"],["coverage-history-chart","",1,"tinylinecoveragechart","ct-chart",3,"historicCoverages","ngClass","title"],["coverage-history-chart","","class","tinybranchcoveragechart ct-chart",3,"historicCoverages","ngClass","title",4,"ngIf"],["coverage-history-chart","",1,"tinybranchcoveragechart","ct-chart",3,"historicCoverages","ngClass","title"]],template:function(e,t){1&e&&(ko(0,"td"),yo(1,vh,2,2,"a",0),yo(2,ph,2,1,"ng-container",1),bo(),ko(3,"td",2),yo(4,gh,5,6,"ng-container",1),yo(5,yh,2,1,"ng-container",1),bo(),ko(6,"td",2),yo(7,_h,5,6,"ng-container",1),yo(8,mh,2,1,"ng-container",1),bo(),ko(9,"td",2),yo(10,Ch,5,3,"ng-container",1),yo(11,kh,2,1,"ng-container",1),bo(),ko(12,"td",2),yo(13,bh,5,3,"ng-container",1),yo(14,wh,2,1,"ng-container",1),bo(),ko(15,"td",3),yo(16,Sh,1,5,"div",4),yo(17,Ih,5,6,"ng-container",1),yo(18,Oh,2,1,"ng-container",1),bo(),ko(19,"td",2),wo(20,"coverage-bar",5),bo(),yo(21,Th,3,2,"td",6),yo(22,Nh,3,2,"td",6),yo(23,Rh,4,4,"td",7),yo(24,jh,2,1,"td",6)),2&e&&(Er(1),mo("ngIf",""!==t.clazz.reportPath),Er(1),mo("ngIf",""===t.clazz.reportPath),Er(2),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(1),mo("title",t.clazz.coverageType+": "+t.clazz.coverageRatioText),Er(1),mo("ngIf",t.clazz.lineCoverageHistory.length>1),Er(1),mo("ngIf",null!==t.clazz.currentHistoricCoverage),Er(1),mo("ngIf",null===t.clazz.currentHistoricCoverage),Er(2),mo("percentage",t.clazz.coverage),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable),Er(1),mo("ngIf",t.branchCoverageAvailable))},directives:[Cu,th,fh,gu],encapsulation:2,changeDetection:0}),zh);function Lh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.noGrouping)}}function Bh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byAssembly)}}function Uh(e,t){if(1&e&&(Eo(0),Ko(1),So()),2&e){var n=Vo(2);Er(1),Yo(n.translations.byNamespace+" "+n.settings.grouping)}}function Gh(e,t){if(1&e&&(ko(0,"option",25),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function Zh(e,t){1&e&&wo(0,"br")}function qh(e,t){if(1&e&&(ko(0,"option",31),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageIncreaseOnly," ")}}function Wh(e,t){if(1&e&&(ko(0,"option",32),Ko(1),bo()),2&e){var n=Vo(4);Er(1),Xo(" ",n.translations.branchCoverageDecreaseOnly," ")}}function $h(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"select",22),Ao("ngModelChange",(function(e){return Ft(n),Vo(3).settings.historyComparisionType=e})),ko(2,"option",23),Ko(3),bo(),ko(4,"option",26),Ko(5),bo(),ko(6,"option",27),Ko(7),bo(),ko(8,"option",28),Ko(9),bo(),yo(10,qh,2,1,"option",29),yo(11,Wh,2,1,"option",30),bo(),bo()}if(2&e){var r=Vo(3);Er(1),mo("ngModel",r.settings.historyComparisionType),Er(2),Yo(r.translations.filter),Er(2),Yo(r.translations.allChanges),Er(2),Yo(r.translations.lineCoverageIncreaseOnly),Er(2),Yo(r.translations.lineCoverageDecreaseOnly),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable)}}function Jh(e,t){if(1&e){var n=Io();Eo(0),ko(1,"div"),Ko(2),ko(3,"select",22),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.historyComparisionDate=e}))("ngModelChange",(function(){return Ft(n),Vo(2).updateCurrentHistoricCoverage()})),ko(4,"option",23),Ko(5),bo(),yo(6,Gh,2,2,"option",24),bo(),bo(),yo(7,Zh,1,0,"br",0),yo(8,$h,12,7,"div",0),So()}if(2&e){var r=Vo(2);Er(2),Xo(" ",r.translations.compareHistory," "),Er(1),mo("ngModel",r.settings.historyComparisionDate),Er(2),Yo(r.translations.date),Er(1),mo("ngForOf",r.historicCoverageExecutionTimes),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate),Er(1),mo("ngIf",""!==r.settings.historyComparisionDate)}}function Qh(e,t){1&e&&wo(0,"col",8)}function Kh(e,t){1&e&&wo(0,"col",11)}function Yh(e,t){1&e&&wo(0,"col",12)}function Xh(e,t){1&e&&wo(0,"col",13)}var ef=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function tf(e,t){if(1&e){var n=Io();ko(0,"th",19),ko(1,"a",2),Ao("click",(function(e){return Ft(n),Vo(2).updateSorting("branchcoverage",e)})),wo(2,"i",18),Ko(3),bo(),bo()}if(2&e){var r=Vo(2);Er(2),mo("ngClass",fa(2,ef,"branchcoverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"branchcoverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"branchcoverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.branchCoverage)}}function nf(e,t){if(1&e&&wo(0,"tr",34),2&e){var n=Vo().$implicit,r=Vo(2);mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable)}}function rf(e,t){if(1&e&&wo(0,"tr",36),2&e){var n=Vo().$implicit,r=Vo(3);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function of(e,t){if(1&e&&(Eo(0),yo(1,rf,1,4,"tr",35),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function sf(e,t){if(1&e&&wo(0,"tr",39),2&e){var n=Vo().$implicit,r=Vo(5);mo("clazz",n)("translations",r.translations)("branchCoverageAvailable",r.branchCoverageAvailable)("historyComparisionDate",r.settings.historyComparisionDate)}}function af(e,t){if(1&e&&(Eo(0),yo(1,sf,1,4,"tr",38),So()),2&e){var n=t.$implicit,r=Vo(2).$implicit,i=Vo(3);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function uf(e,t){if(1&e&&(Eo(0),wo(1,"tr",37),yo(2,af,2,1,"ng-container",21),So()),2&e){var n=Vo().$implicit,r=Vo(3);Er(1),mo("element",n)("collapsed",n.collapsed)("branchCoverageAvailable",r.branchCoverageAvailable),Er(1),mo("ngForOf",n.classes)}}function lf(e,t){if(1&e&&(Eo(0),yo(1,uf,3,4,"ng-container",0),So()),2&e){var n=t.$implicit,r=Vo().$implicit,i=Vo(2);Er(1),mo("ngIf",!r.collapsed&&n.visible(i.settings.filter,i.settings.historyComparisionType))}}function cf(e,t){if(1&e&&(Eo(0),yo(1,nf,1,3,"tr",33),yo(2,of,2,1,"ng-container",21),yo(3,lf,2,1,"ng-container",21),So()),2&e){var n=t.$implicit,r=Vo(2);Er(1),mo("ngIf",n.visible(r.settings.filter,r.settings.historyComparisionType)),Er(1),mo("ngForOf",n.classes),Er(1),mo("ngForOf",n.subElements)}}function hf(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"a",2),Ao("click",(function(e){return Ft(n),Vo().collapseAll(e)})),Ko(4),bo(),Ko(5," | "),ko(6,"a",2),Ao("click",(function(e){return Ft(n),Vo().expandAll(e)})),Ko(7),bo(),bo(),ko(8,"div",3),yo(9,Lh,2,1,"ng-container",0),yo(10,Bh,2,1,"ng-container",0),yo(11,Uh,2,1,"ng-container",0),wo(12,"br"),Ko(13),ko(14,"input",4),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.grouping=e}))("ngModelChange",(function(){return Ft(n),Vo().updateCoverageInfo()})),bo(),bo(),ko(15,"div",3),yo(16,Jh,9,6,"ng-container",0),bo(),ko(17,"div",5),ko(18,"span"),Ko(19),bo(),ko(20,"input",6),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e})),bo(),bo(),bo(),ko(21,"table",7),ko(22,"colgroup"),wo(23,"col"),wo(24,"col",8),wo(25,"col",9),wo(26,"col",10),wo(27,"col",11),wo(28,"col",12),wo(29,"col",13),yo(30,Qh,1,0,"col",14),yo(31,Kh,1,0,"col",15),yo(32,Yh,1,0,"col",16),yo(33,Xh,1,0,"col",17),bo(),ko(34,"thead"),ko(35,"tr"),ko(36,"th"),ko(37,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("name",e)})),wo(38,"i",18),Ko(39),bo(),bo(),ko(40,"th",5),ko(41,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("covered",e)})),wo(42,"i",18),Ko(43),bo(),bo(),ko(44,"th",5),ko(45,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("uncovered",e)})),wo(46,"i",18),Ko(47),bo(),bo(),ko(48,"th",5),ko(49,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverable",e)})),wo(50,"i",18),Ko(51),bo(),bo(),ko(52,"th",5),ko(53,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("total",e)})),wo(54,"i",18),Ko(55),bo(),bo(),ko(56,"th",19),ko(57,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("coverage",e)})),wo(58,"i",18),Ko(59),bo(),bo(),ko(60,"th",5),ko(61,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("covered_branches",e)})),wo(62,"i",18),Ko(63),bo(),bo(),ko(64,"th",5),ko(65,"a",2),Ao("click",(function(e){return Ft(n),Vo().updateSorting("total_branches",e)})),wo(66,"i",18),Ko(67),bo(),bo(),yo(68,tf,4,6,"th",20),bo(),bo(),ko(69,"tbody"),yo(70,cf,4,3,"ng-container",21),bo(),bo(),bo()}if(2&e){var r=Vo();Er(4),Yo(r.translations.collapseAll),Er(3),Yo(r.translations.expandAll),Er(2),mo("ngIf",-1===r.settings.grouping),Er(1),mo("ngIf",0===r.settings.grouping),Er(1),mo("ngIf",r.settings.grouping>0),Er(2),Xo(" ",r.translations.grouping," "),Er(1),mo("max",r.settings.groupingMaximum)("ngModel",r.settings.grouping),Er(2),mo("ngIf",r.historicCoverageExecutionTimes.length>0),Er(3),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(10),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(5),mo("ngClass",fa(33,ef,"name"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"name"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"name"!==r.settings.sortBy)),Er(1),Yo(r.translations.name),Er(3),mo("ngClass",fa(37,ef,"covered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered),Er(3),mo("ngClass",fa(41,ef,"uncovered"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"uncovered"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"uncovered"!==r.settings.sortBy)),Er(1),Yo(r.translations.uncovered),Er(3),mo("ngClass",fa(45,ef,"coverable"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverable"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverable"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverable),Er(3),mo("ngClass",fa(49,ef,"total"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total"!==r.settings.sortBy)),Er(1),Yo(r.translations.total),Er(3),mo("ngClass",fa(53,ef,"coverage"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"coverage"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"coverage"!==r.settings.sortBy)),Er(1),Yo(r.translations.coverage),Er(3),mo("ngClass",fa(57,ef,"covered_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"covered_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"covered_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.covered),Er(3),mo("ngClass",fa(61,ef,"total_branches"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"total_branches"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"total_branches"!==r.settings.sortBy)),Er(1),Yo(r.translations.total),Er(1),mo("ngIf",r.branchCoverageAvailable),Er(2),mo("ngForOf",r.codeElements)}}var ff,df=((ff=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.historicCoverageExecutionTimes=[],this.branchCoverageAvailable=!1,this.codeElements=[],this.translations={},this.settings=new Zc,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.historicCoverageExecutionTimes=this.window.historicCoverageExecutionTimes,this.branchCoverageAvailable=this.window.branchCoverageAvailable,this.translations=this.window.translations;var e=!1;if(void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.coverageInfoSettings)console.log("Coverage info: Restoring from history",this.window.history.state.coverageInfoSettings),e=!0,this.settings=JSON.parse(JSON.stringify(this.window.history.state.coverageInfoSettings));else{for(var t=0,n=this.window.assemblies,r=0;r<n.length;r++)for(var i=0;i<n[r].classes.length;i++)t=Math.max(t,(n[r].classes[i].name.match(/\./g)||[]).length);this.settings.groupingMaximum=t,console.log("Grouping maximum: "+t)}var o=window.location.href.indexOf("?");o>-1&&(this.queryString=window.location.href.substr(o)),this.updateCoverageInfo(),e&&this.restoreCollapseState()}},{key:"onDonBeforeUnlodad",value:function(){if(this.saveCollapseState(),void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Coverage info: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).coverageInfoSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateCoverageInfo",value:function(){var e=(new Date).getTime(),t=this.window.assemblies,n=[],r=0;if(0===this.settings.grouping)for(var i=0;i<t.length;i++){var o=new Qc(t[i].name,null);n.push(o);for(var s=0;s<t[i].classes.length;s++)o.insertClass(new Jc(t[i].classes[s],this.queryString),null),r++}else if(-1===this.settings.grouping){var a=new Qc(this.translations.all,null);n.push(a);for(var u=0;u<t.length;u++)for(var l=0;l<t[u].classes.length;l++)a.insertClass(new Jc(t[u].classes[l],this.queryString),null),r++}else for(var c=0;c<t.length;c++){var h=new Qc(t[c].name,null);n.push(h);for(var f=0;f<t[c].classes.length;f++)h.insertClass(new Jc(t[c].classes[f],this.queryString),this.settings.grouping),r++}var d=-1,v=1;"name"===this.settings.sortBy&&(d="asc"===this.settings.sortOrder?-1:1,v="asc"===this.settings.sortOrder?1:-1),n.sort((function(e,t){return e.name===t.name?0:e.name<t.name?d:v})),Qc.sortCodeElementViewModels(n,this.settings.sortBy,"asc"===this.settings.sortOrder);for(var p=0;p<n.length;p++)n[p].changeSorting(this.settings.sortBy,"asc"===this.settings.sortOrder);this.codeElements=n,console.log("Processing assemblies finished (Duration: ".concat((new Date).getTime()-e,"ms, Assemblies: ").concat(n.length,", Classes: ").concat(r,")")),""!==this.settings.historyComparisionDate&&this.updateCurrentHistoricCoverage()}},{key:"updateCurrentHistoricCoverage",value:function(){for(var e=(new Date).getTime(),t=0;t<this.codeElements.length;t++)this.codeElements[t].updateCurrentHistoricCoverage(this.settings.historyComparisionDate);console.log("Updating current historic coverage finished (Duration: ".concat((new Date).getTime()-e,"ms)"))}},{key:"collapseAll",value:function(e){e.preventDefault();for(var t=0;t<this.codeElements.length;t++)this.codeElements[t].collapse()}},{key:"expandAll",value:function(e){e.preventDefault();for(var t=0;t<this.codeElements.length;t++)this.codeElements[t].expand()}},{key:"updateSorting",value:function(e,t){t.preventDefault(),this.settings.sortOrder=e===this.settings.sortBy&&"asc"===this.settings.sortOrder?"desc":"asc",this.settings.sortBy=e,console.log("Updating sort column: '".concat(this.settings.sortBy,"' (").concat(this.settings.sortOrder,")")),Qc.sortCodeElementViewModels(this.codeElements,this.settings.sortBy,"asc"===this.settings.sortOrder);for(var n=0;n<this.codeElements.length;n++)this.codeElements[n].changeSorting(this.settings.sortBy,"asc"===this.settings.sortOrder)}},{key:"saveCollapseState",value:function(){var e=this;this.settings.collapseStates=[],function t(n){for(var r=0;r<n.length;r++)e.settings.collapseStates.push(n[r].collapsed),t(n[r].subElements)}(this.codeElements)}},{key:"restoreCollapseState",value:function(){var e=this,t=0;!function n(r){for(var i=0;i<r.length;i++)e.settings.collapseStates.length>t&&(r[i].collapsed=e.settings.collapseStates[t]),t++,n(r[i].subElements)}(this.codeElements)}}]),e}()).\u0275fac=function(e){return new(e||ff)(_o(Uc))},ff.\u0275cmp=st({type:ff,selectors:[["coverage-info"]],hostBindings:function(e,t){1&e&&Ao("beforeunload",(function(){return t.onDonBeforeUnlodad()}),!1,An)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"customizebox"],["href","#",3,"click"],[1,"center"],["type","range","step","1","min","-1",3,"max","ngModel","ngModelChange"],[1,"right"],["type","text",3,"ngModel","ngModelChange"],[1,"overview","table-fixed","stripped"],[1,"column90"],[1,"column105"],[1,"column100"],[1,"column70"],[1,"column98"],[1,"column112"],["class","column90",4,"ngIf"],["class","column70",4,"ngIf"],["class","column98",4,"ngIf"],["class","column112",4,"ngIf"],[1,"icon-down-dir",3,"ngClass"],["colspan","2",1,"center"],["class","center","colspan","2",4,"ngIf"],[4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["value","allChanges"],["value","lineCoverageIncreaseOnly"],["value","lineCoverageDecreaseOnly"],["value","branchCoverageIncreaseOnly",4,"ngIf"],["value","branchCoverageDecreaseOnly",4,"ngIf"],["value","branchCoverageIncreaseOnly"],["value","branchCoverageDecreaseOnly"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable",4,"ngIf"],["codeelement-row","",3,"element","collapsed","branchCoverageAvailable"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"],["codeelement-row","",1,"namespace",3,"element","collapsed","branchCoverageAvailable"],["class","namespace","class-row","",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate",4,"ngIf"],["class-row","",1,"namespace",3,"clazz","translations","branchCoverageAvailable","historyComparisionDate"]],template:function(e,t){1&e&&yo(0,hf,71,65,"div",0),2&e&&mo("ngIf",t.codeElements.length>0)},directives:[Cu,dl,ju,Zu,uc,gu,_u,Cl,kl,Ol,ch,Fh],encapsulation:2}),ff),vf=function e(){_classCallCheck(this,e),this.assembly="",this.numberOfRiskHotspots=10,this.filter="",this.sortBy="",this.sortOrder="asc"};function pf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=t.$implicit;mo("value",n),Er(1),Yo(n)}}function gf(e,t){1&e&&(ko(0,"option",21),Ko(1,"20"),bo())}function yf(e,t){1&e&&(ko(0,"option",22),Ko(1,"50"),bo())}function _f(e,t){1&e&&(ko(0,"option",23),Ko(1,"100"),bo())}function mf(e,t){if(1&e&&(ko(0,"option",14),Ko(1),bo()),2&e){var n=Vo(3);mo("value",n.totalNumberOfRiskHotspots),Er(1),Yo(n.translations.all)}}function Cf(e,t){if(1&e){var n=Io();ko(0,"select",15),Ao("ngModelChange",(function(e){return Ft(n),Vo(2).settings.numberOfRiskHotspots=e})),ko(1,"option",16),Ko(2,"10"),bo(),yo(3,gf,2,0,"option",17),yo(4,yf,2,0,"option",18),yo(5,_f,2,0,"option",19),yo(6,mf,2,2,"option",20),bo()}if(2&e){var r=Vo(2);mo("ngModel",r.settings.numberOfRiskHotspots),Er(3),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>20),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>50),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>100)}}function kf(e,t){1&e&&wo(0,"col",24)}var bf=function(e,t,n){return{"icon-up-dir_active":e,"icon-down-dir_active":t,"icon-down-dir":n}};function wf(e,t){if(1&e){var n=Io();ko(0,"th"),ko(1,"a",11),Ao("click",(function(e){Ft(n);var r=t.index;return Vo(2).updateSorting(""+r,e)})),wo(2,"i",12),Ko(3),bo(),ko(4,"a",25),wo(5,"i",26),bo(),bo()}if(2&e){var r=t.$implicit,i=t.index,o=Vo(2);Er(2),mo("ngClass",fa(3,bf,o.settings.sortBy===""+i&&"desc"===o.settings.sortOrder,o.settings.sortBy===""+i&&"asc"===o.settings.sortOrder,o.settings.sortBy!==""+i)),Er(1),Yo(r.name),Er(1),Do("href",r.explanationUrl,or)}}var Ef=function(e,t){return{lightred:e,lightgreen:t}};function Sf(e,t){if(1&e&&(ko(0,"td",29),Ko(1),bo()),2&e){var n=t.$implicit;mo("ngClass",ha(2,Ef,n.exceeded,!n.exceeded)),Er(1),Yo(n.value)}}function If(e,t){if(1&e&&(ko(0,"tr"),ko(1,"td"),Ko(2),bo(),ko(3,"td"),ko(4,"a",25),Ko(5),bo(),bo(),ko(6,"td",27),ko(7,"a",25),Ko(8),bo(),bo(),yo(9,Sf,2,5,"td",28),bo()),2&e){var n=t.$implicit,r=Vo(2);Er(2),Yo(n.assembly),Er(2),mo("href",n.reportPath+r.queryString,or),Er(1),Yo(n.class),Er(1),mo("title",n.methodName),Er(1),mo("href",n.reportPath+r.queryString+"#file"+n.fileIndex+"_line"+n.line,or),Er(1),Xo(" ",n.methodShortName," "),Er(1),mo("ngForOf",n.metrics)}}function Of(e,t){if(1&e){var n=Io();ko(0,"div"),ko(1,"div",1),ko(2,"div"),ko(3,"select",2),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.assembly=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),ko(4,"option",3),Ko(5),bo(),yo(6,pf,2,2,"option",4),bo(),bo(),ko(7,"div",5),ko(8,"span"),Ko(9),bo(),yo(10,Cf,7,5,"select",6),bo(),wo(11,"div",5),ko(12,"div",7),ko(13,"span"),Ko(14),bo(),ko(15,"input",8),Ao("ngModelChange",(function(e){return Ft(n),Vo().settings.filter=e}))("ngModelChange",(function(){return Ft(n),Vo().updateRiskHotpots()})),bo(),bo(),bo(),ko(16,"table",9),ko(17,"colgroup"),wo(18,"col"),wo(19,"col"),wo(20,"col"),yo(21,kf,1,0,"col",10),bo(),ko(22,"thead"),ko(23,"tr"),ko(24,"th"),ko(25,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("assembly",e)})),wo(26,"i",12),Ko(27),bo(),bo(),ko(28,"th"),ko(29,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("class",e)})),wo(30,"i",12),Ko(31),bo(),bo(),ko(32,"th"),ko(33,"a",11),Ao("click",(function(e){return Ft(n),Vo().updateSorting("method",e)})),wo(34,"i",12),Ko(35),bo(),bo(),yo(36,wf,6,7,"th",13),bo(),bo(),ko(37,"tbody"),yo(38,If,10,7,"tr",13),function(e,t){var n,r=zt();r.firstCreatePass?(n=function(e,t){if(t)for(var n=t.length-1;n>=0;n--){var r=t[n];if("slice"===r.name)return r}throw new Error("The pipe 'slice' could not be found!")}(0,r.pipeRegistry),r.data[59]=n,n.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(59,n.onDestroy)):n=r.data[59];var i=n.factory||(n.factory=vt(n.type)),o=Le(_o),s=Vn(!1),a=i();Vn(s),Le(o),function(e,t,n,r){59>=e.data.length&&(e.data[59]=null,e.blueprint[59]=null),t[59]=r}(r,jt(),0,a)}(),bo(),bo(),bo()}if(2&e){var r=Vo();Er(3),mo("ngModel",r.settings.assembly),Er(2),Yo(r.translations.assembly),Er(1),mo("ngForOf",r.assemblies),Er(3),Yo(r.translations.top),Er(1),mo("ngIf",r.totalNumberOfRiskHotspots>10),Er(4),Xo("",r.translations.filter," "),Er(1),mo("ngModel",r.settings.filter),Er(6),mo("ngForOf",r.riskHotspotMetrics),Er(5),mo("ngClass",fa(20,bf,"assembly"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"assembly"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"assembly"!==r.settings.sortBy)),Er(1),Yo(r.translations.assembly),Er(3),mo("ngClass",fa(24,bf,"class"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"class"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"class"!==r.settings.sortBy)),Er(1),Yo(r.translations.class),Er(3),mo("ngClass",fa(28,bf,"method"===r.settings.sortBy&&"desc"===r.settings.sortOrder,"method"===r.settings.sortBy&&"asc"===r.settings.sortOrder,"method"!==r.settings.sortBy)),Er(1),Yo(r.translations.method),Er(1),mo("ngForOf",r.riskHotspotMetrics),Er(2),mo("ngForOf",(i=r.riskHotspots,o=r.settings.numberOfRiskHotspots,s=jt(),a=s[59],function(e,t){return uo.isWrapped(t)&&(t=uo.unwrap(t),e[Ht.lFrame.bindingIndex]=mr),t}(s,function(e,t){return e[1].data[59].pure}(s)?va(s,Wt(),16,a.transform,i,0,o,a):a.transform(i,0,o))))}var i,o,s,a}var Af,xf,Tf=((xf=function(){function e(t){_classCallCheck(this,e),this.queryString="",this.riskHotspotMetrics=[],this.riskHotspots=[],this.totalNumberOfRiskHotspots=0,this.assemblies=[],this.translations={},this.settings=new vf,this.window=t.nativeWindow}return _createClass(e,[{key:"ngOnInit",value:function(){this.riskHotspotMetrics=this.window.riskHotspotMetrics,this.translations=this.window.translations,void 0!==this.window.history&&void 0!==this.window.history.replaceState&&null!==this.window.history.state&&null!=this.window.history.state.riskHotspotsSettings&&(console.log("Risk hotspots: Restoring from history",this.window.history.state.riskHotspotsSettings),this.settings=JSON.parse(JSON.stringify(this.window.history.state.riskHotspotsSettings)));var e=window.location.href.indexOf("?");e>-1&&(this.queryString=window.location.href.substr(e)),this.updateRiskHotpots()}},{key:"onDonBeforeUnlodad",value:function(){if(void 0!==this.window.history&&void 0!==this.window.history.replaceState){console.log("Risk hotspots: Updating history",this.settings);var e=null;(e=null!==window.history.state?JSON.parse(JSON.stringify(this.window.history.state)):new Gc).riskHotspotsSettings=JSON.parse(JSON.stringify(this.settings)),window.history.replaceState(e,null)}}},{key:"updateRiskHotpots",value:function(){var e=this.window.riskHotspots;if(this.totalNumberOfRiskHotspots=e.length,0===this.assemblies.length){for(var t=[],n=0;n<e.length;n++)-1===t.indexOf(e[n].assembly)&&t.push(e[n].assembly);this.assemblies=t.sort()}for(var r=[],i=0;i<e.length;i++)""!==this.settings.filter&&-1===e[i].class.toLowerCase().indexOf(this.settings.filter)||""!==this.settings.assembly&&e[i].assembly!==this.settings.assembly||r.push(e[i]);var o="asc"===this.settings.sortOrder?-1:1,s="asc"===this.settings.sortOrder?1:-1;if("assembly"===this.settings.sortBy)r.sort((function(e,t){return e.assembly===t.assembly?0:e.assembly<t.assembly?o:s}));else if("class"===this.settings.sortBy)r.sort((function(e,t){return e.class===t.class?0:e.class<t.class?o:s}));else if("method"===this.settings.sortBy)r.sort((function(e,t){return e.methodShortName===t.methodShortName?0:e.methodShortName<t.methodShortName?o:s}));else if(""!==this.settings.sortBy){var a=parseInt(this.settings.sortBy,10);r.sort((function(e,t){return e.metrics[a].value===t.metrics[a].value?0:e.metrics[a].value<t.metrics[a].value?o:s}))}this.riskHotspots=r}},{key:"updateSorting",value:function(e,t){t.preventDefault(),this.settings.sortOrder=e===this.settings.sortBy&&"asc"===this.settings.sortOrder?"desc":"asc",this.settings.sortBy=e,console.log("Updating sort column: '".concat(this.settings.sortBy,"' (").concat(this.settings.sortOrder,")")),this.updateRiskHotpots()}}]),e}()).\u0275fac=function(e){return new(e||xf)(_o(Uc))},xf.\u0275cmp=st({type:xf,selectors:[["risk-hotspots"]],hostBindings:function(e,t){1&e&&Ao("beforeunload",(function(){return t.onDonBeforeUnlodad()}),!1,An)},decls:1,vars:1,consts:[[4,"ngIf"],[1,"customizebox"],["name","assembly",3,"ngModel","ngModelChange"],["value",""],[3,"value",4,"ngFor","ngForOf"],[1,"center"],[3,"ngModel","ngModelChange",4,"ngIf"],[1,"right"],["type","text",3,"ngModel","ngModelChange"],[1,"overview","table-fixed","stripped"],["class","column105",4,"ngFor","ngForOf"],["href","#",3,"click"],[1,"icon-down-dir",3,"ngClass"],[4,"ngFor","ngForOf"],[3,"value"],[3,"ngModel","ngModelChange"],["value","10"],["value","20",4,"ngIf"],["value","50",4,"ngIf"],["value","100",4,"ngIf"],[3,"value",4,"ngIf"],["value","20"],["value","50"],["value","100"],[1,"column105"],[3,"href"],[1,"icon-info-circled"],[3,"title"],["class","right",3,"ngClass",4,"ngFor","ngForOf"],[1,"right",3,"ngClass"]],template:function(e,t){1&e&&yo(0,Of,40,32,"div",0),2&e&&mo("ngIf",t.totalNumberOfRiskHotspots>0)},directives:[Cu,Cl,Zu,uc,kl,Ol,_u,ju,gu],pipes:[Iu],encapsulation:2}),xf),Vf=((Af=function e(){_classCallCheck(this,e)}).\u0275mod=ct({type:Af,bootstrap:[Tf,df]}),Af.\u0275inj=se({factory:function(e){return new(e||Af)},providers:[Uc],imports:[[Lc,cc]]}),Af);(function(){if(er)throw new Error("Cannot enable prod mode after platform setup.");Xn=!1})(),zc().bootstrapModule(Vf).catch((function(e){return console.error(e)}))}},[[0,0]]]);