text: (window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,t,n){e.exports=n("zUnb")},"1pIY":function(e,t,n){"use strict";var r=n("2tF/");t.async=new(n("NTcF").AsyncScheduler)(r.AsyncAction)},"24jU":function(e,t,n){"use strict";t.errorObject={e:{}}},"2tF/":function(e,t,n){var r=n("mrSG").__extends;t.AsyncAction=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(n("Dz+M").Action)},"4uHx":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("Rbiz");function o(e){return e<10?"0".concat(e.toString()):e}t.secondsInTimeFormat=function(e,t,n=0,i=!1){if(function(e,t,n){return e<0||null==e||1===t&&e===n||2===t&&0===e}(e,t,n))return"FINISH";const s=Math.floor(e/r.Timer.ONE_DAY_SECONDS),u=Math.floor(e%r.Timer.ONE_DAY_SECONDS/r.Timer.ONE_HOUR_SECONDS),a=Math.floor(e%r.Timer.ONE_HOUR_SECONDS/r.Timer.ONE_MIN_SECONDS),c=Math.floor(e%r.Timer.ONE_MIN_SECONDS);return i?0===s?o(u)+":"+o(a)+":"+o(c):s+"d - "+o(u)+":"+o(a)+":"+o(c):s+"d "+u+"h "+a+"m "+c+"s"}},"9AGB":function(e,t,n){"use strict";var r=n("w5QO");function o(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:r.noop}t.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return o(e)},t.pipeFromArray=o},CIkO:function(e,t,n){"use strict";var r=n("Q1FS"),o=n("1pIY"),i=n("p0+S");function s(e){var t=e.subscriber,n=e.counter,r=e.period;t.next(n),this.schedule({subscriber:t,counter:n+1,period:r},r)}t.interval=function(e,t){return void 0===e&&(e=0),void 0===t&&(t=o.async),(!i.isNumeric(e)||e<0)&&(e=0),t&&"function"==typeof t.schedule||(t=o.async),new r.Observable(function(n){return n.add(t.schedule(s,e,{subscriber:n,counter:0,period:e})),n})}},"Dz+M":function(e,t,n){var r=n("mrSG").__extends;t.Action=function(e){function t(t,n){return e.call(this)||this}return r(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(n("zB/H").Subscription)},FWf1:function(e,t,n){var r=n("mrSG").__extends,o=n("pshJ"),i=n("GiSu"),s=n("zB/H"),u=n("p//D"),a=n("n3uD"),c=n("MkmW"),l=function(e){function t(n,r,o){var s=e.call(this)||this;switch(s.syncErrorValue=null,s.syncErrorThrown=!1,s.syncErrorThrowable=!1,s.isStopped=!1,s._parentSubscription=null,arguments.length){case 0:s.destination=i.empty;break;case 1:if(!n){s.destination=i.empty;break}if("object"==typeof n){n instanceof t?(s.syncErrorThrowable=n.syncErrorThrowable,s.destination=n,n.add(s)):(s.syncErrorThrowable=!0,s.destination=new f(s,n));break}default:s.syncErrorThrowable=!0,s.destination=new f(s,n,r,o)}return s}return r(t,e),t.prototype[u.rxSubscriber]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(s.Subscription);t.Subscriber=l;var f=function(e){function t(t,n,r,s){var u,a=e.call(this)||this;a._parentSubscriber=t;var c=a;return o.isFunction(n)?u=n:n&&(u=n.next,r=n.error,s=n.complete,n!==i.empty&&(c=Object.create(n),o.isFunction(c.unsubscribe)&&a.add(c.unsubscribe.bind(c)),c.unsubscribe=a.unsubscribe.bind(a))),a._context=c,a._next=u,a._error=r,a._complete=s,a}return r(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;a.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=a.config.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):c.hostReportError(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;c.hostReportError(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};a.config.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),a.config.useDeprecatedSynchronousErrorHandling)throw n;c.hostReportError(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!a.config.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return a.config.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(c.hostReportError(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(l);t.SafeSubscriber=f},GMZp:function(e,t,n){"use strict";t.isObject=function(e){return null!=e&&"object"==typeof e}},GiSu:function(e,t,n){"use strict";var r=n("n3uD"),o=n("MkmW");t.empty={closed:!0,next:function(e){},error:function(e){if(r.config.useDeprecatedSynchronousErrorHandling)throw e;o.hostReportError(e)},complete:function(){}}},LBXl:function(e,t,n){"use strict";function r(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}r.prototype=Object.create(Error.prototype),t.UnsubscriptionError=r},LUJn:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("CIkO"),o=n("q3Kh"),i=n("4uHx"),s=n("Rbiz");t.Counter=class{constructor(e,t=!0){this.value=-1,this.value=e,this.clockFormat=t}start(e=s.Timer.ONE_SECOND_IN_MS){return r.interval(e).pipe(o.map(e=>i.secondsInTimeFormat(e,1,this.value,this.clockFormat)))}}},MC6w:function(e,t,n){"use strict";var r,o=n("24jU");function i(){try{return r.apply(this,arguments)}catch(e){return o.errorObject.e=e,o.errorObject}}t.tryCatch=function(e){return r=e,i}},MkmW:function(e,t,n){"use strict";t.hostReportError=function(e){setTimeout(function(){throw e})}},NTcF:function(e,t,n){var r=n("mrSG").__extends,o=n("ffpz");t.AsyncScheduler=function(e){function t(n,r){void 0===r&&(r=o.Scheduler.now);var i=e.call(this,n,function(){return t.delegate&&t.delegate!==i?t.delegate.now():r()})||this;return i.actions=[],i.active=!1,i.scheduled=void 0,i}return r(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(o.Scheduler)},Q1FS:function(e,t,n){"use strict";var r=n("yx2s"),o=n("Xwq/"),i=n("zfKp"),s=n("9AGB"),u=n("n3uD");function a(e){if(e||(e=u.config.Promise||Promise),!e)throw new Error("no Promise impl found");return e}t.Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,i=o.toSubscriber(e,t,n);if(r?r.call(i,this.source):i.add(this.source||u.config.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),u.config.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){u.config.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),r.canReportError(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=a(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[i.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:s.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;return new(e=a(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(t){return new e(t)},e}()},Rbiz:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Timer=function(e){return e[e.ONE_HOUR_SECONDS=3600]="ONE_HOUR_SECONDS",e[e.DAY_HOURS=24]="DAY_HOURS",e[e.ONE_MIN_SECONDS=60]="ONE_MIN_SECONDS",e[e.ONE_DAY_SECONDS=86400]="ONE_DAY_SECONDS",e[e.MS_PER_DAY=864e5]="MS_PER_DAY",e[e.ONE_SECOND_IN_MS=1e3]="ONE_SECOND_IN_MS",e}(t.Timer||{})},"Xwq/":function(e,t,n){"use strict";var r=n("FWf1"),o=n("p//D"),i=n("GiSu");t.toSubscriber=function(e,t,n){if(e){if(e instanceof r.Subscriber)return e;if(e[o.rxSubscriber])return e[o.rxSubscriber]()}return e||t||n?new r.Subscriber(e,t,n):new r.Subscriber(i.empty)}},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"},euHi:function(e,t,n){"use strict";function r(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0}),r(n("Rbiz")),r(n("4uHx")),r(n("LUJn")),r(n("tW1+"))},ffpz:function(e,t,n){"use strict";t.Scheduler=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}()},mbIT:function(e,t,n){"use strict";t.isArray=Array.isArray||function(e){return e&&"number"==typeof e.length}},mrSG:function(e,t,n){"use strict";n.r(t),n.d(t,"__extends",function(){return o}),n.d(t,"__assign",function(){return i}),n.d(t,"__rest",function(){return s}),n.d(t,"__decorate",function(){return u}),n.d(t,"__param",function(){return a}),n.d(t,"__metadata",function(){return c}),n.d(t,"__awaiter",function(){return l}),n.d(t,"__generator",function(){return f}),n.d(t,"__exportStar",function(){return d}),n.d(t,"__values",function(){return p}),n.d(t,"__read",function(){return h}),n.d(t,"__spread",function(){return v}),n.d(t,"__await",function(){return y}),n.d(t,"__asyncGenerator",function(){return g}),n.d(t,"__asyncDelegator",function(){return m}),n.d(t,"__asyncValues",function(){return _}),n.d(t,"__makeTemplateObject",function(){return b}),n.d(t,"__importStar",function(){return w}),n.d(t,"__importDefault",function(){return E});var r=function(e,t){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])})(e,t)};function o(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var i=function(){return(i=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function s(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(e);o<r.length;o++)t.indexOf(r[o])<0&&(n[r[o]]=e[r[o]])}return n}function u(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var u=e.length-1;u>=0;u--)(o=e[u])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s}function a(e,t){return function(n,r){t(n,r,e)}}function c(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function l(e,t,n,r){return new(n||(n=Promise))(function(o,i){function s(e){try{a(r.next(e))}catch(t){i(t)}}function u(e){try{a(r.throw(e))}catch(t){i(t)}}function a(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(s,u)}a((r=r.apply(e,t||[])).next())})}function f(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:u(0),throw:u(1),return:u(2)},"function"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function u(i){return function(u){return function(i){if(n)throw new TypeError("Generator is already executing.");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(u){i=[6,u],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,u])}}}function d(e,t){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}function p(e){var t="function"==typeof Symbol&&e[Symbol.iterator],n=0;return t?t.call(e):{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}}}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var r,o,i=n.call(e),s=[];try{for(;(void 0===t||t-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return s}function v(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(h(arguments[t]));return e}function y(e){return this instanceof y?(this.v=e,this):new y(e)}function g(e,t,n){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var r,o=n.apply(e,t||[]),i=[];return r={},s("next"),s("throw"),s("return"),r[Symbol.asyncIterator]=function(){return this},r;function s(e){o[e]&&(r[e]=function(t){return new Promise(function(n,r){i.push([e,t,n,r])>1||u(e,t)})})}function u(e,t){try{(n=o[e](t)).value instanceof y?Promise.resolve(n.value.v).then(a,c):l(i[0][2],n)}catch(r){l(i[0][3],r)}var n}function a(e){u("next",e)}function c(e){u("throw",e)}function l(e,t){e(t),i.shift(),i.length&&u(i[0][0],i[0][1])}}function m(e){var t,n;return t={},r("next"),r("throw",function(e){throw e}),r("return"),t[Symbol.iterator]=function(){return this},t;function r(r,o){t[r]=e[r]?function(t){return(n=!n)?{value:y(e[r](t)),done:"return"===r}:o?o(t):t}:o}}function _(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=p(e),t={},r("next"),r("throw"),r("return"),t[Symbol.asyncIterator]=function(){return this},t);function r(n){t[n]=e[n]&&function(t){return new Promise(function(r,o){!function(e,t,n,r){Promise.resolve(r).then(function(t){e({value:t,done:n})},t)}(r,o,(t=e[n](t)).done,t.value)})}}}function b(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function w(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function E(e){return e&&e.__esModule?e:{default:e}}},n3uD:function(e,t,n){"use strict";var r=!1;t.config={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){r=e},get useDeprecatedSynchronousErrorHandling(){return r}}},"p//D":function(e,t,n){"use strict";t.rxSubscriber="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),t.$$rxSubscriber=t.rxSubscriber},"p0+S":function(e,t,n){"use strict";var r=n("mbIT");t.isNumeric=function(e){return!r.isArray(e)&&e-parseFloat(e)+1>=0}},pshJ:function(e,t,n){"use strict";t.isFunction=function(e){return"function"==typeof e}},q3Kh:function(e,t,n){var r=n("mrSG").__extends,o=n("FWf1");t.map=function(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 i(e,t))}};var i=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new s(e,this.project,this.thisArg))},e}();t.MapOperator=i;var s=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r(t,e),t.prototype._next=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)},t}(o.Subscriber)},"tW1+":function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});const r=n("Rbiz"),o=n("CIkO"),i=n("4uHx"),s=n("q3Kh");t.CountDown=class{constructor(e,t=!0){this.value=-1,this.value=e,this.clockFormat=t}start(e=r.Timer.ONE_SECOND_IN_MS){return o.interval(e).pipe(s.map(e=>i.secondsInTimeFormat(this.value-e,2,1,this.clockFormat)))}}},w5QO:function(e,t,n){"use strict";t.noop=function(){}},wh0w:function(e,t,n){"use strict";e.exports=function(e,t){if(void 0===t&&(t=e,e=0),"number"!=typeof e||"number"!=typeof t)throw new TypeError("Expected all arguments to be numbers");return Math.floor(Math.random()*(t-e+1)+e)}},yx2s:function(e,t,n){"use strict";var r=n("FWf1");t.canReportError=function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof r.Subscriber?t:null}return!0}},"zB/H":function(e,t,n){"use strict";var r=n("mbIT"),o=n("GMZp"),i=n("pshJ"),s=n("MC6w"),u=n("24jU"),a=n("LBXl");function c(e){return e.reduce(function(e,t){return e.concat(t instanceof a.UnsubscriptionError?t.errors:t)},[])}t.Subscription=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,l=this._parents,f=this._unsubscribe,d=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var p=-1,h=l?l.length:0;n;)n.remove(this),n=++p<h&&l[p]||null;if(i.isFunction(f)&&s.tryCatch(f).call(this)===u.errorObject&&(t=!0,e=e||(u.errorObject.e instanceof a.UnsubscriptionError?c(u.errorObject.e.errors):[u.errorObject.e])),r.isArray(d))for(p=-1,h=d.length;++p<h;){var v=d[p];if(o.isObject(v)&&s.tryCatch(v.unsubscribe).call(v)===u.errorObject){t=!0,e=e||[];var y=u.errorObject.e;y instanceof a.UnsubscriptionError?e=e.concat(c(y.errors)):e.push(y)}}if(t)throw new a.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}()},zUnb:function(e,t,n){"use strict";n.r(t);var r=n("mrSG"),o=Array.isArray||function(e){return e&&"number"==typeof e.length};function i(e){return null!=e&&"object"==typeof e}function s(e){return"function"==typeof e}var u,a={e:{}};function c(){try{return u.apply(this,arguments)}catch(e){return a.e=e,a}}function l(e){return u=e,c}function f(e){return Error.call(this),this.message=e?e.length+" errors occurred during unsubscription:\n"+e.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"",this.name="UnsubscriptionError",this.errors=e,this}f.prototype=Object.create(Error.prototype);var d=f,p=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,u=this._unsubscribe,c=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,p=r?r.length:0;n;)n.remove(this),n=++f<p&&r[f]||null;if(s(u)&&l(u).call(this)===a&&(t=!0,e=e||(a.e instanceof d?h(a.e.errors):[a.e])),o(c))for(f=-1,p=c.length;++f<p;){var v=c[f];if(i(v)&&l(v.unsubscribe).call(v)===a){t=!0,e=e||[];var y=a.e;y instanceof d?e=e.concat(h(y.errors)):e.push(y)}}if(t)throw new d(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function h(e){return e.reduce(function(e,t){return e.concat(t instanceof d?t.errors:t)},[])}var v=!1,y={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){v=e},get useDeprecatedSynchronousErrorHandling(){return v}};function g(e){setTimeout(function(){throw e})}var m={closed:!0,next:function(e){},error:function(e){if(y.useDeprecatedSynchronousErrorHandling)throw e;g(e)},complete:function(){}},_="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),b=function(e){function t(n,r,o){var i=e.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,i._parentSubscription=null,arguments.length){case 0:i.destination=m;break;case 1:if(!n){i.destination=m;break}if("object"==typeof n){n instanceof t?(i.syncErrorThrowable=n.syncErrorThrowable,i.destination=n,n.add(i)):(i.syncErrorThrowable=!0,i.destination=new w(i,n));break}default:i.syncErrorThrowable=!0,i.destination=new w(i,n,r,o)}return i}return r.__extends(t,e),t.prototype[_]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this._parentSubscription=null,this},t}(p),w=function(e){function t(t,n,r,o){var i,u=e.call(this)||this;u._parentSubscriber=t;var a=u;return s(n)?i=n:n&&(i=n.next,r=n.error,o=n.complete,n!==m&&(s((a=Object.create(n)).unsubscribe)&&u.add(a.unsubscribe.bind(a)),a.unsubscribe=u.unsubscribe.bind(u))),u._context=a,u._next=i,u._error=r,u._complete=o,u}return r.__extends(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;y.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber,n=y.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):g(e),this.unsubscribe();else{if(this.unsubscribe(),n)throw e;g(e)}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};y.useDeprecatedSynchronousErrorHandling&&t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(n){if(this.unsubscribe(),y.useDeprecatedSynchronousErrorHandling)throw n;g(n)}},t.prototype.__tryOrSetError=function(e,t,n){if(!y.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{t.call(this._context,n)}catch(r){return y.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(g(r),!0)}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(b),E="function"==typeof Symbol&&Symbol.observable||"@@observable";var C=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,o=function(e,t,n){if(e){if(e instanceof b)return e;if(e[_])return e[_]()}return e||t||n?new b(e,t,n):new b(m)}(e,t,n);if(r?r.call(o,this.source):o.add(this.source||y.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),y.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){y.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=t),function(e){for(;e;){var t=e.destination;if(e.closed||e.isStopped)return!1;e=t&&t instanceof b?t:null}return!0}(e)?e.error(t):console.warn(t)}},e.prototype.forEach=function(e,t){var n=this;return new(t=x(t))(function(t,r){var o;o=n.subscribe(function(t){try{e(t)}catch(n){r(n),o&&o.unsubscribe()}},r,t)})},e.prototype._subscribe=function(e){var t=this.source;return t&&t.subscribe(e)},e.prototype[E]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return 0===e.length?this:((n=e)?1===n.length?n[0]:function(e){return n.reduce(function(e,t){return t(e)},e)}:function(){})(this);var n},e.prototype.toPromise=function(e){var t=this;return new(e=x(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(t){return new e(t)},e}();function x(e){if(e||(e=y.Promise||Promise),!e)throw new Error("no Promise impl found");return e}function S(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}S.prototype=Object.create(Error.prototype);var I=S,T=function(e){function t(t,n){var r=e.call(this)||this;return r.subject=t,r.subscriber=n,r.closed=!1,r}return r.__extends(t,e),t.prototype.unsubscribe=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)}}},t}(p),k=function(e){function t(t){var n=e.call(this,t)||this;return n.destination=t,n}return r.__extends(t,e),t}(b),O=function(e){function t(){var t=e.call(this)||this;return t.observers=[],t.closed=!1,t.isStopped=!1,t.hasError=!1,t.thrownError=null,t}return r.__extends(t,e),t.prototype[_]=function(){return new k(this)},t.prototype.lift=function(e){var t=new N(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new I;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new I;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new I;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},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new I;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new I;return this.hasError?(e.error(this.thrownError),p.EMPTY):this.isStopped?(e.complete(),p.EMPTY):(this.observers.push(e),new T(this,e))},t.prototype.asObservable=function(){var e=new C;return e.source=this,e},t.create=function(e,t){return new N(e,t)},t}(C),N=function(e){function t(t,n){var r=e.call(this)||this;return r.destination=t,r.source=n,r}return r.__extends(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):p.EMPTY},t}(O);function A(e){return e&&"function"==typeof e.schedule}var D=function(e){function t(t,n,r){var o=e.call(this)||this;return o.parent=t,o.outerValue=n,o.outerIndex=r,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(b),j=function(e){return function(t){for(var n=0,r=e.length;n<r&&!t.closed;n++)t.next(e[n]);t.closed||t.complete()}},P=function(e){return function(t){return e.then(function(e){t.closed||(t.next(e),t.complete())},function(e){return t.error(e)}).then(null,g),t}};function R(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var M=R(),V=function(e){return function(t){for(var n=e[M]();;){var r=n.next();if(r.done){t.complete();break}if(t.next(r.value),t.closed)break}return"function"==typeof n.return&&t.add(function(){n.return&&n.return()}),t}},H=function(e){return function(t){var n=e[E]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(t)}},F=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function L(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var B=function(e){if(e instanceof C)return function(t){return e._isScalar?(t.next(e.value),void t.complete()):e.subscribe(t)};if(e&&"function"==typeof e[E])return H(e);if(F(e))return j(e);if(L(e))return P(e);if(e&&"function"==typeof e[M])return V(e);var t=i(e)?"an invalid object":"'"+e+"'";throw new TypeError("You provided "+t+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")},z=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(b),U=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new W(e,this.project,this.thisArg))},e}(),W=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.project=n,o.count=0,o.thisArg=r||o,o}return r.__extends(t,e),t.prototype._next=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)},t}(b);function Z(e,t){return new C(t?function(n){var r=new p,o=0;return r.add(t.schedule(function(){o!==e.length?(n.next(e[o++]),n.closed||r.add(this.schedule())):n.complete()})),r}:j(e))}var G=function(){function e(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.project=e,this.concurrent=t}return e.prototype.call=function(e,t){return t.subscribe(new Q(e,this.project,this.concurrent))},e}(),Q=function(e){function t(t,n,r){void 0===r&&(r=Number.POSITIVE_INFINITY);var o=e.call(this,t)||this;return o.project=n,o.concurrent=r,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return r.__extends(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=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)},t.prototype._innerSub=function(e,t,n){var r,o,i=new D(this,void 0,void 0);this.destination.add(i),r=e,void 0===(o=i)&&(o=new D(this,t,n)),o.closed||B(r)(o)},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()},t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyComplete=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()},t}(z);function q(e){return e}function K(){return function(e){return e.lift(new Y(e))}}var Y=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new $(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),$=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._unsubscribe=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},t}(b),J=function(e){function t(t,n){var r=e.call(this)||this;return r.source=t,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.__extends(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new p).add(this.source.subscribe(new ee(this.getSubject(),this))),e.closed?(this._connection=null,e=p.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return K()(this)},t}(C).prototype,X={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:J._subscribe},_isComplete:{value:J._isComplete,writable:!0},getSubject:{value:J.getSubject},connect:{value:J.connect},refCount:{value:J.refCount}},ee=function(e){function t(t,n){var r=e.call(this,t)||this;return r.connectable=n,r}return r.__extends(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=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()}},t}(k);function te(){return new O}function ne(e){for(var t in e)if(e[t]===ne)return t;throw Error("Could not find renamed property on target object.")}var re=ne({ngComponentDef:ne}),oe=ne({ngInjectableDef:ne}),ie=ne({ngInjectorDef:ne}),se=ne({ngModuleDef:ne});function ue(e){return{providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ae(e){return e.hasOwnProperty(oe)?e[oe]:null}function ce(e){return e.hasOwnProperty(ie)?e[ie]:null}var le=function(){function e(e,t){this._desc=e,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==t?ue({providedIn:t.providedIn||"root",factory:t.factory}):void 0}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),fe="__parameters__";function de(e,t,n){var o=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var o=e.apply(void 0,Object(r.__spread)(t));for(var i in o)this[i]=o[i]}}}(t);function i(){for(var e,t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(this instanceof i)return o.apply(this,t),this;var s=new((e=i).bind.apply(e,Object(r.__spread)([void 0],t)));return u.annotation=s,u;function u(e,t,n){for(var r=e.hasOwnProperty(fe)?e[fe]:Object.defineProperty(e,fe,{value:[]})[fe];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(s),e}}return n&&(i.prototype=Object.create(n.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}var pe="undefined"!=typeof window&&window,he="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ve="undefined"!=typeof global&&global||pe||he,ye=Promise.resolve(0),ge=null;function me(){if(!ge){var e=ve.Symbol;if(e&&e.iterator)ge=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&&(ge=r)}}return ge}function _e(e){"undefined"==typeof Zone?ye.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function be(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function we(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(we).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 Ee(e){return e.__forward_ref__=Ee,e.toString=function(){return we(this())},e}function Ce(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===Ee?e():e}var xe=de("Inject",function(e){return{token:e}}),Se=de("Optional"),Ie=de("Self"),Te=de("SkipSelf"),ke="__source",Oe=new Object,Ne=Oe,Ae=new le("INJECTOR"),De=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=Oe),t===Oe)throw new Error("NullInjectorError: No provider for "+we(e)+"!");return t},e}(),je=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new ze(e,t):new ze(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=Oe,e.NULL=new De,e.ngInjectableDef=ue({providedIn:"any",factory:function(){return qe(Ae)}}),e}(),Pe=function(e){return e},Re=[],Me=Pe,Ve=function(){return Array.prototype.slice.call(arguments)},He=ne({provide:String,useValue:ne}),Fe=je.NULL,Le=/\n/gm,Be="\u0275",ze=function(){function e(e,t,n){void 0===t&&(t=Fe),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(je,{token:je,fn:Pe,deps:Re,value:this,useNew:!1}),r.set(Ae,{token:Ae,fn:Pe,deps:Re,value:this,useNew:!1}),function e(t,n){if(n)if((n=Ce(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw Ze("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw Ze("Unexpected provider",n);var o=Ce(n.provide),i=function(e){var t=function(e){var t=Re,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6;if((a=Ce(n[r]))instanceof Array)for(var i=0,s=a;i<s.length;i++){var u=s[i];u instanceof Se||u==Se?o|=1:u instanceof Te||u==Te?o&=-3:u instanceof Ie||u==Ie?o&=-5:a=u instanceof xe?u.token:Ce(u)}t.push({token:a,options:o})}}else if(e.useExisting){var a;t=[{token:a=Ce(e.useExisting),options:6}]}else if(!(n||He in e))throw Ze("'deps' required",e);return t}(e),n=Pe,r=Re,o=!1,i=Ce(e.provide);if(He in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=Ce(e.useClass);else{if("function"!=typeof i)throw Ze("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var s=t.get(o);if(s){if(s.fn!==Ve)throw Ue(o)}else t.set(o,s={token:n.provide,deps:[],useNew:!1,fn:Ve,value:Re});s.deps.push({token:o=n,options:6})}var u=t.get(o);if(u&&u.fn==Ve)throw Ue(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(e,t,n){void 0===n&&(n=0);var o=this._records.get(e);try{return function e(t,n,o,i,s,u){try{return function(t,n,o,i,s,u){var a,c;if(!n||4&u)2&u||(c=i.get(t,s,0));else{if((c=n.value)==Me)throw Error(Be+"Circular dependency");if(c===Re){n.value=Me;var l=n.useNew,f=n.fn,d=n.deps,p=Re;if(d.length){p=[];for(var h=0;h<d.length;h++){var v=d[h],y=v.options,g=2&y?o.get(v.token):void 0;p.push(e(v.token,g,o,g||4&y?i:Fe,1&y?null:je.THROW_IF_NOT_FOUND,0))}}n.value=c=l?new((a=f).bind.apply(a,Object(r.__spread)([void 0],p))):f.apply(void 0,p)}}return c}(t,n,o,i,s,u)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(t),n&&n.value==Me&&(n.value=Re),a}}(e,o,this._records,this.parent,t,n)}catch(s){var i=s.ngTempTokenPath;throw e[ke]&&i.unshift(e[ke]),s.message=We("\n"+s.message,i,this.source),s.ngTokenPath=i,s.ngTempTokenPath=null,s}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(we(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function Ue(e){return Ze("Cannot mix multi providers and regular providers",e)}function We(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==Be?e.substr(2):e;var r=we(t);if(t instanceof Array)r=t.map(we).join(" -> ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var s=t[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):we(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(Le,"\n  ")}function Ze(e,t){return new Error(We(e,t))}var Ge=void 0;function Qe(e){var t=Ge;return Ge=e,t}function qe(e,t){if(void 0===t&&(t=0),void 0===Ge)throw new Error("inject() must be called from an injection context");if(null===Ge){var n=ae(e);if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&t)return null;throw new Error("Injector: NOT_FOUND ["+we(e)+"]")}return Ge.get(e,8&t?null:void 0,t)}function Ke(e){for(var t=[],n=0;n<e.length;n++){var r=e[n];if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var o=void 0,i=0,s=0;s<r.length;s++){var u=r[s];u instanceof Se||"Optional"===u.ngMetadataName?i|=8:u instanceof Te||"SkipSelf"===u.ngMetadataName?i|=4:u instanceof Ie||"Self"===u.ngMetadataName?i|=2:o=u instanceof xe?u.token:u}t.push(qe(o,i))}else t.push(qe(r))}return t}Function;var Ye=function(e){return e[e.Emulated=0]="Emulated",e[e.Native=1]="Native",e[e.None=2]="None",e[e.ShadowDom=3]="ShadowDom",e}({}),$e="__ngContext__",Je=17,Xe=0,et=1,tt=2,nt=3,rt=4,ot=5,it=6,st=7,ut=8,at=9,ct=10,lt=11,ft=12,dt=14,pt=16;function ht(e,t){var n=gt(e),r=gt(t);return n&&r?function(e,t,n){for(var r=e[me()](),o=t[me()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,ht):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||be(e,t)}var vt=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),yt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function gt(e){return!!mt(e)&&(Array.isArray(e)||!(e instanceof Map)&&me()in e)}function mt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var _t=0,bt=1,wt=6;function Et(e){for(;Array.isArray(e);)e=e[ot];return e}function Ct(e,t){return Et(t[e.index])}function xt(e,t){var n=t[e];return n.length>=Je?n:n[ot]}function St(e){return e[$e]}function It(e){var t=St(e);return t?Array.isArray(t)?t:t.lViewData:null}function Tt(e,t){e[$e]=t}function kt(e,t,n){e.afterContentInit&&(t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentInit),e.afterContentChecked&&((t.contentHooks||(t.contentHooks=[])).push(n,e.afterContentChecked),(t.contentCheckHooks||(t.contentCheckHooks=[])).push(n,e.afterContentChecked))}function Ot(e,t,n){e.afterViewInit&&(t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewInit),e.afterViewChecked&&((t.viewHooks||(t.viewHooks=[])).push(n,e.afterViewChecked),(t.viewCheckHooks||(t.viewCheckHooks=[])).push(n,e.afterViewChecked))}function Nt(e,t,n){null!=e.onDestroy&&(t.destroyHooks||(t.destroyHooks=[])).push(n,e.onDestroy)}function At(e,t,n){16&e[et]&&(Dt(e,t.initHooks,t.checkHooks,n),e[et]&=-17)}function Dt(e,t,n,r){var o=r?t:n;o&&jt(e,o)}function jt(e,t){for(var n=0;n<t.length;n+=2)t[n+1].call(e[t[n]])}var Pt=9,Rt="ngProjectAs";function Mt(e){return!!e.listen}var Vt={createRenderer:function(e,t){return document}},Ht=[];function Ft(e){for(var t=e[it];t&&2===t.type;)t=(e=e[tt])[it];return e}function Lt(e,t,n,r,o){0===e?Mt(t)?t.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===e?Mt(t)?t.removeChild(n,r):n.removeChild(r):2===e&&t.destroyNode(r)}function Bt(e){var t=e[Xe].childIndex;return-1===t?null:e[t]}function zt(e,t){var n;return e.length>=Je&&(n=e[it])&&2===n.type?function(t,n){if(-1===t.index){var r=e[dt];return r>-1?e[tt][r]:null}return e[tt][t.parent.index]}(n):e[tt]===t?null:e[tt]}function Ut(e){if(e.length>=Je){var t=e;!function(e){var t=e[Xe].cleanup;if(null!=t){for(var n=0;n<t.length-1;n+=2)"string"==typeof t[n]?(Et(e[t[n+1]]).removeEventListener(t[n],e[ut][t[n+2]],t[n+3]),n+=2):"number"==typeof t[n]?(0,e[ut][t[n]])():t[n].call(e[ut][t[n+1]]);e[ut]=null}}(t),function(e){var t,n=e[Xe];null!=n&&null!=(t=n.destroyHooks)&&jt(e,t)}(t),(r=(n=t)[Xe]&&n[Xe].pipeDestroyHooks)&&jt(n,r),-1===t[Xe].id&&Mt(t[lt])&&t[lt].destroy()}var n,r}var Wt,Zt,Gt,Qt,qt,Kt,Yt,$t,Jt=Promise.resolve(null);function Xt(){return Zt}var en=!1,tn=!0,nn=-1;function rn(e,t){var n=$t;return qt=e&&e[Xe],Yt=e&&1==(1&e[et]),tn=e&&qt.firstTemplatePass,nn=e&&qt.bindingStartIndex,Wt=e&&e[lt],Gt=t,Qt=!0,$t=e,n&&(n[rt]=Kt),Kt=e&&e[rt],n}function on(e,t){t||(en||Dt($t,qt.viewHooks,qt.viewCheckHooks,Yt),$t[et]&=-6),$t[et]|=16,$t[st]=qt.bindingStartIndex,rn(e,null)}function sn(){un();var e=tn;qt.firstTemplatePass=tn=!1,en||At($t,qt,Yt),function(e){for(var t=Bt($t);null!==t;t=t[nt])if(t.length<Je&&-1===t[_t])for(var n=t,r=0;r<n[bt].length;r++){var o=n[bt][r];ln(o,o[Xe],o[at],2)}}(),function(e){if(null!=e.contentQueries)for(var t=0;t<e.contentQueries.length;t+=2){var n=e.contentQueries[t];e.data[n].contentQueriesRefresh(n-Je,e.contentQueries[t+1])}}(qt),en||Dt($t,qt.contentHooks,qt.contentCheckHooks,Yt),function(e,t){if(null!=e)for(var n=0;n<e.length;n++)mn(e[n],t)}(qt.components,e)}function un(){if(qt.expandoInstructions){nn=$t[st]=qt.expandoStartIndex;for(var e=-1,t=-1,n=0;n<qt.expandoInstructions.length;n++){var r=qt.expandoInstructions[n];"number"==typeof r?r<=0?(t=-r,"number"==typeof $t[nn]&&(nn+=Pt),e=nn):nn+=r:($t[st]=nn,r(e-Je,t),e++)}}}function an(e,t,n,r,o){var i=t.blueprint.slice();return i[et]=25|r,i[tt]=i[pt]=$t,i[at]=n,i[ct]=$t?$t[ct]:null,i[lt]=e,i[ft]=o||null,i}function cn(e,t,n,r,o){var i=e+Je;$t[i]=n;var s=qt.data[i];return null==s&&(s=qt.data[i]=gn(t,i,r,o,null),Gt&&(!Qt||null!=Gt.child||null===s.parent&&2!==Gt.type?Qt||(Gt.next=s):Gt.child=s)),null==qt.firstChild&&3===t&&(qt.firstChild=s),Gt=s,Qt=!0,s}function ln(e,t,n,r){var o,i=Qt,s=Gt;if(64&e[et])bn(e[at]);else try{Qt=!0,Gt=null,o=rn(e,e[it]),hn(),t.template(r,n),2&r?sn():e[Xe].firstTemplatePass=tn=!1}finally{on(o,1==(1&r)),Qt=i,Gt=s}}function fn(e,t,n){var r=rn(e,e[it]);try{Zt.begin&&Zt.begin(),n?(hn(),n(dn(e),t),sn()):(en||(At($t,qt,Yt),Dt($t,qt.contentHooks,qt.contentCheckHooks,Yt)),un(),mn(Je,!1))}finally{Zt.end&&Zt.end(),on(r)}}function dn(e){return 1&e[et]?3:2}var pn=null;function hn(){pn=null}function vn(e,t,n,r,o,i,s){var u=Je+n,a=u+r,c=function(e,t){var n=new Array(t).fill(null,0,e).fill(xn,e);return n[dt]=-1,n[st]=e,n}(u,a);return c[Xe]={id:e,blueprint:c,template:t,viewQuery:s,node:null,data:c.slice(),childIndex:-1,bindingStartIndex:u,expandoStartIndex:a,expandoInstructions:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof o?o():o,pipeRegistry:"function"==typeof i?i():i,currentMatches:null,firstChild:null}}function yn(e,t){Zt=e;var n=e.createRenderer(null,null);return"string"==typeof t?Mt(n)?n.selectRootElement(t):n.querySelector(t):t}function gn(e,t,n,r,o){var i=Qt?Gt:Gt&&Gt.parent,s=i&&$t&&i!==$t[it]?i:null;return{type:e,index:t,injectorIndex:s?s.injectorIndex:-1,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:s,detached:null,stylingTemplate:null,projection:null}}function mn(e,t){var n=xt(e,$t);_n(n)&&6&n[et]&&(t&&function(e){for(var t=e[Xe],n=e.length;n<t.blueprint.length;n++)e[n]=t.blueprint[n]}(n),Cn(n,n[at]))}function _n(e){return 8==(8&e[et])}function bn(e){for(var t=0;t<e.components.length;t++){var n=e.components[t];fn(It(n),n)}}function wn(e){Cn(function(e){var t,n=St(e);if(Array.isArray(n)){var r=function(e,t){var n=e[Xe].components;if(n)for(var r=0;r<n.length;r++){var o=n[r];if(xt(o,e)[at]===t)return o}else if(xt(Je,e)[at]===t)return Je;return-1}(n,e);(o=function(e,t,n){return{lViewData:e,nodeIndex:t,native:n,component:void 0,directives:void 0,localRefs:void 0}}(n,r,(t=xt(r,n))[ot])).component=e,Tt(e,o),Tt(o.native,o)}else{var o;t=xt((o=n).nodeIndex,o.lViewData)}return t}(e),e)}function En(e){bn(e[at])}function Cn(e,t){var n=e[Xe],r=rn(e,e[it]),o=n.template,i=n.viewQuery;try{hn(),function(t,n,r){t&&1&e[et]&&t(1,r)}(i,0,t),o(dn(e),t),sn(),function(e,t){e&&e(2,t)}(i,t)}finally{on(r)}}var xn={},Sn=Jt,In=[0,1];function Tn(e,t,n,r,o,i){var s=function(e,t,n,r){if(Tt(t,$t),r&&Tt(r,$t),$t[e]=t,tn){var o=Gt.flags;0===o?Gt.flags=e<<15|4096&o|1:Gt.flags++,qt.data.push(n),qt.blueprint.push(null),n.hostBindings&&qt.expandoInstructions.push((s=n).hostBindings,s.hostVars)}else{var i=n.diPublic;i&&i(n)}var s;return null!=n.attributes&&3==Gt.type&&function(e,t){for(var n=Mt(Wt),r=0;r<t.length;){var o=t[r];if(1===o)break;if(o===Rt)r+=2;else if(0===o){var i=t[r+1],s=t[r+2],u=t[r+3];n?Wt.setAttribute(e,s,u,i):e.setAttributeNS(i,s,u),r+=4}else u=t[r+1],n?Wt.setAttribute(e,o,u):e.setAttribute(o,u),r+=2}}(r,n.attributes),t}(r.length,n.factory(),n,e);return o.components.push(s),t[at]=s,i&&i.forEach(function(e){return e(s,n)}),r[Xe].firstTemplatePass&&function(e){for(var t=0;t<e;t++)$t.push(xn),qt.blueprint.push(xn),qt.data.push(null)}(n.hostVars),un(),s}function kn(e,t){return{components:[],scheduler:e,clean:Sn,playerHandler:t||null,flags:0}}function On(e,t){var n,r,o,i,s=It(e)[Xe],u=s.data.length-1;n=u,o=t.doCheck,i=s,(r=t.onInit)&&(i.initHooks||(i.initHooks=[])).push(n,r),o&&((i.initHooks||(i.initHooks=[])).push(n,o),(i.checkHooks||(i.checkHooks=[])).push(n,o)),function(e,t){if(t.firstTemplatePass)for(var n=e>>15,r=n+(4095&e),o=n;o<r;o++){var i=t.data[o];kt(i,t,o),Ot(i,t,o),Nt(i,t,o)}}(u<<15|1,s)}var Nn=function(){return function(){}}(),An=function(){return function(){}}();function Dn(e){var t=Error("No component factory found for "+we(e)+". Did you add it to @NgModule.entryComponents?");return t[Pn]=e,t}var jn,Pn="ngComponent",Rn=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw Dn(e)},e}(),Mn=function(){function e(){}return e.NULL=new Rn,e}(),Vn=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw Dn(e);return new Hn(t,this._ngModule)},e}(),Hn=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return Object(r.__extends)(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(An),Fn=function(){return function(){}}(),Ln=function(){return function(){}}(),Bn=function(e){function t(t){var n=e.call(this,t,null,-1)||this;return n._view=t,n}return Object(r.__extends)(t,e),t.prototype.detectChanges=function(){En(this._view)},t.prototype.checkNoChanges=function(){!function(e){en=!0;try{En(e)}finally{en=!1}}(this._view)},t}(function(){function e(e,t,n){this._context=t,this._componentIndex=n,this._appRef=null,this._viewContainerRef=null,this._tViewNode=null,this._view=e}return Object.defineProperty(e.prototype,"context",{get:function(){return this._context?this._context:this._lookUpContext()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 32==(32&this._view[et])},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){var e,t;this._viewContainerRef&&_n(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),Mt(t=(e=this._view)[lt])&&t.destroyNode&&function(t,n,r,o,i){for(var s=e[Xe].node,u=-1,a=e,c=s.child;c;){var l=null;if(3===c.type){Lt(2,r,null,Ct(c,a),i);var f=a[c.index];v=f,Array.isArray(v)&&"number"==typeof v[_t]&&Lt(2,r,null,f[wt],i)}else if(0===c.type){var d=a[c.index];Lt(2,r,null,d[wt],i),d[bt].length&&(l=(a=d[bt][0])[Xe].node,i=d[wt])}else if(1===c.type){var p=Ft(a),h=p[it].projection[c.projection];Ht[++u]=c,Ht[++u]=a,h&&(l=(a=p[tt])[Xe].data[h.index])}else l=c.child;if(null===l)for(null===c.next&&8192&c.flags&&(a=Ht[u--],c=Ht[u--]),l=c.next;!l;){if(null===(c=c.parent||a[Xe].node)||c===s)return null;0===c.type&&(i=(a=a[tt])[c.index][wt]),l=2===c.type&&a[nt]?(a=a[nt])[Xe].node:c.next}c=l}var v}(0,0,t),function(e){if(-1===e[Xe].childIndex)return Ut(e);for(var t=Bt(e);t;){var n=null;if(t.length>=Je?t[Xe].childIndex>-1&&(n=Bt(t)):t[bt].length&&(n=t[bt][0]),null==n){for(;t&&!t[nt]&&t!==e;)Ut(t),t=zt(t,e);Ut(t||e),n=t&&t[nt]}t=n}}(e),e[et]|=32},e.prototype.onDestroy=function(e){var t,n;n=e,function(e){return e[ut]||(e[ut]=[])}(t=this._view).push(n),t[Xe].firstTemplatePass&&function(e){return e[Xe].cleanup||(e[Xe].cleanup=[])}(t).push(t[ut].length-1,null)},e.prototype.markForCheck=function(){!function(e){for(var t=e;t&&!(64&t[et]);)t[et]|=4,t=t[tt];var n,r,o;t[et]|=4,o=0===(n=t[at]).flags,n.flags|=1,o&&n.clean==Jt&&(n.clean=new Promise(function(e){return r=e}),n.scheduler(function(){if(1&n.flags&&(n.flags&=-2,bn(n)),2&n.flags){n.flags&=-3;var e=n.playerHandler;e&&e.flushPlayers()}n.clean=Jt,r(null)}))}(this._view)},e.prototype.detach=function(){this._view[et]&=-9},e.prototype.reattach=function(){this._view[et]|=8},e.prototype.detectChanges=function(){var e=Xt();e.begin&&e.begin(),wn(this.context),e.end&&e.end()},e.prototype.checkNoChanges=function(){!function(e){en=!0;try{wn(e)}finally{en=!1}}(this.context)},e.prototype.attachToViewContainerRef=function(e){this._viewContainerRef=e},e.prototype.detachFromAppRef=function(){this._appRef=null},e.prototype.attachToAppRef=function(e){this._appRef=e},e.prototype._lookUpContext=function(){return this._context=this._view[tt][this._componentIndex]},e}());function zn(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t]}var Un=zn,Wn=zn,Zn=zn,Gn=zn,Qn=zn,qn=function(){function e(e){this.nativeElement=e}return e.__NG_ELEMENT_ID__=function(){return Un(e)},e}(),Kn=function(){return function(){}}(),Yn=function(){return function(){}}(),$n=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Jn=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Qn()},e}(),Xn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.resolveComponentFactory=function(e){return new or(e[re]||null)},t}(Mn);function er(e){var t=[];for(var n in e)e.hasOwnProperty(n)&&t.push({propName:e[n],templateName:n});return t}var tr=new le("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return kn(qe(nr))}}),nr=new le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return"undefined"!=typeof requestAnimationFrame&&"undefined"!=typeof window?requestAnimationFrame.bind(window):setTimeout}}),rr=new le("WRAP_RENDERER_FACTORY2"),or=function(e){function t(t){var n=e.call(this)||this;return n.componentDef=t,n.componentType=t.type,n.selector=t.selectors[0][0],n.ngContentSelectors=[],n}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){return er(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){return er(this.componentDef.outputs)},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,o){var i,s=void 0===n;i=o?o.injector.get(rr,function(e){return e})(o.injector.get(Yn)):Vt;var u,a,c=s?(u=this.selector,Mt(a=i.createRenderer(null,this.componentDef)||Wt)?a.createElement(u,pn):null===pn?a.createElement(u):a.createElementNS(pn,u)):yn(i,n),l=this.componentDef.onPush?68:66,f=o&&!s?o.injector.get(tr):kn(requestAnimationFrame.bind(window)),d=i.createRenderer(c,this.componentDef),p=an(d,vn(-1,null,1,0,null,null,null),f,l);p[ct]=o&&o.injector||null;var h,v,y,g,m=rn(p,null);try{i.begin&&i.begin();var _=function(e,t,n,r,o){Qt=!1,Gt=null;var i,s=n[Xe],u=an(r,(i=t.template).ngPrivateData||(i.ngPrivateData=vn(-1,i,t.consts,t.vars,t.directiveDefs,t.pipeDefs,t.viewQuery)),null,t.onPush?4:2,o),a=cn(0,3,e,null,null);return s.firstTemplatePass&&(s.expandoInstructions=In.slice(),t.diPublic&&t.diPublic(t),a.flags=n.length<<15|4096),u[ot]=n[Je],u[it]=a,n[Je]=u}(c,this.componentDef,p,d);if(v=p[Xe].data[0+Je],t)for(var b=0,w=v.projection=[],E=0;E<t.length;E++){for(var C=t[E],x=null,S=null,I=0;I<C.length;I++){g=void 0,(g=(y=p)[Xe]).firstTemplatePass&&(g.expandoStartIndex++,g.blueprint.push(null),y.push(null));var T=cn(++b,3,C[I],null,null);S?S.next=T:x=T,S=T}w.push(x)}h=Tn(c,_,this.componentDef,p,f,[On]),ln(_,_[Xe],h,1),_[et]&=-2}finally{rn(m,null),i.end&&i.end()}var k=new ir(this.componentType,h,p,e,function(e,t,n){return jn||(jn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t}(qn)),new jn(Ct(t,n))}(0,v,p));return s&&(k.hostView._tViewNode.child=v),k},t}(An),ir=function(e){function t(t,n,r,o,i){var s,u=e.call(this)||this;return u.location=i,u.destroyCbs=[],u.instance=n,u.hostView=u.changeDetectorRef=new Bn(r),u.hostView._tViewNode=(-1,null==(s=r)[Xe].node&&(s[Xe].node=gn(2,-1,null,null,null)),Qt=!0,Gt=s[it]=s[Xe].node),u.injector=o,u.componentType=t,u}return Object(r.__extends)(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Nn),sr=new le("The presence of this token marks an injector as being the root injector."),ur={},ar={},cr=[],lr=void 0;function fr(){return void 0===lr&&(lr=new De),lr}var dr=function(){function e(e,t,n){var r=this;this.parent=n,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this.destroyed=!1,vr([e],function(e){return r.processInjectorType(e,new Set)}),t&&vr(t,function(e){return r.processProvider(e)}),this.records.set(Ae,hr(void 0,this)),this.isRootInjector=this.records.has(sr),this.injectorDefTypes.forEach(function(e){return r.get(e)})}return e.prototype.destroy=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()}},e.prototype.get=function(e,t,n){void 0===t&&(t=Ne),void 0===n&&(n=0),this.assertNotDestroyed();var r,o=Qe(this);try{if(!(4&n)){var i=this.records.get(e);if(void 0===i){var s=("function"==typeof(r=e)||"object"==typeof r&&r instanceof le)&&ae(e);s&&this.injectableDefInScope(s)&&(i=pr(e),this.records.set(e,i))}if(void 0!==i)return this.hydrate(e,i)}return 2&n&&fr(),this.parent.get(e,t)}finally{Qe(o)}},e.prototype.assertNotDestroyed=function(){if(this.destroyed)throw new Error("Injector has already been destroyed.")},e.prototype.processInjectorType=function(e,t){var n=this,r=ce(e=Ce(e)),o=null==r&&e.ngModule||void 0,i=void 0===o?e:o,s=void 0!==o&&e.providers||cr;if(void 0!==o&&(r=ce(o)),null!=r){if(t.has(i))throw new Error("Circular dependency: type "+we(i)+" ends up importing itself.");if(this.injectorDefTypes.add(i),this.records.set(i,hr(r.factory)),null!=r.imports){t.add(i);try{vr(r.imports,function(e){return n.processInjectorType(e,t)})}finally{t.delete(i)}}null!=r.providers&&vr(r.providers,function(e){return n.processProvider(e)}),vr(s,function(e){return n.processProvider(e)})}},e.prototype.processProvider=function(e){var t=yr(e=Ce(e))?e:Ce(e.provide),n=function(e){var t=Ce(e),n=ur,o=void 0;if(yr(e))return pr(e);if(t=Ce(e.provide),He in e)n=e.useValue;else if(e.useExisting)o=function(){return qe(e.useExisting)};else if(e.useFactory)o=function(){return e.useFactory.apply(e,Object(r.__spread)(Ke(e.deps||[])))};else{var i=e.useClass||t;if(!e.deps)return pr(i);o=function(){return new(i.bind.apply(i,Object(r.__spread)([void 0],Ke(e.deps))))}}return hr(o,n)}(e);if(yr(e)||!0!==e.multi){var o=this.records.get(t);if(o&&void 0!==o.multi)throw new Error("Mixed multi-provider for "+we(t))}else{var i=this.records.get(t);if(i){if(void 0===i.multi)throw new Error("Mixed multi-provider for "+t+".")}else(i=hr(void 0,ur,!0)).factory=function(){return Ke(i.multi)},this.records.set(t,i);t=e,i.multi.push(e)}this.records.set(t,n)},e.prototype.hydrate=function(e,t){if(t.value===ar)throw new Error("Circular dep for "+we(e));var n;return t.value===ur&&(t.value=ar,t.value=t.factory()),"object"==typeof t.value&&t.value&&"object"==typeof(n=t.value)&&null!=n&&n.ngOnDestroy&&"function"==typeof n.ngOnDestroy&&this.onDestroy.add(t.value),t.value},e.prototype.injectableDefInScope=function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||"root"===e.providedIn&&this.isRootInjector:this.injectorDefTypes.has(e.providedIn))},e}();function pr(e){var t=ae(e);if(null===t){if(e instanceof le)throw new Error("Token "+we(e)+" is missing an ngInjectableDef definition.");return hr(function(){return new e})}return hr(t.factory)}function hr(e,t,n){return void 0===t&&(t=ur),void 0===n&&(n=!1),{factory:e,value:t,multi:n?[]:void 0}}function vr(e,t){e.forEach(function(e){return Array.isArray(e)?vr(e,t):t(e)})}function yr(e){return"function"==typeof e}var gr={provide:Mn,useFactory:function(){return new Xn},deps:[]},mr=function(e){function t(t,n){var r=e.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(t[se]||null).bootstrap,r.injector=function(e,t,n){return void 0===t&&(t=null),void 0===n&&(n=null),t=t||fr(),new dr(e,n,t)}(t,n,[gr,{provide:Fn,useValue:r}]),r.instance=r.injector.get(t),r.componentFactoryResolver=new Xn,r}return Object(r.__extends)(t,e),t.prototype.destroy=function(){this.destroyCbs.forEach(function(e){return e()}),this.destroyCbs=null},t.prototype.onDestroy=function(e){this.destroyCbs.push(e)},t}(Fn);!function(e){function t(t){var n=e.call(this)||this;return n.moduleType=t,n}Object(r.__extends)(t,e),t.prototype.create=function(e){return new mr(this.moduleType,e)}}(Ln);var _r=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(r.__extends)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=e.prototype.subscribe.call(this,o,i,s);return t instanceof p&&t.add(u),u},t}(O),br=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Wn(e,qn)},e}(),wr=!0,Er=!1;function Cr(){return Er=!0,wr}var xr=function(){function e(e){if(this.defaultDoc=e,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t),this.inertBodyElement=this.inertDocument.createElement("body"),t.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(r){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(void 0);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(n){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.inertDocument.createElement("template");return"content"in t?(t.innerHTML=e,t):(this.inertBodyElement.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){for(var t=e.attributes,n=t.length-1;0<n;n--){var r=t.item(n).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var o=e.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},e}(),Sr=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:\/?#]*(?:[\/?#]|$))/gi,Ir=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;function Tr(e){return(e=String(e)).match(Sr)||e.match(Ir)?e:(Cr()&&console.warn("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function kr(e){var t,n,o={};try{for(var i=Object(r.__values)(e.split(",")),s=i.next();!s.done;s=i.next())o[s.value]=!0}catch(u){t={error:u}}finally{try{s&&!s.done&&(n=i.return)&&n.call(i)}finally{if(t)throw t.error}}return o}function Or(){for(var e,t,n=[],o=0;o<arguments.length;o++)n[o]=arguments[o];var i={};try{for(var s=Object(r.__values)(n),u=s.next();!u.done;u=s.next()){var a=u.value;for(var c in a)a.hasOwnProperty(c)&&(i[c]=!0)}}catch(l){e={error:l}}finally{try{u&&!u.done&&(t=s.return)&&t.call(s)}finally{if(e)throw e.error}}return i}var Nr,Ar=kr("area,br,col,hr,img,wbr"),Dr=kr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),jr=kr("rp,rt"),Pr=Or(jr,Dr),Rr=Or(Ar,Or(Dr,kr("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),Or(jr,kr("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),Pr),Mr=kr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Vr=kr("srcset"),Hr=Or(Mr,Vr,kr("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width")),Fr=function(){function e(){this.sanitizedSomething=!1,this.buf=[]}return e.prototype.sanitizeChildren=function(e){for(var t=e.firstChild;t;)if(t.nodeType===Node.ELEMENT_NODE?this.startElement(t):t.nodeType===Node.TEXT_NODE?this.chars(t.nodeValue):this.sanitizedSomething=!0,t.firstChild)t=t.firstChild;else for(;t;){t.nodeType===Node.ELEMENT_NODE&&this.endElement(t);var n=this.checkClobberedElement(t,t.nextSibling);if(n){t=n;break}t=this.checkClobberedElement(t,t.parentNode)}return this.buf.join("")},e.prototype.startElement=function(e){var t=e.nodeName.toLowerCase();if(Rr.hasOwnProperty(t)){this.buf.push("<"),this.buf.push(t);for(var n,r=e.attributes,o=0;o<r.length;o++){var i=r.item(o),s=i.name,u=s.toLowerCase();if(Hr.hasOwnProperty(u)){var a=i.value;Mr[u]&&(a=Tr(a)),Vr[u]&&(n=a,a=(n=String(n)).split(",").map(function(e){return Tr(e.trim())}).join(", ")),this.buf.push(" ",s,'="',zr(a),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=e.nodeName.toLowerCase();Rr.hasOwnProperty(t)&&!Ar.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(zr(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&(e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+e.outerHTML);return t},e}(),Lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Br=/([^\#-~ |!])/g;function zr(e){return e.replace(/&/g,"&amp;").replace(Lr,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace(Br,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ur(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Wr=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}({}),Zr=function(){return function(){}}(),Gr=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Qr=/^url\(([^)]+)\)$/;String,String;var qr=new(function(){return function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")}}())("7.0.4"),Kr="ngDebugContext",Yr="ngOriginalError",$r="ngErrorLogger";function Jr(e){return e[Kr]}function Xr(e){return e[Yr]}function eo(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,Object(r.__spread)(t))}var to=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[$r]||eo}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Jr(e)?Jr(e):this._findContext(Xr(e)):null},e.prototype._findOriginalError=function(e){for(var t=Xr(e);t&&Xr(t);)t=Xr(t);return t},e}();function no(e){return!!e&&"function"==typeof e.then}var ro=new le("Application Initializer"),oo=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=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 o=this.appInits[r]();no(o)&&t.push(o)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),io=new le("AppId");function so(){return""+uo()+uo()+uo()}function uo(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ao=new le("Platform Initializer"),co=new le("Platform ID"),lo=new le("appBootstrapListener"),fo=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e}();function po(){throw new Error("Runtime compiler is not loaded")}var ho,vo,yo=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw po()},e.prototype.compileModuleAsync=function(e){throw po()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw po()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw po()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e.prototype.getModuleId=function(e){},e}(),go=function(){return function(){}}();function mo(){var e=ve.wtf;return!(!e||!(ho=e.trace)||(vo=ho.events,0))}var _o=mo();function bo(e,t){return null}var wo=_o?function(e,t){return void 0===t&&(t=null),vo.createScope(e,t)}:function(e,t){return bo},Eo=_o?function(e,t){return ho.leaveScope(e,t),t}:function(e,t){return t},Co=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _r(!1),this.onMicrotaskEmpty=new _r(!1),this.onStable=new _r(!1),this.onError=new _r(!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)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return To(t),e.invokeTask(r,o,i,s)}finally{ko(t)}},onInvoke:function(e,n,r,o,i,s,u){try{return To(t),e.invoke(r,o,i,s,u)}finally{ko(t)}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?(t.hasPendingMicrotasks=o.microTask,Io(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.runOutsideAngular(function(){return t.onError.emit(o)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,So,xo,xo);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function xo(){}var So={};function Io(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 To(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ko(e){e._nesting--,Io(e)}var Oo,No=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new _r,this.onMicrotaskEmpty=new _r,this.onStable=new _r,this.onError=new _r}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),Ao=function(){function e(e){var t=this;this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),e.run(function(){t.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return e.prototype._watchAngularEvents=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(){Co.assertNotInAngularZone(),_e(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;if(this.isStable())_e(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}},e.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}}):[]},e.prototype.addCallback=function(e,t,n){var r=this,o=-1;t&&t>0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(e){return e.timeoutId!==o}),e(r._didWork,r.getPendingTasks())},t)),this._callbacks.push({doneCb:e,timeoutId:o,updateCb:n})},e.prototype.whenStable=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()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Do=function(){function e(){this._applications=new Map,jo.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),jo.findTestabilityInTree(this,e,t)},Object(r.__decorate)([Object(r.__metadata)("design:paramtypes",[])],e)}(),jo=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),Po=new le("AllowMultipleToken"),Ro=function(){return function(e,t){this.name=e,this.token=t}}();function Mo(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new le(r);return function(t){void 0===t&&(t=[]);var i=Vo();if(!i||i.injector.get(Po,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Oo&&!Oo.destroyed&&!Oo.injector.get(Po,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oo=e.get(Ho);var t=e.get(ao,null);t&&t.forEach(function(e){return e()})}(je.create({providers:s,name:r}))}return function(e){var t=Vo();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function Vo(){return Oo&&!Oo.destroyed?Oo:null}var Ho=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new No:("zone.js"===n?void 0:n)||new Co({enableLongStackTrace:Cr()}),i=[{provide:Co,useValue:o}];return o.run(function(){var t=je.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get(to,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Bo(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,o){try{var i=((s=n.injector.get(oo)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return no(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(u){throw t.runOutsideAngular(function(){return e.handleError(u)}),u}var s}(s,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=Fo({},t);return function(e,t,n){return e.get(go).createCompiler([t]).compileModuleAsync(n)}(this.injector,r,e).then(function(e){return n.bootstrapModuleFactory(e,r)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Lo);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+we(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)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=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},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Fo(e,t){return Array.isArray(t)?t.reduce(Fo,e):Object(r.__assign)({},e,t)}var Lo=function(){function e(e,t,n,r,o,i){var s=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Cr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var u=new C(function(e){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){e.next(s._stable),e.complete()})}),a=new C(function(e){var t;s._zone.runOutsideAngular(function(){t=s._zone.onStable.subscribe(function(){Co.assertNotInAngularZone(),_e(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,e.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Co.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=Number.POSITIVE_INFINITY,r=null,o=e[e.length-1];return A(o)?(r=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof o&&(n=e.pop()),null===r&&1===e.length&&e[0]instanceof C?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function e(t,n,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"function"==typeof n?function(o){return o.pipe(e(function(e,r){return(o=t(e,r),o instanceof C?o:new C(B(o))).pipe(function(e,t){return function(t){return t.lift(new U(e,void 0))}}(function(t,o){return n(e,t,r,o)}));var o},r))}:("number"==typeof n&&(r=n),function(e){return e.lift(new G(t,r))})}(q,e)}(n)(Z(e,r))}(u,a.pipe(function(e){return K()((t=te,function(e){var n;n="function"==typeof t?t:function(){return t};var r=Object.create(e,X);return r.source=e,r.subjectFactory=n,r})(e));var t}))}var t;return t=e,e.prototype.bootstrap=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 An?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof Hn?null:this._injector.get(Fn),i=n.create(je.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(Ao,null);return s&&i.injector.get(Do).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Cr()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Eo(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Bo(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(lo,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Bo(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=wo("ApplicationRef#tick()"),e}();function Bo(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var zo,Uo=function(){function e(){this.dirty=!0,this._results=[],this.changes=new _r,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[me()]=function(){return this._results[me()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),Wo=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Gn(e,qn)},e}(),Zo=function(){function e(){}return e.__NG_ELEMENT_ID__=function(){return Zn()},e}(),Go=(zo=Zo,Object(r.__extends)(function(){return null!==zo&&zo.apply(this,arguments)||this},zo),function(){return function(e,t){this.name=e,this.callback=t}}()),Qo=function(){function e(e,t,n){this.nativeNode=e,this._debugContext=n,this.listeners=[],this.parent=null,t&&t instanceof qo&&t.addChild(this)}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),qo=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.__extends)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,o=this,i=this.childNodes.indexOf(e);-1!==i&&((n=this.childNodes).splice.apply(n,Object(r.__spread)([i+1,0],t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=o}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return function e(t,n,r){t.childNodes.forEach(function(t){t instanceof qo&&(n(t)&&r.push(t),e(t,n,r))})}(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return function e(t,n,r){t instanceof qo&&t.childNodes.forEach(function(t){n(t)&&r.push(t),t instanceof qo&&e(t,n,r)})}(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(Qo),Ko=new Map;function Yo(e){return Ko.get(e)||null}function $o(e){Ko.set(e.nativeNode,e)}var Jo=function(){function e(){}return e.prototype.supports=function(e){return gt(e)},e.prototype.create=function(e){return new ei(e)},e}(),Xo=function(e,t){return t},ei=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||Xo}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<oi(n,r,o)?t:n,s=oi(i,r,o),u=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var a=s-r,c=u-r;if(a!=c){for(var l=0;l<a;l++){var f=l<o.length?o[l]:o[l]=0,d=f+l;c<=d&&d<a&&(o[l]=f+1)}o[i.previousIndex]=c-a}}s!==u&&e(i,s,u)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!gt(e))throw new Error("Error trying to diff '"+we(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var u=0;u<this.length;u++)o=this._trackByFn(u,r=e[u]),null!==i&&be(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,u)),be(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,u),s=!0),i=i._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=e[me()](),o=void 0;!(o=r.next()).done;)t(o.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&be(i.trackById,o)?(s&&(i=t._verifyReinsertion(i,e,o,n)),be(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),s=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;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}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(be(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(be(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new ti(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=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)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=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 ri),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=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},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ri),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},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),ti=function(){return function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),ni=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=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)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&be(n.trackById,e))return n;return null},e.prototype.remove=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}(),ri=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new ni,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function oi(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var ii=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||mt(e)},e.prototype.create=function(){return new si},e}(),si=function(){function 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 Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||mt(e)))throw new Error("Error trying to diff '"+we(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=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 o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),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},e.prototype._insertBeforeOrAppend=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},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new ui(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;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}},e.prototype._maybeAddToChanges=function(e,t){be(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),ui=function(){return function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),ai=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=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 Se]]}},e.prototype.find=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 '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e.ngInjectableDef=ue({providedIn:"root",factory:function(){return new e([new Jo])}}),e}(),ci=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=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 Se]]}},e.prototype.find=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 '"+e+"'")},e}(),li=[new ii],fi=new ai([new Jo]),di=new ci(li),pi=Mo(null,"core",[{provide:co,useValue:"unknown"},{provide:Ho,deps:[je]},{provide:Do,deps:[]},{provide:fo,deps:[]}]),hi=new le("LocaleId");function vi(){return fi}function yi(){return di}function gi(e){return e||"en-US"}var mi=function(){return function(e){}}();function _i(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function bi(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function wi(e,t){return e.nodes[t]}function Ei(e,t){return e.nodes[t]}function Ci(e,t){return e.nodes[t]}function xi(e,t){return e.nodes[t]}function Si(e,t){return e.nodes[t]}var Ii={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Ti(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return ki(n,t),n}(o,e)}function ki(e,t){e[Kr]=t,e[$r]=t.logError.bind(t)}function Oi(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Ni=function(){},Ai=new Map;function Di(e){var t=Ai.get(e);return t||(t=we(e)+"_"+Ai.size,Ai.set(e,t)),t}var ji="$$undefined",Pi="$$empty";function Ri(e){return{id:ji,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var Mi=0;function Vi(e,t,n,r){return!(!(2&e.state)&&be(e.oldValues[t.bindingIndex+n],r))}function Hi(e,t,n,r){return!!Vi(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function Fi(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!ht(o,r)){var i=t.bindings[n].name;throw Ti(Ii.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function Li(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function Bi(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function zi(e,t,n,r){try{return Li(33554432&e.def.nodes[t].flags?Ei(e,t).componentView:e),Ii.handleEvent(e,t,n,r)}catch(o){e.root.errorHandler.handleError(o)}}function Ui(e){return e.parent?Ei(e.parent,e.parentNodeDef.nodeIndex):null}function Wi(e){return e.parent?e.parentNodeDef.parent:null}function Zi(e,t){switch(201347067&t.flags){case 1:return Ei(e,t.nodeIndex).renderElement;case 2:return wi(e,t.nodeIndex).renderText}}function Gi(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function Qi(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function qi(e){var t={},n=0,o={};return e&&e.forEach(function(e){var i=Object(r.__read)(e,2),s=i[0],u=i[1];"number"==typeof s?(t[s]=u,n|=function(e){return 1<<e%32}(s)):o[s]=u}),{matchedQueries:t,references:o,matchedQueryIds:n}}function Ki(e,t){return e.map(function(e){var n,o,i;return Array.isArray(e)?(i=(n=Object(r.__read)(e,2))[0],o=n[1]):(i=0,o=e),o&&("function"==typeof o||"object"==typeof o)&&t&&Object.defineProperty(o,ke,{value:t,configurable:!0}),{flags:i,token:o,tokenKey:Di(o)}})}function Yi(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===Ye.Native?Ei(e,n.renderParent.nodeIndex).renderElement:void 0:t}var $i=new WeakMap;function Ji(e){var t=$i.get(e);return t||((t=e(function(){return Ni})).factory=e,$i.set(e,t)),t}function Xi(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(Zi(e,e.def.lastRenderRootNode))),es(e,t,0,e.def.nodes.length-1,n,r,o)}function es(e,t,n,r,o,i,s){for(var u=n;u<=r;u++){var a=e.def.nodes[u];11&a.flags&&ns(e,a,t,o,i,s),u+=a.childCount}}function ts(e,t,n,r,o,i){for(var s=e;s&&!Gi(s);)s=s.parent;for(var u=s.parent,a=Wi(s),c=a.nodeIndex+a.childCount,l=a.nodeIndex+1;l<=c;l++){var f=u.def.nodes[l];f.ngContentIndex===t&&ns(u,f,n,r,o,i),l+=f.childCount}if(!u.parent){var d=e.root.projectableNodes[t];if(d)for(l=0;l<d.length;l++)rs(e,d[l],n,r,o,i)}}function ns(e,t,n,r,o,i){if(8&t.flags)ts(e,t.ngContent.index,n,r,o,i);else{var s=Zi(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&rs(e,s,n,r,o,i),32&t.bindingFlags&&rs(Ei(e,t.nodeIndex).componentView,s,n,r,o,i)):rs(e,s,n,r,o,i),16777216&t.flags)for(var u=Ei(e,t.nodeIndex).viewContainer._embeddedViews,a=0;a<u.length;a++)Xi(u[a],n,r,o,i);1&t.flags&&!t.element.name&&es(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function rs(e,t,n,r,o,i){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,o);break;case 3:s.removeChild(r,t);break;case 0:i.push(t)}}var os=/^:([^:]+):(.+)$/;function is(e){if(":"===e[0]){var t=e.match(os);return[t[1],t[2]]}return["",e]}function ss(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function us(e,t,n,r,o,i){e|=1;var s=qi(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?Ji(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Ni},provider:null,text:null,query:null,ngContent:null}}function as(e,t,n,o,i,s,u,a,c,l,f,d){var p;void 0===u&&(u=[]),l||(l=Ni);var h=qi(n),v=h.matchedQueries,y=h.references,g=h.matchedQueryIds,m=null,_=null;s&&(m=(p=Object(r.__read)(is(s),2))[0],_=p[1]),a=a||[];for(var b=new Array(a.length),w=0;w<a.length;w++){var E=Object(r.__read)(a[w],3),C=E[0],x=E[1],S=E[2],I=Object(r.__read)(is(x),2),T=I[0],k=I[1],O=void 0,N=void 0;switch(15&C){case 4:N=S;break;case 1:case 8:O=S}b[w]={flags:C,ns:T,name:k,nonMinifiedName:k,securityContext:O,suffix:N}}c=c||[];var A=new Array(c.length);for(w=0;w<c.length;w++){var D=Object(r.__read)(c[w],2);A[w]={type:0,target:D[0],eventName:D[1],propName:null}}var j=(u=u||[]).map(function(e){var t=Object(r.__read)(e,2),n=t[0],o=t[1],i=Object(r.__read)(is(n),2);return[i[0],i[1],o]});return d=function(e){if(e&&e.id===ji){var t=null!=e.encapsulation&&e.encapsulation!==Ye.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+Mi++:Pi}return e&&e.id===Pi&&(e=null),e||null}(d),f&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:v,matchedQueryIds:g,references:y,ngContentIndex:o,childCount:i,bindings:b,bindingFlags:ss(b),outputs:A,element:{ns:m,name:_,attrs:j,template:null,componentProvider:null,componentView:f||null,componentRendererType:d,publicProviders:null,allProviders:null,handleEvent:l||Ni},provider:null,text:null,query:null,ngContent:null}}function cs(e,t,n){var o,i=n.element,s=e.root.selectorOrNode,u=e.renderer;if(e.parent||!s){o=i.name?u.createElement(i.name,i.ns):u.createComment("");var a=Yi(e,t,n);a&&u.appendChild(a,o)}else o=u.selectRootElement(s,!!i.componentRendererType&&i.componentRendererType.encapsulation===Ye.ShadowDom);if(i.attrs)for(var c=0;c<i.attrs.length;c++){var l=Object(r.__read)(i.attrs[c],3);u.setAttribute(o,l[1],l[2],l[0])}return o}function ls(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=fs(e,n.nodeIndex,(f=i.eventName,(l=i.target)?l+":"+f:f)),u=i.target,a=e;"component"===i.target&&(u=null,a=t);var c=a.renderer.listen(u||r,i.eventName,s);e.disposables[n.outputIndex+o]=c}var l,f}function fs(e,t,n){return function(r){return zi(e,t,n,r)}}function ds(e,t,n,r){if(!Hi(e,t,n,r))return!1;var o=t.bindings[n],i=Ei(e,t.nodeIndex),s=i.renderElement,u=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,i){var s=t.securityContext,u=s?e.root.sanitizer.sanitize(s,i):i;u=null!=u?u.toString():null;var a=e.renderer;null!=i?a.setAttribute(n,o,u,r):a.removeAttribute(n,o,r)}(e,o,s,o.ns,u,r);break;case 2:!function(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,s,u,r);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(Wr.STYLE,o);if(null!=i){i=i.toString();var s=t.suffix;null!=s&&(i+=s)}else i=null;var u=e.renderer;null!=i?u.setStyle(n,r,i):u.removeStyle(n,r)}(e,o,s,u,r);break;case 8:!function(e,t,n,r,o){var i=t.securityContext,s=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&o.flags?i.componentView:e,o,s,u,r)}return!0}var ps=new Object,hs=Di(je),vs=Di(Ae),ys=Di(Fn);function gs(e,t,n,r){return n=Ce(n),{index:-1,deps:Ki(r,we(t)),flags:e,token:t,value:n}}function ms(e,t,n){void 0===n&&(n=je.THROW_IF_NOT_FOUND);var r,o,i=Qe(e);try{if(8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var s=t.tokenKey;switch(s){case hs:case vs:case ys:return e}var u,a=e._def.providersByKey[s];if(a){var c=e._providers[a.index];return void 0===c&&(c=e._providers[a.index]=_s(e,a)),c===ps?void 0:c}if((u=ae(t.token))&&(r=e,null!=(o=u).providedIn&&(function(e,t){return e._def.modules.indexOf(o.providedIn)>-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var l=e._providers.length;return e._def.providersByKey[t.tokenKey]={flags:5120,value:u.factory,deps:[],index:l,token:t.token},e._providers[l]=ps,e._providers[l]=_s(e,e._def.providersByKey[t.tokenKey])}return 4&t.flags?n:e._parent.get(t.token,n)}finally{Qe(i)}}function _s(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var o=n.length;switch(o){case 0:return new t;case 1:return new t(ms(e,n[0]));case 2:return new t(ms(e,n[0]),ms(e,n[1]));case 3:return new t(ms(e,n[0]),ms(e,n[1]),ms(e,n[2]));default:for(var i=new Array(o),s=0;s<o;s++)i[s]=ms(e,n[s]);return new(t.bind.apply(t,Object(r.__spread)([void 0],i)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var o=n.length;switch(o){case 0:return t();case 1:return t(ms(e,n[0]));case 2:return t(ms(e,n[0]),ms(e,n[1]));case 3:return t(ms(e,n[0]),ms(e,n[1]),ms(e,n[2]));default:for(var i=Array(o),s=0;s<o;s++)i[s]=ms(e,n[s]);return t.apply(void 0,Object(r.__spread)(i))}}(e,t.value,t.deps);break;case 2048:n=ms(e,t.deps[0]);break;case 256:n=t.value}return n===ps||null==n||"object"!=typeof n||131072&t.flags||"function"!=typeof n.ngOnDestroy||(t.flags|=131072),void 0===n?ps:n}function bs(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,xs(n,t),Ii.dirtyParentQueries(r),Es(r),r}function ws(e,t,n){var r=t?Zi(t,t.def.lastRenderRootNode):e.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);Xi(n,2,o,i,void 0)}function Es(e){Xi(e,3,null,null,void 0)}function Cs(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function xs(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Ss=new Object;function Is(e,t,n,r,o,i){return new Ts(e,t,n,r,o,i)}var Ts=function(e){function t(t,n,r,o,i,s){var u=e.call(this)||this;return u.selector=t,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=s,u.viewDefFactory=r,u}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=Ji(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Ii.createRootView(e,t||[],n,o,r,Ss),u=Ci(s,i).instance;return n&&s.renderer.setAttribute(Ei(s,0).renderElement,"ng-version",qr.full),new ks(s,new Ds(s),u)},t}(An),ks=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.__extends)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new qn(Ei(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ms(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(Nn);function Os(e,t,n){return new Ns(e,t,n)}var Ns=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new qn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ms(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=Wi(e),e=e.parent;return e?new Ms(e,t):new Ms(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=bs(this._data,e);Ii.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new Ds(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof Hn||(o=i.get(Fn));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=e;return i=(n=this._data).viewContainer._embeddedViews,null==(r=t)&&(r=i.length),(o=s._view).viewContainerParent=this._view,Cs(i,r,o),function(e,t){var n=Ui(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Ii.dirtyParentQueries(o),ws(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,u=this._embeddedViews.indexOf(e._view);return o=t,s=(i=(n=this._data).viewContainer._embeddedViews)[r=u],xs(i,r),null==o&&(o=i.length),Cs(i,o,s),Ii.dirtyParentQueries(s),Es(s),ws(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=bs(this._data,e);t&&Ii.destroyView(t)},e.prototype.detach=function(e){var t=bs(this._data,e);return t?new Ds(t):null},e}();function As(e){return new Ds(e)}var Ds=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return Xi(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){Li(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Ii.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Ii.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Ii.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Es(this._view),Ii.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function js(e,t){return new Ps(e,t)}var Ps=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.__extends)(t,e),t.prototype.createEmbeddedView=function(e){return new Ds(Ii.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new qn(Ei(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(br);function Rs(e,t){return new Ms(e,t)}var Ms=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=je.THROW_IF_NOT_FOUND),Ii.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:Di(e)},t)},e}();function Vs(e){return new Hs(e.renderer)}var Hs=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=Object(r.__read)(is(t),2),o=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,o),o},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var o=Object(r.__read)(is(t),2),i=o[0],s=o[1];null!=n?this.delegate.setAttribute(e,s,n,i):this.delegate.removeAttribute(e,s,i)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function Fs(e,t,n,r){return new Ls(e,t,n,r)}var Ls=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||void 0===n[r]&&(n[r]=_s(e,o))}}(this)}return e.prototype.get=function(e,t,n){void 0===t&&(t=je.THROW_IF_NOT_FOUND),void 0===n&&(n=0);var r=0;return 4&n?r|=1:2&n&&(r|=4),ms(this,{token:e,tokenKey:Di(e),flags:r},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Mn)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+we(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=new Set,o=0;o<n.providers.length;o++)if(131072&n.providers[o].flags){var i=e._providers[o];if(i&&i!==ps){var s=i.ngOnDestroy;"function"!=typeof s||r.has(i)||(s.apply(i),r.add(i))}}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),Bs=Di(Kn),zs=Di(Jn),Us=Di(qn),Ws=Di(Wo),Zs=Di(br),Gs=Di(Zo),Qs=Di(je),qs=Di(Ae);function Ks(e,t,n,o,i,s,u,a){var c=[];if(u)for(var l in u){var f=Object(r.__read)(u[l],2);c[f[0]]={flags:8,name:l,nonMinifiedName:f[1],ns:null,securityContext:null,suffix:null}}var d=[];if(a)for(var p in a)d.push({type:1,propName:p,target:null,eventName:a[p]});return Ys(e,t|=16384,n,o,i,i,s,c,d)}function Ys(e,t,n,r,o,i,s,u,a){var c=qi(n),l=c.matchedQueries,f=c.references,d=c.matchedQueryIds;a||(a=[]),u||(u=[]),i=Ce(i);var p=Ki(s,we(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:d,references:f,ngContentIndex:-1,childCount:r,bindings:u,bindingFlags:ss(u),outputs:a,element:null,provider:{token:o,value:i,deps:p},text:null,query:null,ngContent:null}}function $s(e,t){return tu(e,t)}function Js(e,t){for(var n=e;n.parent&&!Gi(n);)n=n.parent;return nu(n.parent,Wi(n),!0,t.provider.value,t.provider.deps)}function Xs(e,t){var n,r=nu(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var o=0;o<t.outputs.length;o++){var i=t.outputs[o],s=r[i.propName];if(!(n=s)||"function"!=typeof n.subscribe)throw new Error("@Output "+i.propName+" not initialized in '"+r.constructor.name+"'.");var u=s.subscribe(eu(e,t.parent.nodeIndex,i.eventName));e.disposables[t.outputIndex+o]=u.unsubscribe.bind(u)}return r}function eu(e,t,n){return function(r){return zi(e,t,n,r)}}function tu(e,t){var n=(8192&t.flags)>0,o=t.provider;switch(201347067&t.flags){case 512:return nu(e,t.parent,n,o.value,o.deps);case 1024:return function(e,t,n,o,i){var s=i.length;switch(s){case 0:return o();case 1:return o(ou(e,t,n,i[0]));case 2:return o(ou(e,t,n,i[0]),ou(e,t,n,i[1]));case 3:return o(ou(e,t,n,i[0]),ou(e,t,n,i[1]),ou(e,t,n,i[2]));default:for(var u=Array(s),a=0;a<s;a++)u[a]=ou(e,t,n,i[a]);return o.apply(void 0,Object(r.__spread)(u))}}(e,t.parent,n,o.value,o.deps);case 2048:return ou(e,t.parent,n,o.deps[0]);case 256:return o.value}}function nu(e,t,n,o,i){var s=i.length;switch(s){case 0:return new o;case 1:return new o(ou(e,t,n,i[0]));case 2:return new o(ou(e,t,n,i[0]),ou(e,t,n,i[1]));case 3:return new o(ou(e,t,n,i[0]),ou(e,t,n,i[1]),ou(e,t,n,i[2]));default:for(var u=new Array(s),a=0;a<s;a++)u[a]=ou(e,t,n,i[a]);return new(o.bind.apply(o,Object(r.__spread)([void 0],u)))}}var ru={};function ou(e,t,n,r,o){if(void 0===o&&(o=je.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var s=r.tokenKey;s===Gs&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);for(var u=e;u;){if(t)switch(s){case Bs:return Vs(iu(u,t,n));case zs:return iu(u,t,n).renderer;case Us:return new qn(Ei(u,t.nodeIndex).renderElement);case Ws:return Ei(u,t.nodeIndex).viewContainer;case Zs:if(t.element.template)return Ei(u,t.nodeIndex).template;break;case Gs:return As(iu(u,t,n));case Qs:case qs:return Rs(u,t);default:var a=(n?t.element.allProviders:t.element.publicProviders)[s];if(a){var c=Ci(u,a.nodeIndex);return c||(c={instance:tu(u,a)},u.nodes[a.nodeIndex]=c),c.instance}}n=Gi(u),t=Wi(u),u=u.parent,4&r.flags&&(u=null)}var l=i.root.injector.get(r.token,ru);return l!==ru||o===ru?l:i.root.ngModule.injector.get(r.token,o)}function iu(e,t,n){var r;if(n)r=Ei(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!Gi(r);)r=r.parent;return r}function su(e,t,n,r,o,i){if(32768&n.flags){var s=Ei(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(t.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var u=vt.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new yt(u,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function uu(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],s=i.parent;for(!s&&i.flags&t&&cu(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);s&&1&s.flags&&o===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=au(e,s,t,r)),s=s.parent}}function au(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&cu(e,o,i.flags&n,r++),o+=i.childCount}return r}function cu(e,t,n,r){var o=Ci(e,t);if(o){var i=o.instance;i&&(Ii.setCurrentNode(e,t),1048576&n&&bi(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&bi(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function lu(e){for(var t=e.def.nodeMatchedQueries;e.parent&&Qi(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=e.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&Si(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&e.def.nodeFlags)for(o=0;o<e.def.nodes.length;o++){var i;134217728&(i=e.def.nodes[o]).flags&&536870912&i.flags&&Si(e,o).setDirty(),o+=i.childCount}}function fu(e,t){var n=Si(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=du(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=Ci(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=du(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var s=t.query.bindings,u=!1,a=0;a<s.length;a++){var c=s[a],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,u=!0}r[c.propName]=l}u&&n.notifyOnChanges()}}function du(e,t,n,r,o){for(var i=t;i<=n;i++){var s=e.def.nodes[i],u=s.matchedQueries[r.id];if(null!=u&&o.push(pu(e,s,u)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var a=Ei(e,i);if((s.childMatchedQueries&r.filterId)===r.filterId&&(du(e,i+1,i+s.childCount,r,o),i+=s.childCount),16777216&s.flags)for(var c=a.viewContainer._embeddedViews,l=0;l<c.length;l++){var f=c[l],d=Ui(f);d&&d===a&&du(f,0,f.def.nodes.length-1,r,o)}var p=a.template._projectedViews;if(p)for(l=0;l<p.length;l++){var h=p[l];du(h,0,h.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function pu(e,t,n){if(null!=n)switch(n){case 1:return Ei(e,t.nodeIndex).renderElement;case 0:return new qn(Ei(e,t.nodeIndex).renderElement);case 2:return Ei(e,t.nodeIndex).template;case 3:return Ei(e,t.nodeIndex).viewContainer;case 4:return Ci(e,t.nodeIndex).instance}}function hu(e,t,n){var r=Yi(e,t,n);r&&ts(e,n.ngContent.index,1,r,null,void 0)}function vu(e,t){for(var n=Object.keys(t),r=n.length,o=new Array(r),i=0;i<r;i++){var s=n[i];o[t[s]]=s}return yu(64,e,o)}function yu(e,t,n){for(var r=new Array(n.length),o=0;o<n.length;o++){var i=n[o];r[o]={flags:8,name:i,ns:null,nonMinifiedName:i,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ss(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function gu(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function mu(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=Yi(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function _u(e,t){return(null!=e?e.toString():"")+t.suffix}function bu(e,t,n,r){for(var o=0,i=0,s=0,u=0,a=0,c=null,l=null,f=!1,d=!1,p=null,h=0;h<t.length;h++){var v=t[h];if(v.nodeIndex=h,v.parent=c,v.bindingIndex=o,v.outputIndex=i,v.renderParent=l,s|=v.flags,a|=v.matchedQueryIds,v.element){var y=v.element;y.publicProviders=c?c.element.publicProviders:Object.create(null),y.allProviders=y.publicProviders,f=!1,d=!1,v.element.template&&(a|=v.element.template.nodeMatchedQueries)}if(Eu(c,v,t.length),o+=v.bindings.length,i+=v.outputs.length,!l&&3&v.flags&&(p=v),20224&v.flags){f||(f=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var g=0!=(32768&v.flags);0==(8192&v.flags)||g?c.element.publicProviders[Di(v.provider.token)]=v:(d||(d=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Di(v.provider.token)]=v),g&&(c.element.componentProvider=v)}if(c?(c.childFlags|=v.flags,c.directChildFlags|=v.flags,c.childMatchedQueries|=v.matchedQueryIds,v.element&&v.element.template&&(c.childMatchedQueries|=v.element.template.nodeMatchedQueries)):u|=v.flags,v.childCount>0)c=v,wu(v)||(l=v);else for(;c&&h===c.nodeIndex+c.childCount;){var m=c.parent;m&&(m.childFlags|=c.childFlags,m.childMatchedQueries|=c.childMatchedQueries),l=(c=m)&&wu(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:u,nodeMatchedQueries:a,flags:e,nodes:t,updateDirectives:n||Ni,updateRenderer:r||Ni,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:p}}function wu(e){return 0!=(1&e.flags)&&null===e.element.name}function Eu(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function Cu(e,t,n,r){var o=Iu(e.root,e.renderer,e,t,n);return Tu(o,e.component,r),ku(o),o}function xu(e,t,n){var r=Iu(e,e.renderer,null,null,t);return Tu(r,n,n),ku(r),r}function Su(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Iu(e.root,o,e,t.element.componentProvider,n)}function Iu(e,t,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function Tu(e,t,n){e.component=t,e.context=n}function ku(e){var t;Gi(e)&&(t=Ei(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Ii.setCurrentNode(e,o);var s=void 0;switch(201347067&i.flags){case 1:var u=cs(e,t,i),a=void 0;if(33554432&i.flags){var c=Ji(i.element.componentView);a=Ii.createComponentView(e,i,c,u)}ls(e,a,i,u),s={renderElement:u,componentView:a,viewContainer:null,template:i.element.template?js(e,i):void 0},16777216&i.flags&&(s.viewContainer=Os(e,i,s));break;case 2:s=mu(e,t,i);break;case 512:case 1024:case 2048:case 256:(s=r[o])||4096&i.flags||(s={instance:$s(e,i)});break;case 16:s={instance:Js(e,i)};break;case 16384:(s=r[o])||(s={instance:Xs(e,i)}),32768&i.flags&&Tu(Ei(e,i.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new Uo;break;case 8:hu(e,t,i),s=void 0}r[o]=s}Vu(e,Mu.CreateViewNodes),Bu(e,201326592,268435456,0)}function Ou(e){Du(e),Ii.updateDirectives(e,1),Hu(e,Mu.CheckNoChanges),Ii.updateRenderer(e,1),Vu(e,Mu.CheckNoChanges),e.state&=-97}function Nu(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,_i(e,0,256),Du(e),Ii.updateDirectives(e,0),Hu(e,Mu.CheckAndUpdate),Bu(e,67108864,536870912,0);var t=_i(e,256,512);uu(e,2097152|(t?1048576:0)),Ii.updateRenderer(e,0),Vu(e,Mu.CheckAndUpdate),Bu(e,134217728,536870912,0),uu(e,8388608|((t=_i(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,_i(e,768,1024)}function Au(e,t,n,o,i,s,u,a,c,l,f,d,p){return 0===n?function(e,t,n,r,o,i,s,u,a,c,l,f){switch(201347067&t.flags){case 1:return function(e,t,n,r,o,i,s,u,a,c,l,f){var d=t.bindings.length,p=!1;return d>0&&ds(e,t,0,n)&&(p=!0),d>1&&ds(e,t,1,r)&&(p=!0),d>2&&ds(e,t,2,o)&&(p=!0),d>3&&ds(e,t,3,i)&&(p=!0),d>4&&ds(e,t,4,s)&&(p=!0),d>5&&ds(e,t,5,u)&&(p=!0),d>6&&ds(e,t,6,a)&&(p=!0),d>7&&ds(e,t,7,c)&&(p=!0),d>8&&ds(e,t,8,l)&&(p=!0),d>9&&ds(e,t,9,f)&&(p=!0),p}(e,t,n,r,o,i,s,u,a,c,l,f);case 2:return function(e,t,n,r,o,i,s,u,a,c,l,f){var d=!1,p=t.bindings,h=p.length;if(h>0&&Hi(e,t,0,n)&&(d=!0),h>1&&Hi(e,t,1,r)&&(d=!0),h>2&&Hi(e,t,2,o)&&(d=!0),h>3&&Hi(e,t,3,i)&&(d=!0),h>4&&Hi(e,t,4,s)&&(d=!0),h>5&&Hi(e,t,5,u)&&(d=!0),h>6&&Hi(e,t,6,a)&&(d=!0),h>7&&Hi(e,t,7,c)&&(d=!0),h>8&&Hi(e,t,8,l)&&(d=!0),h>9&&Hi(e,t,9,f)&&(d=!0),d){var v=t.text.prefix;h>0&&(v+=_u(n,p[0])),h>1&&(v+=_u(r,p[1])),h>2&&(v+=_u(o,p[2])),h>3&&(v+=_u(i,p[3])),h>4&&(v+=_u(s,p[4])),h>5&&(v+=_u(u,p[5])),h>6&&(v+=_u(a,p[6])),h>7&&(v+=_u(c,p[7])),h>8&&(v+=_u(l,p[8])),h>9&&(v+=_u(f,p[9]));var y=wi(e,t.nodeIndex).renderText;e.renderer.setValue(y,v)}return d}(e,t,n,r,o,i,s,u,a,c,l,f);case 16384:return function(e,t,n,r,o,i,s,u,a,c,l,f){var d=Ci(e,t.nodeIndex),p=d.instance,h=!1,v=void 0,y=t.bindings.length;return y>0&&Vi(e,t,0,n)&&(h=!0,v=su(e,d,t,0,n,v)),y>1&&Vi(e,t,1,r)&&(h=!0,v=su(e,d,t,1,r,v)),y>2&&Vi(e,t,2,o)&&(h=!0,v=su(e,d,t,2,o,v)),y>3&&Vi(e,t,3,i)&&(h=!0,v=su(e,d,t,3,i,v)),y>4&&Vi(e,t,4,s)&&(h=!0,v=su(e,d,t,4,s,v)),y>5&&Vi(e,t,5,u)&&(h=!0,v=su(e,d,t,5,u,v)),y>6&&Vi(e,t,6,a)&&(h=!0,v=su(e,d,t,6,a,v)),y>7&&Vi(e,t,7,c)&&(h=!0,v=su(e,d,t,7,c,v)),y>8&&Vi(e,t,8,l)&&(h=!0,v=su(e,d,t,8,l,v)),y>9&&Vi(e,t,9,f)&&(h=!0,v=su(e,d,t,9,f,v)),v&&p.ngOnChanges(v),65536&t.flags&&bi(e,256,t.nodeIndex)&&p.ngOnInit(),262144&t.flags&&p.ngDoCheck(),h}(e,t,n,r,o,i,s,u,a,c,l,f);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,u,a,c,l,f){var d=t.bindings,p=!1,h=d.length;if(h>0&&Hi(e,t,0,n)&&(p=!0),h>1&&Hi(e,t,1,r)&&(p=!0),h>2&&Hi(e,t,2,o)&&(p=!0),h>3&&Hi(e,t,3,i)&&(p=!0),h>4&&Hi(e,t,4,s)&&(p=!0),h>5&&Hi(e,t,5,u)&&(p=!0),h>6&&Hi(e,t,6,a)&&(p=!0),h>7&&Hi(e,t,7,c)&&(p=!0),h>8&&Hi(e,t,8,l)&&(p=!0),h>9&&Hi(e,t,9,f)&&(p=!0),p){var v=xi(e,t.nodeIndex),y=void 0;switch(201347067&t.flags){case 32:y=new Array(d.length),h>0&&(y[0]=n),h>1&&(y[1]=r),h>2&&(y[2]=o),h>3&&(y[3]=i),h>4&&(y[4]=s),h>5&&(y[5]=u),h>6&&(y[6]=a),h>7&&(y[7]=c),h>8&&(y[8]=l),h>9&&(y[9]=f);break;case 64:y={},h>0&&(y[d[0].name]=n),h>1&&(y[d[1].name]=r),h>2&&(y[d[2].name]=o),h>3&&(y[d[3].name]=i),h>4&&(y[d[4].name]=s),h>5&&(y[d[5].name]=u),h>6&&(y[d[6].name]=a),h>7&&(y[d[7].name]=c),h>8&&(y[d[8].name]=l),h>9&&(y[d[9].name]=f);break;case 128:var g=n;switch(h){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,o);break;case 4:y=g.transform(r,o,i);break;case 5:y=g.transform(r,o,i,s);break;case 6:y=g.transform(r,o,i,s,u);break;case 7:y=g.transform(r,o,i,s,u,a);break;case 8:y=g.transform(r,o,i,s,u,a,c);break;case 9:y=g.transform(r,o,i,s,u,a,c,l);break;case 10:y=g.transform(r,o,i,s,u,a,c,l,f)}}v.value=y}return p}(e,t,n,r,o,i,s,u,a,c,l,f);default:throw"unreachable"}}(e,t,o,i,s,u,a,c,l,f,d,p):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)ds(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)Hi(e,t,i,n[i])&&(o=!0);if(o){var s="";for(i=0;i<n.length;i++)s+=_u(n[i],r[i]);s=t.text.prefix+s;var u=wi(e,t.nodeIndex).renderText;e.renderer.setValue(u,s)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=Ci(e,t.nodeIndex),o=r.instance,i=!1,s=void 0,u=0;u<n.length;u++)Vi(e,t,u,n[u])&&(i=!0,s=su(e,r,t,u,n[u],s));return s&&o.ngOnChanges(s),65536&t.flags&&bi(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var o=t.bindings,i=!1,s=0;s<n.length;s++)Hi(e,t,s,n[s])&&(i=!0);if(i){var u=xi(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},s=0;s<n.length;s++)a[o[s].name]=n[s];break;case 128:var c=n[0],l=n.slice(1);a=c.transform.apply(c,Object(r.__spread)(l))}u.value=a}return i}(e,t,n);default:throw"unreachable"}}(e,t,o)}function Du(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=Ei(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,Bi(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function ju(e,t,n,r,o,i,s,u,a,c,l,f,d){return 0===n?function(e,t,n,r,o,i,s,u,a,c,l,f){var d=t.bindings.length;d>0&&Fi(e,t,0,n),d>1&&Fi(e,t,1,r),d>2&&Fi(e,t,2,o),d>3&&Fi(e,t,3,i),d>4&&Fi(e,t,4,s),d>5&&Fi(e,t,5,u),d>6&&Fi(e,t,6,a),d>7&&Fi(e,t,7,c),d>8&&Fi(e,t,8,l),d>9&&Fi(e,t,9,f)}(e,t,r,o,i,s,u,a,c,l,f,d):function(e,t,n){for(var r=0;r<n.length;r++)Fi(e,t,r,n[r])}(e,t,r),!1}function Pu(e,t){if(Si(e,t.nodeIndex).dirty)throw Ti(Ii.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function Ru(e){if(!(128&e.state)){if(Hu(e,Mu.Destroy),Vu(e,Mu.Destroy),uu(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=Ui(e);if(t){var n=t.template._projectedViews;n&&(xs(n,n.indexOf(e)),Ii.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(Ei(e,n).renderElement):2&r.flags?e.renderer.destroyNode(wi(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Si(e,n).destroy()}}(e),Gi(e)&&e.renderer.destroy(),e.state|=128}}var Mu=function(e){return e[e.CreateViewNodes=0]="CreateViewNodes",e[e.CheckNoChanges=1]="CheckNoChanges",e[e.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate=3]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",e[e.Destroy=5]="Destroy",e}({});function Vu(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?Fu(Ei(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function Hu(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=Ei(e,r).viewContainer._embeddedViews,s=0;s<i.length;s++)Fu(i[s],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function Fu(e,t){var n=e.state;switch(t){case Mu.CheckNoChanges:0==(128&n)&&(12==(12&n)?Ou(e):64&n&&Lu(e,Mu.CheckNoChangesProjectedViews));break;case Mu.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Ou(e):64&n&&Lu(e,t));break;case Mu.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Nu(e):64&n&&Lu(e,Mu.CheckAndUpdateProjectedViews));break;case Mu.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Nu(e):64&n&&Lu(e,t));break;case Mu.Destroy:Ru(e);break;case Mu.CreateViewNodes:ku(e)}}function Lu(e,t){Hu(e,t),Vu(e,t)}function Bu(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Ii.setCurrentNode(e,s.nodeIndex),r){case 0:fu(e,s);break;case 1:Pu(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}var zu=!1;function Uu(e,t,n,r,o,i){var s=o.injector.get(Yn);return xu(Zu(e,o,s,t,n),r,i)}function Wu(e,t,n,r,o,i){var s=o.injector.get(Yn),u=Zu(e,o,new Sa(s),t,n),a=ta(r);return Ca(la.create,xu,null,[u,a,i])}function Zu(e,t,n,r,o){var i=t.injector.get(Zr),s=t.injector.get(to),u=n.createRenderer(null,null);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:u,errorHandler:s}}function Gu(e,t,n,r){var o=ta(n);return Ca(la.create,Cu,null,[e,t,o,r])}function Qu(e,t,n,r){return n=$u.get(t.element.componentProvider.provider.token)||ta(n),Ca(la.create,Su,null,[e,t,n,r])}function qu(e,t,n,r){return Fs(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===Ku.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=Ku.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),e.modules.forEach(function(e){Yu.forEach(function(r,o){ae(o).providedIn===e&&(t=!0,n=n||r.deprecatedBehavior)})}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var o=Ku.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=Ki(o.deps),r.value=o.value)}if(Yu.size>0){var i=new Set(e.modules);Yu.forEach(function(t,r){if(i.has(ae(r).providedIn)){var o={token:r,flags:t.flags|(n?4096:0),deps:Ki(t.deps),value:t.value,index:e.providers.length};e.providers.push(o),e.providersByKey[Di(r)]=o}})}}(e=e.factory(function(){return Ni})),e):e}(r))}var Ku=new Map,Yu=new Map,$u=new Map;function Ju(e){var t;Ku.set(e.token,e),"function"==typeof e.token&&(t=ae(e.token))&&"function"==typeof t.providedIn&&Yu.set(e.token,e)}function Xu(e,t){var n=Ji(t.viewDefFactory),r=Ji(n.nodes[0].element.componentView);$u.set(e,r)}function ea(){Ku.clear(),Yu.clear(),$u.clear()}function ta(e){if(0===Ku.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&Ku.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Ni});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=Ku.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=Ki(i.deps),o.value=i.value)}}}}function na(e,t,n,r,o,i,s,u,a,c,l,f,d){var p=e.def.nodes[t];return Au(e,p,n,r,o,i,s,u,a,c,l,f,d),224&p.flags?xi(e,t).value:void 0}function ra(e,t,n,r,o,i,s,u,a,c,l,f,d){var p=e.def.nodes[t];return ju(e,p,n,r,o,i,s,u,a,c,l,f,d),224&p.flags?xi(e,t).value:void 0}function oa(e){return Ca(la.detectChanges,Nu,null,[e])}function ia(e){return Ca(la.checkNoChanges,Ou,null,[e])}function sa(e){return Ca(la.destroy,Ru,null,[e])}var ua,aa,ca,la=function(e){return e[e.create=0]="create",e[e.detectChanges=1]="detectChanges",e[e.checkNoChanges=2]="checkNoChanges",e[e.destroy=3]="destroy",e[e.handleEvent=4]="handleEvent",e}({});function fa(e,t){aa=e,ca=t}function da(e,t,n,r){return fa(e,t),Ca(la.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function pa(e,t){if(128&e.state)throw Oi(la[ua]);return fa(e,_a(e,0)),e.def.updateDirectives(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?va(e,s,r,o):ya(e,s,r,o),16384&s.flags&&fa(e,_a(e,n)),224&s.flags?xi(e,s.nodeIndex).value:void 0},e)}function ha(e,t){if(128&e.state)throw Oi(la[ua]);return fa(e,ba(e,0)),e.def.updateRenderer(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?va(e,s,r,o):ya(e,s,r,o),3&s.flags&&fa(e,ba(e,n)),224&s.flags?xi(e,s.nodeIndex).value:void 0},e)}function va(e,t,n,o){if(Au.apply(void 0,Object(r.__spread)([e,t,n],o))){var i=1===n?o[0]:o;if(16384&t.flags){for(var s={},u=0;u<t.bindings.length;u++){var a=t.bindings[u],c=i[u];8&a.flags&&(s[(p=a.nonMinifiedName,h=void 0,h=p.replace(/[$@]/g,"_"),"ng-reflect-"+(p=h.replace(ga,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})))]=ma(c))}var l=t.parent,f=Ei(e,l.nodeIndex).renderElement;if(l.element.name)for(var d in s)null!=(c=s[d])?e.renderer.setAttribute(f,d,c):e.renderer.removeAttribute(f,d);else e.renderer.setValue(f,"bindings="+JSON.stringify(s,null,2))}}var p,h}function ya(e,t,n,o){ju.apply(void 0,Object(r.__spread)([e,t,n],o))}var ga=/([A-Z])/g;function ma(e){try{return null!=e?e.toString().slice(0,30):e}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function _a(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function ba(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var wa=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=Wi(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return Ei(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return Rs(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){Ea(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&Ea(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!Gi(e);)e=e.parent;return e.parent?Ei(e.parent,Wi(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?Zi(this.view,this.nodeDef):Zi(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,o=[],i=1;i<arguments.length;i++)o[i-1]=arguments[i];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var s=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(t,n),u=-1;t.factory(function(){var t;return++u===s?(t=e.error).bind.apply(t,Object(r.__spread)([e],o)):Ni}),u<s&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,Object(r.__spread)(o)))},e}();function Ea(e,t,n){for(var r in t.references)n[r]=pu(e,t,t.references[r])}function Ca(e,t,n,r){var o=ua,i=aa,s=ca;try{ua=e;var u=t.apply(n,r);return aa=i,ca=s,ua=o,u}catch(a){if(Jr(a)||!aa)throw a;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),ki(e,t),e}(a,xa())}}function xa(){return aa?new wa(aa,ca):null}var Sa=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Ia(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Ia=function(){function e(e){this.delegate=e,this.debugContextFactory=xa,this.data=this.delegate.data}return e.prototype.createDebugContext=function(e){return this.debugContextFactory(e)},e.prototype.destroyNode=function(e){!function(e){Ko.delete(e.nativeNode)}(Yo(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=this.createDebugContext(n);if(r){var o=new qo(n,null,r);o.name=e,$o(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=this.createDebugContext(t);return n&&$o(new Qo(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=this.createDebugContext(t);return n&&$o(new Qo(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=Yo(e),r=Yo(t);n&&r&&n instanceof qo&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=Yo(e),o=Yo(t),i=Yo(n);r&&o&&r instanceof qo&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=Yo(e),r=Yo(t);n&&r&&n instanceof qo&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e,t){var n=this.delegate.selectRootElement(e,t),r=xa()||null;return r&&$o(new qo(n,null,r)),n},e.prototype.setAttribute=function(e,t,n,r){var o=Yo(e);o&&o instanceof qo&&(o.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=Yo(e);r&&r instanceof qo&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=Yo(e);n&&n instanceof qo&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=Yo(e);n&&n instanceof qo&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=Yo(e);o&&o instanceof qo&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=Yo(e);r&&r instanceof qo&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=Yo(e);r&&r instanceof qo&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=Yo(e);r&&r.listeners.push(new Go(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function Ta(e,t,n){return new ka(e,t,n)}var ka=function(e){function t(t,n,r){var o=e.call(this)||this;return o.moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return Object(r.__extends)(t,e),t.prototype.create=function(e){!function(){if(!zu){zu=!0;var e=Cr()?{setCurrentNode:fa,createRootView:Wu,createEmbeddedView:Gu,createComponentView:Qu,createNgModuleRef:qu,overrideProvider:Ju,overrideComponentView:Xu,clearOverrides:ea,checkAndUpdateView:oa,checkNoChangesView:ia,destroyView:sa,createDebugContext:function(e,t){return new wa(e,t)},handleEvent:da,updateDirectives:pa,updateRenderer:ha}:{setCurrentNode:function(){},createRootView:Uu,createEmbeddedView:Cu,createComponentView:Su,createNgModuleRef:Fs,overrideProvider:Ni,overrideComponentView:Ni,clearOverrides:Ni,checkAndUpdateView:Nu,checkNoChangesView:Ou,destroyView:Ru,createDebugContext:function(e,t){return new wa(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?na:ra,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?na:ra,e)}};Ii.setCurrentNode=e.setCurrentNode,Ii.createRootView=e.createRootView,Ii.createEmbeddedView=e.createEmbeddedView,Ii.createComponentView=e.createComponentView,Ii.createNgModuleRef=e.createNgModuleRef,Ii.overrideProvider=e.overrideProvider,Ii.overrideComponentView=e.overrideComponentView,Ii.clearOverrides=e.clearOverrides,Ii.checkAndUpdateView=e.checkAndUpdateView,Ii.checkNoChangesView=e.checkNoChangesView,Ii.destroyView=e.destroyView,Ii.resolveDep=ou,Ii.createDebugContext=e.createDebugContext,Ii.handleEvent=e.handleEvent,Ii.updateDirectives=e.updateDirectives,Ii.updateRenderer=e.updateRenderer,Ii.dirtyParentQueries=lu}}();var t=function(e){var t=Array.from(e.providers),n=Array.from(e.modules),r={};for(var o in e.providersByKey)r[o]=e.providersByKey[o];return{factory:e.factory,isRoot:e.isRoot,providers:t,modules:n,providersByKey:r}}(Ji(this._ngModuleDefFactory));return Ii.createNgModuleRef(this.moduleType,e||je.NULL,this._bootstrapComponents,t)},t}(Ln),Oa=function(){return function(){}}(),Na=n("wh0w"),Aa=n.n(Na),Da=function(){function e(){this.listSecretWords=[{topic:"My name",secret:"anartz mugika ledo",source:""},{topic:"NBA 2017/2018 Season Champion",secret:"Golden State Warriors",source:"https://es.m.wikipedia.org/wiki/Temporada_2017-18_de_la_NBA"},{topic:"UEFA Champions League Champion 2017/2018",secret:"Real Madrid FC",source:"https://en.m.wikipedia.org/wiki/2017%E2%80%9318_UEFA_Champions_League"},{topic:"UEFA Champions League Champion 2017/2018",secret:"Real Madrid Fut Club Ganador De Champions",source:"https://en.m.wikipedia.org/wiki/2017%E2%80%9318_UEFA_Champions_League"}]}return e.prototype.getWord=function(){return this.listSecretWords[Aa()(this.listSecretWords.length-1)]},e.ngInjectableDef=ue({factory:function(){return new e},token:e,providedIn:"root"}),e}(),ja=function(){function e(){this.inputLetters=[],this.letters=[],this.attemps=6,this.url="https://raw.githubusercontent.com/mugan86/strangle-game-angular-widget/master/projects/strangle/src/lib/assets/img/",this.images=["a7.png","a6.png","a5.png","a4.png","a3.png","a2.png","a1.png"],this.stringVar=new O,this.stringVar$=this.stringVar.asObservable()}return e.prototype.updateStringSubject=function(e){this.stringVar.next(e),"0"===e&&(this.stringVar.unsubscribe(),console.log("unsuscribe"))},e.prototype.createStartGameWord=function(e){void 0===e&&(e="ahorcado"),this.letters=[];for(var t=e.length,n=0;n<t;n++){var r=e[n].toLowerCase(),o={visible:"",secret:"",intro:!1};o.secret=" "===r?".....":"_",n%14==0&&n>0&&(console.log(t),console.log(n+1>t-1),o.intro=!0),o.visible=r,this.letters.push(o)}},e.prototype.setAttemps=function(e){this.attemps=e},e.prototype.setPlayTime=function(e){this.playTime=e},e.prototype.getAttemps=function(){return this.attemps},e.prototype.getGameImage=function(){return this.url.concat(this.images[this.getAttemps()])},e.prototype.findAppearances=function(e){this.inputLetters.push(e);var t=this.getAttemps(),n=!1;this.letters.map(function(t){"_"===t.secret&&t.visible===e&&(console.log("OK!"),t.secret=e,n=!0)}),n||this.updateStringSubject(String(--t))},e.prototype.getHideWord=function(){var e=this;return this.momentWord="",this.letters.map(function(t){e.momentWord=e.momentWord+t.secret+" "}),this.letters},e.prototype.finishGame=function(){return 0===this.letters.filter(function(e){return"_"===e.secret}).length},e.ngInjectableDef=ue({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Pa=function(){function e(e){this.strangleService=e,this.letters=[]}return e.prototype.ngOnInit=function(){this.letters=this.strangleService.getHideWord()},e}(),Ra=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r}return r.__extends(t,e),t.prototype.schedule=function(t,n){return void 0===n&&(n=0),n>0?e.prototype.schedule.call(this,t,n):(this.delay=n,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,n){return n>0||this.closed?e.prototype.execute.call(this,t,n):this._execute(t,n)},t.prototype.requestAsyncId=function(t,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?e.prototype.requestAsyncId.call(this,t,n,r):t.flush(this)},t}(function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.scheduler=t,r.work=n,r.pending=!1,r}return r.__extends(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,t)),this.pending=!0,this.delay=t,this.id=this.id||this.requestAsyncId(r,this.id,t),this},t.prototype.requestAsyncId=function(e,t,n){return void 0===n&&(n=0),setInterval(e.flush.bind(e,this),n)},t.prototype.recycleAsyncId=function(e,t,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return t;clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(e,t);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var n=!1,r=void 0;try{this.work(e)}catch(o){n=!0,r=!!o&&o||new Error(o)}if(n)return this.unsubscribe(),r},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,n=t.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(function(e){function t(t,n){return e.call(this)||this}return r.__extends(t,e),t.prototype.schedule=function(e,t){return void 0===t&&(t=0),this},t}(p))),Ma=function(){function e(t,n){void 0===n&&(n=e.now),this.SchedulerAction=t,this.now=n}return e.prototype.schedule=function(e,t,n){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(n,t)},e.now=function(){return Date.now()},e}(),Va=new(function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return r.__extends(t,e),t}(function(e){function t(n,r){void 0===r&&(r=Ma.now);var o=e.call(this,n,function(){return t.delegate&&t.delegate!==o?t.delegate.now():r()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return r.__extends(t,e),t.prototype.schedule=function(n,r,o){return void 0===r&&(r=0),t.delegate&&t.delegate!==this?t.delegate.schedule(n,r,o):e.prototype.schedule.call(this,n,r,o)},t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var n;this.active=!0;do{if(n=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,n){for(;e=t.shift();)e.unsubscribe();throw n}}},t}(Ma)))(Ra),Ha=new C(function(e){return e.complete()});function Fa(e){return e?function(e){return new C(function(t){return e.schedule(function(){return t.complete()})})}(e):Ha}var La=function(){function e(e,t,n){this.kind=e,this.value=t,this.error=n,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,n){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return n&&n()}},e.prototype.accept=function(e,t,n){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,n)},e.prototype.toObservable=function(){var e;switch(this.kind){case"N":return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n,r,o=e[e.length-1];switch(A(o)?e.pop():o=void 0,e.length){case 0:return Fa(o);case 1:return o?Z(e,o):(n=e[0],(r=new C(function(e){e.next(n),e.complete()}))._isScalar=!0,r.value=n,r);default:return Z(e,o)}}(this.value);case"E":return e=this.error,new C(function(t){return t.error(e)});case"C":return Fa()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),Ba=function(e){function t(t,n,r){void 0===r&&(r=0);var o=e.call(this,t)||this;return o.scheduler=n,o.delay=r,o}return r.__extends(t,e),t.dispatch=function(e){e.notification.observe(e.destination),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.destination.add(this.scheduler.schedule(t.dispatch,this.delay,new za(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(La.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(La.createError(e)),this.unsubscribe()},t.prototype._complete=function(){this.scheduleMessage(La.createComplete()),this.unsubscribe()},t}(b),za=function(){return function(e,t){this.notification=e,this.destination=t}}(),Ua=function(e){function t(t,n,r){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var o=e.call(this)||this;return o.scheduler=r,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=t<1?1:t,o._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return r.__extends(t,e),t.prototype.nextInfiniteTimeWindow=function(t){var n=this._events;n.push(t),n.length>this._bufferSize&&n.shift(),e.prototype.next.call(this,t)},t.prototype.nextTimeWindow=function(t){this._events.push(new Wa(this._getNow(),t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,i=r.length;if(this.closed)throw new I;if(this.isStopped||this.hasError?t=p.EMPTY:(this.observers.push(e),t=new T(this,e)),o&&e.add(e=new Ba(e,o)),n)for(var s=0;s<i&&!e.closed;s++)e.next(r[s]);else for(s=0;s<i&&!e.closed;s++)e.next(r[s].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||Va).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,n=this._windowTime,r=this._events,o=r.length,i=0;i<o&&!(e-r[i].time<n);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&r.splice(0,i),r},t}(O),Wa=function(){return function(e,t){this.time=e,this.value=t}}(),Za=n("euHi"),Ga=function(){function e(){this.count$=new p,this.currentTime=new Ua(1),this.currentTime$=this.currentTime.asObservable()}return e.prototype.updateTime=function(e){this.currentTime.next(e),"FINISH"===e&&(e="00:00:00"),this.chronometer=e},e.prototype.initializeService=function(e){void 0===e&&(e=15),this.counter=new Za.CountDown(e,!0)},e.prototype.restart=function(){var e=this;this.count$=this.counter.start().subscribe(function(t){e.updateTime(t),"FINISH"===t&&(e.count$.unsubscribe(),e.restart())})},e.prototype.stop=function(){this.currentTime.unsubscribe(),this.count$.unsubscribe()},e.prototype.resetInterval=function(e){void 0===e&&(e=15),this.count$.unsubscribe(),this.initializeService(e),this.restart()},e.prototype.getChronometer=function(){return this.chronometer},e.prototype.setChronometer=function(e){void 0===e&&(e="FINISH"),this.chronometer=e},e.ngInjectableDef=ue({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Qa=function(){function e(e){this.chronometerService=e,this.chronometer="00:00:15"}return e.prototype.ngOnInit=function(){this.start()},e.prototype.start=function(){this.chronometerService.initializeService(this.time),this.chronometerService.restart(),this.chronometer=this.chronometerService.getChronometer()},e}(),qa=function(){function e(){}return e.prototype.initializeService=function(e){void 0===e&&(e=3600),this.counter=new Za.Counter(e,!0)},e.prototype.start=function(){var e=this;this.count$=this.counter.start().subscribe(function(t){"FINISH"===t&&e.count$.unsubscribe(),e.chronometer=t})},e.prototype.stop=function(){this.count$.unsubscribe()},e.prototype.getChronometer=function(){return this.chronometer},e.prototype.setChronometer=function(e){void 0===e&&(e="FINISH"),this.chronometer=e},e.ngInjectableDef=ue({factory:function(){return new e},token:e,providedIn:"root"}),e}(),Ka=function(){function e(e,t,n){this.gameService=e,this.chronometerService=t,this.countdownService=n,this.finish=!1,this.loading=!1}return e.prototype.ngOnInit=function(){this.init(),this.attempControlTime()},e.prototype.attempControlTime=function(){var e=this;this.countdownService.currentTime$.subscribe(function(t){var n=e.gameService.getAttemps();0===n&&e.countdownService.stop(),"FINISH"===t&&n>0&&(n--,e.gameService.updateStringSubject(String(n)),e.finish=e.gameService.finishGame(),e.finish||console.log("chrono",e.countdownService.getChronometer()),e.gameSituation())})},e.prototype.init=function(){var e=this;this.gameService.stringVar$.subscribe(function(t){e.gameService.setAttemps(+t),e.attemps=e.gameService.getAttemps()}),this.gameService.setAttemps(this.attemps),this.gameService.createStartGameWord(this.secretWord.secret),this.gameService.getHideWord(),this.loading=!0},e.prototype.getMomentWord=function(){return this.gameService.momentWord},e.prototype.keyInput=function(e){this.gameService.findAppearances(e.toLowerCase()),this.gameService.getHideWord(),this.gameSituation()},e.prototype.gameSituation=function(){this.gameService.finishGame()||0===this.gameService.attemps?(this.finish=!0,0===this.gameService.attemps?console.log("Word to find",this.secretWord):console.log("Congratulations!!"),this.countdownService.setChronometer(),this.chronometerService.stop(),this.countdownService.stop()):this.countdownService.resetInterval(this.playTime)},e.prototype.ngOnDestroy=function(){this.gameService.stringVar.unsubscribe(),this.countdownService.currentTime.unsubscribe()},e}(),Ya=function(){function e(){this.keys=[],this.selectKey=new _r}return e.prototype.ngOnInit=function(){this.keys=function(e){void 0===e&&(e=!1);var t=function(e){return void 0===e&&(e=!1),e?[["1","2","3","4","5","6","7","8","9","0"],["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]]:[["Q","W","E","R","T","Y","U","I","O","P"],["A","S","D","F","G","H","J","K","L"],["Z","X","C","V","B","N","M"]]}(e),n=[];return t.map(function(e){var t=[];e.map(function(e){t.push({char:e,active:!0})}),n.push(t)}),n}(this.withNumber)},e.prototype.keyClick=function(e){console.log(e),e.active=!1,this.selectKey.emit(e.char)},e}(),$a=function(){function e(e){this.chronometerService=e,this.chronometer="00:00:00"}return e.prototype.ngOnInit=function(){this.chronometerService.initializeService(1e3),this.start()},e.prototype.start=function(){-1===this.time&&(this.time=3600),this.chronometerService.start(),this.chronometer=this.chronometerService.getChronometer()},e}(),Ja=function(){function e(e){this.gameService=e}return e.prototype.ngOnInit=function(){var e=this;this.progress=100,this.checkImage(),this.attemps=this.gameService.getAttemps(),this.setProgress(),this.gameService.stringVar$.subscribe(function(t){e.gameService.setAttemps(+t),e.attemps=e.gameService.getAttemps(),e.firstImage=e.gameService.getGameImage(),e.setProgress()})},e.prototype.setProgress=function(){this.progress=100-100/6*(6-this.attemps),console.log(this.progress)},e.prototype.checkImage=function(){this.firstImage=this.gameService.getGameImage()},e}(),Xa=function(){return function(){}}(),ec=function(){function e(e){this.secretWordApi=e,this.title="strangleDemoApp"}return e.prototype.ngOnInit=function(){this.secretWord=this.secretWordApi.getWord(),this.gameConfig={attemps:6,playTime:15}},e}(),tc=function(){return function(){}}(),nc=void 0,rc=["en",[["a","p"],["AM","PM"],nc],[["AM","PM"],nc,nc],[["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"]],nc,[["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"]],nc,[["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}",nc,"{1} 'at' {0}",nc],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],oc={},ic=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}({}),sc=new le("UseV4Plurals"),uc=function(){return function(){}}(),ac=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(r.__extends)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=oc[t];if(n)return n;var r=t.split("-")[0];if(n=oc[r])return n;if("en"===r)return rc;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[18]}(t||this.locale)(e)){case ic.Zero:return"zero";case ic.One:return"one";case ic.Two:return"two";case ic.Few:return"few";case ic.Many:return"many";default:return"other"}},t}(uc),cc=function(){function e(e,t,n,r){this._iterableDiffers=e,this._keyValueDiffers=t,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(e.prototype,"klass",{set:function(e){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof e?e.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"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&&(gt(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=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)}},e.prototype._applyKeyValueChanges=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)})},e.prototype._applyIterableChanges=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 "+we(e.item));t._toggleClass(e.item,!0)}),e.forEachRemovedItem(function(e){return t._toggleClass(e.item,!1)})},e.prototype._applyClasses=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])}))},e.prototype._removeClasses=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)}))},e.prototype._toggleClass=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)})},e}(),lc=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),fc=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(e.prototype,"ngForOf",{set:function(e){this._ngForOf=e,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Cr()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngDoCheck=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 '"+e+"' of type '"+((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)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new lc(null,t._ngForOf,-1,-1),o),s=new dc(e,i);n.push(s)}else null==o?t._viewContainer.remove(r):(i=t._viewContainer.get(r),t._viewContainer.move(i,o),s=new dc(e,i),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o,i.context.ngForOf=this._ngForOf}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e.ngTemplateContextGuard=function(e,t){return!0},e}(),dc=function(){return function(e,t){this.record=e,this.view=t}}(),pc=function(){function e(e,t){this._viewContainer=e,this._context=new hc,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return Object.defineProperty(e.prototype,"ngIf",{set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfThen",{set:function(e){vc("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngIfElse",{set:function(e){vc("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),e.prototype._updateView=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)))},e.ngTemplateGuard_ngIf=function(e,t){return!0},e}(),hc=function(){return function(){this.$implicit=null,this.ngIf=null}}();function vc(e,t){if(t&&!t.createEmbeddedView)throw new Error(e+" must be a TemplateRef, but received '"+we(t)+"'.")}var yc=function(){function e(){}var t;return t=e,e.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw function(e,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+we(t)+"'")}(0,e);return e.toUpperCase()},e}(),gc=function(){return function(){}}(),mc=new le("DocumentToken"),_c="server",bc=Ri({encapsulation:2,styles:[],data:{}});function wc(e){return bu(0,[(e()(),as(0,0,null,null,3,"button",[["class","key"]],[[8,"disabled",0]],[[null,"click"]],function(e,t,n){var r=!0;return"click"===t&&(r=!1!==e.component.keyClick(e.context.$implicit)&&r),r},null,null)),Ks(1,278528,null,0,cc,[ai,ci,qn,Jn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),vu(2,{key:0,keyout:1}),(e()(),gu(3,null,["",""]))],function(e,t){var n=e(t,2,0,t.context.$implicit.active,!t.context.$implicit.active);e(t,1,0,"key",n)},function(e,t){e(t,0,0,!t.context.$implicit.active),e(t,3,0,t.context.$implicit.char)})}function Ec(e){return bu(0,[(e()(),as(0,0,null,null,2,"div",[["class","keyboardRow"]],null,null,null,null,null)),(e()(),us(16777216,null,null,1,null,wc)),Ks(2,278528,null,0,fc,[Wo,br,ai],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.context.$implicit)},null)}function Cc(e){return bu(0,[(e()(),as(0,0,null,null,2,"div",[["class","keyboard"]],null,null,null,null,null)),(e()(),us(16777216,null,null,1,null,Ec)),Ks(2,278528,null,0,fc,[Wo,br,ai],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,2,0,t.component.keys)},null)}var xc=Ri({encapsulation:2,styles:[],data:{}});function Sc(e){return bu(0,[(e()(),gu(0,null,["","\n"]))],null,function(e,t){e(t,0,0,t.component.chronometerService.chronometer)})}var Ic=Ri({encapsulation:2,styles:[],data:{}});function Tc(e){return bu(0,[(e()(),gu(0,null,[""," "]))],null,function(e,t){e(t,0,0,t.component.chronometerService.chronometer)})}var kc=Ri({encapsulation:2,styles:[],data:{}});function Oc(e){return bu(0,[(e()(),as(0,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(e()(),as(1,0,null,null,1,"div",[["class","col"],["id","attemps-state"]],null,null,null,null,null)),(e()(),gu(2,null,[" Intentos: "," "])),(e()(),as(3,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(e()(),as(4,0,null,null,1,"div",[["class","col"]],null,null,null,null,null)),(e()(),as(5,0,null,null,0,"img",[["height","100%"],["width","100%"]],[[8,"src",4]],null,null,null,null))],null,function(e,t){var n=t.component;e(t,2,0,n.attemps),e(t,5,0,n.firstImage)})}var Nc=Ri({encapsulation:2,styles:[],data:{}});function Ac(e){return bu(0,[(e()(),as(0,0,null,null,1,"span",[["class","btn btn-light"]],null,null,null,null,null)),(e()(),gu(1,null,["",""]))],null,function(e,t){e(t,1,0,t.parent.context.$implicit.secret)})}function Dc(e){return bu(0,[(e()(),as(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),gu(-1,null,["\xa0\xa0\xa0"]))],null,null)}function jc(e){return bu(0,[(e()(),as(0,0,null,null,1,"span",[["class","btn btn-light"]],null,null,null,null,null)),(e()(),as(1,0,null,null,0,"i",[["class","fas fa-angle-double-down"]],null,null,null,null,null))],null,null)}function Pc(e){return bu(0,[(e()(),as(0,0,null,null,0,"br",[],null,null,null,null,null))],null,null)}function Rc(e){return bu(0,[(e()(),as(0,0,null,null,8,"span",[],null,null,null,null,null)),(e()(),us(16777216,null,null,1,null,Ac)),Ks(2,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),us(16777216,null,null,1,null,Dc)),Ks(4,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),us(16777216,null,null,1,null,jc)),Ks(6,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),us(16777216,null,null,1,null,Pc)),Ks(8,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,"....."!=t.context.$implicit.secret),e(t,4,0,"....."==t.context.$implicit.secret),e(t,6,0,t.context.$implicit.intro),e(t,8,0,t.context.$implicit.intro)},null)}function Mc(e){return bu(0,[(e()(),us(16777216,null,null,1,null,Rc)),Ks(1,278528,null,0,fc,[Wo,br,ai],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,1,0,t.component.letters)},null)}var Vc=Ri({encapsulation:2,styles:[],data:{}});function Hc(e){return bu(0,[(e()(),as(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),gu(1,null,['You lost. Secret word is "','"']))],null,function(e,t){e(t,1,0,t.component.secretWord.secret)})}function Fc(e){return bu(0,[(e()(),as(0,0,null,null,1,"span",[],null,null,null,null,null)),(e()(),gu(1,null,['You Win!!. Secret word is "','"']))],null,function(e,t){e(t,1,0,t.component.secretWord.secret)})}function Lc(e){return bu(0,[(e()(),as(0,0,null,null,7,"div",[["class","col alert finish-message"]],null,null,null,null,null)),Ks(1,278528,null,0,cc,[ai,ci,qn,Jn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),vu(2,{"alert-danger":0,"alert-success":1}),(e()(),gu(-1,null,[" The game is finished. "])),(e()(),us(16777216,null,null,1,null,Hc)),Ks(5,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),us(16777216,null,null,1,null,Fc)),Ks(7,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component,r=e(t,2,0,0==n.attemps,n.attemps>0);e(t,1,0,"col alert finish-message",r),e(t,5,0,0==n.attemps),e(t,7,0,n.attemps>0)},null)}function Bc(e){return bu(0,[(e()(),as(0,0,null,null,1,"strangle-keyboard",[],null,[[null,"selectKey"]],function(e,t,n){var r=!0;return"selectKey"===t&&(r=!1!==e.component.keyInput(n)&&r),r},Cc,bc)),Ks(1,114688,null,0,Ya,[],null,{selectKey:"selectKey"})],function(e,t){e(t,1,0)},null)}function zc(e){return bu(0,[(e()(),as(0,0,null,null,1,"a",[["class","btn btn-warning info-source"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(e()(),gu(-1,null,["More information"]))],null,function(e,t){e(t,0,0,t.component.secretWord.source)})}function Uc(e){return bu(0,[(e()(),as(0,0,null,null,26,"div",[["class","container-fluid"]],null,null,null,null,null)),(e()(),as(1,0,null,null,25,"div",[["class","main"],["id","inner"]],null,null,null,null,null)),(e()(),as(2,0,null,null,6,"div",[["class","row"],["id","status-bar"]],null,null,null,null,null)),(e()(),as(3,0,null,null,2,"div",[["class","col-6"]],null,null,null,null,null)),(e()(),as(4,0,null,null,1,"strangle-count-down-timer",[],null,null,null,Sc,xc)),Ks(5,114688,null,0,Qa,[Ga],{time:[0,"time"]},null),(e()(),as(6,0,null,null,2,"div",[["class","col-6"]],null,null,null,null,null)),(e()(),as(7,0,null,null,1,"strangle-chronometer",[],null,null,null,Tc,Ic)),Ks(8,114688,null,0,$a,[qa],{time:[0,"time"]},null),(e()(),as(9,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(e()(),us(16777216,null,null,1,null,Lc)),Ks(11,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),as(12,0,null,null,1,"strangle-game-state",[],null,null,null,Oc,kc)),Ks(13,114688,null,0,Ja,[ja],null,null),(e()(),as(14,0,null,null,3,"div",[["class","row"],["id","attemps-secret"]],null,null,null,null,null)),(e()(),as(15,0,null,null,2,"div",[["class","col-9"],["id","secret"]],null,null,null,null,null)),(e()(),gu(16,null,[" "," "])),yu(128,17,new Array(2)),(e()(),as(18,0,null,null,1,"p",[["class","center-text word"]],null,null,null,null,null)),(e()(),gu(19,null,[" "," "])),(e()(),as(20,0,null,null,2,"p",[],null,null,null,null,null)),(e()(),as(21,0,null,null,1,"strangle-hide-word",[],null,null,null,Mc,Nc)),Ks(22,114688,null,0,Pa,[ja],null,null),(e()(),us(16777216,null,null,1,null,Bc)),Ks(24,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null),(e()(),us(16777216,null,null,1,null,zc)),Ks(26,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null)],function(e,t){var n=t.component;e(t,5,0,n.playTime),e(t,8,0,-1),e(t,11,0,n.finish),e(t,13,0),e(t,22,0),e(t,24,0,!n.finish),e(t,26,0,n.secretWord.source&&n.finish)},function(e,t){var n=t.component,r=function(e,t,n,r){if(vt.isWrapped(r)){r=vt.unwrap(r);var o=e.def.nodes[16].bindingIndex+0,i=vt.unwrap(e.oldValues[o]);e.oldValues[o]=new vt(i)}return r}(t,0,0,e(t,17,0,function(e,t){var n=e.def.nodes[0];if(1&n.flags){var r=Ei(e,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return wi(e,n.nodeIndex).renderText;if(20240&n.flags)return Ci(e,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index 0")}(t.parent),n.secretWord.topic));e(t,16,0,r),e(t,19,0,n.getMomentWord())})}function Wc(e){return bu(0,[(t=0,n=yc,r=[],Ys(-1,t|=16,null,0,n,n,r)),(e()(),us(16777216,null,null,1,null,Uc)),Ks(2,16384,null,0,pc,[Wo,br],{ngIf:[0,"ngIf"]},null)],function(e,t){e(t,2,0,t.component.loading)},null);var t,n,r}var Zc=Ri({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{color:green}"]],data:{}});function Gc(e){return bu(0,[(e()(),as(0,0,null,null,1,"strangle-root",[],null,null,null,Wc,Vc)),Ks(1,245760,null,0,Ka,[ja,qa,Ga],{secretWord:[0,"secretWord"],attemps:[1,"attemps"],playTime:[2,"playTime"]},null)],function(e,t){var n=t.component;e(t,1,0,n.secretWord,n.gameConfig.attemps,n.gameConfig.playTime)},null)}function Qc(e){return bu(0,[(e()(),as(0,0,null,null,1,"app-root",[],null,null,null,Gc,Zc)),Ks(1,114688,null,0,ec,[Da],null,null)],function(e,t){e(t,1,0)},null)}var qc=Is("app-root",ec,Qc,{},{},[]),Kc=null;function Yc(){return Kc}var $c,Jc={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Xc={"\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"},el={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"};ve.Node&&($c=ve.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var tl,nl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,Kc||(Kc=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var o;(o=e)[t].apply(o,Object(r.__spread)(n))},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return Jc},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return $c.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n.item(r);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=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&&el.hasOwnProperty(t)&&(t=el[t]))}return Xc[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=rl||(rl=document.querySelector("base"))?rl.getAttribute("href"):null;return null==n?null:(t=n,tl||(tl=document.createElement("a")),tl.setAttribute("href",t),"/"===tl.pathname.charAt(0)?tl.pathname:"/"+tl.pathname)},t.prototype.resetBaseElement=function(){rl=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return function(e,t){var n,o;t=encodeURIComponent(t);try{for(var i=Object(r.__values)(e.split(";")),s=i.next();!s.done;s=i.next()){var u=s.value,a=u.indexOf("="),c=Object(r.__read)(-1==a?[u,""]:[u.slice(0,a),u.slice(a+1)],2),l=c[1];if(c[0].trim()===t)return decodeURIComponent(l)}}catch(f){n={error:f}}finally{try{s&&!s.done&&(o=i.return)&&o.call(i)}finally{if(n)throw n.error}}return null}(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])})}catch(s){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(r.__extends)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}())),rl=null,ol=mc;function il(){return!!window.history.pushState}var sl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(r.__extends)(t,e),t.prototype._init=function(){this.location=Yc().getLocation(),this._history=Yc().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return Yc().getBaseHref(this._doc)},t.prototype.onPopState=function(e){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){Yc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){il()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){il()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},Object(r.__decorate)([Object(r.__param)(0,xe(ol)),Object(r.__metadata)("design:paramtypes",[Object])],t)}(tc),ul=new le("TRANSITION_ID"),al=[{provide:ro,useFactory:function(e,t,n){return function(){n.get(oo).donePromise.then(function(){var n=Yc();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[ul,ol,je],multi:!0}],cl=function(){function e(){}return e.init=function(){var t;t=new e,jo=t},e.prototype.addToWindow=function(e){ve.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},ve.getAllAngularTestabilities=function(){return e.getAllTestabilities()},ve.getAllAngularRootElements=function(){return e.getAllRootElements()},ve.frameworkStabilizers||(ve.frameworkStabilizers=[]),ve.frameworkStabilizers.push(function(e){var t=ve.getAllAngularTestabilities(),n=t.length,r=!1,o=function(t){r=r||t,0==--n&&e(r)};t.forEach(function(e){e.whenStable(o)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?Yc().isShadowRoot(t)?this.findTestabilityInTree(e,Yc().getHost(t),!0):this.findTestabilityInTree(e,Yc().parentElement(t),!0):null},e}();function ll(e,t){"undefined"!=typeof COMPILED&&COMPILED||((ve.ng=ve.ng||{})[e]=t)}var fl={ApplicationRef:Lo,NgZone:Co};function dl(e){return Yo(e)}var pl=new le("EventManagerPlugins"),hl=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}(),vl=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=Yc().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),yl=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=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)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),gl=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(r.__extends)(t,e),t.prototype._addStylesToHost=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))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return Yc().remove(e)})},t}(yl),ml={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/"},_l=/%COMP%/g,bl="_nghost-%COMP%",wl="_ngcontent-%COMP%";function El(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?El(e,o,n):(o=o.replace(_l,e),n.push(o))}return n}function Cl(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var xl=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new Sl(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case Ye.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new Ol(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case Ye.Native:case Ye.ShadowDom:return new Nl(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var r=El(t.id,t.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),Sl=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(ml[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e,t){var n="string"==typeof e?document.querySelector(e):e;if(!n)throw new Error('The selector "'+e+'" did not match any elements');return t||(n.textContent=""),n},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=ml[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=ml[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,r){r&$n.DashCase?e.style.setProperty(t,n,r&$n.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&$n.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){Tl(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return Tl(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,Cl(n)):this.eventManager.addEventListener(e,t,Cl(n))},e}(),Il="@".charCodeAt(0);function Tl(e,t){if(e.charCodeAt(0)===Il)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var kl,Ol=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.component=r;var i=El(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=wl.replace(_l,r.id),o.hostAttr=bl.replace(_l,r.id),o}return Object(r.__extends)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(Sl),Nl=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=o.encapsulation===Ye.ShadowDom?r.attachShadow({mode:"open"}):r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=El(o.id,o.styles,[]),u=0;u<s.length;u++){var a=document.createElement("style");a.textContent=s[u],i.shadowRoot.appendChild(a)}return i}return Object(r.__extends)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(Sl),Al="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},Dl=Al("addEventListener"),jl=Al("removeEventListener"),Pl={},Rl="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[Al("BLACK_LISTED_EVENTS")]&&(kl={});var Ml=function(e){return!!kl&&kl.hasOwnProperty(e)},Vl=function(e){var t=Pl[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==e[Rl];i++){var s;(s=o[i]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Hl=function(e){function t(t,n,r){var o=e.call(this,t)||this;return o.ngZone=n,r&&function(e){return e===_c}(r)||o.patchEvent(),o}return Object(r.__extends)(t,e),t.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Rl]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=n;if(!e[Dl]||Co.isInAngularZone()&&!Ml(t))e.addEventListener(t,o,!1);else{var i=Pl[t];i||(i=Pl[t]=Al("ANGULAR"+t+"FALSE"));var s=e[i],u=s&&s.length>0;s||(s=e[i]=[]);var a=Ml(t)?Zone.root:Zone.current;if(0===s.length)s.push({zone:a,handler:o});else{for(var c=!1,l=0;l<s.length;l++)if(s[l].handler===o){c=!0;break}c||s.push({zone:a,handler:o})}u||e[Dl](t,Vl,!1)}return function(){return r.removeEventListener(e,t,o)}},t.prototype.removeEventListener=function(e,t,n){var r=e[jl];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var o=Pl[t],i=o&&e[o];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,u=0;u<i.length;u++)if(i[u].handler===n){s=!0,i.splice(u,1);break}s?0===i.length&&r.apply(e,[t,Vl,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(vl),Fl={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ll=new le("HammerGestureConfig"),Bl=new le("HammerLoader"),zl=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e,this.options);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),Ul=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;return i._config=n,i.console=r,i.loader=o,i}return Object(r.__extends)(t,e),t.prototype.supports=function(e){return!(!Fl.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+e+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();if(t=t.toLowerCase(),!window.Hammer&&this.loader){var i=!1,s=function(){i=!0};return this.loader().then(function(){if(!window.Hammer)return r.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(s=function(){});i||(s=r.addEventListener(e,t,n))}).catch(function(){r.console.warn('The "'+t+'" event cannot be bound because the custom Hammer.JS loader failed.'),s=function(){}}),function(){s()}}return o.runOutsideAngular(function(){var i=r._config.buildHammer(e),s=function(e){o.runGuarded(function(){n(e)})};return i.on(t,s),function(){i.off(t,s),"function"==typeof i.destroy&&i.destroy()}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(vl),Wl=["alt","control","meta","shift"],Zl={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Gl=function(e){function t(t){return e.call(this,t)||this}var n;return Object(r.__extends)(t,e),n=t,t.prototype.supports=function(e){return null!=n.parseEventName(e)},t.prototype.addEventListener=function(e,t,r){var o=n.parseEventName(t),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Yc().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var t=e.toLowerCase().split("."),r=t.shift();if(0===t.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(t.pop()),i="";if(Wl.forEach(function(e){var n=t.indexOf(e);n>-1&&(t.splice(n,1),i+=e+".")}),i+=o,0!=t.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=Yc().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Wl.forEach(function(r){r!=n&&(0,Zl[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,t,r){return function(o){n.getEventFullKey(o)===e&&r.runGuarded(function(){return t(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(vl),Ql=function(){return function(){}}(),ql=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(r.__extends)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case Wr.NONE:return t;case Wr.HTML:return t instanceof Yl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=null;try{Nr=Nr||new xr(e);var r=t?String(t):"";n=Nr.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Nr.getInertBodyElement(r)}while(r!==i);var s=new Fr,u=s.sanitizeChildren(Ur(n)||n);return Cr()&&s.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Ur(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(t)));case Wr.STYLE:return t instanceof $l?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(Qr);return t&&Tr(t[1])===t[1]||e.match(Gr)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(Cr()&&console.warn("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case Wr.SCRIPT:if(t instanceof Jl)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case Wr.URL:return t instanceof ef||t instanceof Xl?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Tr(String(t)));case Wr.RESOURCE_URL:if(t instanceof ef)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof Kl)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new Yl(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new $l(e)},t.prototype.bypassSecurityTrustScript=function(e){return new Jl(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new Xl(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new ef(e)},t}(Ql),Kl=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(Kl),$l=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(Kl),Jl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(Kl),Xl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(Kl),ef=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(r.__extends)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(Kl),tf=Mo(pi,"browser",[{provide:co,useValue:"browser"},{provide:ao,useValue:function(){nl.makeCurrent(),cl.init()},multi:!0},{provide:tc,useClass:sl,deps:[ol]},{provide:ol,useFactory:function(){return document},deps:[]}]);function nf(){return new to}var rf=function(){function e(e){if(e)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.")}var t;return t=e,e.withServerTransition=function(e){return{ngModule:t,providers:[{provide:io,useValue:e.appId},{provide:ul,useExisting:io},al]}},e}();"undefined"!=typeof window&&window;var of=Ta(Oa,[ec],function(e){return function(e){for(var t={},n=[],r=!1,o=0;o<e.length;o++){var i=e[o];i.token===sr&&!0===i.value&&(r=!0),1073741824&i.flags&&n.push(i.token),i.index=o,t[Di(i.token)]=i}return{factory:null,providersByKey:t,providers:e,modules:n,isRoot:r}}([gs(512,Mn,Vn,[[8,[qc]],[3,Mn],Fn]),gs(5120,hi,gi,[[3,hi]]),gs(4608,uc,ac,[hi,[2,sc]]),gs(4608,yo,yo,[]),gs(5120,io,so,[]),gs(5120,ai,vi,[]),gs(5120,ci,yi,[]),gs(4608,Ql,ql,[mc]),gs(6144,Zr,null,[Ql]),gs(4608,Ll,zl,[]),gs(5120,pl,function(e,t,n,r,o,i,s,u){return[new Hl(e,t,n),new Gl(r),new Ul(o,i,s,u)]},[mc,Co,co,mc,mc,Ll,fo,[2,Bl]]),gs(4608,hl,hl,[pl,Co]),gs(135680,gl,gl,[mc]),gs(4608,xl,xl,[hl,gl]),gs(6144,Yn,null,[xl]),gs(6144,yl,null,[gl]),gs(4608,Ao,Ao,[Co]),gs(1073742336,gc,gc,[]),gs(1024,to,nf,[]),gs(1024,ro,function(e){return[(t=e,ll("probe",dl),ll("coreTokens",Object(r.__assign)({},fl,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return dl})];var t},[[2,Ro]]),gs(512,oo,oo,[[2,ro]]),gs(131584,Lo,Lo,[Co,fo,je,to,Mn,oo]),gs(1073742336,mi,mi,[Lo]),gs(1073742336,rf,rf,[[3,rf]]),gs(1073742336,Xa,Xa,[]),gs(1073742336,Oa,Oa,[]),gs(256,sr,!0,[])])});(function(){if(Er)throw new Error("Cannot enable prod mode after platform setup.");wr=!1})(),tf().bootstrapModuleFactory(of).catch(function(e){return console.error(e)})},zfKp:function(e,t,n){"use strict";t.observable="function"==typeof Symbol&&Symbol.observable||"@@observable"}},[[0,0]]]);