UNPKG

homebridge-touchwand-google

Version:
1 lines 156 kB
!function(){function e(e,n){return function(e){if(Array.isArray(e))return e}(e)||function(e,n){if("undefined"==typeof Symbol||!(Symbol.iterator in Object(e)))return;var t=[],r=!0,i=!1,u=void 0;try{for(var o,a=e[Symbol.iterator]();!(r=(o=a.next()).done)&&(t.push(o.value),!n||t.length!==n);r=!0);}catch(s){i=!0,u=s}finally{try{r||null==a.return||a.return()}finally{if(i)throw u}}return t}(e,n)||r(e,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function n(e){return function(e){if(Array.isArray(e))return i(e)}(e)||function(e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e))return Array.from(e)}(e)||r(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function t(e,n){var t;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(t=r(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var i=0,u=function(){};return{s:u,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:u}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,a=!0,s=!1;return{s:function(){t=e[Symbol.iterator]()},n:function(){var e=t.next();return a=e.done,e},e:function(e){s=!0,o=e},f:function(){try{a||null==t.return||t.return()}finally{if(s)throw o}}}}function r(e,n){if(e){if("string"==typeof e)return i(e,n);var t=Object.prototype.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?i(e,n):void 0}}function i(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,r=new Array(n);t<n;t++)r[t]=e[t];return r}function u(e,n,t){return(u=h()?Reflect.construct:function(e,n,t){var r=[null];r.push.apply(r,n);var i=new(Function.bind.apply(e,r));return t&&s(i,t.prototype),i}).apply(null,arguments)}function o(e,n,t){return(o="undefined"!=typeof Reflect&&Reflect.get?Reflect.get:function(e,n,t){var r=function(e,n){for(;!Object.prototype.hasOwnProperty.call(e,n)&&null!==(e=d(e)););return e}(e,n);if(r){var i=Object.getOwnPropertyDescriptor(r,n);return i.get?i.get.call(t):i.value}})(e,n,t||e)}function a(e,n){if("function"!=typeof n&&null!==n)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(n&&n.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),n&&s(e,n)}function s(e,n){return(s=Object.setPrototypeOf||function(e,n){return e.__proto__=n,e})(e,n)}function l(e){var n=h();return function(){var t,r=d(e);if(n){var i=d(this).constructor;t=Reflect.construct(r,arguments,i)}else t=r.apply(this,arguments);return c(this,t)}}function c(e,n){return!n||"object"!=typeof n&&"function"!=typeof n?f(e):n}function f(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(e){return!1}}function d(e){return(d=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function v(e,n){if(!(e instanceof n))throw new TypeError("Cannot call a class as a function")}function p(e,n){for(var t=0;t<n.length;t++){var r=n[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function y(e,n,t){return n&&p(e.prototype,n),t&&p(e,t),e}(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(e,n,t){e.exports=t("zUnb")},jim7:function(e,n,t){"use strict";Object.defineProperty(n,"__esModule",{value:!0})},zUnb:function(r,i,s){"use strict";function c(e){return"function"==typeof e}s.r(i);var h=!1,p={Promise:void 0,set useDeprecatedSynchronousErrorHandling(e){if(e){var n=new Error;console.warn("DEPRECATED! RxJS was set to use deprecated synchronous error handling behavior by code at: \n"+n.stack)}else h&&console.log("RxJS: Back to a better error behavior. Thank you. <3");h=e},get useDeprecatedSynchronousErrorHandling(){return h}};function g(e){setTimeout((function(){throw e}),0)}var m={closed:!0,next:function(e){},error:function(e){if(p.useDeprecatedSynchronousErrorHandling)throw e;g(e)},complete:function(){}},_=Array.isArray||function(e){return e&&"number"==typeof e.length};function D(e){return null!==e&&"object"==typeof e}var w,b=function(){function e(e){return Error.call(this),this.message=e?"".concat(e.length," errors occurred during unsubscription:\n").concat(e.map((function(e,n){return"".concat(n+1,") ").concat(e.toString())})).join("\n  ")):"",this.name="UnsubscriptionError",this.errors=e,this}return e.prototype=Object.create(Error.prototype),e}(),k=((w=function(){function e(n){v(this,e),this.closed=!1,this._parentOrParents=null,this._subscriptions=null,n&&(this._ctorUnsubscribe=!0,this._unsubscribe=n)}return y(e,[{key:"unsubscribe",value:function(){var n;if(!this.closed){var t=this._parentOrParents,r=this._ctorUnsubscribe,i=this._unsubscribe,u=this._subscriptions;if(this.closed=!0,this._parentOrParents=null,this._subscriptions=null,t instanceof e)t.remove(this);else if(null!==t)for(var o=0;o<t.length;++o)t[o].remove(this);if(c(i)){r&&(this._unsubscribe=void 0);try{i.call(this)}catch(f){n=f instanceof b?C(f.errors):[f]}}if(_(u))for(var a=-1,s=u.length;++a<s;){var l=u[a];if(D(l))try{l.unsubscribe()}catch(f){n=n||[],f instanceof b?n=n.concat(C(f.errors)):n.push(f)}}if(n)throw new b(n)}}},{key:"add",value:function(n){var t=n;if(!n)return e.EMPTY;switch(typeof n){case"function":t=new e(n);case"object":if(t===this||t.closed||"function"!=typeof t.unsubscribe)return t;if(this.closed)return t.unsubscribe(),t;if(!(t instanceof e)){var r=t;(t=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}var i=t._parentOrParents;if(null===i)t._parentOrParents=this;else if(i instanceof e){if(i===this)return t;t._parentOrParents=[i,this]}else{if(-1!==i.indexOf(this))return t;i.push(this)}var u=this._subscriptions;return null===u?this._subscriptions=[t]:u.push(t),t}},{key:"remove",value:function(e){var n=this._subscriptions;if(n){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}}}]),e}()).EMPTY=function(e){return e.closed=!0,e}(new w),w);function C(e){return e.reduce((function(e,n){return e.concat(n instanceof b?n.errors:n)}),[])}var E="function"==typeof Symbol?Symbol("rxSubscriber"):"@@rxSubscriber_"+Math.random(),A=function(e){a(t,e);var n=l(t);function t(e,r,i){var u;switch(v(this,t),(u=n.call(this)).syncErrorValue=null,u.syncErrorThrown=!1,u.syncErrorThrowable=!1,u.isStopped=!1,arguments.length){case 0:u.destination=m;break;case 1:if(!e){u.destination=m;break}if("object"==typeof e){e instanceof t?(u.syncErrorThrowable=e.syncErrorThrowable,u.destination=e,e.add(f(u))):(u.syncErrorThrowable=!0,u.destination=new F(f(u),e));break}default:u.syncErrorThrowable=!0,u.destination=new F(f(u),e,r,i)}return u}return y(t,[{key:E,value:function(){return this}},{key:"next",value:function(e){this.isStopped||this._next(e)}},{key:"error",value:function(e){this.isStopped||(this.isStopped=!0,this._error(e))}},{key:"complete",value:function(){this.isStopped||(this.isStopped=!0,this._complete())}},{key:"unsubscribe",value:function(){this.closed||(this.isStopped=!0,o(d(t.prototype),"unsubscribe",this).call(this))}},{key:"_next",value:function(e){this.destination.next(e)}},{key:"_error",value:function(e){this.destination.error(e),this.unsubscribe()}},{key:"_complete",value:function(){this.destination.complete(),this.unsubscribe()}},{key:"_unsubscribeAndRecycle",value:function(){var e=this._parentOrParents;return this._parentOrParents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parentOrParents=e,this}}],[{key:"create",value:function(e,n,r){var i=new t(e,n,r);return i.syncErrorThrowable=!1,i}}]),t}(k),F=function(e){a(t,e);var n=l(t);function t(e,r,i,u){var o,a;v(this,t),(o=n.call(this))._parentSubscriber=e;var s=f(o);return c(r)?a=r:r&&(a=r.next,i=r.error,u=r.complete,r!==m&&(c((s=Object.create(r)).unsubscribe)&&o.add(s.unsubscribe.bind(s)),s.unsubscribe=o.unsubscribe.bind(f(o)))),o._context=s,o._next=a,o._error=i,o._complete=u,o}return y(t,[{key:"next",value:function(e){if(!this.isStopped&&this._next){var n=this._parentSubscriber;p.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}}},{key:"error",value:function(e){if(!this.isStopped){var n=this._parentSubscriber,t=p.useDeprecatedSynchronousErrorHandling;if(this._error)t&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else if(n.syncErrorThrowable)t?(n.syncErrorValue=e,n.syncErrorThrown=!0):g(e),this.unsubscribe();else{if(this.unsubscribe(),t)throw e;g(e)}}}},{key:"complete",value:function(){var e=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var t=function(){return e._complete.call(e._context)};p.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,t),this.unsubscribe()):(this.__tryOrUnsub(t),this.unsubscribe())}else this.unsubscribe()}}},{key:"__tryOrUnsub",value:function(e,n){try{e.call(this._context,n)}catch(t){if(this.unsubscribe(),p.useDeprecatedSynchronousErrorHandling)throw t;g(t)}}},{key:"__tryOrSetError",value:function(e,n,t){if(!p.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,t)}catch(r){return p.useDeprecatedSynchronousErrorHandling?(e.syncErrorValue=r,e.syncErrorThrown=!0,!0):(g(r),!0)}return!1}},{key:"_unsubscribe",value:function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()}}]),t}(A),x="function"==typeof Symbol&&Symbol.observable||"@@observable";function T(e){return e}var I,S=((I=function(){function e(n){v(this,e),this._isScalar=!1,n&&(this._subscribe=n)}return y(e,[{key:"lift",value:function(n){var t=new e;return t.source=this,t.operator=n,t}},{key:"subscribe",value:function(e,n,t){var r=this.operator,i=function(e,n,t){if(e){if(e instanceof A)return e;if(e[E])return e[E]()}return e||n||t?new A(e,n,t):new A(m)}(e,n,t);if(i.add(r?r.call(i,this.source):this.source||p.useDeprecatedSynchronousErrorHandling&&!i.syncErrorThrowable?this._subscribe(i):this._trySubscribe(i)),p.useDeprecatedSynchronousErrorHandling&&i.syncErrorThrowable&&(i.syncErrorThrowable=!1,i.syncErrorThrown))throw i.syncErrorValue;return i}},{key:"_trySubscribe",value:function(e){try{return this._subscribe(e)}catch(n){p.useDeprecatedSynchronousErrorHandling&&(e.syncErrorThrown=!0,e.syncErrorValue=n),function(e){for(;e;){var n=e,t=n.closed,r=n.destination,i=n.isStopped;if(t||i)return!1;e=r&&r instanceof A?r:null}return!0}(e)?e.error(n):console.warn(n)}}},{key:"forEach",value:function(e,n){var t=this;return new(n=B(n))((function(n,r){var i;i=t.subscribe((function(n){try{e(n)}catch(t){r(t),i&&i.unsubscribe()}}),r,n)}))}},{key:"_subscribe",value:function(e){var n=this.source;return n&&n.subscribe(e)}},{key:x,value:function(){return this}},{key:"pipe",value:function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];return 0===n.length?this:(0===(r=n).length?T:1===r.length?r[0]:function(e){return r.reduce((function(e,n){return n(e)}),e)})(this);var r}},{key:"toPromise",value:function(e){var n=this;return new(e=B(e))((function(e,t){var r;n.subscribe((function(e){return r=e}),(function(e){return t(e)}),(function(){return e(r)}))}))}}]),e}()).create=function(e){return new I(e)},I);function B(e){if(e||(e=p.Promise||Promise),!e)throw new Error("no Promise impl found");return e}var O,N=function(){function e(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}return e.prototype=Object.create(Error.prototype),e}(),R=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this)).subject=e,i.subscriber=r,i.closed=!1,i}return y(t,[{key:"unsubscribe",value:function(){if(!this.closed){this.closed=!0;var e=this.subject,n=e.observers;if(this.subject=null,n&&0!==n.length&&!e.isStopped&&!e.closed){var t=n.indexOf(this.subscriber);-1!==t&&n.splice(t,1)}}}}]),t}(k),j=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this,e)).destination=e,r}return t}(A),P=((O=function(e){a(t,e);var n=l(t);function t(){var e;return v(this,t),(e=n.call(this)).observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return y(t,[{key:E,value:function(){return new j(this)}},{key:"lift",value:function(e){var n=new H(this,this);return n.operator=e,n}},{key:"next",value:function(e){if(this.closed)throw new N;if(!this.isStopped)for(var n=this.observers,t=n.length,r=n.slice(),i=0;i<t;i++)r[i].next(e)}},{key:"error",value:function(e){if(this.closed)throw new N;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var n=this.observers,t=n.length,r=n.slice(),i=0;i<t;i++)r[i].error(e);this.observers.length=0}},{key:"complete",value:function(){if(this.closed)throw new N;this.isStopped=!0;for(var e=this.observers,n=e.length,t=e.slice(),r=0;r<n;r++)t[r].complete();this.observers.length=0}},{key:"unsubscribe",value:function(){this.isStopped=!0,this.closed=!0,this.observers=null}},{key:"_trySubscribe",value:function(e){if(this.closed)throw new N;return o(d(t.prototype),"_trySubscribe",this).call(this,e)}},{key:"_subscribe",value:function(e){if(this.closed)throw new N;return this.hasError?(e.error(this.thrownError),k.EMPTY):this.isStopped?(e.complete(),k.EMPTY):(this.observers.push(e),new R(this,e))}},{key:"asObservable",value:function(){var e=new S;return e.source=this,e}}]),t}(S)).create=function(e,n){return new H(e,n)},O),H=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this)).destination=e,i.source=r,i}return y(t,[{key:"next",value:function(e){var n=this.destination;n&&n.next&&n.next(e)}},{key:"error",value:function(e){var n=this.destination;n&&n.error&&this.destination.error(e)}},{key:"complete",value:function(){var e=this.destination;e&&e.complete&&this.destination.complete()}},{key:"_subscribe",value:function(e){return this.source?this.source.subscribe(e):k.EMPTY}}]),t}(P),M=function(){function e(n,t){v(this,e),this.project=n,this.thisArg=t}return y(e,[{key:"call",value:function(e,n){return n.subscribe(new V(e,this.project,this.thisArg))}}]),e}(),V=function(e){a(t,e);var n=l(t);function t(e,r,i){var u;return v(this,t),(u=n.call(this,e)).project=r,u.count=0,u.thisArg=i||f(u),u}return y(t,[{key:"_next",value:function(e){var n;try{n=this.project.call(this.thisArg,e,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(n)}}]),t}(A),L=function(e){return function(n){for(var t=0,r=e.length;t<r&&!n.closed;t++)n.next(e[t]);n.complete()}};var z="function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator",Z=function(e){return e&&"number"==typeof e.length&&"function"!=typeof e};function U(e){return!!e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var W=function(e){if(e&&"function"==typeof e[x])return r=e,function(e){var n=r[x]();if("function"!=typeof n.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return n.subscribe(e)};if(Z(e))return L(e);if(U(e))return t=e,function(e){return t.then((function(n){e.closed||(e.next(n),e.complete())}),(function(n){return e.error(n)})).then(null,g),e};if(e&&"function"==typeof e[z])return n=e,function(e){for(var t=n[z]();;){var r=void 0;try{r=t.next()}catch(i){return e.error(i),e}if(r.done){e.complete();break}if(e.next(r.value),e.closed)break}return"function"==typeof t.return&&e.add((function(){t.return&&t.return()})),e};var n,t,r,i=D(e)?"an invalid object":"'".concat(e,"'");throw new TypeError("You provided ".concat(i," where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))};function q(e,n){return new S((function(t){var r=new k,i=0;return r.add(n.schedule((function(){i!==e.length?(t.next(e[i++]),t.closed||r.add(this.schedule())):t.complete()}))),r}))}var G=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this)).parent=e,r}return y(t,[{key:"_next",value:function(e){this.parent.notifyNext(e)}},{key:"_error",value:function(e){this.parent.notifyError(e),this.unsubscribe()}},{key:"_complete",value:function(){this.parent.notifyComplete(),this.unsubscribe()}}]),t}(A),Q=function(e){a(t,e);var n=l(t);function t(){return v(this,t),n.apply(this,arguments)}return y(t,[{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyError",value:function(e){this.destination.error(e)}},{key:"notifyComplete",value:function(){this.destination.complete()}}]),t}(A);function J(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return"function"==typeof n?function(r){return r.pipe(J((function(t,r){return(i=e(t,r),i instanceof S?i:new S(W(i))).pipe(function(e,n){return function(n){return n.lift(new M(e,void 0))}}((function(e,i){return n(t,e,r,i)})));var i}),t))}:("number"==typeof n&&(t=n),function(n){return n.lift(new Y(e,t))})}var Y=function(){function e(n){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY;v(this,e),this.project=n,this.concurrent=t}return y(e,[{key:"call",value:function(e,n){return n.subscribe(new K(e,this.project,this.concurrent))}}]),e}(),K=function(e){a(t,e);var n=l(t);function t(e,r){var i,u=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Number.POSITIVE_INFINITY;return v(this,t),(i=n.call(this,e)).project=r,i.concurrent=u,i.hasCompleted=!1,i.buffer=[],i.active=0,i.index=0,i}return y(t,[{key:"_next",value:function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)}},{key:"_tryNext",value:function(e){var n,t=this.index++;try{n=this.project(e,t)}catch(r){return void this.destination.error(r)}this.active++,this._innerSub(n)}},{key:"_innerSub",value:function(e){var n=new G(this),t=this.destination;t.add(n);var r=function(e,n){if(!n.closed)return e instanceof S?e.subscribe(n):W(e)(n)}(e,n);r!==n&&t.add(r)}},{key:"_complete",value:function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete(),this.unsubscribe()}},{key:"notifyNext",value:function(e){this.destination.next(e)}},{key:"notifyComplete",value:function(){var e=this.buffer;this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()}}]),t}(Q);function $(){return function(e){return e.lift(new ee(e))}}var X,ee=function(){function e(n){v(this,e),this.connectable=n}return y(e,[{key:"call",value:function(e,n){var t=this.connectable;t._refCount++;var r=new ne(e,t),i=n.subscribe(r);return r.closed||(r.connection=t.connect()),i}}]),e}(),ne=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this,e)).connectable=r,i}return y(t,[{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var n=e._refCount;if(n<=0)this.connection=null;else if(e._refCount=n-1,n>1)this.connection=null;else{var t=this.connection,r=e._connection;this.connection=null,!r||t&&r!==t||r.unsubscribe()}}else this.connection=null}}]),t}(A),te={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:(X=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this)).source=e,i.subjectFactory=r,i._refCount=0,i._isComplete=!1,i}return y(t,[{key:"_subscribe",value:function(e){return this.getSubject().subscribe(e)}},{key:"getSubject",value:function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject}},{key:"connect",value:function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new k).add(this.source.subscribe(new re(this.getSubject(),this))),e.closed&&(this._connection=null,e=k.EMPTY)),e}},{key:"refCount",value:function(){return $()(this)}}]),t}(S).prototype)._subscribe},_isComplete:{value:X._isComplete,writable:!0},getSubject:{value:X.getSubject},connect:{value:X.connect},refCount:{value:X.refCount}},re=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this,e)).connectable=r,i}return y(t,[{key:"_error",value:function(e){this._unsubscribe(),o(d(t.prototype),"_error",this).call(this,e)}},{key:"_complete",value:function(){this.connectable._isComplete=!0,this._unsubscribe(),o(d(t.prototype),"_complete",this).call(this)}},{key:"_unsubscribe",value:function(){var e=this.connectable;if(e){this.connectable=null;var n=e._connection;e._refCount=0,e._subject=null,e._connection=null,n&&n.unsubscribe()}}}]),t}(j);function ie(){return new P}function ue(e){return{toString:e}.toString()}function oe(e,n,t){return ue((function(){var r=function(e){return function(){if(e){var n=e.apply(void 0,arguments);for(var t in n)this[t]=n[t]}}}(n);function i(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];if(this instanceof i)return r.apply(this,n),this;var o=u(i,n);return a.annotation=o,a;function a(e,n,t){for(var r=e.hasOwnProperty("__parameters__")?e.__parameters__:Object.defineProperty(e,"__parameters__",{value:[]}).__parameters__;r.length<=t;)r.push(null);return(r[t]=r[t]||[]).push(o),e}}return t&&(i.prototype=Object.create(t.prototype)),i.prototype.ngMetadataName=e,i.annotationCls=i,i}))}var ae=oe("Inject",(function(e){return{token:e}})),se=oe("Optional"),le=oe("Self"),ce=oe("SkipSelf"),fe=function(e){return e[e.Default=0]="Default",e[e.Host=1]="Host",e[e.Self=2]="Self",e[e.SkipSelf=4]="SkipSelf",e[e.Optional=8]="Optional",e}({});function he(e){for(var n in e)if(e[n]===he)return n;throw Error("Could not find renamed property on target object.")}function de(e){return{token:e.token,providedIn:e.providedIn||null,factory:e.factory,value:void 0}}function ve(e){return{factory:e.factory,providers:e.providers||[],imports:e.imports||[]}}function pe(e){return ye(e,e[me])||ye(e,e[we])}function ye(e,n){return n&&n.token===e?n:null}function ge(e){return e&&(e.hasOwnProperty(_e)||e.hasOwnProperty(be))?e[_e]:null}var me=he({"\u0275prov":he}),_e=he({"\u0275inj":he}),De=he({"\u0275provFallback":he}),we=he({ngInjectableDef:he}),be=he({ngInjectorDef:he});function ke(e){if("string"==typeof e)return e;if(Array.isArray(e))return"["+e.map(ke).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var n=e.toString();if(null==n)return""+n;var t=n.indexOf("\n");return-1===t?n:n.substring(0,t)}function Ce(e,n){return null==e||""===e?null===n?"":n:null==n||""===n?e:e+" "+n}var Ee=he({__forward_ref__:he});function Ae(e){return e.__forward_ref__=Ae,e.toString=function(){return ke(this())},e}function Fe(e){return"function"==typeof(n=e)&&n.hasOwnProperty(Ee)&&n.__forward_ref__===Ae?e():e;var n}var xe,Te="undefined"!=typeof globalThis&&globalThis,Ie="undefined"!=typeof window&&window,Se="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Be="undefined"!=typeof global&&global,Oe=Te||Be||Ie||Se,Ne=he({"\u0275cmp":he}),Re=he({"\u0275dir":he}),je=he({"\u0275pipe":he}),Pe=he({"\u0275mod":he}),He=he({"\u0275loc":he}),Me=he({"\u0275fac":he}),Ve=he({__NG_ELEMENT_ID__:he}),Le=function(){function e(n,t){v(this,e),this._desc=n,this.ngMetadataName="InjectionToken",this.\u0275prov=void 0,"number"==typeof t?this.__NG_ELEMENT_ID__=t:void 0!==t&&(this.\u0275prov=de({token:this,providedIn:t.providedIn||"root",factory:t.factory}))}return y(e,[{key:"toString",value:function(){return"InjectionToken "+this._desc}}]),e}(),ze=new Le("INJECTOR",-1),Ze={},Ue=/\n/gm,We=he({provide:String,useValue:he}),qe=void 0;function Ge(e){var n=qe;return qe=e,n}function Qe(e){var n=xe;return xe=e,n}function Je(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default;if(void 0===qe)throw new Error("inject() must be called from an injection context");return null===qe?Ke(e,void 0,n):qe.get(e,n&fe.Optional?null:void 0,n)}function Ye(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default;return(xe||Je)(Fe(e),n)}function Ke(e,n,t){var r=pe(e);if(r&&"root"==r.providedIn)return void 0===r.value?r.value=r.factory():r.value;if(t&fe.Optional)return null;if(void 0!==n)return n;throw new Error("Injector: NOT_FOUND [".concat(ke(e),"]"))}function $e(e){for(var n=[],t=0;t<e.length;t++){var r=Fe(e[t]);if(Array.isArray(r)){if(0===r.length)throw new Error("Arguments array must have arguments.");for(var i=void 0,u=fe.Default,o=0;o<r.length;o++){var a=r[o];a instanceof se||"Optional"===a.ngMetadataName||a===se?u|=fe.Optional:a instanceof ce||"SkipSelf"===a.ngMetadataName||a===ce?u|=fe.SkipSelf:a instanceof le||"Self"===a.ngMetadataName||a===le?u|=fe.Self:i=a instanceof ae||a===ae?a.token:a}n.push(Ye(i,u))}else n.push(Ye(r))}return n}var Xe=function(){function e(){v(this,e)}return y(e,[{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze;if(n===Ze){var t=new Error("NullInjectorError: No provider for ".concat(ke(e),"!"));throw t.name="NullInjectorError",t}return n}}]),e}(),en=function e(){v(this,e)};function nn(e,n){e.forEach((function(e){return Array.isArray(e)?nn(e,n):n(e)}))}function tn(e,n,t){n>=e.length?e.push(t):e.splice(n,0,t)}function rn(e,n){return n>=e.length-1?e.pop():e.splice(n,1)[0]}var un,on=function(e){return e[e.OnPush=0]="OnPush",e[e.Default=1]="Default",e}({}),an=((un={})[un.Emulated=0]="Emulated",un[un.Native=1]="Native",un[un.None=2]="None",un[un.ShadowDom=3]="ShadowDom",un),sn={},ln=[],cn=0;function fn(e){return ue((function(){var n={},t={type:e.type,providersResolver:null,decls:e.decls,vars:e.vars,factory:null,template:e.template||null,consts:e.consts||null,ngContentSelectors:e.ngContentSelectors,hostBindings:e.hostBindings||null,hostVars:e.hostVars||0,hostAttrs:e.hostAttrs||null,contentQueries:e.contentQueries||null,declaredInputs:n,inputs:null,outputs:null,exportAs:e.exportAs||null,onPush:e.changeDetection===on.OnPush,directiveDefs:null,pipeDefs:null,selectors:e.selectors||ln,viewQuery:e.viewQuery||null,features:e.features||null,data:e.data||{},encapsulation:e.encapsulation||an.Emulated,id:"c",styles:e.styles||ln,_:null,setInput:null,schemas:e.schemas||null,tView:null},r=e.directives,i=e.features,u=e.pipes;return t.id+=cn++,t.inputs=yn(e.inputs,n),t.outputs=yn(e.outputs),i&&i.forEach((function(e){return e(t)})),t.directiveDefs=r?function(){return("function"==typeof r?r():r).map(hn)}:null,t.pipeDefs=u?function(){return("function"==typeof u?u():u).map(dn)}:null,t}))}function hn(e){return _n(e)||function(e){return e[Re]||null}(e)}function dn(e){return function(e){return e[je]||null}(e)}var vn={};function pn(e){var n={type:e.type,bootstrap:e.bootstrap||ln,declarations:e.declarations||ln,imports:e.imports||ln,exports:e.exports||ln,transitiveCompileScopes:null,schemas:e.schemas||null,id:e.id||null};return null!=e.id&&ue((function(){vn[e.id]=e.type})),n}function yn(e,n){if(null==e)return sn;var t={};for(var r in e)if(e.hasOwnProperty(r)){var i=e[r],u=i;Array.isArray(i)&&(u=i[1],i=i[0]),t[i]=r,n&&(n[i]=u)}return t}var gn=fn;function mn(e){return{type:e.type,name:e.name,factory:null,pure:!1!==e.pure,onDestroy:e.type.prototype.ngOnDestroy||null}}function _n(e){return e[Ne]||null}function Dn(e,n){return e.hasOwnProperty(Me)?e[Me]:null}function wn(e,n){var t=e[Pe]||null;if(!t&&!0===n)throw new Error("Type ".concat(ke(e)," does not have '\u0275mod' property."));return t}function bn(e){return Array.isArray(e)&&"object"==typeof e[1]}function kn(e){return Array.isArray(e)&&!0===e[1]}function Cn(e){return 0!=(8&e.flags)}function En(e){return 2==(2&e.flags)}function An(e){return 1==(1&e.flags)}function Fn(e){return null!==e.template}function xn(e){return 0!=(512&e[2])}function Tn(e){return"string"==typeof e?e:null==e?"":""+e}function In(e){return"function"==typeof e?e.name||e.toString():"object"==typeof e&&null!=e&&"function"==typeof e.type?e.type.name||e.type.toString():Tn(e)}var Sn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Oe);function Bn(e){return e instanceof Function?e():e}function On(e,n){var t=n?" in "+n:"";throw new Error("No provider for ".concat(In(e)," found").concat(t))}var Nn=function(){function e(n,t,r){v(this,e),this.previousValue=n,this.currentValue=t,this.firstChange=r}return y(e,[{key:"isFirstChange",value:function(){return this.firstChange}}]),e}();function Rn(){var e=Pn(this),n=null==e?void 0:e.current;if(n){var t=e.previous;if(t===sn)e.previous=n;else for(var r in n)t[r]=n[r];e.current=null,this.ngOnChanges(n)}}function jn(e,n,t,r){var i=Pn(e)||function(e,n){return e.__ngSimpleChanges__=n}(e,{previous:sn,current:null}),u=i.current||(i.current={}),o=i.previous,a=this.declaredInputs[t],s=o[a];u[a]=new Nn(s&&s.currentValue,n,o===sn),e[r]=n}function Pn(e){return e.__ngSimpleChanges__||null}var Hn=void 0;function Mn(){return void 0!==Hn?Hn:"undefined"!=typeof document?document:void 0}function Vn(e){return!!e.listen}var Ln={createRenderer:function(e,n){return Mn()}};function zn(e){for(;Array.isArray(e);)e=e[0];return e}function Zn(e,n){return zn(n[e.index])}function Un(e,n){return e.data[n+20]}function Wn(e,n){var t=n[e];return bn(t)?t:t[0]}function qn(e){var n=function(e){return e.__ngContext__||null}(e);return n?Array.isArray(n)?n:n.lView:null}function Gn(e){return 128==(128&e[2])}function Qn(e,n){return null===e||null==n?null:e[n]}function Jn(e){e[18]=0}function Yn(e,n){e[5]+=n;for(var t=e,r=e[3];null!==r&&(1===n&&1===t[5]||-1===n&&0===t[5]);)r[5]+=n,t=r,r=r[3]}var Kn={lFrame:vt(null),bindingsEnabled:!0,isInCheckNoChangesMode:!1};function $n(){return Kn.bindingsEnabled}function Xn(){return Kn.lFrame.lView}function et(){return Kn.lFrame.tView}function nt(){return Kn.lFrame.currentTNode}function tt(e,n){Kn.lFrame.currentTNode=e,Kn.lFrame.isParent=n}function rt(){return Kn.lFrame.isParent}function it(){return Kn.isInCheckNoChangesMode}function ut(e){Kn.isInCheckNoChangesMode=e}function ot(){return Kn.lFrame.bindingIndex}function at(){return Kn.lFrame.bindingIndex++}function st(e,n){var t=Kn.lFrame;t.bindingIndex=t.bindingRootIndex=e,lt(n)}function lt(e){Kn.lFrame.currentDirectiveIndex=e}function ct(e){Kn.lFrame.currentQueryIndex=e}function ft(e,n){var t=dt();Kn.lFrame=t,t.currentTNode=n,t.lView=e}function ht(e){var n=dt(),t=e[1];Kn.lFrame=n,n.currentTNode=t.firstChild,n.lView=e,n.tView=t,n.contextLView=e,n.bindingIndex=t.bindingStartIndex}function dt(){var e=Kn.lFrame,n=null===e?null:e.child;return null===n?vt(e):n}function vt(e){var n={currentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:e,child:null};return null!==e&&(e.child=n),n}function pt(){var e=Kn.lFrame;return Kn.lFrame=e.parent,e.currentTNode=null,e.lView=null,e}var yt=pt;function gt(){var e=pt();e.isParent=!0,e.tView=null,e.selectedIndex=0,e.contextLView=null,e.elementDepthCount=0,e.currentDirectiveIndex=-1,e.currentNamespace=null,e.bindingRootIndex=-1,e.bindingIndex=-1,e.currentQueryIndex=0}function mt(){return Kn.lFrame.selectedIndex}function _t(e){Kn.lFrame.selectedIndex=e}function Dt(e,n){for(var t=n.directiveStart,r=n.directiveEnd;t<r;t++){var i=e.data[t].type.prototype,u=i.ngAfterContentInit,o=i.ngAfterContentChecked,a=i.ngAfterViewInit,s=i.ngAfterViewChecked,l=i.ngOnDestroy;u&&(e.contentHooks||(e.contentHooks=[])).push(-t,u),o&&((e.contentHooks||(e.contentHooks=[])).push(t,o),(e.contentCheckHooks||(e.contentCheckHooks=[])).push(t,o)),a&&(e.viewHooks||(e.viewHooks=[])).push(-t,a),s&&((e.viewHooks||(e.viewHooks=[])).push(t,s),(e.viewCheckHooks||(e.viewCheckHooks=[])).push(t,s)),null!=l&&(e.destroyHooks||(e.destroyHooks=[])).push(t,l)}}function wt(e,n,t){Ct(e,n,3,t)}function bt(e,n,t,r){(3&e[2])===t&&Ct(e,n,t,r)}function kt(e,n){var t=e[2];(3&t)===n&&(t&=2047,t+=1,e[2]=t)}function Ct(e,n,t,r){for(var i=null!=r?r:-1,u=0,o=void 0!==r?65535&e[18]:0;o<n.length;o++)if("number"==typeof n[o+1]){if(u=n[o],null!=r&&u>=r)break}else n[o]<0&&(e[18]+=65536),(u<i||-1==i)&&(Et(e,t,n,o),e[18]=(4294901760&e[18])+o+2),o++}function Et(e,n,t,r){var i=t[r]<0,u=t[r+1],o=e[i?-t[r]:t[r]];i?e[2]>>11<e[18]>>16&&(3&e[2])===n&&(e[2]+=2048,u.call(o)):u.call(o)}var At=function e(n,t,r){v(this,e),this.factory=n,this.resolving=!1,this.canSeeViewProviders=t,this.injectImpl=r};function Ft(e,n,t){for(var r=Vn(e),i=0;i<t.length;){var u=t[i];if("number"==typeof u){if(0!==u)break;i++;var o=t[i++],a=t[i++],s=t[i++];r?e.setAttribute(n,a,s,o):n.setAttributeNS(o,a,s)}else{var l=u,c=t[++i];xt(l)?r&&e.setProperty(n,l,c):r?e.setAttribute(n,l,c):n.setAttribute(l,c),i++}}return i}function xt(e){return 64===e.charCodeAt(0)}function Tt(e,n){if(null===n||0===n.length);else if(null===e||0===e.length)e=n.slice();else for(var t=-1,r=0;r<n.length;r++){var i=n[r];"number"==typeof i?t=i:0===t||It(e,t,i,null,-1===t||2===t?n[++r]:null)}return e}function It(e,n,t,r,i){var u=0,o=e.length;if(-1===n)o=-1;else for(;u<e.length;){var a=e[u++];if("number"==typeof a){if(a===n){o=-1;break}if(a>n){o=u-1;break}}}for(;u<e.length;){var s=e[u];if("number"==typeof s)break;if(s===t){if(null===r)return void(null!==i&&(e[u+1]=i));if(r===e[u+1])return void(e[u+2]=i)}u++,null!==r&&u++,null!==i&&u++}-1!==o&&(e.splice(o,0,n),u=o+1),e.splice(u++,0,t),null!==r&&e.splice(u++,0,r),null!==i&&e.splice(u++,0,i)}function St(e){return-1!==e}function Bt(e){return 32767&e}function Ot(e,n){for(var t=e>>16,r=n;t>0;)r=r[15],t--;return r}var Nt=!0;function Rt(e){var n=Nt;return Nt=e,n}var jt=0;function Pt(e,n){var t=Mt(e,n);if(-1!==t)return t;var r=n[1];r.firstCreatePass&&(e.injectorIndex=n.length,Ht(r.data,e),Ht(n,null),Ht(r.blueprint,null));var i=Vt(e,n),u=e.injectorIndex;if(St(i))for(var o=Bt(i),a=Ot(i,n),s=a[1].data,l=0;l<8;l++)n[u+l]=a[o+l]|s[o+l];return n[u+8]=i,u}function Ht(e,n){e.push(0,0,0,0,0,0,0,0,n)}function Mt(e,n){return-1===e.injectorIndex||e.parent&&e.parent.injectorIndex===e.injectorIndex||null===n[e.injectorIndex+8]?-1:e.injectorIndex}function Vt(e,n){if(e.parent&&-1!==e.parent.injectorIndex)return e.parent.injectorIndex;for(var t=0,r=null,i=n;null!==i;){var u=i[1],o=u.type;if(null===(r=2===o?u.declTNode:1===o?i[6]:null))return-1;if(t++,i=i[15],-1!==r.injectorIndex)return r.injectorIndex|t<<16}return-1}function Lt(e,n,t){!function(e,n,t){var r;"string"==typeof t?r=t.charCodeAt(0)||0:t.hasOwnProperty(Ve)&&(r=t[Ve]),null==r&&(r=t[Ve]=jt++);var i=255&r,u=1<<i,o=64&i,a=32&i,s=n.data;128&i?o?a?s[e+7]|=u:s[e+6]|=u:a?s[e+5]|=u:s[e+4]|=u:o?a?s[e+3]|=u:s[e+2]|=u:a?s[e+1]|=u:s[e]|=u}(e,n,t)}function zt(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:fe.Default,i=arguments.length>4?arguments[4]:void 0;if(null!==e){var u=function(e){if("string"==typeof e)return e.charCodeAt(0)||0;var n=e.hasOwnProperty(Ve)?e[Ve]:void 0;return"number"==typeof n&&n>0?255&n:n}(t);if("function"==typeof u){ft(n,e);try{var o=u();if(null!=o||r&fe.Optional)return o;On(t)}finally{yt()}}else if("number"==typeof u){if(-1===u)return new Qt(e,n);var a=null,s=Mt(e,n),l=-1,c=r&fe.Host?n[16][6]:null;for((-1===s||r&fe.SkipSelf)&&(-1!==(l=-1===s?Vt(e,n):n[s+8])&&Gt(r,!1)?(a=n[1],s=Bt(l),n=Ot(l,n)):s=-1);-1!==s;){var f=n[1];if(qt(u,s,f.data)){var h=Ut(s,n,t,a,r,c);if(h!==Zt)return h}-1!==(l=n[s+8])&&Gt(r,n[1].data[s+8]===c)&&qt(u,s,n)?(a=f,s=Bt(l),n=Ot(l,n)):s=-1}}}if(r&fe.Optional&&void 0===i&&(i=null),0==(r&(fe.Self|fe.Host))){var d=n[9],v=Qe(void 0);try{return d?d.get(t,i,r&fe.Optional):Ke(t,i,r&fe.Optional)}finally{Qe(v)}}if(r&fe.Optional)return i;On(t,"NodeInjector")}var Zt={};function Ut(e,n,t,r,i,u){var o=n[1],a=o.data[e+8],s=function(e,n,t,r,i){for(var u=e.providerIndexes,o=n.data,a=1048575&u,s=e.directiveStart,l=u>>20,c=i?a+l:e.directiveEnd,f=r?a:a+l;f<c;f++){var h=o[f];if(f<s&&t===h||f>=s&&h.type===t)return f}if(i){var d=o[s];if(d&&Fn(d)&&d.type===t)return s}return null}(a,o,t,null==r?En(a)&&Nt:r!=o&&2===a.type,i&fe.Host&&u===a);return null!==s?Wt(n,o,s,a):Zt}function Wt(e,n,t,r){var i=e[t],u=n.data;if(i instanceof At){var o=i;o.resolving&&function(e,n){throw new Error("Circular dependency in DI detected for "+e)}(In(u[t]));var a=Rt(o.canSeeViewProviders);o.resolving=!0;var s=o.injectImpl?Qe(o.injectImpl):null;ft(e,r);try{i=e[t]=o.factory(void 0,u,e,r),n.firstCreatePass&&t>=r.directiveStart&&function(e,n,t){var r,i=n.type.prototype,u=i.ngOnChanges,o=i.ngOnInit,a=i.ngDoCheck;if(u){var s=((r=n).type.prototype.ngOnChanges&&(r.setInput=jn),Rn);(t.preOrderHooks||(t.preOrderHooks=[])).push(e,s),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,s)}o&&(t.preOrderHooks||(t.preOrderHooks=[])).push(0-e,o),a&&((t.preOrderHooks||(t.preOrderHooks=[])).push(e,a),(t.preOrderCheckHooks||(t.preOrderCheckHooks=[])).push(e,a))}(t,u[t],n)}finally{null!==s&&Qe(s),Rt(a),o.resolving=!1,yt()}}return i}function qt(e,n,t){var r=64&e,i=32&e;return!!((128&e?r?i?t[n+7]:t[n+6]:i?t[n+5]:t[n+4]:r?i?t[n+3]:t[n+2]:i?t[n+1]:t[n])&1<<e)}function Gt(e,n){return!(e&fe.Self||e&fe.Host&&n)}var Qt=function(){function e(n,t){v(this,e),this._tNode=n,this._lView=t}return y(e,[{key:"get",value:function(e,n){return zt(this._tNode,this._lView,e,void 0,n)}}]),e}();function Jt(e){return e.ngDebugContext}function Yt(e){return e.ngOriginalError}function Kt(e){for(var n=arguments.length,t=new Array(n>1?n-1:0),r=1;r<n;r++)t[r-1]=arguments[r];e.error.apply(e,t)}var $t=function(){function e(){v(this,e),this._console=console}return y(e,[{key:"handleError",value:function(e){var n=this._findOriginalError(e),t=this._findContext(e),r=function(e){return e.ngErrorLogger||Kt}(e);r(this._console,"ERROR",e),n&&r(this._console,"ORIGINAL ERROR",n),t&&r(this._console,"ERROR CONTEXT",t)}},{key:"_findContext",value:function(e){return e?Jt(e)?Jt(e):this._findContext(Yt(e)):null}},{key:"_findOriginalError",value:function(e){for(var n=Yt(e);n&&Yt(n);)n=Yt(n);return n}}]),e}(),Xt=function(){function e(n){v(this,e),this.changingThisBreaksApplicationSecurity=n}return y(e,[{key:"toString",value:function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"}}]),e}(),er=!0,nr=!1;function tr(){return nr=!0,er}var rr=function(){function e(){v(this,e)}return y(e,[{key:"getInertBodyElement",value:function(e){e="<body><remove></remove>"+e;try{var n=(new window.DOMParser).parseFromString(e,"text/html").body;return n.removeChild(n.firstChild),n}catch(t){return null}}}]),e}(),ir=function(){function e(n){if(v(this,e),this.defaultDoc=n,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),null==this.inertDocument.body){var t=this.inertDocument.createElement("html");this.inertDocument.appendChild(t);var r=this.inertDocument.createElement("body");t.appendChild(r)}}return y(e,[{key:"getInertBodyElement",value:function(e){var n=this.inertDocument.createElement("template");if("content"in n)return n.innerHTML=e,n;var t=this.inertDocument.createElement("body");return t.innerHTML=e,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(t),t}},{key:"stripCustomNsAttrs",value:function(e){for(var n=e.attributes,t=n.length-1;0<t;t--){var r=n.item(t).name;"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||e.removeAttribute(r)}for(var i=e.firstChild;i;)i.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(i),i=i.nextSibling}}]),e}(),ur=/^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi,or=/^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 ar(e){return(e=String(e)).match(ur)||e.match(or)?e:(tr()&&console.warn("WARNING: sanitizing unsafe URL value ".concat(e," (see http://g.co/ng/security#xss)")),"unsafe:"+e)}function sr(e){var n,r={},i=t(e.split(","));try{for(i.s();!(n=i.n()).done;){r[n.value]=!0}}catch(u){i.e(u)}finally{i.f()}return r}function lr(){for(var e={},n=arguments.length,t=new Array(n),r=0;r<n;r++)t[r]=arguments[r];for(var i=0,u=t;i<u.length;i++){var o=u[i];for(var a in o)o.hasOwnProperty(a)&&(e[a]=!0)}return e}var cr,fr=sr("area,br,col,hr,img,wbr"),hr=sr("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),dr=sr("rp,rt"),vr=lr(dr,hr),pr=lr(fr,lr(hr,sr("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")),lr(dr,sr("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")),vr),yr=sr("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),gr=sr("srcset"),mr=lr(yr,gr,sr("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"),sr("aria-activedescendant,aria-atomic,aria-autocomplete,aria-busy,aria-checked,aria-colcount,aria-colindex,aria-colspan,aria-controls,aria-current,aria-describedby,aria-details,aria-disabled,aria-dropeffect,aria-errormessage,aria-expanded,aria-flowto,aria-grabbed,aria-haspopup,aria-hidden,aria-invalid,aria-keyshortcuts,aria-label,aria-labelledby,aria-level,aria-live,aria-modal,aria-multiline,aria-multiselectable,aria-orientation,aria-owns,aria-placeholder,aria-posinset,aria-pressed,aria-readonly,aria-relevant,aria-required,aria-roledescription,aria-rowcount,aria-rowindex,aria-rowspan,aria-selected,aria-setsize,aria-sort,aria-valuemax,aria-valuemin,aria-valuenow,aria-valuetext")),_r=sr("script,style,template"),Dr=function(){function e(){v(this,e),this.sanitizedSomething=!1,this.buf=[]}return y(e,[{key:"sanitizeChildren",value:function(e){for(var n=e.firstChild,t=!0;n;)if(n.nodeType===Node.ELEMENT_NODE?t=this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,t&&n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);var r=this.checkClobberedElement(n,n.nextSibling);if(r){n=r;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")}},{key:"startElement",value:function(e){var n=e.nodeName.toLowerCase();if(!pr.hasOwnProperty(n))return this.sanitizedSomething=!0,!_r.hasOwnProperty(n);this.buf.push("<"),this.buf.push(n);for(var t,r=e.attributes,i=0;i<r.length;i++){var u=r.item(i),o=u.name,a=o.toLowerCase();if(mr.hasOwnProperty(a)){var s=u.value;yr[a]&&(s=ar(s)),gr[a]&&(t=s,s=(t=String(t)).split(",").map((function(e){return ar(e.trim())})).join(", ")),this.buf.push(" ",o,'="',kr(s),'"')}else this.sanitizedSomething=!0}return this.buf.push(">"),!0}},{key:"endElement",value:function(e){var n=e.nodeName.toLowerCase();pr.hasOwnProperty(n)&&!fr.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))}},{key:"chars",value:function(e){this.buf.push(kr(e))}},{key:"checkClobberedElement",value:function(e,n){if(n&&(e.compareDocumentPosition(n)&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 n}}]),e}(),wr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,br=/([^\#-~ |!])/g;function kr(e){return e.replace(/&/g,"&amp;").replace(wr,(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 Cr(e){return"content"in e&&function(e){return e.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===e.nodeName}(e)?e.content:null}var Er=function(e){return e[e.NONE=0]="NONE",e[e.HTML=1]="HTML",e[e.STYLE=2]="STYLE",e[e.SCRIPT=3]="SCRIPT",e[e.URL=4]="URL",e[e.RESOURCE_URL=5]="RESOURCE_URL",e}({});function Ar(e){var n,t,r=(n=Xn())&&n[12];return r?r.sanitize(Er.HTML,e)||"":function(e,n){var t=function(e){return e instanceof Xt&&e.getTypeName()||null}(e);if(null!=t&&t!==n)throw new Error("Required a safe ".concat(n,", got a ").concat(t," (see http://g.co/ng/security#xss)"));return t===n}(e,"HTML")?(t=e)instanceof Xt?t.changingThisBreaksApplicationSecurity:t:function(e,n){var t=null;try{cr=cr||function(e){return function(){try{return!!(new window.DOMParser).parseFromString("","text/html")}catch(e){return!1}}()?new rr:new ir(e)}(e);var r=n?String(n):"";t=cr.getInertBodyElement(r);var i=5,u=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=u,u=t.innerHTML,t=cr.getInertBodyElement(r)}while(r!==u);var o=new Dr,a=o.sanitizeChildren(Cr(t)||t);return tr()&&o.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),a}finally{if(t)for(var s=Cr(t)||t;s.firstChild;)s.removeChild(s.firstChild)}}(Mn(),Tn(e))}function Fr(e,n){e.__ngContext__=n}function xr(e,n,t){for(var r=e.length;;){var i=e.indexOf(n,t);if(-1===i)return i;if(0===i||e.charCodeAt(i-1)<=32){var u=n.length;if(i+u===r||e.charCodeAt(i+u)<=32)return i}t=i+1}}function Tr(e,n,t){for(var r=0;r<e.length;){var i=e[r++];if(t&&"class"===i){if(-1!==xr((i=e[r]).toLowerCase(),n,0))return!0}else if(1===i){for(;r<e.length&&"string"==typeof(i=e[r++]);)if(i.toLowerCase()===n)return!0;return!1}}return!1}function Ir(e){return 0===e.type&&"ng-template"!==e.tagName}function Sr(e,n,t){return n===(0!==e.type||t?e.tagName:"ng-template")}function Br(e,n,t){for(var r=4,i=e.attrs||[],u=function(e){for(var n=0;n<e.length;n++)if(3===(t=e[n])||4===t||6===t)return n;var t;return e.length}(i),o=!1,a=0;a<n.length;a++){var s=n[a];if("number"!=typeof s){if(!o)if(4&r){if(r=2|1&r,""!==s&&!Sr(e,s,t)||""===s&&1===n.length){if(Or(r))return!1;o=!0}}else{var l=8&r?s:n[++a];if(8&r&&null!==e.attrs){if(!Tr(e.attrs,l,t)){if(Or(r))return!1;o=!0}continue}var c=Nr(8&r?"class":s,i,Ir(e),t);if(-1===c){if(Or(r))return!1;o=!0;continue}if(""!==l){var f;f=c>u?"":i[c+1].toLowerCase();var h=8&r?f:null;if(h&&-1!==xr(h,l,0)||2&r&&l!==f){if(Or(r))return!1;o=!0}}}}else{if(!o&&!Or(r)&&!Or(s))return!1;if(o&&Or(s))continue;o=!1,r=s|1&r}}return Or(r)||o}function Or(e){return 0==(1&e)}function Nr(e,n,t,r){if(null===n)return-1;var i=0;if(r||!t){for(var u=!1;i<n.length;){var o=n[i];if(o===e)return i;if(3===o||6===o)u=!0;else{if(1===o||2===o){for(var a=n[++i];"string"==typeof a;)a=n[++i];continue}if(4===o)break;if(0===o){i+=4;continue}}i+=u?1:2}return-1}return function(e,n){var t=e.indexOf(4);if(t>-1)for(t++;t<e.length;){var r=e[t];if("number"==typeof r)return-1;if(r===n)return t;t++}return-1}(n,e)}function Rr(e,n){for(var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=0;r<n.length;r++)if(Br(e,n[r],t))return!0;return!1}function jr(e,n){return e?":not("+n.trim()+")":n}function Pr(e){for(var n=e[0],t=1,r=2,i="",u=!1;t<e.length;){var o=e[t];if("string"==typeof o)if(2&r){var a=e[++t];i+="["+o+(a.length>0?'="'+a+'"':"")+"]"}else 8&r?i+="."+o:4&r&&(i+=" "+o);else""===i||Or(o)||(n+=jr(u,i),i=""),r=o,u=u||!Or(r);t++}return""!==i&&(n+=jr(u,i)),n}var Hr={};function Mr(e){var n=e[3];return kn(n)?n[3]:n}function Vr(e){return zr(e[13])}function Lr(e){return zr(e[4])}function zr(e){for(;null!==e&&!kn(e);)e=e[4];return e}function Zr(e){Ur(et(),Xn(),mt()+e,it())}function Ur(e,n,t,r){if(!r)if(3==(3&n[2])){var i=e.preOrderCheckHooks;null!==i&&wt(n,i,t)}else{var u=e.preOrderHooks;null!==u&&bt(n,u,0,t)}_t(t)}function Wr(e,n){var t=e.contentQueries;if(null!==t)for(var r=0;r<t.length;r+=2){var i=t[r],u=t[r+1];if(-1!==u){var o=e.data[u];ct(i),o.contentQueries(2,n[u],u)}}}function qr(e,n,t){return Vn(n)?n.createElement(e,t):null===t?n.createElement(e):n.createElementNS(t,e)}function Gr(e,n,t,r,i,u,o,a,s,l){var c=n.blueprint.slice();return c[0]=i,c[2]=140|r,Jn(c),c[3]=c[15]=e,c[8]=t,c[10]=o||e&&e[10],c[11]=a||e&&e[11],c[12]=s||e&&e[12]||null,c[9]=l||e&&e[9]||null,c[6]=u,c[16]=2==n.type?e[16]:c,c}function Qr(e,n,t,r,i){var u=n+20,o=e.data[u]||function(e,n,t,r,i){var u=nt(),o=rt(),a=e.data[n]=function(e,n,t,r,i,u){return{type:t,index:r,injectorIndex:n?n.injectorIndex:-1,directiveStart:-1,directiveEnd:-1,directiveStylingLast:-1,propertyBindings:null,flags:0,providerIndexes:0,tagName:i,attrs:u,mergedAttrs:null,localNames:null,initialInputs:void 0,inputs:null,outputs:null,tViews:null,next:null,projectionNext:null,child:null,parent:n,projection:null,styles:null,stylesWithoutHost:null,residualStyles:void 0,classes:null,classesWithoutHost:null,residualClasses:void 0,classBindings:0,styleBindings:0}}(0,o?u:u&&u.parent,t,n,r,i);return null===e.firstChild&&(e.firstChild=a),null!==u&&(o&&null==u.child&&null!==a.parent?u.child=a:o||(u.next=a)),a}(e,u,t,r,i);return tt(o,!0),o}function Jr(e,n,t){ht(n);try{var r=e.viewQuery;null!==r&&ki(1,r,t);var i=e.template;null!==i&&$r(e,n,i,1,t),e.firstCreatePass&&(e.firstCreatePass=!1),e.staticContentQueries&&Wr(e,n),e.staticViewQueries&&ki(2,e.viewQuery,t);var u=e.components;null!==u&&function(e,n){for(var t=0;t<n.length;t++)mi(e,n[t])}(n,u)}catch(o){throw e.firstCreatePass&&(e.incompleteFirstPass=!0),o}finally{n[2]&=-5,gt()}}function Yr(e,n,t,r){var i=n[2];if(256!=(256&i)){ht(n);var u=it();try{Jn(n),Kn.lFrame.bindingIndex=e.bindingStartIndex,null!==t&&$r(e,n,t,2,r);var o=3==(3&i);if(!u)if(o){var a=e.preOrderCheckHooks;null!==a&&wt(n,a,null)}else{var s=e.preOrderHooks;null!==s&&bt(n,s,0,null),kt(n,0)}if(function(e){for(var n=Vr(e);null!==n;n=Lr(n))if(n[2])for(var t=n[9],r=0;r<t.length;r++){var i=t[r],u=i[3];0==(1024&i[2])&&Yn(u,1),i[2]|=1024}}(n),function(e){for(var n=Vr(e);null!==n;n=Lr(n))for(var t=10;t<n.length;t++){var r=n[t],i=r[1];Gn(r)&&Yr(i,r,i.template,r[8])}}(n),null!==e.contentQueries&&Wr(e,n),!u)if(o){var l=e.contentCheckHooks;null!==l&&wt(n,l)}else{var c=e.contentHooks;null!==c&&bt(n,c,1),kt(n,1)}!function(e,n){try{var t=e.expandoInstructions;if(null!==t)for(var r=e.expandoStartIndex,i=-1,u=0;u<t.length;u++){var o=t[u];"number"==typeof o?o<=0?(_t(0-o),i=r+=9+t[++u]):r+=o:(null!==o&&(st(r,i),o(2,n[i])),i++)}}finally{_t(-1)}}(e,n);var f=e.components;null!==f&&function(e,n){for(var t=0;t<n.length;t++)gi(e,n[t])}(n,f);var h=e.viewQuery;if(null!==h&&ki(2,h,r),!u)if(o){var d=e.viewCheckHooks;null!==d&&wt(n,d)}else{var v=e.viewHooks;null!==v&&bt(n,v,2),kt(n,2)}!0===e.firstUpdatePass&&(e.firstUpdatePass=!1),u||(n[2]&=-73),1024&n[2]&&(n[2]&=-1025,Yn(n[3],-1))}finally{gt()}}}function Kr(e,n,t,r){var i=n[10],u=!it(),o=4==(4&n[2]);try{u&&!o&&i.begin&&i.begin(),o&&Jr(e,n,r),Yr(e,n,t,r)}finally{u&&!o&&i.end&&i.end()}}function $r(e,n,t,r,i){var u=mt();try{_t(-1),2&r&&n.length>20&&Ur(e,n,0,it()),t(r,i)}finally{_t(u)}}function Xr(e,n,t){$n()&&(function(e,n,t,r){var i=t.directiveStart,u=t.directiveEnd;e.firstCreatePass||Pt(t,n),Fr(r,n);for(var o=t.initialInputs,a=i;a<u;a++){var s=e.data[a],l=Fn(s);l&&di(n,t,s);var c=Wt(n,e,a,t);Fr(c,n),null!==o&&vi(0,a-i,c,s,0,o),l&&(Wn(t.index,n)[8]=c)}}(e,n,t,Zn(t,n)),128==(128&t.flags)&&function(e,n,t){var r=t.directiveStart,i=t.directiveEnd,u=e.expandoInstructions,o=e.firstCreatePass,a=t.index-20,s=Kn.lFrame.currentDirectiveIndex;try{_t(a);for(var l=r;l<i;l++){var c=e.data[l],f=n[l];lt(l),null!==c.hostBindings||0!==c.hostVars||null!==c.hostAttrs?ai(c,f):o&&u.push(null)}}finally{_t(-1),lt(s)}}(e,n,t))}function ei(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Zn,r=n.localNames;if(null!==r)for(var i=n.index+1,u=0;u<r.length;u+=2){var o=r[u+1],a=-1===o?t(n,e):e[o];e[i++]=a}}function ni(e){var n=e.tView;return null===n||n.incompleteFirstPass?e.tView=ti(1,null,e.template,e.decls,e.vars,e.directiveDefs,e.pipeDefs,e.viewQuery,e.schemas,e.consts):n}function ti(e,n,t,r,i,u,o,a,s,l){var c=20+r,f=c+i,h=function(e,n){for(var t=[],r=0;r<n;r++)t.push(r<e?null:Hr);return t}(c,f),d="function"==typeof l?l():l;return h[1]={type:e,blueprint:h,template:t,queries:null,viewQuery:a,declTNode:n,data:h.slice().fill(null,c),bindingStartIndex:c,expandoStartIndex:f,expandoInstructions:null,firstCreatePass:!0,firstUpdatePass:!0,staticViewQueries:!1,staticContentQueries:!1,preOrderHooks:null,preOrderCheckHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,cleanup:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof u?u():u,pipeRegistry:"function"==typeof o?o():o,firstChild:null,schemas:s,consts:d,incompleteFirstPass:!1}}function ri(e,n,t){for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];(t=null===t?{}:t).hasOwnProperty(r)?t[r].push(n,i):t[r]=[n,i]}return t}function ii(e,n,t,r){var i=!1;if($n()){var u=function(e,n,t){var r=e.directiveRegistry,i=null;if(r)for(var u=0;u<r.length;u++){var o=r[u];Rr(t,o.selectors,!1)&&(i||(i=[]),Lt(Pt(t,n),e,o.type),Fn(o)?(li(e,t),i.unshift(o)):i.push(o))}return i}(e,n,t),o=null===r?null:{"":-1};if(null!==u){var a=0;i=!0,fi(t,e.data.length,u.length);for(var s=0;s<u.length;s++){var l=u[s];l.providersResolver&&l.providersResolver(l)}si(e,t,u.length);for(var c=!1,f=!1,h=0;h<u.length;h++){var d=u[h];t.mergedAttrs=Tt(t.mergedAttrs,d.hostAttrs),hi(e,n,d),ci(e.data.length-1,d,o),null!==d.contentQueries&&(t.flags|=8),null===d.hostBindings&&null===d.hostAttrs&&0===d.hostVars||(t.flags|=128);var v=d.type.prototype;!c&&(v.ngOnChanges||v.ngOnInit||v.ngDoCheck)&&((e.preOrderHooks||(e.preOrderHooks=[])).push(t.index-20),c=!0),f||!v.ngOnChanges&&!v.ngDoCheck||((e.preOrderCheckHooks||(e.preOrderCheckHooks=[])).push(t.index-20),f=!0),ui(e,d),a+=d.hostVars}!function(e,n){for(var t=n.directiveEnd,r=e.data,i=n.attrs,u=[],o=null,a=null,s=n.directiveStart;s<t;s++){var l=r[s],c=l.inputs,f=null===i||Ir(n)?null:pi(c,i);u.push(f),o=ri(c,s,o),a=ri(l.outputs,s,a)}null!==o&&(o.hasOwnProperty("class")&&(n.flags|=16),o.hasOwnProperty("style")&&(n.flags|=32)),n.initialInputs=u,n.inputs=o,n.outputs=a}(e,t),oi(e,n,a)}o&&function(e,n,t){if(n)for(var r=e.localNames=[],i=0;i<n.length;i+=2){var u=t[n[i+1]];if(null==u)throw new Error("Export of name '".concat(n[i+1],"' not found!"));r.push(n[i],u)}}(t,r,o)}return t.mergedAttrs=Tt(t.mergedAttrs,t.attrs),i}function ui(e,n){var t=e.expandoInstructions;t.push(n.hostBindings),0!==n.hostVars&&t.push(n.hostVars)}function oi(e,n,t){for(var r=0;r<t;r++)n.push(Hr),e.blueprint.push(Hr),e.data.push(null)}function ai(e,n){null!==e.hostBindings&&e.hostBindings(1,n)}function si(e,n,t){var r=20-n.index,i=e.data.length-(1048575&n.providerIndexes);(e.expandoInstructions||(e.expandoInstructions=[])).push(r,i,t)}function li(e,n){n.flags|=2,(e.components||(e.components=[])).push(n.index)}function ci(e,n,t){if(t){if(n.exportAs)for(var r=0;r<n.exportAs.length;r++)t[n.exportAs[r]]=e;Fn(n)&&(t[""]=e)}}function fi(e,n,t){e.flags|=1,e.directiveStart=n,e.directiveEnd=n+t,e.providerIndexes=n}function hi(e,n,t){e.data.push(t);var r=t.factory||(t.factory=Dn(t.type)),i=new At(r,Fn(t),null);e.blueprint.push(i),n.push(i)}function di(e,n,t){var r=Zn(n,e),i=ni(t),u=e[10],o=_i(e,Gr(e,i,null,t.onPush?64:16,r,n,u,u.createRenderer(r,t),null,null));e[n.index]=o}function vi(e,n,t,r,i,u){var o=u[n];if(null!==o)for(var a=r.setInput,s=0;s<o.length;){var l=o[s++],c=o[s++],f=o[s++];null!==a?r.setInput(t,f,l,c):t[c]=f}}function pi(e,n){for(var t=null,r=0;r<n.length;){var i=n[r];if(0!==i)if(5!==i){if("number"==typeof i)break;e.hasOwnProperty(i)&&(null===t&&(t=[]),t.push(i,e[i],n[r+1])),r+=2}else r+=2;else r+=4}return t}function yi(e,n,t,r){return new Array(e,!0,!1,n,null,0,r,t,null,null)}function gi(e,n){var t=Wn(n,e);if(Gn(t)){var r=t[1];80&t[2]?Yr(r,t,r.template,t[8]):t[5]>0&&function e(n){for(var t=Vr(n);null!==t;t=Lr(t))for(var r=10;r<t.length;r++){var i=t[r];if(1024&i[2]){var u=i[1];Yr(u,i,u.template,i[8])}else i[5]>0&&e(i)}var o=n[1].components;if(null!==o)for(var a=0;a<o.length;a++){var s=Wn(o[a],n);Gn(s)&&s[5]>0&&e(s)}}(t)}}function mi(e,n){var t=Wn(n,e),r=t[1];!function(e,n){for(var t=n.length;t<e.blueprint.length;t++)n.push(e.blueprint[t])}(r,t),Jr(r,t,t[8])}function _i(e,n){return e[13]?e[14][4]=n:e[13]=n,e[14]=n,n}function Di(e){for(;e;){e[2]|=64;var n=Mr(e);if(xn(e)&&!n)return e;e=n}return null}function wi(e,n,t){var r=n[10];r.begin&&r.begin();try{Yr(e,n,e.template,t)}catch(i){throw Ai(n,i),i}finally{r.end&&r.end()}}function bi(e){!function(e){for(var n=0;n<e.components.length;n++){var t=e.components[n],r=qn(t),i=r[1];Kr(i,r,i.template,t)}}(e[8])}function ki(e,n,t){ct(0),n(e,t)}var Ci=Promise.resolve(null);function Ei(e){return e[7]||(e[7]=[])}function Ai(e,n){var t=e[9],r=t?t.get($t,null):null;r&&r.handleError(n)}function Fi(e,n,t,r,i){for(var u=0;u<t.length;){var o=t[u++],a=t[u++],s=n[o],l=e.data[o];null!==l.setInput?l.setInput(s,i,r,a):s[a]=i}}function xi(e,n,t){var r=function(e,n){return zn(n[e+20])}(n,e),i=e[11];Vn(i)?i.setValue(r,t):r.textContent=t}function Ti(e,n,t,r,i){if(null!=r){var u,o=!1;kn(r)?u=r:bn(r)&&(o=!0,r=r[0]);var a=zn(r);0===e&&null!==t?null==i?Ri(n,t,a):Ni(n,t,a,i||null):1===e&&null!==t?Ni(n,t,a,i||null):2===e?function(e,n,t){var r=Pi(e,n);r&&function(e,n,t,r){Vn(e)?e.removeChild(n,t,r):n.removeChild(t)}(e,r,n,t)}(n,a,o):3===e&&n.destroyNode(a),null!=u&&function(e,n,t,r,i){var u=t[7];u!==zn(t)&&Ti(n,e,r,u,i);for(var o=10;o<t.length;o++){var a=t[o];Vi(a[1],a,e,n,r,u)}}(n,e,u,t,i)}}function Ii(e,n){var t=e[9],r=t.indexOf(n),i=n[3];1024&n[2]&&(n[2]&=-1025,Yn(i,-1)),t.splice(r,1)}function Si(e,n){if(!(e.length<=10)){var t,r=10+n,i=e[r];if(i){var u=i[17];null!==u&&u!==e&&Ii(u,i),n>0&&(e[r-1][4]=i[4]);var o=rn(e,10+n);Vi(i[1],t=i,t[11],2,null,null),t[0]=null,t[6]=null;var a=o[19];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function Bi(e,n){if(!(256&n[2])){var t=n[11];Vn(t)&&t.destroyNode&&Vi(e,n,t,3,null,null),function(e){var n=e[13];if(!n)return Oi(e[1],e);for(;n;){var t=null;if(bn(n))t=n[13];else{var r=n[10];r&&(t=r)}if(!t){for(;n&&!n[4]&&n!==e;)bn(n)&&Oi(n[1],n),n=n[3];null===n&&(n=e),bn(n)&&Oi(n[1],n),t=n&&n[4]}n=t}}(n)}}function Oi(e,n){if(!(256&n[2])){n[2]&=-129,n[2]|=256,function(e,n){var t;if(null!=e&&null!=(t=e.destroyHooks))for(var r=0;r<t.length;r+=2){var i=n[t[r]];if(!(i instanceof At)){var u=t[r+1];if(Array.isArray(u))for(var o=0;o<u.length;o+=2)u[o+1].call(i[u[o]]);else u.call(i)}}}(e,n),function(e,n){var t=e.cleanup;if(null!==t){for(var r=n[7],i=0;i<t.length-1;i+=2)if("string"==typeof t[i]){var u=t[i+1],o="function"==typeof u?u(n):zn(n[u]),a=r[t[i+2]],s=t[i+3];"boolean"==typeof s?o.removeEventListener(t[i],a,s):s>=0?r[s]():r[-s].unsubscribe(),i+=2}else t[i].call(r[t[i+1]]);n[7]=null}}(e,n),1===n[1].type&&Vn(n[11])&&n[11].destroy();var t=n[17];if(null!==t&&kn(n[3])){t!==n[3]&&Ii(t,n);var r=n[19];null!==r&&r.detachView(e)}}}function Ni(e,n,t,r){Vn(e)?e.insertBefore(n,t,r):n.insertBefore(t,r,!0)}function Ri(e,n,t){Vn(e)?e.appendChild(n,t):n.appendChild(t)}function ji(e,n,t,r){null!==r?Ni(e,n,t,r):Ri(e,n,t)}function Pi(e,n){return Vn(e)?e.parentNode(n):n.parentNode}function Hi(e,n,t,r){var i=function(e,n,t){for(var r=n.parent;null!=r&&(3===r.type||4===r.type);)r=(n=r).parent;if(null===r)return t[0];if(n&&4===n.type&&4&n.flags)return Zn(n,t).parentNode;if(2&r.flags){var i=e.data,u=i[i[r.index].directiveStart].encapsulation;if(u!==an.ShadowDom&&u!==an.Native)return null}return Zn(r,t)}(e,r,n);if(null!=i){var u=n[11],o=function(e,n){return 3===e.type||4===e.type?Zn(e,n):null}(r.parent||n[6],n);if(Array.isArray(t))for(var a=0;a<t.length;a++)ji(u,i,t[a],o);else ji(u,i,t,o)}}function Mi(e,n,t,r,i,u,o){for(;null!=t;){var a=r[t.index],s=t.type;o&&0===n&&(a&&Fr(zn(a),r),t.flags|=4),64!=(64&t.flags)&&(3===s||4===s?(Mi(e,n,t.child,r,i,u,!1),Ti(n,e,i,a,u)):1===s?Li(e,n,r,t,i,u):Ti(n,e,i,a,u)),t=o?t.projectionNext:t.next}}function Vi(e,n,t,r,i,u){Mi(t,r,e.firstChild,n,i,u,!1)}function Li(e,n,t,r,i,u){var o=t[16],a=o[6].projection[r.projection];if(Array.isArray(a))for(var s=0;s<a.length;s++)Ti(n,e,i,a[s],u);else Mi(e,n,a,o[3],i,u,!0)}function zi(e,n,t){Vn(e)?e.setAttribute(n,"style",t):n.style.cssText=t}function Zi(e,n,t){Vn(e)?""===t?e.removeAttribute(n,"class"):e.setAttribute(n,"class",t):n.className=t}var Ui,Wi,qi,Gi=function(){function e(n,t){v(this,e),this._lView=n,this._cdRefInjectingView=t,this._appRef=null,this._viewContainerRef=null}return y(e,[{key:"destroy",value:function(){if(this._appRef)this._appRef.detachView(this);else if(this._viewContainerRef){var e=this._viewContainerRef.indexOf(this);e>-1&&this._viewContainerRef.detach(e),this._viewContainerRef=null}Bi(this._lView[1],this._lView)}},{key:"onDestroy",value:function(e){var n,t,r,i;n=this._lView[1],t=this._lView,r=e,(i=Ei(t)).push(null),n.firstCreatePass&&function(e){return e.cleanup||(e.cleanup=[])}(n).push(r,i.length-1)}},{key:"markForCheck",value:function(){Di(this._cdRefInjectingView||this._lView)}},{key:"detach",value:function(){this._lView[2]&=-129}},{key:"reattach",value:function(){this._lView[2]|=128}},{key:"detectChanges",value:function(){wi(this._lView[1],this._lView,this.context)}},{key:"checkNoChanges",value:function(){!function(e,n,t){ut(!0);try{wi(e,n,t)}finally{ut(!1)}}(this._lView[1],this._lView,this.context)}},{key:"attachToViewContainerRef",value:function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e}},{key:"detachFromAppRef",value:function(){var e;this._appRef=null,Vi(this._lView[1],e=this._lView,e[11],2,null,null)}},{key:"attachToAppRef",value:function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e}},{key:"rootNodes",get:function(){var e=this._lView,t=e[1];return function e(t,r,i,u){for(var o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];null!==i;){var a=r[i.index];if(null!==a&&u.push(zn(a)),kn(a))for(var s=10;s<a.length;s++){var l=a[s],c=l[1].firstChild;null!==c&&e(l[1],l,c,u)}var f=i.type;if(3===f||4===f)e(t,r,i.child,u);else if(1===f){var h=r[16],d=h[6].projection[i.projection];if(Array.isArray(d))u.push.apply(u,n(d));else{var v=Mr(h);e(v[1],v,d,u,!0)}}i=o?i.projectionNext:i.next}return u}(t,e,t.firstChild,[])}},{key:"context",get:function(){return this._lView[8]}},{key:"destroyed",get:function(){return 256==(256&this._lView[2])}}]),e}(),Qi=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this,e))._view=e,r}return y(t,[{key:"detectChanges",value:function(){bi(this._view)}},{key:"checkNoChanges",value:function(){!function(e){ut(!0);try{bi(e)}finally{ut(!1)}}(this._view)}},{key:"context",get:function(){return null}}]),t}(Gi);function Ji(e,n,t){return Ui||(Ui=function(e){a(t,e);var n=l(t);function t(){return v(this,t),n.apply(this,arguments)}return t}(e)),new Ui(Zn(n,t))}var Yi=new Le("Set Injector scope."),Ki={},$i={},Xi=[],eu=void 0;function nu(){return void 0===eu&&(eu=new Xe),eu}function tu(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0;return new ru(e,t,n||nu(),r)}var ru=function(){function e(n,t,r){var i=this,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;v(this,e),this.parent=r,this.records=new Map,this.injectorDefTypes=new Set,this.onDestroy=new Set,this._destroyed=!1;var o=[];t&&nn(t,(function(e){return i.processProvider(e,n,t)})),nn([n],(function(e){return i.processInjectorType(e,[],o)})),this.records.set(ze,uu(void 0,this));var a=this.records.get(Yi);this.scope=null!=a?a.value:null,this.source=u||("object"==typeof n?null:ke(n))}return y(e,[{key:"destroy",value:function(){this.assertNotDestroyed(),this._destroyed=!0;try{this.onDestroy.forEach((function(e){return e.ngOnDestroy()}))}finally{this.records.clear(),this.onDestroy.clear(),this.injectorDefTypes.clear()}}},{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ze,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe.Default;this.assertNotDestroyed();var r,i=Ge(this);try{if(!(t&fe.SkipSelf)){var u=this.records.get(e);if(void 0===u){var o=("function"==typeof(r=e)||"object"==typeof r&&r instanceof Le)&&pe(e);u=o&&this.injectableDefInScope(o)?uu(iu(e),Ki):null,this.records.set(e,u)}if(null!=u)return this.hydrate(e,u)}return(t&fe.Self?nu():this.parent).get(e,n=t&fe.Optional&&n===Ze?null:n)}catch(a){if("NullInjectorError"===a.name){if((a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(ke(e)),i)throw a;return function(e,n,t,r){var i=e.ngTempTokenPath;throw n.__source&&i.unshift(n.__source),e.message=function(e,n,t){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;e=e&&"\n"===e.charAt(0)&&"\u0275"==e.charAt(1)?e.substr(2):e;var i=ke(n);if(Array.isArray(n))i=n.map(ke).join(" -> ");else if("object"==typeof n){var u=[];for(var o in n)if(n.hasOwnProperty(o)){var a=n[o];u.push(o+":"+("string"==typeof a?JSON.stringify(a):ke(a)))}i="{".concat(u.join(", "),"}")}return"".concat(t).concat(r?"("+r+")":"","[").concat(i,"]: ").concat(e.replace(Ue,"\n  "))}("\n"+e.message,i,"R3InjectorError",r),e.ngTokenPath=i,e.ngTempTokenPath=null,e}(a,e,0,this.source)}throw a}finally{Ge(i)}}},{key:"_resolveInjectorDefTypes",value:function(){var e=this;this.injectorDefTypes.forEach((function(n){return e.get(n)}))}},{key:"toString",value:function(){var e=[];return this.records.forEach((function(n,t){return e.push(ke(t))})),"R3Injector[".concat(e.join(", "),"]")}},{key:"assertNotDestroyed",value:function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")}},{key:"processInjectorType",value:function(e,n,t){var r=this;if(!(e=Fe(e)))return!1;var i=ge(e),u=null==i&&e.ngModule||void 0,o=void 0===u?e:u,a=-1!==t.indexOf(o);if(void 0!==u&&(i=ge(u)),null==i)return!1;if(null!=i.imports&&!a){var s;t.push(o);try{nn(i.imports,(function(e){r.processInjectorType(e,n,t)&&(void 0===s&&(s=[]),s.push(e))}))}finally{}if(void 0!==s)for(var l=function(e){var n=s[e],t=n.ngModule,i=n.providers;nn(i,(function(e){return r.processProvider(e,t,i||Xi)}))},c=0;c<s.length;c++)l(c)}this.injectorDefTypes.add(o),this.records.set(o,uu(i.factory,Ki));var f=i.providers;if(null!=f&&!a){var h=e;nn(f,(function(e){return r.processProvider(e,h,f)}))}return void 0!==u&&void 0!==e.providers}},{key:"processProvider",value:function(e,t,r){var i=au(e=Fe(e))?e:Fe(e&&e.provide),o=function(e,t,r){return ou(e)?uu(void 0,e.useValue):uu(function(e,t,r){var i,o=void 0;if(au(e)){var a=Fe(e);return Dn(a)||iu(a)}if(ou(e))o=function(){return Fe(e.useValue)};else if((i=e)&&i.useFactory)o=function(){return e.useFactory.apply(e,n($e(e.deps||[])))};else if(function(e){return!(!e||!e.useExisting)}(e))o=function(){return Ye(Fe(e.useExisting))};else{var s=Fe(e&&(e.useClass||e.provide));if(!function(e){return!!e.deps}(e))return Dn(s)||iu(s);o=function(){return u(s,n($e(e.deps)))}}return o}(e),Ki)}(e);if(au(e)||!0!==e.multi)this.records.get(i);else{var a=this.records.get(i);a||((a=uu(void 0,Ki,!0)).factory=function(){return $e(a.multi)},this.records.set(i,a)),i=e,a.multi.push(e)}this.records.set(i,o)}},{key:"hydrate",value:function(e,n){var t;return n.value===Ki&&(n.value=$i,n.value=n.factory()),"object"==typeof n.value&&n.value&&null!==(t=n.value)&&"object"==typeof t&&"function"==typeof t.ngOnDestroy&&this.onDestroy.add(n.value),n.value}},{key:"injectableDefInScope",value:function(e){return!!e.providedIn&&("string"==typeof e.providedIn?"any"===e.providedIn||e.providedIn===this.scope:this.injectorDefTypes.has(e.providedIn))}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();function iu(e){var n=pe(e),t=null!==n?n.factory:Dn(e);if(null!==t)return t;var r=ge(e);if(null!==r)return r.factory;if(e instanceof Le)throw new Error("Token ".concat(ke(e)," is missing a \u0275prov definition."));if(e instanceof Function)return function(e){var n=e.length;if(n>0){var t=function(e,n){for(var t=[],r=0;r<e;r++)t.push("?");return t}(n);throw new Error("Can't resolve all parameters for ".concat(ke(e),": (").concat(t.join(", "),")."))}var r=function(e){var n=e&&(e[me]||e[we]||e[De]&&e[De]());if(n){var t=function(e){if(e.hasOwnProperty("name"))return e.name;var n=(""+e).match(/^function\s*([^\s(]+)/);return null===n?"":n[1]}(e);return console.warn('DEPRECATED: DI is instantiating a token "'.concat(t,'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in a future version of Angular. Please add @Injectable() to the "').concat(t,'" class.')),n}return null}(e);return null!==r?function(){return r.factory(e)}:function(){return new e}}(e);throw new Error("unreachable")}function uu(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return{factory:e,value:n,multi:t?[]:void 0}}function ou(e){return null!==e&&"object"==typeof e&&We in e}function au(e){return"function"==typeof e}var su=function(e,n,t){return function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=arguments.length>3?arguments[3]:void 0,i=tu(e,n,t,r);return i._resolveInjectorDefTypes(),i}({name:t},n,e,t)},lu=function(){var e=function(){function e(){v(this,e)}return y(e,null,[{key:"create",value:function(e,n){return Array.isArray(e)?su(e,n,""):su(e.providers,e.parent,e.name||"")}}]),e}();return e.THROW_IF_NOT_FOUND=Ze,e.NULL=new Xe,e.\u0275prov=de({token:e,providedIn:"any",factory:function(){return Ye(ze)}}),e.__NG_ELEMENT_ID__=-1,e}();function cu(e,n,t){var r=t?e.styles:null,i=t?e.classes:null,u=0;if(null!==n)for(var o=0;o<n.length;o++){var a=n[o];"number"==typeof a?u=a:1==u?i=Ce(i,a):2==u&&(r=Ce(r,a+": "+n[++o]+";"))}t?e.styles=r:e.stylesWithoutHost=r,t?e.classes=i:e.classesWithoutHost=i}function fu(e,n){var t=qn(e)[1],r=t.data.length-1;Dt(t,{directiveStart:r,directiveEnd:r+1})}var hu=null;function du(){if(!hu){var e=Oe.Symbol;if(e&&e.iterator)hu=e.iterator;else for(var n=Object.getOwnPropertyNames(Map.prototype),t=0;t<n.length;++t){var r=n[t];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(hu=r)}}return hu}var vu=function(){function e(n){v(this,e),this.wrapped=n}return y(e,null,[{key:"wrap",value:function(n){return new e(n)}},{key:"unwrap",value:function(n){return e.isWrapped(n)?n.wrapped:n}},{key:"isWrapped",value:function(n){return n instanceof e}}]),e}();function pu(e){return!!yu(e)&&(Array.isArray(e)||!(e instanceof Map)&&du()in e)}function yu(e){return null!==e&&("function"==typeof e||"object"==typeof e)}function gu(e,n,t){return!Object.is(e[n],t)&&(e[n]=t,!0)}function mu(e,n,t,r,i,u,o,a){var s=Xn(),l=et(),c=e+20,f=l.firstCreatePass?function(e,n,t,r,i,u,o,a,s){var l=n.consts,c=Qr(n,e,0,o||null,Qn(l,a));ii(n,t,c,Qn(l,s)),Dt(n,c);var f=c.tViews=ti(2,c,r,i,u,n.directiveRegistry,n.pipeRegistry,null,n.schemas,l);return null!==n.queries&&(n.queries.template(n,c),f.queries=n.queries.embeddedTView(c)),c}(e,l,s,n,t,r,i,u,o):l.data[c];tt(f,!1);var h=s[11].createComment("");Hi(l,s,h,f),Fr(h,s),_i(s,s[c]=yi(h,s,h,f)),An(f)&&Xr(l,s,f),null!=o&&ei(s,f,a)}function _u(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:fe.Default,t=Xn();return null===t?Ye(e,n):zt(nt(),t,Fe(e),n)}function Du(e,n,t){var r,i=Xn();return gu(i,at(),n)&&function(e,n,t,r,i,u,o,a){var s,l,c=Zn(n,t),f=n.inputs;null!=f&&(s=f[r])?(Fi(e,t,s,r,i),En(n)&&function(e,n){var t=Wn(n,e);16&t[2]||(t[2]|=64)}(t,n.index)):2===n.type&&(r="class"===(l=r)?"className":"for"===l?"htmlFor":"formaction"===l?"formAction":"innerHtml"===l?"innerHTML":"readonly"===l?"readOnly":"tabindex"===l?"tabIndex":l,i=null!=o?o(i,n.tagName||"",r):i,Vn(u)?u.setProperty(c,r,i):xt(r)||(c.setProperty?c.setProperty(r,i):c[r]=i))}(et(),Un((r=Kn.lFrame).tView,r.selectedIndex),i,e,n,i[11],t),Du}function wu(e,n,t,r,i){var u=i?"class":"style";Fi(e,t,n.inputs[u],u,r)}function bu(e,n,t,r){var i=Xn(),u=et(),o=20+e,a=i[11],s=i[o]=qr(n,a,Kn.lFrame.currentNamespace),l=u.firstCreatePass?function(e,n,t,r,i,u,o){var a=n.consts,s=Qr(n,e,2,i,Qn(a,u));return ii(n,t,s,Qn(a,o)),null!==s.attrs&&cu(s,s.attrs,!1),null!==s.mergedAttrs&&cu(s,s.mergedAttrs,!0),null!==n.queries&&n.queries.elementStart(n,s),s}(e,u,i,0,n,t,r):u.data[o];tt(l,!0);var c=l.mergedAttrs;null!==c&&Ft(a,s,c);var f=l.classes;null!==f&&Zi(a,s,f);var h=l.styles;null!==h&&zi(a,s,h),Hi(u,i,s,l),0===Kn.lFrame.elementDepthCount&&Fr(s,i),Kn.lFrame.elementDepthCount++,An(l)&&(Xr(u,i,l),function(e,n,t){if(Cn(n))for(var r=n.directiveEnd,i=n.directiveStart;i<r;i++){var u=e.data[i];u.contentQueries&&u.contentQueries(1,t[i],i)}}(u,l,i)),null!==r&&ei(i,l)}function ku(){var e=nt();rt()?Kn.lFrame.isParent=!1:tt(e=e.parent,!1);var n=e;Kn.lFrame.elementDepthCount--;var t=et();t.firstCreatePass&&(Dt(t,e),Cn(e)&&t.queries.elementEnd(e)),null!=n.classesWithoutHost&&function(e){return 0!=(16&e.flags)}(n)&&wu(t,n,Xn(),n.classesWithoutHost,!0),null!=n.stylesWithoutHost&&function(e){return 0!=(32&e.flags)}(n)&&wu(t,n,Xn(),n.stylesWithoutHost,!1)}function Cu(e,n,t,r){bu(e,n,t,r),ku()}function Eu(e){return!!e&&"function"==typeof e.then}function Au(e,n){var t=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3?arguments[3]:void 0,i=Xn(),u=et(),o=nt();return function(e,n,t,r,i,u){var o=arguments.length>6&&void 0!==arguments[6]&&arguments[6],a=arguments.length>7?arguments[7]:void 0,s=An(r),l=e.firstCreatePass&&(e.cleanup||(e.cleanup=[])),c=Ei(n),f=!0;if(2===r.type){var h=Zn(r,n),d=a?a(h):sn,v=d.target||h,p=c.length,y=a?function(e){return a(zn(e[r.index])).target}:r.index;if(Vn(t)){var g=null;if(!a&&s&&(g=function(e,n,t,r){var i=e.cleanup;if(null!=i)for(var u=0;u<i.length-1;u+=2){var o=i[u];if(o===t&&i[u+1]===r){var a=n[7],s=i[u+2];return a.length>s?a[s]:null}"string"==typeof o&&(u+=2)}return null}(e,n,i,r.index)),null!==g)(g.__ngLastListenerFn__||g).__ngNextListenerFn__=u,g.__ngLastListenerFn__=u,f=!1;else{u=xu(r,n,u,!1);var m=t.listen(d.name||v,i,u);c.push(u,m),l&&l.push(i,y,p,p+1)}}else u=xu(r,n,u,!0),v.addEventListener(i,u,o),c.push(u),l&&l.push(i,y,p,o)}var _,D=r.outputs;if(f&&null!==D&&(_=D[i])){var w=_.length;if(w)for(var b=0;b<w;b+=2){var k=n[_[b]][_[b+1]].subscribe(u),C=c.length;c.push(u,k),l&&l.push(i,r.index,C,-(C+1))}}}(u,i,i[11],o,e,n,t,r),Au}function Fu(e,n,t){try{return!1!==n(t)}catch(r){return Ai(e,r),!1}}function xu(e,n,t,r){return function i(u){if(u===Function)return t;var o=2&e.flags?Wn(e.index,n):n;0==(32&n[2])&&Di(o);for(var a=Fu(n,t,u),s=i.__ngNextListenerFn__;s;)a=Fu(n,s,u)&&a,s=s.__ngNextListenerFn__;return r&&!1===a&&(u.preventDefault(),u.returnValue=!1),a}}function Tu(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return function(e){return(Kn.lFrame.contextLView=function(e,n){for(;e>0;)n=n[15],e--;return n}(e,Kn.lFrame.contextLView))[8]}(e)}function Iu(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",t=Xn(),r=et(),i=e+20,u=r.firstCreatePass?Qr(r,e,2,null,null):r.data[i],o=t[i]=function(e,n){return Vn(n)?n.createText(e):n.createTextNode(e)}(n,t[11]);Hi(r,t,o,u),tt(u,!1)}function Su(e){return Bu("",e,""),Su}function Bu(e,n,t){var r=Xn(),i=function(e,n,t,r){return gu(e,at(),t)?n+Tn(t)+r:Hr}(r,e,n,t);return i!==Hr&&xi(r,mt(),i),Bu}function Ou(e,n,t,r,i){var u=Xn(),o=function(e,n,t,r,i,u){var o,a=function(e,n,t,r){var i=gu(e,n,t);return gu(e,n+1,r)||i}(e,ot(),t,i);return(o=Kn.lFrame).bindingIndex=o.bindingIndex+2,a?n+Tn(t)+r+Tn(i)+u:Hr}(u,e,n,t,r,i);return o!==Hr&&xi(u,mt(),o),Ou}var Nu=void 0,Ru=["en",[["a","p"],["AM","PM"],Nu],[["AM","PM"],Nu,Nu],[["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"]],Nu,[["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"]],Nu,[["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}",Nu,"{1} 'at' {0}",Nu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"USD","$","US Dollar",{},"ltr",function(e){var n=Math.floor(Math.abs(e)),t=e.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===t?1:5}],ju={};function Pu(e){return e in ju||(ju[e]=Oe.ng&&Oe.ng.common&&Oe.ng.common.locales&&Oe.ng.common.locales[e]),ju[e]}var Hu=function(e){return e[e.LocaleId=0]="LocaleId",e[e.DayPeriodsFormat=1]="DayPeriodsFormat",e[e.DayPeriodsStandalone=2]="DayPeriodsStandalone",e[e.DaysFormat=3]="DaysFormat",e[e.DaysStandalone=4]="DaysStandalone",e[e.MonthsFormat=5]="MonthsFormat",e[e.MonthsStandalone=6]="MonthsStandalone",e[e.Eras=7]="Eras",e[e.FirstDayOfWeek=8]="FirstDayOfWeek",e[e.WeekendRange=9]="WeekendRange",e[e.DateFormat=10]="DateFormat",e[e.TimeFormat=11]="TimeFormat",e[e.DateTimeFormat=12]="DateTimeFormat",e[e.NumberSymbols=13]="NumberSymbols",e[e.NumberFormats=14]="NumberFormats",e[e.CurrencyCode=15]="CurrencyCode",e[e.CurrencySymbol=16]="CurrencySymbol",e[e.CurrencyName=17]="CurrencyName",e[e.Currencies=18]="Currencies",e[e.Directionality=19]="Directionality",e[e.PluralCase=20]="PluralCase",e[e.ExtraData=21]="ExtraData",e}({});function Mu(e){var n;null==(n=e)&&function(e,n,t,r){throw new Error("ASSERTION ERROR: Expected localeId to be defined"+" [Expected=> null != ".concat(n," <=Actual]"))}(0,n),"string"==typeof e&&e.toLowerCase().replace(/_/g,"-")}var Vu=function e(){v(this,e)},Lu=function(){function e(){v(this,e)}return y(e,[{key:"resolveComponentFactory",value:function(e){throw function(e){var n=Error("No component factory found for ".concat(ke(e),". Did you add it to @NgModule.entryComponents?"));return n.ngComponent=e,n}(e)}}]),e}(),zu=function(){var e=function e(){v(this,e)};return e.NULL=new Lu,e}(),Zu=function(){var e=function e(n){v(this,e),this.nativeElement=n};return e.__NG_ELEMENT_ID__=function(){return Uu(e)},e}(),Uu=function(e){return Ji(e,nt(),Xn())},Wu=function e(){v(this,e)},qu=function(e){return e[e.Important=1]="Important",e[e.DashCase=2]="DashCase",e}({}),Gu=function(){var e=function e(){v(this,e)};return e.\u0275prov=de({token:e,providedIn:"root",factory:function(){return null}}),e}(),Qu=new function e(n){v(this,e),this.full=n,this.major=n.split(".")[0],this.minor=n.split(".")[1],this.patch=n.split(".").slice(2).join(".")}("10.2.3"),Ju=function(){function e(){v(this,e)}return y(e,[{key:"supports",value:function(e){return pu(e)}},{key:"create",value:function(e){return new Ku(e)}}]),e}(),Yu=function(e,n){return n},Ku=function(){function e(n){v(this,e),this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=n||Yu}return y(e,[{key:"forEachItem",value:function(e){var n;for(n=this._itHead;null!==n;n=n._next)e(n)}},{key:"forEachOperation",value:function(e){for(var n=this._itHead,t=this._removalsHead,r=0,i=null;n||t;){var u=!t||n&&n.currentIndex<no(t,r,i)?n:t,o=no(u,r,i),a=u.currentIndex;if(u===t)r--,t=t._nextRemoved;else if(n=n._next,null==u.previousIndex)r++;else{i||(i=[]);var s=o-r,l=a-r;if(s!=l){for(var c=0;c<s;c++){var f=c<i.length?i[c]:i[c]=0,h=f+c;l<=h&&h<s&&(i[c]=f+1)}i[u.previousIndex]=l-s}}o!==a&&e(u,o,a)}}},{key:"forEachPreviousItem",value:function(e){var n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)e(n)}},{key:"forEachAddedItem",value:function(e){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}},{key:"forEachMovedItem",value:function(e){var n;for(n=this._movesHead;null!==n;n=n._nextMoved)e(n)}},{key:"forEachRemovedItem",value:function(e){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}},{key:"forEachIdentityChange",value:function(e){var n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)e(n)}},{key:"diff",value:function(e){if(null==e&&(e=[]),!pu(e))throw new Error("Error trying to diff '".concat(ke(e),"'. Only arrays and iterables are allowed"));return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var n=this;this._reset();var t,r,i,u=this._itHead,o=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)r=e[a],i=this._trackByFn(a,r),null!==u&&Object.is(u.trackById,i)?(o&&(u=this._verifyReinsertion(u,r,i,a)),Object.is(u.item,r)||this._addIdentityChange(u,r)):(u=this._mismatch(u,r,i,a),o=!0),u=u._next}else t=0,function(e,n){if(Array.isArray(e))for(var t=0;t<e.length;t++)n(e[t]);else for(var r,i=e[du()]();!(r=i.next()).done;)n(r.value)}(e,(function(e){i=n._trackByFn(t,e),null!==u&&Object.is(u.trackById,i)?(o&&(u=n._verifyReinsertion(u,e,i,t)),Object.is(u.item,e)||n._addIdentityChange(u,e)):(u=n._mismatch(u,e,i,t),o=!0),u=u._next,t++})),this.length=t;return this._truncate(u),this.collection=e,this.isDirty}},{key:"_reset",value:function(){if(this.isDirty){var e;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=e._nextMoved)e.previousIndex=e.currentIndex;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}}},{key:"_mismatch",value:function(e,n,t,r){var i;return null===e?i=this._itTail:(i=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(t,r))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._moveAfter(e,i,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null))?(Object.is(e.item,n)||this._addIdentityChange(e,n),this._reinsertAfter(e,i,r)):e=this._addAfter(new $u(n,t),i,r),e}},{key:"_verifyReinsertion",value:function(e,n,t,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(t,null);return null!==i?e=this._reinsertAfter(i,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e}},{key:"_truncate",value:function(e){for(;null!==e;){var n=e._next;this._addToRemovals(this._unlink(e)),e=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)}},{key:"_reinsertAfter",value:function(e,n,t){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,i=e._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(e,n,t),this._addToMoves(e,t),e}},{key:"_moveAfter",value:function(e,n,t){return this._unlink(e),this._insertAfter(e,n,t),this._addToMoves(e,t),e}},{key:"_addAfter",value:function(e,n,t){return this._insertAfter(e,n,t),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e}},{key:"_insertAfter",value:function(e,n,t){var r=null===n?this._itHead:n._next;return e._next=r,e._prev=n,null===r?this._itTail=e:r._prev=e,null===n?this._itHead=e:n._next=e,null===this._linkedRecords&&(this._linkedRecords=new eo),this._linkedRecords.put(e),e.currentIndex=t,e}},{key:"_remove",value:function(e){return this._addToRemovals(this._unlink(e))}},{key:"_unlink",value:function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var n=e._prev,t=e._next;return null===n?this._itHead=t:n._next=t,null===t?this._itTail=n:t._prev=n,e}},{key:"_addToMoves",value:function(e,n){return e.previousIndex===n||(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e),e}},{key:"_addToRemovals",value:function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new eo),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e}},{key:"_addIdentityChange",value:function(e,n){return e.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead}}]),e}(),$u=function e(n,t){v(this,e),this.item=n,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},Xu=function(){function e(){v(this,e),this._head=null,this._tail=null}return y(e,[{key:"add",value:function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)}},{key:"get",value:function(e,n){var t;for(t=this._head;null!==t;t=t._nextDup)if((null===n||n<=t.currentIndex)&&Object.is(t.trackById,e))return t;return null}},{key:"remove",value:function(e){var n=e._prevDup,t=e._nextDup;return null===n?this._head=t:n._nextDup=t,null===t?this._tail=n:t._prevDup=n,null===this._head}}]),e}(),eo=function(){function e(){v(this,e),this.map=new Map}return y(e,[{key:"put",value:function(e){var n=e.trackById,t=this.map.get(n);t||(t=new Xu,this.map.set(n,t)),t.add(e)}},{key:"get",value:function(e,n){var t=this.map.get(e);return t?t.get(e,n):null}},{key:"remove",value:function(e){var n=e.trackById;return this.map.get(n).remove(e)&&this.map.delete(n),e}},{key:"clear",value:function(){this.map.clear()}},{key:"isEmpty",get:function(){return 0===this.map.size}}]),e}();function no(e,n,t){var r=e.previousIndex;if(null===r)return r;var i=0;return t&&r<t.length&&(i=t[r]),r+n+i}var to=function(){function e(){v(this,e)}return y(e,[{key:"supports",value:function(e){return e instanceof Map||yu(e)}},{key:"create",value:function(){return new ro}}]),e}(),ro=function(){function e(){v(this,e),this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return y(e,[{key:"forEachItem",value:function(e){var n;for(n=this._mapHead;null!==n;n=n._next)e(n)}},{key:"forEachPreviousItem",value:function(e){var n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)e(n)}},{key:"forEachChangedItem",value:function(e){var n;for(n=this._changesHead;null!==n;n=n._nextChanged)e(n)}},{key:"forEachAddedItem",value:function(e){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)e(n)}},{key:"forEachRemovedItem",value:function(e){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)e(n)}},{key:"diff",value:function(e){if(e){if(!(e instanceof Map||yu(e)))throw new Error("Error trying to diff '".concat(ke(e),"'. Only maps and objects are allowed"))}else e=new Map;return this.check(e)?this:null}},{key:"onDestroy",value:function(){}},{key:"check",value:function(e){var n=this;this._reset();var t=this._mapHead;if(this._appendAfter=null,this._forEach(e,(function(e,r){if(t&&t.key===r)n._maybeAddToChanges(t,e),n._appendAfter=t,t=t._next;else{var i=n._getOrCreateRecordForKey(r,e);t=n._insertBeforeOrAppend(t,i)}})),t){t._prev&&(t._prev._next=null),this._removalsHead=t;for(var r=t;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty}},{key:"_insertBeforeOrAppend",value:function(e,n){if(e){var t=e._prev;return n._next=e,n._prev=t,e._prev=n,t&&(t._next=n),e===this._mapHead&&(this._mapHead=n),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null}},{key:"_getOrCreateRecordForKey",value:function(e,n){if(this._records.has(e)){var t=this._records.get(e);this._maybeAddToChanges(t,n);var r=t._prev,i=t._next;return r&&(r._next=i),i&&(i._prev=r),t._next=null,t._prev=null,t}var u=new io(e);return this._records.set(e,u),u.currentValue=n,this._addToAdditions(u),u}},{key:"_reset",value:function(){if(this.isDirty){var e;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}}},{key:"_maybeAddToChanges",value:function(e,n){Object.is(n,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=n,this._addToChanges(e))}},{key:"_addToAdditions",value:function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)}},{key:"_addToChanges",value:function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)}},{key:"_forEach",value:function(e,n){e instanceof Map?e.forEach(n):Object.keys(e).forEach((function(t){return n(e[t],t)}))}},{key:"isDirty",get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead}}]),e}(),io=function e(n){v(this,e),this.key=n,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},uo=function(){var e=function(){function e(n){v(this,e),this.factories=n}return y(e,[{key:"find",value:function(e){var n,t=this.factories.find((function(n){return n.supports(e)}));if(null!=t)return t;throw new Error("Cannot find a differ supporting object '".concat(e,"' of type '").concat((n=e).name||typeof n,"'"))}}],[{key:"create",value:function(n,t){if(null!=t){var r=t.factories.slice();n=n.concat(r)}return new e(n)}},{key:"extend",value:function(n){return{provide:e,useFactory:function(t){if(!t)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(n,t)},deps:[[e,new ce,new se]]}}}]),e}();return e.\u0275prov=de({token:e,providedIn:"root",factory:function(){return new e([new Ju])}}),e}(),oo=function(){var e=function(){function e(n){v(this,e),this.factories=n}return y(e,[{key:"find",value:function(e){var n=this.factories.find((function(n){return n.supports(e)}));if(n)return n;throw new Error("Cannot find a differ supporting object '".concat(e,"'"))}}],[{key:"create",value:function(n,t){if(t){var r=t.factories.slice();n=n.concat(r)}return new e(n)}},{key:"extend",value:function(n){return{provide:e,useFactory:function(t){if(!t)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(n,t)},deps:[[e,new ce,new se]]}}}]),e}();return e.\u0275prov=de({token:e,providedIn:"root",factory:function(){return new e([new to])}}),e}(),ao=[new to],so=new uo([new Ju]),lo=new oo(ao),co=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return fo(e,Zu)},e}(),fo=function(e,n){return function(e,n,t,r){return Wi||(Wi=function(e){a(t,e);var n=l(t);function t(e,r,i){var u;return v(this,t),(u=n.call(this))._declarationView=e,u._declarationTContainer=r,u.elementRef=i,u}return y(t,[{key:"createEmbeddedView",value:function(e){var n=this._declarationTContainer.tViews,t=Gr(this._declarationView,n,e,16,null,n.declTNode,null,null,null,null);t[17]=this._declarationView[this._declarationTContainer.index];var r=this._declarationView[19];return null!==r&&(t[19]=r.createEmbeddedView(n)),Jr(n,t,e),new Gi(t)}}]),t}(e)),0===t.type?new Wi(r,t,Ji(n,t,r)):null}(e,n,nt(),Xn())},ho=function(){var e=function e(){v(this,e)};return e.__NG_ELEMENT_ID__=function(){return vo(e,Zu)},e}(),vo=function(e,n){return function(e,n,t,r){var i;qi||(qi=function(e){a(r,e);var t=l(r);function r(e,n,i){var u;return v(this,r),(u=t.call(this))._lContainer=e,u._hostTNode=n,u._hostView=i,u}return y(r,[{key:"clear",value:function(){for(;this.length>0;)this.remove(this.length-1)}},{key:"get",value:function(e){return null!==this._lContainer[8]&&this._lContainer[8][e]||null}},{key:"createEmbeddedView",value:function(e,n,t){var r=e.createEmbeddedView(n||{});return this.insert(r,t),r}},{key:"createComponent",value:function(e,n,t,r,i){var u=t||this.parentInjector;if(!i&&null==e.ngModule&&u){var o=u.get(en,null);o&&(i=o)}var a=e.create(u,r,void 0,i);return this.insert(a.hostView,n),a}},{key:"insert",value:function(e,n){var t=e._lView,r=t[1];if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),kn(t[3])){var i=this.indexOf(e);if(-1!==i)this.detach(i);else{var u=t[3],o=new qi(u,u[6],u[3]);o.detach(o.indexOf(e))}}var a=this._adjustIndex(n),s=this._lContainer;!function(e,n,t,r){var i=10+r,u=t.length;r>0&&(t[i-1][4]=n),r<u-10?(n[4]=t[i],tn(t,10+r,n)):(t.push(n),n[4]=null),n[3]=t;var o=n[17];null!==o&&t!==o&&function(e,n){var t=e[9];n[16]!==n[3][3][16]&&(e[2]=!0),null===t?e[9]=[n]:t.push(n)}(o,n);var a=n[19];null!==a&&a.insertView(e),n[2]|=128}(r,t,s,a);var l=function e(n,t){var r=10+n+1;if(r<t.length){var i=t[r],u=i[1].firstChild;if(null!==u)return function n(t,r){if(null!==r){var i=r.type;if(2===i)return Zn(r,t);if(0===i)return e(-1,t[r.index]);if(3===i||4===i){var u=r.child;if(null!==u)return n(t,u);var o=t[r.index];return kn(o)?e(-1,o):zn(o)}var a=t[16],s=a[6],l=Mr(a),c=s.projection[r.projection];return null!=c?n(l,c):n(t,r.next)}return null}(i,u)}return t[7]}(a,s),c=t[11],f=Pi(c,s[7]);return null!==f&&function(e,n,t,r,i,u){r[0]=i,r[6]=n,Vi(e,r,t,1,i,u)}(r,s[6],c,t,f,l),e.attachToViewContainerRef(this),tn(s[8],a,e),e}},{key:"move",value:function(e,n){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");return this.insert(e,n)}},{key:"indexOf",value:function(e){var n=this._lContainer[8];return null!==n?n.indexOf(e):-1}},{key:"remove",value:function(e){this.allocateContainerIfNeeded();var n=this._adjustIndex(e,-1),t=Si(this._lContainer,n);t&&(rn(this._lContainer[8],n),Bi(t[1],t))}},{key:"detach",value:function(e){this.allocateContainerIfNeeded();var n=this._adjustIndex(e,-1),t=Si(this._lContainer,n);return t&&null!=rn(this._lContainer[8],n)?new Gi(t):null}},{key:"_adjustIndex",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return null==e?this.length+n:e}},{key:"allocateContainerIfNeeded",value:function(){null===this._lContainer[8]&&(this._lContainer[8]=[])}},{key:"element",get:function(){return Ji(n,this._hostTNode,this._hostView)}},{key:"injector",get:function(){return new Qt(this._hostTNode,this._hostView)}},{key:"parentInjector",get:function(){var e=Vt(this._hostTNode,this._hostView);if(St(e)){var n=Ot(e,this._hostView),t=Bt(e);return new Qt(n[1].data[t+8],n)}return new Qt(null,this._hostView)}},{key:"length",get:function(){return this._lContainer.length-10}}]),r}(e));var u=r[t.index];if(kn(u))i=u;else{var o;if(3===t.type)o=zn(u);else if(o=r[11].createComment(""),xn(r)){var s=r[11],c=Zn(t,r);Ni(s,Pi(s,c),o,function(e,n){return Vn(e)?e.nextSibling(n):n.nextSibling}(s,c))}else Hi(r[1],r,o,t);r[t.index]=i=yi(u,r,o,t),_i(r,i)}return new qi(i,t,r)}(e,n,nt(),Xn())},po={},yo=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this)).ngModule=e,r}return y(t,[{key:"resolveComponentFactory",value:function(e){var n=_n(e);return new _o(n,this.ngModule)}}]),t}(zu);function go(e){var n=[];for(var t in e)e.hasOwnProperty(t)&&n.push({propName:e[t],templateName:t});return n}var mo=new Le("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return Sn}}),_o=function(e){a(t,e);var n=l(t);function t(e,r){var i;return v(this,t),(i=n.call(this)).componentDef=e,i.ngModule=r,i.componentType=e.type,i.selector=e.selectors.map(Pr).join(","),i.ngContentSelectors=e.ngContentSelectors?e.ngContentSelectors:[],i.isBoundToModule=!!r,i}return y(t,[{key:"create",value:function(e,n,t,r){var i,u,o=(r=r||this.ngModule)?function(e,n){return{get:function(t,r,i){var u=e.get(t,po,i);return u!==po||r===po?u:n.get(t,r,i)}}}(e,r.injector):e,a=o.get(Wu,Ln),s=o.get(Gu,null),l=a.createRenderer(null,this.componentDef),c=this.componentDef.selectors[0][0]||"div",f=t?function(e,n,t){if(Vn(e))return e.selectRootElement(n,t===an.ShadowDom);var r="string"==typeof n?e.querySelector(n):n;return r.textContent="",r}(l,t,this.componentDef.encapsulation):qr(c,a.createRenderer(null,this.componentDef),function(e){var n=e.toLowerCase();return"svg"===n?"http://www.w3.org/2000/svg":"math"===n?"http://www.w3.org/1998/MathML/":null}(c)),h=this.componentDef.onPush?576:528,d={components:[],scheduler:Sn,clean:Ci,playerHandler:null,flags:0},v=ti(0,null,null,1,0,null,null,null,null,null),p=Gr(null,v,d,h,null,null,a,l,s,o);ht(p);try{var y=function(e,n,t,r,i,u){var o=t[1];t[20]=e;var a=Qr(o,0,2,null,null),s=a.mergedAttrs=n.hostAttrs;null!==s&&(cu(a,s,!0),null!==e&&(Ft(i,e,s),null!==a.classes&&Zi(i,e,a.classes),null!==a.styles&&zi(i,e,a.styles)));var l=r.createRenderer(e,n),c=Gr(t,ni(n),null,n.onPush?64:16,t[20],a,r,l,null,null);return o.firstCreatePass&&(Lt(Pt(a,t),o,n.type),li(o,a),fi(a,t.length,1)),_i(t,c),t[20]=c}(f,this.componentDef,p,a,l);if(f)if(t)Ft(l,f,["ng-version",Qu.full]);else{var g=function(e){for(var n=[],t=[],r=1,i=2;r<e.length;){var u=e[r];if("string"==typeof u)2===i?""!==u&&n.push(u,e[++r]):8===i&&t.push(u);else{if(!Or(i))break;i=u}r++}return{attrs:n,classes:t}}(this.componentDef.selectors[0]),m=g.attrs,_=g.classes;m&&Ft(l,f,m),_&&_.length>0&&Zi(l,f,_.join(" "))}if(u=Un(v,0),void 0!==n)for(var D=u.projection=[],w=0;w<this.ngContentSelectors.length;w++){var b=n[w];D.push(null!=b?Array.from(b):null)}i=function(e,n,t,r,i){var u=t[1],o=function(e,n,t){var r=nt();e.firstCreatePass&&(t.providersResolver&&t.providersResolver(t),si(e,r,1),hi(e,n,t));var i=Wt(n,e,n.length-1,r);Fr(i,n);var u=Zn(r,n);return u&&Fr(u,n),i}(u,t,n);r.components.push(o),e[8]=o,i&&i.forEach((function(e){return e(o,n)})),n.contentQueries&&n.contentQueries(1,o,t.length-1);var a=nt();if(u.firstCreatePass&&(null!==n.hostBindings||null!==n.hostAttrs)){_t(a.index-20);var s=t[1];ui(s,n),oi(s,t,n.hostVars),ai(n,o)}return o}(y,this.componentDef,p,d,[fu]),Jr(v,p,null)}finally{gt()}return new Do(this.componentType,i,Ji(Zu,u,p),p,u)}},{key:"inputs",get:function(){return go(this.componentDef.inputs)}},{key:"outputs",get:function(){return go(this.componentDef.outputs)}}]),t}(Vu),Do=function(e){a(t,e);var n=l(t);function t(e,r,i,u,o){var a;return v(this,t),(a=n.call(this)).location=i,a._rootLView=u,a._tNode=o,a.destroyCbs=[],a.instance=r,a.hostView=a.changeDetectorRef=new Qi(u),a.componentType=e,a}return y(t,[{key:"destroy",value:function(){this.destroyCbs&&(this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null,!this.hostView.destroyed&&this.hostView.destroy())}},{key:"onDestroy",value:function(e){this.destroyCbs&&this.destroyCbs.push(e)}},{key:"injector",get:function(){return new Qt(this._tNode,this._rootLView)}}]),t}(function(){return function e(){v(this,e)}}()),wo=new Map,bo=function(e){a(t,e);var n=l(t);function t(e,r){var i;v(this,t),(i=n.call(this))._parent=r,i._bootstrapComponents=[],i.injector=f(i),i.destroyCbs=[],i.componentFactoryResolver=new yo(f(i));var u=wn(e),o=e[He]||null;return o&&Mu(o),i._bootstrapComponents=Bn(u.bootstrap),i._r3Injector=tu(e,r,[{provide:en,useValue:f(i)},{provide:zu,useValue:i.componentFactoryResolver}],ke(e)),i._r3Injector._resolveInjectorDefTypes(),i.instance=i.get(e),i}return y(t,[{key:"get",value:function(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:lu.THROW_IF_NOT_FOUND,t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:fe.Default;return e===lu||e===en||e===ze?this:this._r3Injector.get(e,n,t)}},{key:"destroy",value:function(){var e=this._r3Injector;!e.destroyed&&e.destroy(),this.destroyCbs.forEach((function(e){return e()})),this.destroyCbs=null}},{key:"onDestroy",value:function(e){this.destroyCbs.push(e)}}]),t}(en),ko=function(e){a(r,e);var n=l(r);function r(e){var i,u,o;return v(this,r),(i=n.call(this)).moduleType=e,null!==wn(e)&&(u=e,o=new Set,function e(n){var r=wn(n,!0),i=r.id;null!==i&&(function(e,n,t){if(n&&n!==t)throw new Error("Duplicate module registered for ".concat(e," - ").concat(ke(n)," vs ").concat(ke(n.name)))}(i,wo.get(i),n),wo.set(i,n));var u,a=t(Bn(r.imports));try{for(a.s();!(u=a.n()).done;){var s=u.value;o.has(s)||(o.add(s),e(s))}}catch(l){a.e(l)}finally{a.f()}}(u)),i}return y(r,[{key:"create",value:function(e){return new bo(this.moduleType,e)}}]),r}(function(){return function e(){v(this,e)}}());function Co(e,n){var t,r=et(),i=e+20;r.firstCreatePass?(t=function(e,n){if(n)for(var t=n.length-1;t>=0;t--){var r=n[t];if(e===r.name)return r}throw new Error("The pipe '".concat(e,"' could not be found!"))}(n,r.pipeRegistry),r.data[i]=t,t.onDestroy&&(r.destroyHooks||(r.destroyHooks=[])).push(i,t.onDestroy)):t=r.data[i];var u=t.factory||(t.factory=Dn(t.type)),o=Qe(_u);try{var a=Rt(!1),s=u();return Rt(a),function(e,n,t,r){var i=t+20;i>=e.data.length&&(e.data[i]=null,e.blueprint[i]=null),n[i]=r}(r,Xn(),e,s),s}finally{Qe(o)}}function Eo(e,n,t){var r=Xn(),i=function(e,n){return e[n+20]}(r,e);return function(e,n){return vu.isWrapped(n)&&(n=vu.unwrap(n),e[ot()]=Hr),n}(r,function(e,n){return e[1].data[n+20].pure}(r,e)?function(e,n,t,r,i,u){var o=n+t;return gu(e,o,i)?function(e,n,t){return e[n]=t}(e,o+1,u?r.call(u,i):r(i)):function(e,n){var t=e[n];return t===Hr?void 0:t}(e,o+1)}(r,function(){var e=Kn.lFrame,n=e.bindingRootIndex;return-1===n&&(n=e.bindingRootIndex=e.tView.bindingStartIndex),n}(),n,i.transform,t,i):i.transform(t))}var Ao=function(e){a(t,e);var n=l(t);function t(){var e,r=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return v(this,t),(e=n.call(this)).__isAsync=r,e}return y(t,[{key:"emit",value:function(e){o(d(t.prototype),"next",this).call(this,e)}},{key:"subscribe",value:function(e,n,r){var i,u=function(e){return null},a=function(){return null};e&&"object"==typeof e?(i=this.__isAsync?function(n){setTimeout((function(){return e.next(n)}))}:function(n){e.next(n)},e.error&&(u=this.__isAsync?function(n){setTimeout((function(){return e.error(n)}))}:function(n){e.error(n)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(i=this.__isAsync?function(n){setTimeout((function(){return e(n)}))}:function(n){e(n)},n&&(u=this.__isAsync?function(e){setTimeout((function(){return n(e)}))}:function(e){n(e)}),r&&(a=this.__isAsync?function(){setTimeout((function(){return r()}))}:function(){r()}));var s=o(d(t.prototype),"subscribe",this).call(this,i,u,a);return e instanceof k&&e.add(s),s}}]),t}(P),Fo=new Le("Application Initializer"),xo=function(){var e=function(){function e(n){var t=this;v(this,e),this.appInits=n,this.initialized=!1,this.done=!1,this.donePromise=new Promise((function(e,n){t.resolve=e,t.reject=n}))}return y(e,[{key:"runInitializers",value:function(){var e=this;if(!this.initialized){var n=[],t=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();Eu(i)&&n.push(i)}Promise.all(n).then((function(){t()})).catch((function(n){e.reject(n)})),0===n.length&&t(),this.initialized=!0}}}]),e}();return e.\u0275fac=function(n){return new(n||e)(Ye(Fo,8))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}(),To=new Le("AppId"),Io={provide:To,useFactory:function(){return"".concat(So()).concat(So()).concat(So())},deps:[]};function So(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Bo=new Le("Platform Initializer"),Oo=new Le("Platform ID"),No=new Le("appBootstrapListener"),Ro=function(){var e=function(){function e(){v(this,e)}return y(e,[{key:"log",value:function(e){console.log(e)}},{key:"warn",value:function(e){console.warn(e)}}]),e}();return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}(),jo=new Le("LocaleId"),Po=new Le("DefaultCurrencyCode"),Ho=function e(n,t){v(this,e),this.ngModuleFactory=n,this.componentFactories=t},Mo=function(e){return new ko(e)},Vo=Mo,Lo=function(e){return Promise.resolve(Mo(e))},zo=function(e){var n=Mo(e),t=Bn(wn(e).declarations).reduce((function(e,n){var t=_n(n);return t&&e.push(new _o(t)),e}),[]);return new Ho(n,t)},Zo=zo,Uo=function(e){return Promise.resolve(zo(e))},Wo=function(){var e=function(){function e(){v(this,e),this.compileModuleSync=Vo,this.compileModuleAsync=Lo,this.compileModuleAndAllComponentsSync=Zo,this.compileModuleAndAllComponentsAsync=Uo}return y(e,[{key:"clearCache",value:function(){}},{key:"clearCacheFor",value:function(e){}},{key:"getModuleId",value:function(e){}}]),e}();return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}(),qo=Promise.resolve(0);function Go(e){"undefined"==typeof Zone?qo.then((function(){e&&e.apply(null,null)})):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}var Qo=function(){function e(n){var t,r,i=n.enableLongStackTrace,u=void 0!==i&&i,o=n.shouldCoalesceEventChangeDetection,a=void 0!==o&&o;if(v(this,e),this.hasPendingMacrotasks=!1,this.hasPendingMicrotasks=!1,this.isStable=!0,this.onUnstable=new Ao(!1),this.onMicrotaskEmpty=new Ao(!1),this.onStable=new Ao(!1),this.onError=new Ao(!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)),u&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),this.shouldCoalesceEventChangeDetection=a,this.lastRequestAnimationFrameId=-1,this.nativeRequestAnimationFrame=function(){var e=Oe.requestAnimationFrame,n=Oe.cancelAnimationFrame;if("undefined"!=typeof Zone&&e&&n){var t=e[Zone.__symbol__("OriginalDelegate")];t&&(e=t);var r=n[Zone.__symbol__("OriginalDelegate")];r&&(n=r)}return{nativeRequestAnimationFrame:e,nativeCancelAnimationFrame:n}}().nativeRequestAnimationFrame,r=!!(t=this).shouldCoalesceEventChangeDetection&&t.nativeRequestAnimationFrame&&function(){!function(e){-1===e.lastRequestAnimationFrameId&&(e.lastRequestAnimationFrameId=e.nativeRequestAnimationFrame.call(Oe,(function(){e.fakeTopEventTask||(e.fakeTopEventTask=Zone.root.scheduleEventTask("fakeTopEventTask",(function(){e.lastRequestAnimationFrameId=-1,$o(e),Ko(e)}),void 0,(function(){}),(function(){}))),e.fakeTopEventTask.invoke()})),$o(e))}(t)},t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0,maybeDelayChangeDetection:r},onInvokeTask:function(e,n,i,u,o,a){try{return Xo(t),e.invokeTask(i,u,o,a)}finally{r&&"eventTask"===u.type&&r(),ea(t)}},onInvoke:function(e,n,r,i,u,o,a){try{return Xo(t),e.invoke(r,i,u,o,a)}finally{ea(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t._hasPendingMicrotasks=i.microTask,$o(t),Ko(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular((function(){return t.onError.emit(i)})),!1}})}return y(e,[{key:"run",value:function(e,n,t){return this._inner.run(e,n,t)}},{key:"runTask",value:function(e,n,t,r){var i=this._inner,u=i.scheduleEventTask("NgZoneEvent: "+r,e,Yo,Jo,Jo);try{return i.runTask(u,n,t)}finally{i.cancelTask(u)}}},{key:"runGuarded",value:function(e,n,t){return this._inner.runGuarded(e,n,t)}},{key:"runOutsideAngular",value:function(e){return this._outer.run(e)}}],[{key:"isInAngularZone",value:function(){return!0===Zone.current.get("isAngularZone")}},{key:"assertInAngularZone",value:function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")}},{key:"assertNotInAngularZone",value:function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")}}]),e}();function Jo(){}var Yo={};function Ko(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 $o(e){e.hasPendingMicrotasks=!!(e._hasPendingMicrotasks||e.shouldCoalesceEventChangeDetection&&-1!==e.lastRequestAnimationFrameId)}function Xo(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function ea(e){e._nesting--,Ko(e)}var na,ta=function(){function e(){v(this,e),this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Ao,this.onMicrotaskEmpty=new Ao,this.onStable=new Ao,this.onError=new Ao}return y(e,[{key:"run",value:function(e,n,t){return e.apply(n,t)}},{key:"runGuarded",value:function(e,n,t){return e.apply(n,t)}},{key:"runOutsideAngular",value:function(e){return e()}},{key:"runTask",value:function(e,n,t,r){return e.apply(n,t)}}]),e}(),ra=function(){var e=function(){function e(n){var t=this;v(this,e),this._ngZone=n,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this.taskTrackingZone=null,this._watchAngularEvents(),n.run((function(){t.taskTrackingZone="undefined"==typeof Zone?null:Zone.current.get("TaskTrackingZone")}))}return y(e,[{key:"_watchAngularEvents",value:function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular((function(){e._ngZone.onStable.subscribe({next:function(){Qo.assertNotInAngularZone(),Go((function(){e._isZoneStable=!0,e._runCallbacksIfReady()}))}})}))}},{key:"increasePendingRequestCount",value:function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount}},{key:"decreasePendingRequestCount",value:function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount}},{key:"isStable",value:function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks}},{key:"_runCallbacksIfReady",value:function(){var e=this;if(this.isStable())Go((function(){for(;0!==e._callbacks.length;){var n=e._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(e._didWork)}e._didWork=!1}));else{var n=this.getPendingTasks();this._callbacks=this._callbacks.filter((function(e){return!e.updateCb||!e.updateCb(n)||(clearTimeout(e.timeoutId),!1)})),this._didWork=!0}}},{key:"getPendingTasks",value:function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map((function(e){return{source:e.source,creationLocation:e.creationLocation,data:e.data}})):[]}},{key:"addCallback",value:function(e,n,t){var r=this,i=-1;n&&n>0&&(i=setTimeout((function(){r._callbacks=r._callbacks.filter((function(e){return e.timeoutId!==i})),e(r._didWork,r.getPendingTasks())}),n)),this._callbacks.push({doneCb:e,timeoutId:i,updateCb:t})}},{key:"whenStable",value:function(e,n,t){if(t&&!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,n,t),this._runCallbacksIfReady()}},{key:"getPendingRequestCount",value:function(){return this._pendingCount}},{key:"findProviders",value:function(e,n,t){return[]}}]),e}();return e.\u0275fac=function(n){return new(n||e)(Ye(Qo))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}(),ia=function(){var e=function(){function e(){v(this,e),this._applications=new Map,ua.addToWindow(this)}return y(e,[{key:"registerApplication",value:function(e,n){this._applications.set(e,n)}},{key:"unregisterApplication",value:function(e){this._applications.delete(e)}},{key:"unregisterAllApplications",value:function(){this._applications.clear()}},{key:"getTestability",value:function(e){return this._applications.get(e)||null}},{key:"getAllTestabilities",value:function(){return Array.from(this._applications.values())}},{key:"getAllRootElements",value:function(){return Array.from(this._applications.keys())}},{key:"findTestabilityInTree",value:function(e){var n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return ua.findTestabilityInTree(this,e,n)}}]),e}();return e.\u0275fac=function(n){return new(n||e)},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}(),ua=new(function(){function e(){v(this,e)}return y(e,[{key:"addToWindow",value:function(e){}},{key:"findTestabilityInTree",value:function(e,n,t){return null}}]),e}()),oa=new Le("AllowMultipleToken");function aa(e,n){var t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r="Platform: "+n,i=new Le(r);return function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],u=sa();if(!u||u.injector.get(oa,!1))if(e)e(t.concat(n).concat({provide:i,useValue:!0}));else{var o=t.concat(n).concat({provide:i,useValue:!0},{provide:Yi,useValue:"platform"});!function(e){if(na&&!na.destroyed&&!na.injector.get(oa,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");na=e.get(la);var n=e.get(Bo,null);n&&n.forEach((function(e){return e()}))}(lu.create({providers:o,name:r}))}return function(e){var n=sa();if(!n)throw new Error("No platform exists!");if(!n.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return n}(i)}}function sa(){return na&&!na.destroyed?na:null}var la=function(){var e=function(){function e(n){v(this,e),this._injector=n,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return y(e,[{key:"bootstrapModuleFactory",value:function(e,n){var t,r,i=this,u=(t=n?n.ngZone:void 0,r=n&&n.ngZoneEventCoalescing||!1,"noop"===t?new ta:("zone.js"===t?void 0:t)||new Qo({enableLongStackTrace:tr(),shouldCoalesceEventChangeDetection:r})),o=[{provide:Qo,useValue:u}];return u.run((function(){var n=lu.create({providers:o,parent:i.injector,name:e.moduleType.name}),t=e.create(n),r=t.injector.get($t,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return t.onDestroy((function(){return da(i._modules,t)})),u.runOutsideAngular((function(){return u.onError.subscribe({next:function(e){r.handleError(e)}})})),function(e,n,r){try{var u=((o=t.injector.get(xo)).runInitializers(),o.donePromise.then((function(){return Mu(t.injector.get(jo,"en-US")||"en-US"),i._moduleDoBootstrap(t),t})));return Eu(u)?u.catch((function(t){throw n.runOutsideAngular((function(){return e.handleError(t)})),t})):u}catch(a){throw n.runOutsideAngular((function(){return e.handleError(a)})),a}var o}(r,u)}))}},{key:"bootstrapModule",value:function(e){var n=this,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=ca({},t);return function(e,n,t){var r=new ko(t);return Promise.resolve(r)}(0,0,e).then((function(e){return n.bootstrapModuleFactory(e,r)}))}},{key:"_moduleDoBootstrap",value:function(e){var n=e.injector.get(ha);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach((function(e){return n.bootstrap(e)}));else{if(!e.instance.ngDoBootstrap)throw new Error("The module ".concat(ke(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(n)}this._modules.push(e)}},{key:"onDestroy",value:function(e){this._destroyListeners.push(e)}},{key:"destroy",value:function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach((function(e){return e.destroy()})),this._destroyListeners.forEach((function(e){return e()})),this._destroyed=!0}},{key:"injector",get:function(){return this._injector}},{key:"destroyed",get:function(){return this._destroyed}}]),e}();return e.\u0275fac=function(n){return new(n||e)(Ye(lu))},e.\u0275prov=de({token:e,factory:e.\u0275fac}),e}();function ca(e,n){return Array.isArray(n)?n.reduce(ca,e):Object.assign(Object.assign({},e),n)}var fa,ha=((fa=function(){function e(n,t,r,i,u,o){var a=this;v(this,e),this._zone=n,this._console=t,this._injector=r,this._exceptionHandler=i,this._componentFactoryResolver=u,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=tr(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new S((function(e){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){e.next(a._stable),e.complete()}))})),l=new S((function(e){var n;a._zone.runOutsideAngular((function(){n=a._zone.onStable.subscribe((function(){Qo.assertNotInAngularZone(),Go((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,e.next(!0))}))}))}));var t=a._zone.onUnstable.subscribe((function(){Qo.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){e.next(!1)})))}));return function(){n.unsubscribe(),t.unsubscribe()}}));this.isStable=function(){for(var e=arguments.length,n=new Array(e),t=0;t<e;t++)n[t]=arguments[t];var r,i=Number.POSITIVE_INFINITY,u=null,o=n[n.length-1];return(r=o)&&"function"==typeof r.schedule?(u=n.pop(),n.length>1&&"number"==typeof n[n.length-1]&&(i=n.pop())):"number"==typeof o&&(i=n.pop()),null===u&&1===n.length&&n[0]instanceof S?n[0]:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.POSITIVE_INFINITY;return J(T,e)}(i)(function(e,n){return n?q(e,n):new S(L(e))}(n,u))}(s,l.pipe((function(e){return $()((n=ie,function(e){var t;t="function"==typeof n?n:function(){return n};var r=Object.create(e,te);return r.source=e,r.subjectFactory=t,r})(e));var n})))}return y(e,[{key:"bootstrap",value:function(e,n){var t,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.");t=e instanceof Vu?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(t.componentType);var i=t.isBoundToModule?void 0:this._injector.get(en),u=t.create(lu.NULL,[],n||t.selector,i);u.onDestroy((function(){r._unloadComponent(u)}));var o=u.injector.get(ra,null);return o&&u.injector.get(ia).registerApplication(u.location.nativeElement,o),this._loadComponent(u),tr()&&this._console.log("Angular is running in development mode. Call enableProdMode() to enable production mode."),u}},{key:"tick",value:function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;var n,r=t(this._views);try{for(r.s();!(n=r.n()).done;)n.value.detectChanges()}catch(o){r.e(o)}finally{r.f()}if(this._enforceNoNewChanges){var i,u=t(this._views);try{for(u.s();!(i=u.n()).done;)i.value.checkNoChanges()}catch(o){u.e(o)}finally{u.f()}}}catch(a){this._zone.runOutsideAngular((function(){return e._exceptionHandler.handleError(a)}))}finally{this._runningTick=!1}}},{key:"attachView",value:function(e){var n=e;this._views.push(n),n.attachToAppRef(this)}},{key:"detachView",value:function(e){var n=e;da(this._views,n),n.detachFromAppRef()}},{key:"_loadComponent",value:function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(No,[]).concat(this._bootstrapListeners).forEach((function(n){return n(e)}))}},{key:"_unloadComponent",value:function(e){this.detachView(e.hostView),da(this.components,e)}},{key:"ngOnDestroy",value:function(){this._views.slice().forEach((function(e){return e.destroy()}))}},{key:"viewCount",get:function(){return this._views.length}}]),e}()).\u0275fac=function(e){return new(e||fa)(Ye(Qo),Ye(Ro),Ye(lu),Ye($t),Ye(zu),Ye(xo))},fa.\u0275prov=de({token:fa,factory:fa.\u0275fac}),fa);function da(e,n){var t=e.indexOf(n);t>-1&&e.splice(t,1)}var va=aa(null,"core",[{provide:Oo,useValue:"unknown"},{provide:la,deps:[lu]},{provide:ia,deps:[]},{provide:Ro,deps:[]}]),pa=[{provide:ha,useClass:ha,deps:[Qo,Ro,lu,$t,zu,xo]},{provide:mo,deps:[Qo],useFactory:function(e){var n=[];return e.onStable.subscribe((function(){for(;n.length;)n.pop()()})),function(e){n.push(e)}}},{provide:xo,useClass:xo,deps:[[new se,Fo]]},{provide:Wo,useClass:Wo,deps:[]},Io,{provide:uo,useFactory:function(){return so},deps:[]},{provide:oo,useFactory:function(){return lo},deps:[]},{provide:jo,useFactory:function(e){return Mu(e=e||"undefined"!=typeof $localize&&$localize.locale||"en-US"),e},deps:[[new ae(jo),new se,new ce]]},{provide:Po,useValue:"USD"}],ya=function(){var e=function e(n){v(this,e)};return e.\u0275mod=pn({type:e}),e.\u0275inj=ve({factory:function(n){return new(n||e)(Ye(ha))},providers:pa}),e}(),ga=null;function ma(){return ga}var _a,Da,wa=new Le("DocumentToken"),ba=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}({}),ka=function e(){v(this,e)},Ca=((Da=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this)).locale=e,r}return y(t,[{key:"getPluralCategory",value:function(e,n){switch(function(e){return function(e){var n=function(e){return e.toLowerCase().replace(/_/g,"-")}(e),t=Pu(n);if(t)return t;var r=n.split("-")[0];if(t=Pu(r))return t;if("en"===r)return Ru;throw new Error('Missing locale data for the locale "'.concat(e,'".'))}(e)[Hu.PluralCase]}(n||this.locale)(e)){case ba.Zero:return"zero";case ba.One:return"one";case ba.Two:return"two";case ba.Few:return"few";case ba.Many:return"many";default:return"other"}}}]),t}(ka)).\u0275fac=function(e){return new(e||Da)(Ye(jo))},Da.\u0275prov=de({token:Da,factory:Da.\u0275fac}),Da),Ea=((_a=function(){function e(n,t){v(this,e),this._viewContainer=n,this._context=new Aa,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=t}return y(e,[{key:"_updateView",value:function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))}},{key:"ngIf",set:function(e){this._context.$implicit=this._context.ngIf=e,this._updateView()}},{key:"ngIfThen",set:function(e){Fa("ngIfThen",e),this._thenTemplateRef=e,this._thenViewRef=null,this._updateView()}},{key:"ngIfElse",set:function(e){Fa("ngIfElse",e),this._elseTemplateRef=e,this._elseViewRef=null,this._updateView()}}],[{key:"ngTemplateContextGuard",value:function(e,n){return!0}}]),e}()).\u0275fac=function(e){return new(e||_a)(_u(ho),_u(co))},_a.\u0275dir=gn({type:_a,selectors:[["","ngIf",""]],inputs:{ngIf:"ngIf",ngIfThen:"ngIfThen",ngIfElse:"ngIfElse"}}),_a),Aa=function e(){v(this,e),this.$implicit=null,this.ngIf=null};function Fa(e,n){if(n&&!n.createEmbeddedView)throw new Error("".concat(e," must be a TemplateRef, but received '").concat(ke(n),"'."))}var xa,Ta,Ia,Sa,Ba,Oa,Na=/(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312E\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEA\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D])\S*/g,Ra=((Ta=function(){function e(){v(this,e)}return y(e,[{key:"transform",value:function(n){if(!n)return n;if("string"!=typeof n)throw function(e,n){return Error("InvalidPipeArgument: '".concat(n,"' for pipe '").concat(ke(e),"'"))}(e,n);return n.replace(Na,(function(e){return e[0].toUpperCase()+e.substr(1).toLowerCase()}))}}]),e}()).\u0275fac=function(e){return new(e||Ta)},Ta.\u0275pipe=mn({name:"titlecase",type:Ta,pure:!0}),Ta),ja=((xa=function e(){v(this,e)}).\u0275mod=pn({type:xa}),xa.\u0275inj=ve({factory:function(e){return new(e||xa)},providers:[{provide:ka,useClass:Ca}]}),xa),Pa=function(n){a(i,n);var r=l(i);function i(){return v(this,i),r.apply(this,arguments)}return y(i,[{key:"getProperty",value:function(e,n){return e[n]}},{key:"log",value:function(e){window.console&&window.console.log&&window.console.log(e)}},{key:"logGroup",value:function(e){window.console&&window.console.group&&window.console.group(e)}},{key:"logGroupEnd",value:function(){window.console&&window.console.groupEnd&&window.console.groupEnd()}},{key:"onAndCancel",value:function(e,n,t){return e.addEventListener(n,t,!1),function(){e.removeEventListener(n,t,!1)}}},{key:"dispatchEvent",value:function(e,n){e.dispatchEvent(n)}},{key:"remove",value:function(e){return e.parentNode&&e.parentNode.removeChild(e),e}},{key:"getValue",value:function(e){return e.value}},{key:"createElement",value:function(e,n){return(n=n||this.getDefaultDocument()).createElement(e)}},{key:"createHtmlDocument",value:function(){return document.implementation.createHTMLDocument("fakeTitle")}},{key:"getDefaultDocument",value:function(){return document}},{key:"isElementNode",value:function(e){return e.nodeType===Node.ELEMENT_NODE}},{key:"isShadowRoot",value:function(e){return e instanceof DocumentFragment}},{key:"getGlobalEventTarget",value:function(e,n){return"window"===n?window:"document"===n?e:"body"===n?e.body:null}},{key:"getHistory",value:function(){return window.history}},{key:"getLocation",value:function(){return window.location}},{key:"getBaseHref",value:function(e){var n,t=Ha||(Ha=document.querySelector("base"))?Ha.getAttribute("href"):null;return null==t?null:(n=t,Ia||(Ia=document.createElement("a")),Ia.setAttribute("href",n),"/"===Ia.pathname.charAt(0)?Ia.pathname:"/"+Ia.pathname)}},{key:"resetBaseElement",value:function(){Ha=null}},{key:"getUserAgent",value:function(){return window.navigator.userAgent}},{key:"performanceNow",value:function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()}},{key:"supportsCookies",value:function(){return!0}},{key:"getCookie",value:function(n){return function(n,r){r=encodeURIComponent(r);var i,u=t(n.split(";"));try{for(u.s();!(i=u.n()).done;){var o=i.value,a=o.indexOf("="),s=e(-1==a?[o,""]:[o.slice(0,a),o.slice(a+1)],2),l=s[0],c=s[1];if(l.trim()===r)return decodeURIComponent(c)}}catch(f){u.e(f)}finally{u.f()}return null}(document.cookie,n)}}],[{key:"makeCurrent",value:function(){var e;e=new i,ga||(ga=e)}}]),i}(function(e){a(t,e);var n=l(t);function t(){return v(this,t),n.call(this)}return y(t,[{key:"supportsDOMEvents",value:function(){return!0}}]),t}(function(){return function e(){v(this,e)}}())),Ha=null,Ma=new Le("TRANSITION_ID"),Va=[{provide:Fo,useFactory:function(e,n,t){return function(){t.get(xo).donePromise.then((function(){var t=ma();Array.prototype.slice.apply(n.querySelectorAll("style[ng-transition]")).filter((function(n){return n.getAttribute("ng-transition")===e})).forEach((function(e){return t.remove(e)}))}))}},deps:[Ma,wa,lu],multi:!0}],La=function(){function e(){v(this,e)}return y(e,[{key:"addToWindow",value:function(e){Oe.getAngularTestability=function(n){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=e.findTestabilityInTree(n,t);if(null==r)throw new Error("Could not find testability for element.");return r},Oe.getAllAngularTestabilities=function(){return e.getAllTestabilities()},Oe.getAllAngularRootElements=function(){return e.getAllRootElements()},Oe.frameworkStabilizers||(Oe.frameworkStabilizers=[]),Oe.frameworkStabilizers.push((function(e){var n=Oe.getAllAngularTestabilities(),t=n.length,r=!1,i=function(n){r=r||n,0==--t&&e(r)};n.forEach((function(e){e.whenStable(i)}))}))}},{key:"findTestabilityInTree",value:function(e,n,t){if(null==n)return null;var r=e.getTestability(n);return null!=r?r:t?ma().isShadowRoot(n)?this.findTestabilityInTree(e,n.host,!0):this.findTestabilityInTree(e,n.parentElement,!0):null}}],[{key:"init",value:function(){var n;n=new e,ua=n}}]),e}(),za=new Le("EventManagerPlugins"),Za=((Sa=function(){function e(n,t){var r=this;v(this,e),this._zone=t,this._eventNameToPlugin=new Map,n.forEach((function(e){return e.manager=r})),this._plugins=n.slice().reverse()}return y(e,[{key:"addEventListener",value:function(e,n,t){return this._findPluginFor(n).addEventListener(e,n,t)}},{key:"addGlobalEventListener",value:function(e,n,t){return this._findPluginFor(n).addGlobalEventListener(e,n,t)}},{key:"getZone",value:function(){return this._zone}},{key:"_findPluginFor",value:function(e){var n=this._eventNameToPlugin.get(e);if(n)return n;for(var t=this._plugins,r=0;r<t.length;r++){var i=t[r];if(i.supports(e))return this._eventNameToPlugin.set(e,i),i}throw new Error("No event manager plugin found for event "+e)}}]),e}()).\u0275fac=function(e){return new(e||Sa)(Ye(za),Ye(Qo))},Sa.\u0275prov=de({token:Sa,factory:Sa.\u0275fac}),Sa),Ua=function(){function e(n){v(this,e),this._doc=n}return y(e,[{key:"addGlobalEventListener",value:function(e,n,t){var r=ma().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target ".concat(r," for event ").concat(n));return this.addEventListener(r,n,t)}}]),e}(),Wa=((Oa=function(){function e(){v(this,e),this._stylesSet=new Set}return y(e,[{key:"addStyles",value:function(e){var n=this,t=new Set;e.forEach((function(e){n._stylesSet.has(e)||(n._stylesSet.add(e),t.add(e))})),this.onStylesAdded(t)}},{key:"onStylesAdded",value:function(e){}},{key:"getAllStyles",value:function(){return Array.from(this._stylesSet)}}]),e}()).\u0275fac=function(e){return new(e||Oa)},Oa.\u0275prov=de({token:Oa,factory:Oa.\u0275fac}),Oa),qa=((Ba=function(e){a(t,e);var n=l(t);function t(e){var r;return v(this,t),(r=n.call(this))._doc=e,r._hostNodes=new Set,r._styleNodes=new Set,r._hostNodes.add(e.head),r}return y(t,[{key:"_addStylesToHost",value:function(e,n){var t=this;e.forEach((function(e){var r=t._doc.createElement("style");r.textContent=e,t._styleNodes.add(n.appendChild(r))}))}},{key:"addHost",value:function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)}},{key:"removeHost",value:function(e){this._hostNodes.delete(e)}},{key:"onStylesAdded",value:function(e){var n=this;this._hostNodes.forEach((function(t){return n._addStylesToHost(e,t)}))}},{key:"ngOnDestroy",value:function(){this._styleNodes.forEach((function(e){return ma().remove(e)}))}}]),t}(Wa)).\u0275fac=function(e){return new(e||Ba)(Ye(wa))},Ba.\u0275prov=de({token:Ba,factory:Ba.\u0275fac}),Ba),Ga={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/"},Qa=/%COMP%/g;function Ja(e,n,t){for(var r=0;r<n.length;r++){var i=n[r];Array.isArray(i)?Ja(e,i,t):(i=i.replace(Qa,e),t.push(i))}return t}function Ya(e){return function(n){if("__ngUnwrap__"===n)return e;!1===e(n)&&(n.preventDefault(),n.returnValue=!1)}}var Ka,$a,Xa,es,ns=((Ka=function(){function e(n,t,r){v(this,e),this.eventManager=n,this.sharedStylesHost=t,this.appId=r,this.rendererByCompId=new Map,this.defaultRenderer=new ts(n)}return y(e,[{key:"createRenderer",value:function(e,n){if(!e||!n)return this.defaultRenderer;switch(n.encapsulation){case an.Emulated:var t=this.rendererByCompId.get(n.id);return t||(t=new rs(this.eventManager,this.sharedStylesHost,n,this.appId),this.rendererByCompId.set(n.id,t)),t.applyToHost(e),t;case an.Native:case an.ShadowDom:return new is(this.eventManager,this.sharedStylesHost,e,n);default:if(!this.rendererByCompId.has(n.id)){var r=Ja(n.id,n.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}}},{key:"begin",value:function(){}},{key:"end",value:function(){}}]),e}()).\u0275fac=function(e){return new(e||Ka)(Ye(Za),Ye(qa),Ye(To))},Ka.\u0275prov=de({token:Ka,factory:Ka.\u0275fac}),Ka),ts=function(){function e(n){v(this,e),this.eventManager=n,this.data=Object.create(null)}return y(e,[{key:"destroy",value:function(){}},{key:"createElement",value:function(e,n){return n?document.createElementNS(Ga[n]||n,e):document.createElement(e)}},{key:"createComment",value:function(e){return document.createComment(e)}},{key:"createText",value:function(e){return document.createTextNode(e)}},{key:"appendChild",value:function(e,n){e.appendChild(n)}},{key:"insertBefore",value:function(e,n,t){e&&e.insertBefore(n,t)}},{key:"removeChild",value:function(e,n){e&&e.removeChild(n)}},{key:"selectRootElement",value:function(e,n){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'.concat(e,'" did not match any elements'));return n||(t.textContent=""),t}},{key:"parentNode",value:function(e){return e.parentNode}},{key:"nextSibling",value:function(e){return e.nextSibling}},{key:"setAttribute",value:function(e,n,t,r){if(r){n=r+":"+n;var i=Ga[r];i?e.setAttributeNS(i,n,t):e.setAttribute(n,t)}else e.setAttribute(n,t)}},{key:"removeAttribute",value:function(e,n,t){if(t){var r=Ga[t];r?e.removeAttributeNS(r,n):e.removeAttribute("".concat(t,":").concat(n))}else e.removeAttribute(n)}},{key:"addClass",value:function(e,n){e.classList.add(n)}},{key:"removeClass",value:function(e,n){e.classList.remove(n)}},{key:"setStyle",value:function(e,n,t,r){r&qu.DashCase?e.style.setProperty(n,t,r&qu.Important?"important":""):e.style[n]=t}},{key:"removeStyle",value:function(e,n,t){t&qu.DashCase?e.style.removeProperty(n):e.style[n]=""}},{key:"setProperty",value:function(e,n,t){e[n]=t}},{key:"setValue",value:function(e,n){e.nodeValue=n}},{key:"listen",value:function(e,n,t){return"string"==typeof e?this.eventManager.addGlobalEventListener(e,n,Ya(t)):this.eventManager.addEventListener(e,n,Ya(t))}}]),e}(),rs=function(e){a(t,e);var n=l(t);function t(e,r,i,u){var o;v(this,t),(o=n.call(this,e)).component=i;var a=Ja(u+"-"+i.id,i.styles,[]);return r.addStyles(a),o.contentAttr="_ngcontent-%COMP%".replace(Qa,u+"-"+i.id),o.hostAttr="_nghost-%COMP%".replace(Qa,u+"-"+i.id),o}return y(t,[{key:"applyToHost",value:function(e){o(d(t.prototype),"setAttribute",this).call(this,e,this.hostAttr,"")}},{key:"createElement",value:function(e,n){var r=o(d(t.prototype),"createElement",this).call(this,e,n);return o(d(t.prototype),"setAttribute",this).call(this,r,this.contentAttr,""),r}}]),t}(ts),is=function(e){a(t,e);var n=l(t);function t(e,r,i,u){var o;v(this,t),(o=n.call(this,e)).sharedStylesHost=r,o.hostEl=i,o.component=u,o.shadowRoot=u.encapsulation===an.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var a=Ja(u.id,u.styles,[]),s=0;s<a.length;s++){var l=document.createElement("style");l.textContent=a[s],o.shadowRoot.appendChild(l)}return o}return y(t,[{key:"nodeOrShadowRoot",value:function(e){return e===this.hostEl?this.shadowRoot:e}},{key:"destroy",value:function(){this.sharedStylesHost.removeHost(this.shadowRoot)}},{key:"appendChild",value:function(e,n){return o(d(t.prototype),"appendChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"insertBefore",value:function(e,n,r){return o(d(t.prototype),"insertBefore",this).call(this,this.nodeOrShadowRoot(e),n,r)}},{key:"removeChild",value:function(e,n){return o(d(t.prototype),"removeChild",this).call(this,this.nodeOrShadowRoot(e),n)}},{key:"parentNode",value:function(e){return this.nodeOrShadowRoot(o(d(t.prototype),"parentNode",this).call(this,this.nodeOrShadowRoot(e)))}}]),t}(ts),us=(($a=function(e){a(t,e);var n=l(t);function t(e){return v(this,t),n.call(this,e)}return y(t,[{key:"supports",value:function(e){return!0}},{key:"addEventListener",value:function(e,n,t){var r=this;return e.addEventListener(n,t,!1),function(){return r.removeEventListener(e,n,t)}}},{key:"removeEventListener",value:function(e,n,t){return e.removeEventListener(n,t)}}]),t}(Ua)).\u0275fac=function(e){return new(e||$a)(Ye(wa))},$a.\u0275prov=de({token:$a,factory:$a.\u0275fac}),$a),os=["alt","control","meta","shift"],as={"\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"},ss={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"},ls={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},cs=((Xa=function(e){a(t,e);var n=l(t);function t(e){return v(this,t),n.call(this,e)}return y(t,[{key:"supports",value:function(e){return null!=t.parseEventName(e)}},{key:"addEventListener",value:function(e,n,r){var i=t.parseEventName(n),u=t.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular((function(){return ma().onAndCancel(e,i.domEventName,u)}))}}],[{key:"parseEventName",value:function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=t._normalizeKey(n.pop()),u="";if(os.forEach((function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),u+=e+".")})),u+=i,0!=n.length||0===i.length)return null;var o={};return o.domEventName=r,o.fullKey=u,o}},{key:"getEventFullKey",value:function(e){var n="",t=function(e){var n=e.key;if(null==n){if(null==(n=e.keyIdentifier))return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===e.location&&ss.hasOwnProperty(n)&&(n=ss[n]))}return as[n]||n}(e);return" "===(t=t.toLowerCase())?t="space":"."===t&&(t="dot"),os.forEach((function(r){r!=t&&(0,ls[r])(e)&&(n+=r+".")})),n+=t}},{key:"eventCallback",value:function(e,n,r){return function(i){t.getEventFullKey(i)===e&&r.runGuarded((function(){return n(i)}))}}},{key:"_normalizeKey",value:function(e){switch(e){case"esc":return"escape";default:return e}}}]),t}(Ua)).\u0275fac=function(e){return new(e||Xa)(Ye(wa))},Xa.\u0275prov=de({token:Xa,factory:Xa.\u0275fac}),Xa),fs=aa(va,"browser",[{provide:Oo,useValue:"browser"},{provide:Bo,useValue:function(){Pa.makeCurrent(),La.init()},multi:!0},{provide:wa,useFactory:function(){return function(e){Hn=e}(document),document},deps:[]}]),hs=[[],{provide:Yi,useValue:"root"},{provide:$t,useFactory:function(){return new $t},deps:[]},{provide:za,useClass:us,multi:!0,deps:[wa,Qo,Oo]},{provide:za,useClass:cs,multi:!0,deps:[wa]},[],{provide:ns,useClass:ns,deps:[Za,qa,To]},{provide:Wu,useExisting:ns},{provide:Wa,useExisting:qa},{provide:qa,useClass:qa,deps:[wa]},{provide:ra,useClass:ra,deps:[Qo]},{provide:Za,useClass:Za,deps:[za,Qo]},[]],ds=((es=function(){function e(n){if(v(this,e),n)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return y(e,null,[{key:"withServerTransition",value:function(n){return{ngModule:e,providers:[{provide:To,useValue:n.appId},{provide:Ma,useExisting:To},Va]}}}]),e}()).\u0275mod=pn({type:es}),es.\u0275inj=ve({factory:function(e){return new(e||es)(Ye(es,12))},providers:hs,imports:[ja,ya]}),es);function vs(e,n,t,r){return new(t||(t=Promise))((function(i,u){function o(e){try{s(r.next(e))}catch(n){u(n)}}function a(e){try{s(r.throw(e))}catch(n){u(n)}}function s(e){var n;e.done?i(e.value):(n=e.value,n instanceof t?n:new t((function(e){e(n)}))).then(o,a)}s((r=r.apply(e,n||[])).next())}))}"undefined"!=typeof window&&window,s("jim7");var ps,ys,gs,ms=new Le("JWT_OPTIONS"),_s=((gs=function(){function e(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null;v(this,e),this.tokenGetter=n&&n.tokenGetter||function(){}}return y(e,[{key:"urlBase64Decode",value:function(e){var n=e.replace(/-/g,"+").replace(/_/g,"/");switch(n.length%4){case 0:break;case 2:n+="==";break;case 3:n+="=";break;default:throw new Error("Illegal base64url string!")}return this.b64DecodeUnicode(n)}},{key:"b64decode",value:function(e){var n="";if((e=String(e).replace(/=+$/,"")).length%4==1)throw new Error("'atob' failed: The string to be decoded is not correctly encoded.");for(var t,r,i=0,u=0;r=e.charAt(u++);~r&&(t=i%4?64*t+r:r,i++%4)?n+=String.fromCharCode(255&t>>(-2*i&6)):0)r="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".indexOf(r);return n}},{key:"b64DecodeUnicode",value:function(e){return decodeURIComponent(Array.prototype.map.call(this.b64decode(e),(function(e){return"%"+("00"+e.charCodeAt(0).toString(16)).slice(-2)})).join(""))}},{key:"decodeToken",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter();if(!e||""===e)return null;var n=e.split(".");if(3!==n.length)throw new Error("The inspected token doesn't appear to be a JWT. Check to make sure it has three parts and see https://jwt.io for more.");var t=this.urlBase64Decode(n[1]);if(!t)throw new Error("Cannot decode the token.");return JSON.parse(t)}},{key:"getTokenExpirationDate",value:function(){var e,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter();if(!(e=this.decodeToken(n))||!e.hasOwnProperty("exp"))return null;var t=new Date(0);return t.setUTCSeconds(e.exp),t}},{key:"isTokenExpired",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.tokenGetter(),n=arguments.length>1?arguments[1]:void 0;if(!e||""===e)return!0;var t=this.getTokenExpirationDate(e);return n=n||0,null!==t&&!(t.valueOf()>(new Date).valueOf()+1e3*n)}},{key:"getAuthScheme",value:function(e,n){return"function"==typeof e?e(n):e}}]),e}()).\u0275fac=function(e){return new(e||gs)(Ye(ms))},gs.\u0275prov=de({token:gs,factory:gs.\u0275fac}),gs),Ds=((ys=function e(){var n=this;v(this,e),this.ready=!1,window.homebridge.i18nGetTranslation().then((function(e){n.translations=e,n.ready=!0}))}).\u0275prov=de({token:ys,factory:ys.\u0275fac=function(e){return new(e||ys)},providedIn:"root"}),ys),ws=((ps=function(){function e(n){v(this,e),this.translateService=n}return y(e,[{key:"transform",value:function(e){return this.translateService.translations[e]}}]),e}()).\u0275fac=function(e){return new(e||ps)(_u(Ds))},ps.\u0275pipe=mn({name:"translate",type:ps,pure:!0}),ps);function bs(e,n){1&e&&(bu(0,"div"),bu(1,"div",1),Cu(2,"p",2),Co(3,"translate"),bu(4,"p",3),bu(5,"span"),Iu(6),Co(7,"translate"),ku(),bu(8,"a",4),Iu(9," https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control "),ku(),bu(10,"span"),Iu(11),Co(12,"translate"),ku(),ku(),ku(),ku()),2&e&&(Zr(2),Du("innerHTML",Eo(3,3,"accessories.message_must_use_insecure_mode"),Ar),Zr(4),Su(Eo(7,5,"accessories.message_please_see")),Zr(5),Su(Eo(12,7,"accessories.message_for_more_information")))}function ks(e,n){1&e&&Cu(0,"p",9)}function Cs(e,n){if(1&e){var t=Xn();bu(0,"div",10),bu(1,"button",11),Au("click",(function(){return Kn.lFrame.contextLView=t,Tu(3).linkAccount()})),Iu(2),Co(3,"translate"),ku(),ku()}2&e&&(Zr(2),Bu(" ",Eo(3,1,"plugins.settings.custom.homebridge-gsh.label_link_account")," "))}function Es(e,n){1&e&&(bu(0,"div",15),bu(1,"p",16),bu(2,"strong"),Iu(3),Co(4,"translate"),ku(),ku(),ku()),2&e&&(Zr(3),Bu(" ",Eo(4,1,"plugins.settings.custom.homebridge-gsh.message_homebridge_restart_required")," "))}function As(e,n){if(1&e&&(bu(0,"div",12),Cu(1,"i",13),bu(2,"h4",14),Iu(3),Co(4,"titlecase"),Co(5,"translate"),ku(),mu(6,Es,5,3,"div",8),ku()),2&e){var t=Tu(3);Zr(3),Ou(" ",Eo(4,3,t.linkType)," ",Eo(5,5,"plugins.settings.custom.homebridge-gsh.label_account_linked")," "),Zr(3),Du("ngIf",t.justLinked)}}function Fs(e,n){1&e&&(bu(0,"div",15),Iu(1," Search for "),bu(2,"a",17),Iu(3," Homebridge in the Google Home app "),ku(),Iu(4," and link the action to complete setup. "),ku())}function xs(e,n){if(1&e&&(bu(0,"div"),Cu(1,"p",2),Co(2,"translate"),mu(3,ks,1,0,"p",5),mu(4,Cs,4,3,"div",6),mu(5,As,7,7,"div",7),mu(6,Fs,5,0,"div",8),ku()),2&e){var t=Tu(2);Zr(1),Du("innerHTML",Eo(2,5,"plugins.settings.custom.homebridge-gsh.message_about"),Ar),Zr(2),Du("ngIf",!t.pluginConfig.token),Zr(1),Du("ngIf",!t.pluginConfig.token),Zr(1),Du("ngIf",t.pluginConfig.token),Zr(1),Du("ngIf",t.pluginConfig.token)}}function Ts(e,n){if(1&e&&(bu(0,"div"),mu(1,bs,13,9,"div",0),mu(2,xs,7,7,"div",0),ku()),2&e){var t=Tu();Zr(1),Du("ngIf",!t.env.enableAccessories),Zr(1),Du("ngIf",t.env.enableAccessories)}}var Is,Ss,Bs=new _s,Os=((Ss=function(){function e(n){var t=this;v(this,e),this.translateService=n,this.linkDomain="https://homebridge-gsh.iot.oz.nu",this.linkUrl=this.linkDomain+"/link-account",this.env=window.homebridge.serverEnv.env,this.justLinked=!1,this.showAdvanced=!1,this.ready=!1,this.windowMessageListener=function(e){if(e.origin===t.linkDomain)try{var n=JSON.parse(e.data);n.token&&t.processToken(n.token)}catch(e){console.error(e)}}}return y(e,[{key:"ngOnInit",value:function(){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){var n,t=this;return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,window.homebridge.getPluginConfigSchema();case 2:return this.schema=e.sent,e.next=5,window.homebridge.getPluginConfig();case 5:(n=e.sent).length?(this.pluginConfig=n[0],window.homebridge.showSchemaForm()):this.pluginConfig={name:"Google Smart Home",platform:this.schema.pluginAlias},this.parseToken(),this.ready=!0,window.homebridge.addEventListener("configChanged",(function(e){t.pluginConfig=e.data[0]}));case 7:case"end":return e.stop()}}),e,this)})))}},{key:"updateConfig",value:function(){return vs(this,void 0,void 0,regeneratorRuntime.mark((function e(){return regeneratorRuntime.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",window.homebridge.updatePluginConfig([this.pluginConfig]));case 1:case"end":return e.stop()}}),e,this)})))}},{key:"linkAccount",value:function(){var e=this;window.addEventListener("message",this.windowMessageListener,!1);var n=window.top.outerHeight/2+window.top.screenY-350,t=window.top.outerWidth/2+window.top.screenX-225;this.popup=window.open(this.linkUrl,"oznu-google-smart-home-auth","toolbar=no, location=no, directories=no, status=no, menubar=no scrollbars=no, resizable=no, copyhistory=no, width=450, height=700, top="+n+", left="+t),this.originCheckInterval=setInterval((function(){e.popup.postMessage("origin-check",e.linkDomain)}),2e3)}},{key:"processToken",value:function(e){return vs(this,void 0,void 0,regeneratorRuntime.mark((function n(){return regeneratorRuntime.wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return clearInterval(this.originCheckInterval),this.popup&&this.popup.close(),this.pluginConfig.token=e,this.pluginConfig.notice="Keep your token a secret!",this.parseToken(),this.justLinked=!0,n.next=8,this.updateConfig();case 8:return n.next=10,window.homebridge.savePluginConfig();case 10:window.homebridge.showSchemaForm();case 11:case"end":return n.stop()}}),n,this)})))}},{key:"parseToken",value:function(){if(this.pluginConfig.token)try{var e=Bs.decodeToken(this.pluginConfig.token);this.linkType=e.id.split("|")[0].split("-")[0]}catch(n){window.homebridge.toast.error("Invalid account linking token in config.json",this.translateService.translations["toast.title_error"]),delete this.pluginConfig.token}}},{key:"ngOnDestroy",value:function(){clearInterval(this.originCheckInterval),window.removeEventListener("message",this.windowMessageListener),this.popup&&this.popup.close()}}]),e}()).\u0275fac=function(e){return new(e||Ss)(_u(Ds))},Ss.\u0275cmp=fn({type:Ss,selectors:[["app-root"]],decls:1,vars:1,consts:[[4,"ngIf"],["role","alert",1,"alert","alert-warning"],[3,"innerHTML"],[1,"mb-0"],["target","_blank","rel","noopener noreferrer","href","https://github.com/oznu/homebridge-config-ui-x/wiki/Enabling-Accessory-Control"],["translate","plugins.settings.custom.homebridge-gsh.message_account_link_required",4,"ngIf"],["class","text-center",4,"ngIf"],["class","text-center mt-1",4,"ngIf"],["class","mt-3",4,"ngIf"],["translate","plugins.settings.custom.homebridge-gsh.message_account_link_required"],[1,"text-center"],[1,"btn","btn-primary","btn-lg",3,"click"],[1,"text-center","mt-1"],[1,"fas","fa-check-circle","primary-text",2,"font-size","50px"],[1,"mt-2"],[1,"mt-3"],[1,"primary-text"],["target","_blank","href","https://assistant.google.com/services/a/uid/000000b558f0d5d1?hl=en"]],template:function(e,n){1&e&&mu(0,Ts,3,2,"div",0),2&e&&Du("ngIf",n.translateService.ready&&n.ready)},directives:[Ea],pipes:[ws,Ra],styles:[""]}),Ss),Ns=((Is=function e(){v(this,e)}).\u0275mod=pn({type:Is,bootstrap:[Os]}),Is.\u0275inj=ve({factory:function(e){return new(e||Is)},providers:[],imports:[[ds]]}),Is);(function(){if(nr)throw new Error("Cannot enable prod mode after platform setup.");er=!1})(),fs().bootstrapModule(Ns).catch((function(e){return console.error(e)}))},zn8P:function(e,n){function t(e){return Promise.resolve().then((function(){var n=new Error("Cannot find module '"+e+"'");throw n.code="MODULE_NOT_FOUND",n}))}t.keys=function(){return[]},t.resolve=t,e.exports=t,t.id="zn8P"}},[[0,0]]])}();