webpackJsonp([1],{0:function(e,t,n){e.exports=n("cDNt")},"2kLc":function(e,t,n){"use strict";var r=n("AP4T"),o=n("6Xbx"),i=function(e){function t(t,n){e.call(this),this.value=t,this.scheduler=n,this._isScalar=!0,n&&(this._isScalar=!1)}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.dispatch=function(e){var t=e.value,n=e.subscriber;e.done?n.complete():(n.next(t),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.value,r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{done:!1,value:n,subscriber:e});e.next(n),e.closed||e.complete()},t}(r.a),s=function(e){function t(t){e.call(this),this.scheduler=t}return Object(o.b)(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(r.a);function a(e){return e&&"function"==typeof e.schedule}var u=function(e){function t(t,n){e.call(this),this.array=t,this.scheduler=n,n||1!==t.length||(this._isScalar=!0,this.value=t[0])}return Object(o.b)(t,e),t.create=function(e,n){return new t(e,n)},t.of=function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=e[e.length-1];a(r)?e.pop():r=null;var o=e.length;return o>1?new t(e,r):1===o?new i(e[0],r):new s(r)},t.dispatch=function(e){var t=e.array,n=e.index,r=e.subscriber;n>=e.count?r.complete():(r.next(t[n]),r.closed||(e.index=n+1,this.schedule(e)))},t.prototype._subscribe=function(e){var n=this.array,r=n.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:n,index:0,count:r,subscriber:e});for(var i=0;i<r&&!e.closed;i++)e.next(n[i]);e.complete()},t}(r.a),c=n("xIGM"),l=n("NGRF"),p=function(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var n=e.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=e.Map;if(r)for(var o=Object.getOwnPropertyNames(r.prototype),i=0;i<o.length;++i){var s=o[i];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}(c.a),f=n("E9/g"),h=function(e){function t(t,n,r){e.call(this),this.parent=t,this.outerValue=n,this.outerIndex=r,this.index=0}return Object(o.b)(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(f.a),d=n("mz3w"),y=function(e){function t(){e.apply(this,arguments)}return Object(o.b)(t,e),t.prototype.notifyNext=function(e,t,n,r,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(f.a),m=function(){function e(e,t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=n}return e.prototype.call=function(e,t){return t.subscribe(new v(e,this.project,this.resultSelector,this.concurrent))},e}(),v=function(e){function t(t,n,r,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=n,this.resultSelector=r,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return Object(o.b)(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,n=this.index++;try{t=this.project(e,n)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,n)},t.prototype._innerSub=function(e,t,n){this.add(function(e,t,n,o){var i,s=new h(e,n,o);if(s.closed)return null;if(t instanceof r.a)return t._isScalar?(s.next(t.value),s.complete(),null):(s.syncErrorThrowable=!0,t.subscribe(s));if((i=t)&&"number"==typeof i.length){for(var a=0,u=t.length;a<u&&!s.closed;a++)s.next(t[a]);s.closed||s.complete()}else{if(t&&"function"!=typeof t.subscribe&&"function"==typeof t.then)return t.then(function(e){s.closed||(s.next(e),s.complete())},function(e){return s.error(e)}).then(null,function(e){c.a.setTimeout(function(){throw e})}),s;if(t&&"function"==typeof t[p])for(var f=t[p]();;){var y=f.next();if(y.done){s.complete();break}if(s.next(y.value),s.closed)break}else if(t&&"function"==typeof t[d.a]){var m=t[d.a]();if("function"==typeof m.subscribe)return m.subscribe(new h(e,n,o));s.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var v=Object(l.a)(t)?"an invalid object":"'"+t+"'";s.error(new TypeError("You provided "+v+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable."))}}return null}(this,e,t,n))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,n,r,o){this.resultSelector?this._notifyResultSelector(e,t,n,r):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,n,r){var o;try{o=this.resultSelector(e,t,n,r)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(y);function g(e){return e}t.a=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var n=Number.POSITIVE_INFINITY,o=null,i=e[e.length-1];return a(i)?(o=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(n=e.pop())):"number"==typeof i&&(n=e.pop()),null===o&&1===e.length&&e[0]instanceof r.a?e[0]:function(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),function(e,t,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof t&&(n=t,t=null),r.lift(new m(e,t,n))}}(g,null,e)}(n)(new u(e,o))}},"6Xbx":function(e,t,n){"use strict";t.b=function(e,t){function n(){this.constructor=e}r(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},n.d(t,"a",function(){return o});var r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},o=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}},AP4T:function(e,t,n){"use strict";var r=n("xIGM"),o=n("E9/g"),i=n("V7AE"),s=n("grVA"),a=n("mz3w");n.d(t,"a",function(){return u});var u=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var n=new e;return n.source=this,n.operator=t,n},e.prototype.subscribe=function(e,t,n){var r=this.operator,a=function(e,t,n){if(e){if(e instanceof o.a)return e;if(e[i.a])return e[i.a]()}return e||t||n?new o.a(e,t,n):new o.a(s.a)}(e,t,n);if(r?r.call(a,this.source):a.add(this.source||!a.syncErrorThrowable?this._subscribe(a):this._trySubscribe(a)),a.syncErrorThrowable&&(a.syncErrorThrowable=!1,a.syncErrorThrown))throw a.syncErrorValue;return a},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var n=this;if(t||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?t=r.a.Rx.config.Promise:r.a.Promise&&(t=r.a.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,r){var o;o=n.subscribe(function(t){if(o)try{e(t)}catch(e){r(e),o.unsubscribe()}else e(t)},r,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[a.a]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:((n=e)?1===n.length?n[0]:function(e){return n.reduce(function(e,t){return t(e)},e)}:function(){})(this);var n},e.prototype.toPromise=function(e){var t=this;if(e||(r.a.Rx&&r.a.Rx.config&&r.a.Rx.config.Promise?e=r.a.Rx.config.Promise:r.a.Promise&&(e=r.a.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,n){var r;t.subscribe(function(e){return r=e},function(e){return n(e)},function(){return e(r)})})},e.create=function(t){return new e(t)},e}()},B1iP:function(e,t,n){"use strict";t.a=function(e){return"function"==typeof e}},"E9/g":function(e,t,n){"use strict";n.d(t,"a",function(){return u});var r=n("6Xbx"),o=n("B1iP"),i=n("qLnt"),s=n("grVA"),a=n("V7AE"),u=function(e){function t(t,n,r){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.a;break;case 1:if(!t){this.destination=s.a;break}if("object"==typeof t){if(l(t)){var o=t[a.a]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new c(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new c(this,t,n,r)}}return Object(r.b)(t,e),t.prototype[a.a]=function(){return this},t.create=function(e,n,r){var o=new t(e,n,r);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(i.a),c=function(e){function t(t,n,r,i){var a;e.call(this),this._parentSubscriber=t;var u=this;Object(o.a)(n)?a=n:n&&(a=n.next,r=n.error,i=n.complete,n!==s.a&&(u=Object.create(n),Object(o.a)(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=i}return Object(r.b)(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var n=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,n){try{t.call(this._context,n)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(u);function l(e){return e instanceof u||"syncErrorThrowable"in e&&e[a.a]}},LMZF:function(e,t,n){"use strict";(function(e){n.d(t,"e",function(){return Xe}),n.d(t,"H",function(){return Qe}),n.d(t,"J",function(){return Ue}),n.d(t,"G",function(){return Ze}),n.d(t,"r",function(){return Ke}),n.d(t,"a",function(){return oe}),n.d(t,"v",function(){return ae}),n.d(t,"u",function(){return ue}),n.d(t,"b",function(){return ne}),n.d(t,"c",function(){return re}),n.d(t,"I",function(){return lt}),n.d(t,"B",function(){return je}),n.d(t,"L",function(){return Ve}),n.d(t,"p",function(){return Dt}),n.d(t,"d",function(){return Ft}),n.d(t,"j",function(){return Oe}),n.d(t,"i",function(){return $}),n.d(t,"y",function(){return Lt}),n.d(t,"z",function(){return Vt}),n.d(t,"E",function(){return f}),n.d(t,"C",function(){return h}),n.d(t,"m",function(){return D}),n.d(t,"l",function(){return c}),n.d(t,"k",function(){return y}),n.d(t,"t",function(){return m}),n.d(t,"s",function(){return Ae}),n.d(t,"w",function(){return $e}),n.d(t,"x",function(){return et}),n.d(t,"f",function(){return fe}),n.d(t,"g",function(){return be}),n.d(t,"h",function(){return tt}),n.d(t,"q",function(){return Ce}),n.d(t,"A",function(){return rt}),n.d(t,"D",function(){return ot}),n.d(t,"n",function(){return kt}),n.d(t,"o",function(){return Ot}),n.d(t,"F",function(){return ht}),n.d(t,"K",function(){return It}),n.d(t,"W",function(){return yt}),n.d(t,"N",function(){return le}),n.d(t,"M",function(){return we}),n.d(t,"U",function(){return w}),n.d(t,"_5",function(){return k}),n.d(t,"X",function(){return te}),n.d(t,"Y",function(){return ee}),n.d(t,"O",function(){return Nn}),n.d(t,"P",function(){return Gn}),n.d(t,"Q",function(){return Zo}),n.d(t,"R",function(){return nn}),n.d(t,"S",function(){return vr}),n.d(t,"T",function(){return Pn}),n.d(t,"Z",function(){return Bn}),n.d(t,"_0",function(){return Ln}),n.d(t,"_4",function(){return Pr}),n.d(t,"_6",function(){return Fr}),n.d(t,"_7",function(){return Br}),n.d(t,"_1",function(){return Mt}),n.d(t,"_2",function(){return Rt}),n.d(t,"_3",function(){return jt}),n.d(t,"V",function(){return ie});var r=n("6Xbx"),o=n("AP4T"),i=n("2kLc"),s=n("URbD"),a=n("TO51"),u=n("qLnt"),c=function(){function e(e){this._desc=e,this.ngMetadataName="InjectionToken"}return e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(),l="__paramaters__";function p(e,t,n){var r=function(e){return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];if(e){var r=e.apply(void 0,t);for(var o in r)this[o]=r[o]}}}(t);function o(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];if(this instanceof o)return r.apply(this,e),this;var n,i=new((n=o).bind.apply(n,[void 0].concat(e)));return s.annotation=i,s;function s(e,t,n){for(var r=e.hasOwnProperty(l)?e[l]:Object.defineProperty(e,l,{value:[]})[l];r.length<=n;)r.push(null);return(r[n]=r[n]||[]).push(i),e}}return n&&(o.prototype=Object.create(n.prototype)),o.prototype.ngMetadataName=e,o.annotationCls=o,o}var f=function(){var e={Emulated:0,Native:1,None:2};return e[e.Emulated]="Emulated",e[e.Native]="Native",e[e.None]="None",e}(),h=function(e){this.full=e,this.major=e.split(".")[0],this.minor=e.split(".")[1],this.patch=e.split(".").slice(2).join(".")},d=new h("5.2.9"),y=p("Inject",function(e){return{token:e}}),m=p("Optional"),v=p("Self"),g=p("SkipSelf"),_="undefined"!=typeof window&&window,b="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,w=_||"undefined"!=typeof e&&e||b,E=Promise.resolve(0),C=null;function S(){if(!C){var e=w.Symbol;if(e&&e.iterator)C=e.iterator;else for(var t=Object.getOwnPropertyNames(Map.prototype),n=0;n<t.length;++n){var r=t[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(C=r)}}return C}function T(e){"undefined"==typeof Zone?E.then(function(){e&&e.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",e)}function x(e,t){return e===t||"number"==typeof e&&"number"==typeof t&&isNaN(e)&&isNaN(t)}function k(e){if("string"==typeof e)return e;if(e instanceof Array)return"["+e.map(k).join(", ")+"]";if(null==e)return""+e;if(e.overriddenName)return""+e.overriddenName;if(e.name)return""+e.name;var t=e.toString();if(null==t)return""+t;var n=t.indexOf("\n");return-1===n?t:t.substring(0,n)}function O(e){return e.__forward_ref__=O,e.toString=function(){return k(this())},e}function A(e){return"function"==typeof e&&e.hasOwnProperty("__forward_ref__")&&e.__forward_ref__===O?e():e}var N="__source",P=new Object,I=function(){function e(){}return e.prototype.get=function(e,t){if(void 0===t&&(t=P),t===P)throw new Error("NullInjectorError: No provider for "+k(e)+"!");return t},e}(),D=function(){function e(){}return e.create=function(e,t){return Array.isArray(e)?new q(e,t):new q(e.providers,e.parent,e.name||null)},e.THROW_IF_NOT_FOUND=P,e.NULL=new I,e}(),M=function(e){return e},R=[],j=M,F=function(){return Array.prototype.slice.call(arguments)},V={},L=function(e){for(var t in e)if(e[t]===V)return t;throw Error("!prop")}({provide:String,useValue:V}),B=D.NULL,H=/\n/gm,z="\u0275",q=function(){function e(e,t,n){void 0===t&&(t=B),void 0===n&&(n=null),this.parent=t,this.source=n;var r=this._records=new Map;r.set(D,{token:D,fn:M,deps:R,value:this,useNew:!1}),function e(t,n){if(n)if((n=A(n))instanceof Array)for(var r=0;r<n.length;r++)e(t,n[r]);else{if("function"==typeof n)throw K("Function/Class not supported",n);if(!n||"object"!=typeof n||!n.provide)throw K("Unexpected provider",n);var o=A(n.provide),i=function(e){var t=function(e){var t=R,n=e.deps;if(n&&n.length){t=[];for(var r=0;r<n.length;r++){var o=6;if((u=A(n[r]))instanceof Array)for(var i=0,s=u;i<s.length;i++){var a=s[i];a instanceof m||a==m?o|=1:a instanceof g||a==g?o&=-3:a instanceof v||a==v?o&=-5:u=a instanceof y?a.token:A(a)}t.push({token:u,options:o})}}else if(e.useExisting){var u;t=[{token:u=A(e.useExisting),options:6}]}else if(!(n||L in e))throw K("'deps' required",e);return t}(e),n=M,r=R,o=!1,i=A(e.provide);if(L in e)r=e.useValue;else if(e.useFactory)n=e.useFactory;else if(e.useExisting);else if(e.useClass)o=!0,n=A(e.useClass);else{if("function"!=typeof i)throw K("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",e);o=!0,n=i}return{deps:t,fn:n,useNew:o,value:r}}(n);if(!0===n.multi){var s=t.get(o);if(s){if(s.fn!==F)throw Q(o)}else t.set(o,s={token:n.provide,deps:[],useNew:!1,fn:F,value:R});s.deps.push({token:o=n,options:6})}var a=t.get(o);if(a&&a.fn==F)throw Q(o);t.set(o,i)}}(r,e)}return e.prototype.get=function(e,t){var n=this._records.get(e);try{return function e(t,n,r,o,i){try{return function(t,n,r,o,i){var s,a;if(n){if((s=n.value)==j)throw Error(z+"Circular dependency");if(s===R){n.value=j;var u=n.useNew,c=n.fn,l=n.deps,p=R;if(l.length){p=[];for(var f=0;f<l.length;f++){var h=l[f],d=h.options,y=2&d?r.get(h.token):void 0;p.push(e(h.token,y,r,y||4&d?o:B,1&d?null:D.THROW_IF_NOT_FOUND))}}n.value=s=u?new((a=c).bind.apply(a,[void 0].concat(p))):c.apply(void 0,p)}}else s=o.get(t,i);return s}(t,n,r,o,i)}catch(e){throw e instanceof Error||(e=new Error(e)),(e.ngTempTokenPath=e.ngTempTokenPath||[]).unshift(t),n&&n.value==j&&(n.value=R),e}}(e,n,this._records,this.parent,t)}catch(t){var r=t.ngTempTokenPath;throw e[N]&&r.unshift(e[N]),t.message=U("\n"+t.message,r,this.source),t.ngTokenPath=r,t.ngTempTokenPath=null,t}},e.prototype.toString=function(){var e=[];return this._records.forEach(function(t,n){return e.push(k(n))}),"StaticInjector["+e.join(", ")+"]"},e}();function Q(e){return K("Cannot mix multi providers and regular providers",e)}function U(e,t,n){void 0===n&&(n=null),e=e&&"\n"===e.charAt(0)&&e.charAt(1)==z?e.substr(2):e;var r=k(t);if(t instanceof Array)r=t.map(k).join(" -> ");else if("object"==typeof t){var o=[];for(var i in t)if(t.hasOwnProperty(i)){var s=t[i];o.push(i+":"+("string"==typeof s?JSON.stringify(s):k(s)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+e.replace(H,"\n  ")}function K(e,t){return new Error(U(e,t))}var Z="ngDebugContext",W="ngOriginalError",G="ngErrorLogger";function Y(e){return e[Z]}function X(e){return e[W]}function J(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];e.error.apply(e,t)}var $=function(){function e(){this._console=console}return e.prototype.handleError=function(e){var t=this._findOriginalError(e),n=this._findContext(e),r=function(e){return e[G]||J}(e);r(this._console,"ERROR",e),t&&r(this._console,"ORIGINAL ERROR",t),n&&r(this._console,"ERROR CONTEXT",n)},e.prototype._findContext=function(e){return e?Y(e)?Y(e):this._findContext(X(e)):null},e.prototype._findOriginalError=function(e){for(var t=X(e);t&&X(t);)t=X(t);return t},e}();function ee(e){return!!e&&"function"==typeof e.then}function te(e){return!!e&&"function"==typeof e.subscribe}Function;var ne=new c("Application Initializer"),re=function(){function e(e){var t=this;this.appInits=e,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(e,n){t.resolve=e,t.reject=n})}return e.prototype.runInitializers=function(){var e=this;if(!this.initialized){var t=[],n=function(){e.done=!0,e.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var o=this.appInits[r]();ee(o)&&t.push(o)}Promise.all(t).then(function(){n()}).catch(function(t){e.reject(t)}),0===t.length&&n(),this.initialized=!0}},e}(),oe=new c("AppId");function ie(){return""+se()+se()+se()}function se(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var ae=new c("Platform Initializer"),ue=new c("Platform ID"),ce=new c("appBootstrapListener"),le=function(){function e(){}return e.prototype.log=function(e){console.log(e)},e.prototype.warn=function(e){console.warn(e)},e.ctorParameters=function(){return[]},e}();function pe(){throw new Error("Runtime compiler is not loaded")}var fe=function(){function e(){}return e.prototype.compileModuleSync=function(e){throw pe()},e.prototype.compileModuleAsync=function(e){throw pe()},e.prototype.compileModuleAndAllComponentsSync=function(e){throw pe()},e.prototype.compileModuleAndAllComponentsAsync=function(e){throw pe()},e.prototype.clearCache=function(){},e.prototype.clearCacheFor=function(e){},e}(),he=function(){},de=function(){};function ye(e){var t=Error("No component factory found for "+k(e)+". Did you add it to @NgModule.entryComponents?");return t[ge]=e,t}var me,ve,ge="ngComponent",_e=function(){function e(){}return e.prototype.resolveComponentFactory=function(e){throw ye(e)},e}(),be=function(){function e(){}return e.NULL=new _e,e}(),we=function(){function e(e,t,n){this._parent=t,this._ngModule=n,this._factories=new Map;for(var r=0;r<e.length;r++){var o=e[r];this._factories.set(o.componentType,o)}}return e.prototype.resolveComponentFactory=function(e){var t=this._factories.get(e);if(!t&&this._parent&&(t=this._parent.resolveComponentFactory(e)),!t)throw ye(e);return new Ee(t,this._ngModule)},e}(),Ee=function(e){function t(t,n){var r=e.call(this)||this;return r.factory=t,r.ngModule=n,r.selector=t.selector,r.componentType=t.componentType,r.ngContentSelectors=t.ngContentSelectors,r.inputs=t.inputs,r.outputs=t.outputs,r}return Object(r.b)(t,e),t.prototype.create=function(e,t,n,r){return this.factory.create(e,t,n,r||this.ngModule)},t}(de),Ce=function(){},Se=function(){var e=w.wtf;return!(!e||!(me=e.trace)||(ve=me.events,0))}();function Te(e,t){return null}var xe=Se?function(e,t){return void 0===t&&(t=null),ve.createScope(e,t)}:function(e,t){return Te},ke=Se?function(e,t){return me.leaveScope(e,t),t}:function(e,t){return t},Oe=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this)||this;return n.__isAsync=t,n}return Object(r.b)(t,e),t.prototype.emit=function(t){e.prototype.next.call(this,t)},t.prototype.subscribe=function(t,n,r){var o,i=function(e){return null},s=function(){return null};t&&"object"==typeof t?(o=this.__isAsync?function(e){setTimeout(function(){return t.next(e)})}:function(e){t.next(e)},t.error&&(i=this.__isAsync?function(e){setTimeout(function(){return t.error(e)})}:function(e){t.error(e)}),t.complete&&(s=this.__isAsync?function(){setTimeout(function(){return t.complete()})}:function(){t.complete()})):(o=this.__isAsync?function(e){setTimeout(function(){return t(e)})}:function(e){t(e)},n&&(i=this.__isAsync?function(e){setTimeout(function(){return n(e)})}:function(e){n(e)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var a=e.prototype.subscribe.call(this,o,i,s);return t instanceof u.a&&t.add(a),a},t}(a.a),Ae=function(){function e(e){var t,n=e.enableLongStackTrace,r=void 0!==n&&n;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oe(!1),this.onMicrotaskEmpty=new Oe(!1),this.onStable=new Oe(!1),this.onError=new Oe(!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)),r&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(t=this)._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,o,i,s){try{return De(t),e.invokeTask(r,o,i,s)}finally{Me(t)}},onInvoke:function(e,n,r,o,i,s,a){try{return De(t),e.invoke(r,o,i,s,a)}finally{Me(t)}},onHasTask:function(e,n,r,o){e.hasTask(r,o),n===r&&("microTask"==o.change?(t.hasPendingMicrotasks=o.microTask,Ie(t)):"macroTask"==o.change&&(t.hasPendingMacrotasks=o.macroTask))},onHandleError:function(e,n,r,o){return e.handleError(r,o),t.runOutsideAngular(function(){return t.onError.emit(o)}),!1}})}return e.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},e.assertInAngularZone=function(){if(!e.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},e.assertNotInAngularZone=function(){if(e.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},e.prototype.run=function(e,t,n){return this._inner.run(e,t,n)},e.prototype.runTask=function(e,t,n,r){var o=this._inner,i=o.scheduleEventTask("NgZoneEvent: "+r,e,Pe,Ne,Ne);try{return o.runTask(i,t,n)}finally{o.cancelTask(i)}},e.prototype.runGuarded=function(e,t,n){return this._inner.runGuarded(e,t,n)},e.prototype.runOutsideAngular=function(e){return this._outer.run(e)},e}();function Ne(){}var Pe={};function Ie(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 De(e){e._nesting++,e.isStable&&(e.isStable=!1,e.onUnstable.emit(null))}function Me(e){e._nesting--,Ie(e)}var Re=function(){function e(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Oe,this.onMicrotaskEmpty=new Oe,this.onStable=new Oe,this.onError=new Oe}return e.prototype.run=function(e){return e()},e.prototype.runGuarded=function(e){return e()},e.prototype.runOutsideAngular=function(e){return e()},e.prototype.runTask=function(e){return e()},e}(),je=function(){function e(e){this._ngZone=e,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return e.prototype._watchAngularEvents=function(){var e=this;this._ngZone.onUnstable.subscribe({next:function(){e._didWork=!0,e._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){e._ngZone.onStable.subscribe({next:function(){Ae.assertNotInAngularZone(),T(function(){e._isZoneStable=!0,e._runCallbacksIfReady()})}})})},e.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},e.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},e.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},e.prototype._runCallbacksIfReady=function(){var e=this;this.isStable()?T(function(){for(;0!==e._callbacks.length;)e._callbacks.pop()(e._didWork);e._didWork=!1}):this._didWork=!0},e.prototype.whenStable=function(e){this._callbacks.push(e),this._runCallbacksIfReady()},e.prototype.getPendingRequestCount=function(){return this._pendingCount},e.prototype.findProviders=function(e,t,n){return[]},e}(),Fe=function(){function e(){this._applications=new Map,Be.addToWindow(this)}return e.prototype.registerApplication=function(e,t){this._applications.set(e,t)},e.prototype.unregisterApplication=function(e){this._applications.delete(e)},e.prototype.unregisterAllApplications=function(){this._applications.clear()},e.prototype.getTestability=function(e){return this._applications.get(e)||null},e.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},e.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},e.prototype.findTestabilityInTree=function(e,t){return void 0===t&&(t=!0),Be.findTestabilityInTree(this,e,t)},e.ctorParameters=function(){return[]},e}();function Ve(e){Be=e}var Le,Be=new(function(){function e(){}return e.prototype.addToWindow=function(e){},e.prototype.findTestabilityInTree=function(e,t,n){return null},e}()),He=!0,ze=!1,qe=new c("AllowMultipleToken");function Qe(){if(ze)throw new Error("Cannot enable prod mode after platform setup.");He=!1}function Ue(){return ze=!0,He}var Ke=function(e,t){this.name=e,this.token=t};function Ze(e,t,n){void 0===n&&(n=[]);var r="Platform: "+t,o=new c(r);return function(t){void 0===t&&(t=[]);var i=We();if(!i||i.injector.get(qe,!1))if(e)e(n.concat(t).concat({provide:o,useValue:!0}));else{var s=n.concat(t).concat({provide:o,useValue:!0});!function(e){if(Le&&!Le.destroyed&&!Le.injector.get(qe,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Le=e.get(Ge);var t=e.get(ae,null);t&&t.forEach(function(e){return e()})}(D.create({providers:s,name:r}))}return function(e){var t=We();if(!t)throw new Error("No platform exists!");if(!t.injector.get(e,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return t}(o)}}function We(){return Le&&!Le.destroyed?Le:null}var Ge=function(){function e(e){this._injector=e,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return e.prototype.bootstrapModuleFactory=function(e,t){var n,r=this,o="noop"===(n=t?t.ngZone:void 0)?new Re:("zone.js"===n?void 0:n)||new Ae({enableLongStackTrace:Ue()}),i=[{provide:Ae,useValue:o}];return o.run(function(){var t=D.create({providers:i,parent:r.injector,name:e.moduleType.name}),n=e.create(t),s=n.injector.get($,null);if(!s)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Je(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(e){s.handleError(e)}})}),function(e,t,o){try{var i=((s=n.injector.get(re)).runInitializers(),s.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ee(i)?i.catch(function(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}):i}catch(n){throw t.runOutsideAngular(function(){return e.handleError(n)}),n}var s}(s,o)})},e.prototype.bootstrapModule=function(e,t){var n=this;void 0===t&&(t=[]);var r=this.injector.get(he),o=Ye({},t);return r.createCompiler([o]).compileModuleAsync(e).then(function(e){return n.bootstrapModuleFactory(e,o)})},e.prototype._moduleDoBootstrap=function(e){var t=e.injector.get(Xe);if(e._bootstrapComponents.length>0)e._bootstrapComponents.forEach(function(e){return t.bootstrap(e)});else{if(!e.instance.ngDoBootstrap)throw new Error("The module "+k(e.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');e.instance.ngDoBootstrap(t)}this._modules.push(e)},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(e){return e.destroy()}),this._destroyListeners.forEach(function(e){return e()}),this._destroyed=!0},Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e}();function Ye(e,t){return Array.isArray(t)?t.reduce(Ye,e):Object(r.a)({},e,t)}var Xe=function(){function e(e,t,n,r,a,u){var c=this;this._zone=e,this._console=t,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=a,this._initStatus=u,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ue(),this._zone.onMicrotaskEmpty.subscribe({next:function(){c._zone.run(function(){c.tick()})}});var l=new o.a(function(e){c._stable=c._zone.isStable&&!c._zone.hasPendingMacrotasks&&!c._zone.hasPendingMicrotasks,c._zone.runOutsideAngular(function(){e.next(c._stable),e.complete()})}),p=new o.a(function(e){var t;c._zone.runOutsideAngular(function(){t=c._zone.onStable.subscribe(function(){Ae.assertNotInAngularZone(),T(function(){c._stable||c._zone.hasPendingMacrotasks||c._zone.hasPendingMicrotasks||(c._stable=!0,e.next(!0))})})});var n=c._zone.onUnstable.subscribe(function(){Ae.assertInAngularZone(),c._stable&&(c._stable=!1,c._zone.runOutsideAngular(function(){e.next(!1)}))});return function(){t.unsubscribe(),n.unsubscribe()}});this.isStable=Object(i.a)(l,s.a.call(p))}return e.prototype.bootstrap=function(e,t){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=e instanceof de?e:this._componentFactoryResolver.resolveComponentFactory(e),this.componentTypes.push(n.componentType);var o=n instanceof Ee?null:this._injector.get(Ce),i=n.create(D.NULL,[],t||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var s=i.injector.get(je,null);return s&&i.injector.get(Fe).registerApplication(i.location.nativeElement,s),this._loadComponent(i),Ue()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(e){return e.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(e){return e.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,ke(n)}},e.prototype.attachView=function(e){var t=e;this._views.push(t),t.attachToAppRef(this)},e.prototype.detachView=function(e){var t=e;Je(this._views,t),t.detachFromAppRef()},e.prototype._loadComponent=function(e){this.attachView(e.hostView),this.tick(),this.components.push(e),this._injector.get(ce,[]).concat(this._bootstrapListeners).forEach(function(t){return t(e)})},e.prototype._unloadComponent=function(e){this.detachView(e.hostView),Je(this.components,e)},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(e){return e.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),e._tickScope=xe("ApplicationRef#tick()"),e}();function Je(e,t){var n=e.indexOf(t);n>-1&&e.splice(n,1)}var $e=function(){},et=function(){var e={Important:1,DashCase:2};return e[e.Important]="Important",e[e.DashCase]="DashCase",e}(),tt=function(e){this.nativeElement=e},nt=function(){function e(){this.dirty=!0,this._results=[],this.changes=new Oe,this.length=0}return e.prototype.map=function(e){return this._results.map(e)},e.prototype.filter=function(e){return this._results.filter(e)},e.prototype.find=function(e){return this._results.find(e)},e.prototype.reduce=function(e,t){return this._results.reduce(e,t)},e.prototype.forEach=function(e){this._results.forEach(e)},e.prototype.some=function(e){return this._results.some(e)},e.prototype.toArray=function(){return this._results.slice()},e.prototype[S()]=function(){return this._results[S()]()},e.prototype.toString=function(){return this._results.toString()},e.prototype.reset=function(e){this._results=function e(t){return t.reduce(function(t,n){var r=Array.isArray(n)?e(n):n;return t.concat(r)},[])}(e),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},e.prototype.notifyOnChanges=function(){this.changes.emit(this)},e.prototype.setDirty=function(){this.dirty=!0},e.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},e}(),rt=function(){},ot=function(){},it=function(){function e(e,t,n){this._debugContext=n,this.nativeNode=e,t&&t instanceof st?t.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(e.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),e}(),st=function(e){function t(t,n,r){var o=e.call(this,t,n,r)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=t,o}return Object(r.b)(t,e),t.prototype.addChild=function(e){e&&(this.childNodes.push(e),e.parent=this)},t.prototype.removeChild=function(e){var t=this.childNodes.indexOf(e);-1!==t&&(e.parent=null,this.childNodes.splice(t,1))},t.prototype.insertChildrenAfter=function(e,t){var n,r=this,o=this.childNodes.indexOf(e);-1!==o&&((n=this.childNodes).splice.apply(n,[o+1,0].concat(t)),t.forEach(function(e){e.parent&&e.parent.removeChild(e),e.parent=r}))},t.prototype.insertBefore=function(e,t){var n=this.childNodes.indexOf(e);-1===n?this.addChild(t):(t.parent&&t.parent.removeChild(t),t.parent=this,this.childNodes.splice(n,0,t))},t.prototype.query=function(e){return this.queryAll(e)[0]||null},t.prototype.queryAll=function(e){var t=[];return at(this,e,t),t},t.prototype.queryAllNodes=function(e){var t=[];return ut(this,e,t),t},Object.defineProperty(t.prototype,"children",{get:function(){return this.childNodes.filter(function(e){return e instanceof t})},enumerable:!0,configurable:!0}),t.prototype.triggerEventHandler=function(e,t){this.listeners.forEach(function(n){n.name==e&&n.callback(t)})},t}(it);function at(e,t,n){e.childNodes.forEach(function(e){e instanceof st&&(t(e)&&n.push(e),at(e,t,n))})}function ut(e,t,n){e instanceof st&&e.childNodes.forEach(function(e){t(e)&&n.push(e),e instanceof st&&ut(e,t,n)})}var ct=new Map;function lt(e){return ct.get(e)||null}function pt(e){ct.set(e.nativeNode,e)}function ft(e,t){var n=yt(e),r=yt(t);return n&&r?function(e,t,n){for(var r=e[S()](),o=t[S()]();;){var i=r.next(),s=o.next();if(i.done&&s.done)return!0;if(i.done||s.done)return!1;if(!n(i.value,s.value))return!1}}(e,t,ft):!(n||!e||"object"!=typeof e&&"function"!=typeof e||r||!t||"object"!=typeof t&&"function"!=typeof t)||x(e,t)}var ht=function(){function e(e){this.wrapped=e}return e.wrap=function(t){return new e(t)},e.unwrap=function(t){return e.isWrapped(t)?t.wrapped:t},e.isWrapped=function(t){return t instanceof e},e}(),dt=function(){function e(e,t,n){this.previousValue=e,this.currentValue=t,this.firstChange=n}return e.prototype.isFirstChange=function(){return this.firstChange},e}();function yt(e){return!!mt(e)&&(Array.isArray(e)||!(e instanceof Map)&&S()in e)}function mt(e){return null!==e&&("function"==typeof e||"object"==typeof e)}var vt=function(){function e(){}return e.prototype.supports=function(e){return yt(e)},e.prototype.create=function(e){return new _t(e)},e}(),gt=function(e,t){return t},_t=function(){function e(e){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=e||gt}return e.prototype.forEachItem=function(e){var t;for(t=this._itHead;null!==t;t=t._next)e(t)},e.prototype.forEachOperation=function(e){for(var t=this._itHead,n=this._removalsHead,r=0,o=null;t||n;){var i=!n||t&&t.currentIndex<Ct(n,r,o)?t:n,s=Ct(i,r,o),a=i.currentIndex;if(i===n)r--,n=n._nextRemoved;else if(t=t._next,null==i.previousIndex)r++;else{o||(o=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var p=l<o.length?o[l]:o[l]=0,f=p+l;c<=f&&f<u&&(o[l]=p+1)}o[i.previousIndex]=c-u}}s!==a&&e(i,s,a)}},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousItHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachMovedItem=function(e){var t;for(t=this._movesHead;null!==t;t=t._nextMoved)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.forEachIdentityChange=function(e){var t;for(t=this._identityChangesHead;null!==t;t=t._nextIdentityChange)e(t)},e.prototype.diff=function(e){if(null==e&&(e=[]),!yt(e))throw new Error("Error trying to diff '"+k(e)+"'. Only arrays and iterables are allowed");return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n,r,o,i=this._itHead,s=!1;if(Array.isArray(e)){this.length=e.length;for(var a=0;a<this.length;a++)o=this._trackByFn(a,r=e[a]),null!==i&&x(i.trackById,o)?(s&&(i=this._verifyReinsertion(i,r,o,a)),x(i.item,r)||this._addIdentityChange(i,r)):(i=this._mismatch(i,r,o,a),s=!0),i=i._next}else n=0,function(e,t){if(Array.isArray(e))for(var n=0;n<e.length;n++)t(e[n]);else for(var r=e[S()](),o=void 0;!(o=r.next()).done;)t(o.value)}(e,function(e){o=t._trackByFn(n,e),null!==i&&x(i.trackById,o)?(s&&(i=t._verifyReinsertion(i,e,o,n)),x(i.item,e)||t._addIdentityChange(i,e)):(i=t._mismatch(i,e,o,n),s=!0),i=i._next,n++}),this.length=n;return this._truncate(i),this.collection=e,this.isDirty},Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),e.prototype._reset=function(){if(this.isDirty){var e=void 0,t=void 0;for(e=this._previousItHead=this._itHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._additionsHead;null!==e;e=e._nextAdded)e.previousIndex=e.currentIndex;for(this._additionsHead=this._additionsTail=null,e=this._movesHead;null!==e;e=t)e.previousIndex=e.currentIndex,t=e._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},e.prototype._mismatch=function(e,t,n,r){var o;return null===e?o=this._itTail:(o=e._prev,this._remove(e)),null!==(e=null===this._linkedRecords?null:this._linkedRecords.get(n,r))?(x(e.item,t)||this._addIdentityChange(e,t),this._moveAfter(e,o,r)):null!==(e=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null))?(x(e.item,t)||this._addIdentityChange(e,t),this._reinsertAfter(e,o,r)):e=this._addAfter(new bt(t,n),o,r),e},e.prototype._verifyReinsertion=function(e,t,n,r){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==o?e=this._reinsertAfter(o,e._prev,r):e.currentIndex!=r&&(e.currentIndex=r,this._addToMoves(e,r)),e},e.prototype._truncate=function(e){for(;null!==e;){var t=e._next;this._addToRemovals(this._unlink(e)),e=t}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},e.prototype._reinsertAfter=function(e,t,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(e);var r=e._prevRemoved,o=e._nextRemoved;return null===r?this._removalsHead=o:r._nextRemoved=o,null===o?this._removalsTail=r:o._prevRemoved=r,this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._moveAfter=function(e,t,n){return this._unlink(e),this._insertAfter(e,t,n),this._addToMoves(e,n),e},e.prototype._addAfter=function(e,t,n){return this._insertAfter(e,t,n),this._additionsTail=null===this._additionsTail?this._additionsHead=e:this._additionsTail._nextAdded=e,e},e.prototype._insertAfter=function(e,t,n){var r=null===t?this._itHead:t._next;return e._next=r,e._prev=t,null===r?this._itTail=e:r._prev=e,null===t?this._itHead=e:t._next=e,null===this._linkedRecords&&(this._linkedRecords=new Et),this._linkedRecords.put(e),e.currentIndex=n,e},e.prototype._remove=function(e){return this._addToRemovals(this._unlink(e))},e.prototype._unlink=function(e){null!==this._linkedRecords&&this._linkedRecords.remove(e);var t=e._prev,n=e._next;return null===t?this._itHead=n:t._next=n,null===n?this._itTail=t:n._prev=t,e},e.prototype._addToMoves=function(e,t){return e.previousIndex===t?e:(this._movesTail=null===this._movesTail?this._movesHead=e:this._movesTail._nextMoved=e,e)},e.prototype._addToRemovals=function(e){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Et),this._unlinkedRecords.put(e),e.currentIndex=null,e._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=e,e._prevRemoved=null):(e._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=e),e},e.prototype._addIdentityChange=function(e,t){return e.item=t,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=e:this._identityChangesTail._nextIdentityChange=e,e},e}(),bt=function(e,t){this.item=e,this.trackById=t,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null},wt=function(){function e(){this._head=null,this._tail=null}return e.prototype.add=function(e){null===this._head?(this._head=this._tail=e,e._nextDup=null,e._prevDup=null):(this._tail._nextDup=e,e._prevDup=this._tail,e._nextDup=null,this._tail=e)},e.prototype.get=function(e,t){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===t||t<=n.currentIndex)&&x(n.trackById,e))return n;return null},e.prototype.remove=function(e){var t=e._prevDup,n=e._nextDup;return null===t?this._head=n:t._nextDup=n,null===n?this._tail=t:n._prevDup=t,null===this._head},e}(),Et=function(){function e(){this.map=new Map}return e.prototype.put=function(e){var t=e.trackById,n=this.map.get(t);n||(n=new wt,this.map.set(t,n)),n.add(e)},e.prototype.get=function(e,t){var n=this.map.get(e);return n?n.get(e,t):null},e.prototype.remove=function(e){var t=e.trackById;return this.map.get(t).remove(e)&&this.map.delete(t),e},Object.defineProperty(e.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this.map.clear()},e}();function Ct(e,t,n){var r=e.previousIndex;if(null===r)return r;var o=0;return n&&r<n.length&&(o=n[r]),r+t+o}var St=function(){function e(){}return e.prototype.supports=function(e){return e instanceof Map||mt(e)},e.prototype.create=function(){return new Tt},e}(),Tt=function(){function e(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(e.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),e.prototype.forEachItem=function(e){var t;for(t=this._mapHead;null!==t;t=t._next)e(t)},e.prototype.forEachPreviousItem=function(e){var t;for(t=this._previousMapHead;null!==t;t=t._nextPrevious)e(t)},e.prototype.forEachChangedItem=function(e){var t;for(t=this._changesHead;null!==t;t=t._nextChanged)e(t)},e.prototype.forEachAddedItem=function(e){var t;for(t=this._additionsHead;null!==t;t=t._nextAdded)e(t)},e.prototype.forEachRemovedItem=function(e){var t;for(t=this._removalsHead;null!==t;t=t._nextRemoved)e(t)},e.prototype.diff=function(e){if(e){if(!(e instanceof Map||mt(e)))throw new Error("Error trying to diff '"+k(e)+"'. Only maps and objects are allowed")}else e=new Map;return this.check(e)?this:null},e.prototype.onDestroy=function(){},e.prototype.check=function(e){var t=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(e,function(e,r){if(n&&n.key===r)t._maybeAddToChanges(n,e),t._appendAfter=n,n=n._next;else{var o=t._getOrCreateRecordForKey(r,e);n=t._insertBeforeOrAppend(n,o)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},e.prototype._insertBeforeOrAppend=function(e,t){if(e){var n=e._prev;return t._next=e,t._prev=n,e._prev=t,n&&(n._next=t),e===this._mapHead&&(this._mapHead=t),this._appendAfter=e,e}return this._appendAfter?(this._appendAfter._next=t,t._prev=this._appendAfter):this._mapHead=t,this._appendAfter=t,null},e.prototype._getOrCreateRecordForKey=function(e,t){if(this._records.has(e)){var n=this._records.get(e);this._maybeAddToChanges(n,t);var r=n._prev,o=n._next;return r&&(r._next=o),o&&(o._prev=r),n._next=null,n._prev=null,n}var i=new xt(e);return this._records.set(e,i),i.currentValue=t,this._addToAdditions(i),i},e.prototype._reset=function(){if(this.isDirty){var e=void 0;for(this._previousMapHead=this._mapHead,e=this._previousMapHead;null!==e;e=e._next)e._nextPrevious=e._next;for(e=this._changesHead;null!==e;e=e._nextChanged)e.previousValue=e.currentValue;for(e=this._additionsHead;null!=e;e=e._nextAdded)e.previousValue=e.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},e.prototype._maybeAddToChanges=function(e,t){x(t,e.currentValue)||(e.previousValue=e.currentValue,e.currentValue=t,this._addToChanges(e))},e.prototype._addToAdditions=function(e){null===this._additionsHead?this._additionsHead=this._additionsTail=e:(this._additionsTail._nextAdded=e,this._additionsTail=e)},e.prototype._addToChanges=function(e){null===this._changesHead?this._changesHead=this._changesTail=e:(this._changesTail._nextChanged=e,this._changesTail=e)},e.prototype._forEach=function(e,t){e instanceof Map?e.forEach(t):Object.keys(e).forEach(function(n){return t(e[n],n)})},e}(),xt=function(e){this.key=e,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null},kt=function(){function e(e){this.factories=e}return e.create=function(t,n){if(null!=n){var r=n.factories.slice();return new e(t=t.concat(r))}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return e.create(t,n)},deps:[[e,new g,new m]]}},e.prototype.find=function(e){var t,n=this.factories.find(function(t){return t.supports(e)});if(null!=n)return n;throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+((t=e).name||typeof t)+"'")},e}(),Ot=function(){function e(e){this.factories=e}return e.create=function(t,n){if(n){var r=n.factories.slice();t=t.concat(r)}return new e(t)},e.extend=function(t){return{provide:e,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return e.create(t,n)},deps:[[e,new g,new m]]}},e.prototype.find=function(e){var t=this.factories.find(function(t){return t.supports(e)});if(t)return t;throw new Error("Cannot find a differ supporting object '"+e+"'")},e}(),At=[new St],Nt=new kt([new vt]),Pt=new Ot(At),It=Ze(null,"core",[{provide:ue,useValue:"unknown"},{provide:Ge,deps:[D]},{provide:Fe,deps:[]},{provide:le,deps:[]}]),Dt=new c("LocaleId");function Mt(){return Nt}function Rt(){return Pt}function jt(e){return e||"en-US"}var Ft=function(e){},Vt=function(){var e={NONE:0,HTML:1,STYLE:2,SCRIPT:3,URL:4,RESOURCE_URL:5};return e[e.NONE]="NONE",e[e.HTML]="HTML",e[e.STYLE]="STYLE",e[e.SCRIPT]="SCRIPT",e[e.URL]="URL",e[e.RESOURCE_URL]="RESOURCE_URL",e}(),Lt=function(){};function Bt(e,t,n){var r=e.state,o=1792&r;return o===t?(e.state=-1793&r|n,e.initIndex=-1,!0):o===n}function Ht(e,t,n){return(1792&e.state)===t&&e.initIndex<=n&&(e.initIndex=n+1,!0)}function zt(e,t){return e.nodes[t]}function qt(e,t){return e.nodes[t]}function Qt(e,t){return e.nodes[t]}function Ut(e,t){return e.nodes[t]}function Kt(e,t){return e.nodes[t]}var Zt={setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,overrideComponentView:void 0,clearOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0};function Wt(e,t,n,r){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+t+"'. Current value: '"+n+"'.";return r&&(o+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),function(e,t){var n=new Error(e);return Gt(n,t),n}(o,e)}function Gt(e,t){e[Z]=t,e[G]=t.logError.bind(t)}function Yt(e){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+e)}var Xt=function(){},Jt=new Map;function $t(e){var t=Jt.get(e);return t||(t=k(e)+"_"+Jt.size,Jt.set(e,t)),t}var en="$$undefined",tn="$$empty";function nn(e){return{id:en,styles:e.styles,encapsulation:e.encapsulation,data:e.data}}var rn=0;function on(e,t,n,r){return!(!(2&e.state)&&x(e.oldValues[t.bindingIndex+n],r))}function sn(e,t,n,r){return!!on(e,t,n,r)&&(e.oldValues[t.bindingIndex+n]=r,!0)}function an(e,t,n,r){var o=e.oldValues[t.bindingIndex+n];if(1&e.state||!ft(o,r)){var i=t.bindings[n].name;throw Wt(Zt.createDebugContext(e,t.nodeIndex),i+": "+o,i+": "+r,0!=(1&e.state))}}function un(e){for(var t=e;t;)2&t.def.flags&&(t.state|=8),t=t.viewContainerParent||t.parent}function cn(e,t){for(var n=e;n&&n!==t;)n.state|=64,n=n.viewContainerParent||n.parent}function ln(e,t,n,r){try{return un(33554432&e.def.nodes[t].flags?qt(e,t).componentView:e),Zt.handleEvent(e,t,n,r)}catch(t){e.root.errorHandler.handleError(t)}}function pn(e){return e.parent?qt(e.parent,e.parentNodeDef.nodeIndex):null}function fn(e){return e.parent?e.parentNodeDef.parent:null}function hn(e,t){switch(201347067&t.flags){case 1:return qt(e,t.nodeIndex).renderElement;case 2:return zt(e,t.nodeIndex).renderText}}function dn(e){return!!e.parent&&!!(32768&e.parentNodeDef.flags)}function yn(e){return!(!e.parent||32768&e.parentNodeDef.flags)}function mn(e){return 1<<e%32}function vn(e){var t={},n=0,r={};return e&&e.forEach(function(e){var o=e[0],i=e[1];"number"==typeof o?(t[o]=i,n|=mn(o)):r[o]=i}),{matchedQueries:t,references:r,matchedQueryIds:n}}function gn(e,t){return e.map(function(e){var n,r;return Array.isArray(e)?(r=e[0],n=e[1]):(r=0,n=e),n&&("function"==typeof n||"object"==typeof n)&&t&&Object.defineProperty(n,N,{value:t,configurable:!0}),{flags:r,token:n,tokenKey:$t(n)}})}function _n(e,t,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===f.Native?qt(e,n.renderParent.nodeIndex).renderElement:void 0:t}var bn=new WeakMap;function wn(e){var t=bn.get(e);return t||((t=e(function(){return Xt})).factory=e,bn.set(e,t)),t}function En(e,t,n,r,o){3===t&&(n=e.renderer.parentNode(hn(e,e.def.lastRenderRootNode))),Cn(e,t,0,e.def.nodes.length-1,n,r,o)}function Cn(e,t,n,r,o,i,s){for(var a=n;a<=r;a++){var u=e.def.nodes[a];11&u.flags&&Tn(e,u,t,o,i,s),a+=u.childCount}}function Sn(e,t,n,r,o,i){for(var s=e;s&&!dn(s);)s=s.parent;for(var a=s.parent,u=fn(s),c=u.nodeIndex+u.childCount,l=u.nodeIndex+1;l<=c;l++){var p=a.def.nodes[l];p.ngContentIndex===t&&Tn(a,p,n,r,o,i),l+=p.childCount}if(!a.parent){var f=e.root.projectableNodes[t];if(f)for(l=0;l<f.length;l++)xn(e,f[l],n,r,o,i)}}function Tn(e,t,n,r,o,i){if(8&t.flags)Sn(e,t.ngContent.index,n,r,o,i);else{var s=hn(e,t);if(3===n&&33554432&t.flags&&48&t.bindingFlags?(16&t.bindingFlags&&xn(e,s,n,r,o,i),32&t.bindingFlags&&xn(qt(e,t.nodeIndex).componentView,s,n,r,o,i)):xn(e,s,n,r,o,i),16777216&t.flags)for(var a=qt(e,t.nodeIndex).viewContainer._embeddedViews,u=0;u<a.length;u++)En(a[u],n,r,o,i);1&t.flags&&!t.element.name&&Cn(e,n,t.nodeIndex+1,t.nodeIndex+t.childCount,r,o,i)}}function xn(e,t,n,r,o,i){var s=e.renderer;switch(n){case 1:s.appendChild(r,t);break;case 2:s.insertBefore(r,t,o);break;case 3:s.removeChild(r,t);break;case 0:i.push(t)}}var kn=/^:([^:]+):(.+)$/;function On(e){if(":"===e[0]){var t=e.match(kn);return[t[1],t[2]]}return["",e]}function An(e){for(var t=0,n=0;n<e.length;n++)t|=e[n].flags;return t}function Nn(e,t,n,r,o,i){e|=1;var s=vn(t);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:e,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:s.matchedQueries,matchedQueryIds:s.matchedQueryIds,references:s.references,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:i?wn(i):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Xt},provider:null,text:null,query:null,ngContent:null}}function Pn(e,t,n,r,o,i,s,a,u,c,l,p){void 0===s&&(s=[]),c||(c=Xt);var h=vn(n),d=h.matchedQueries,y=h.references,m=h.matchedQueryIds,v=null,g=null;i&&(v=(P=On(i))[0],g=P[1]),a=a||[];for(var _=new Array(a.length),b=0;b<a.length;b++){var w=a[b],E=w[0],C=w[2],S=On(w[1]),T=S[0],x=S[1],k=void 0,O=void 0;switch(15&E){case 4:O=C;break;case 1:case 8:k=C}_[b]={flags:E,ns:T,name:x,nonMinifiedName:x,securityContext:k,suffix:O}}u=u||[];var A=new Array(u.length);for(b=0;b<u.length;b++){var N=u[b];A[b]={type:0,target:N[0],eventName:N[1],propName:null}}var P,I=(s=s||[]).map(function(e){var t=e[1],n=On(e[0]);return[n[0],n[1],t]});return p=function(e){if(e&&e.id===en){var t=null!=e.encapsulation&&e.encapsulation!==f.None||e.styles.length||Object.keys(e.data).length;e.id=t?"c"+rn++:tn}return e&&e.id===tn&&(e=null),e||null}(p),l&&(t|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:d,matchedQueryIds:m,references:y,ngContentIndex:r,childCount:o,bindings:_,bindingFlags:An(_),outputs:A,element:{ns:v,name:g,attrs:I,template:null,componentProvider:null,componentView:l||null,componentRendererType:p,publicProviders:null,allProviders:null,handleEvent:c||Xt},provider:null,text:null,query:null,ngContent:null}}function In(e,t,n){var r,o=n.element,i=e.root.selectorOrNode,s=e.renderer;if(e.parent||!i){r=o.name?s.createElement(o.name,o.ns):s.createComment("");var a=_n(e,t,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(i);if(o.attrs)for(var u=0;u<o.attrs.length;u++){var c=o.attrs[u];s.setAttribute(r,c[1],c[2],c[0])}return r}function Dn(e,t,n,r){for(var o=0;o<n.outputs.length;o++){var i=n.outputs[o],s=Mn(e,n.nodeIndex,(p=i.eventName,(l=i.target)?l+":"+p:p)),a=i.target,u=e;"component"===i.target&&(a=null,u=t);var c=u.renderer.listen(a||r,i.eventName,s);e.disposables[n.outputIndex+o]=c}var l,p}function Mn(e,t,n){return function(r){return ln(e,t,n,r)}}function Rn(e,t,n,r){if(!sn(e,t,n,r))return!1;var o=t.bindings[n],i=qt(e,t.nodeIndex),s=i.renderElement,a=o.name;switch(15&o.flags){case 1:!function(e,t,n,r,o,i){var s=t.securityContext,a=s?e.root.sanitizer.sanitize(s,i):i;a=null!=a?a.toString():null;var u=e.renderer;null!=i?u.setAttribute(n,o,a,r):u.removeAttribute(n,o,r)}(e,o,s,o.ns,a,r);break;case 2:!function(e,t,n,r){var o=e.renderer;r?o.addClass(t,n):o.removeClass(t,n)}(e,s,a,r);break;case 4:!function(e,t,n,r,o){var i=e.root.sanitizer.sanitize(Vt.STYLE,o);if(null!=i){i=i.toString();var s=t.suffix;null!=s&&(i+=s)}else i=null;var a=e.renderer;null!=i?a.setStyle(n,r,i):a.removeStyle(n,r)}(e,o,s,a,r);break;case 8:!function(e,t,n,r,o){var i=t.securityContext,s=i?e.root.sanitizer.sanitize(i,o):o;e.renderer.setProperty(n,r,s)}(33554432&t.flags&&32&o.flags?i.componentView:e,o,s,a,r)}return!0}var jn=new Object,Fn=$t(D),Vn=$t(Ce);function Ln(e,t,n,r){return n=A(n),{index:-1,deps:gn(r,k(t)),flags:e,token:t,value:n}}function Bn(e){for(var t={},n=0;n<e.length;n++){var r=e[n];r.index=n,t[$t(r.token)]=r}return{factory:null,providersByKey:t,providers:e}}function Hn(e,t,n){if(void 0===n&&(n=D.THROW_IF_NOT_FOUND),8&t.flags)return t.token;if(2&t.flags&&(n=null),1&t.flags)return e._parent.get(t.token,n);var r=t.tokenKey;switch(r){case Fn:case Vn:return e}var o=e._def.providersByKey[r];if(o){var i=e._providers[o.index];return void 0===i&&(i=e._providers[o.index]=zn(e,o)),i===jn?void 0:i}return e._parent.get(t.token,n)}function zn(e,t){var n;switch(201347067&t.flags){case 512:n=function(e,t,n){var r=n.length;switch(r){case 0:return new t;case 1:return new t(Hn(e,n[0]));case 2:return new t(Hn(e,n[0]),Hn(e,n[1]));case 3:return new t(Hn(e,n[0]),Hn(e,n[1]),Hn(e,n[2]));default:for(var o=new Array(r),i=0;i<r;i++)o[i]=Hn(e,n[i]);return new(t.bind.apply(t,[void 0].concat(o)))}}(e,t.value,t.deps);break;case 1024:n=function(e,t,n){var r=n.length;switch(r){case 0:return t();case 1:return t(Hn(e,n[0]));case 2:return t(Hn(e,n[0]),Hn(e,n[1]));case 3:return t(Hn(e,n[0]),Hn(e,n[1]),Hn(e,n[2]));default:for(var o=Array(r),i=0;i<r;i++)o[i]=Hn(e,n[i]);return t.apply(void 0,o)}}(e,t.value,t.deps);break;case 2048:n=Hn(e,t.deps[0]);break;case 256:n=t.value}return void 0===n?jn:n}function qn(e,t){var n=e.viewContainer._embeddedViews;if((null==t||t>=n.length)&&(t=n.length-1),t<0)return null;var r=n[t];return r.viewContainerParent=null,Zn(n,t),Zt.dirtyParentQueries(r),Un(r),r}function Qn(e,t,n){var r=t?hn(t,t.def.lastRenderRootNode):e.renderElement;En(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Un(e){En(e,3,null,null,void 0)}function Kn(e,t,n){t>=e.length?e.push(n):e.splice(t,0,n)}function Zn(e,t){t>=e.length-1?e.pop():e.splice(t,1)}var Wn=new Object;function Gn(e,t,n,r,o,i){return new Yn(e,t,n,r,o,i)}var Yn=function(e){function t(t,n,r,o,i,s){var a=e.call(this)||this;return a.selector=t,a.componentType=n,a._inputs=o,a._outputs=i,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"inputs",{get:function(){var e=[],t=this._inputs;for(var n in t)e.push({propName:n,templateName:t[n]});return e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"outputs",{get:function(){var e=[];for(var t in this._outputs)e.push({propName:t,templateName:this._outputs[t]});return e},enumerable:!0,configurable:!0}),t.prototype.create=function(e,t,n,r){if(!r)throw new Error("ngModule should be provided");var o=wn(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,s=Zt.createRootView(e,t||[],n,o,r,Wn),a=Qt(s,i).instance;return n&&s.renderer.setAttribute(qt(s,0).renderElement,"ng-version",d.full),new Xn(s,new tr(s),a)},t}(de),Xn=function(e){function t(t,n,r){var o=e.call(this)||this;return o._view=t,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return Object(r.b)(t,e),Object.defineProperty(t.prototype,"location",{get:function(){return new tt(qt(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._viewRef.destroy()},t.prototype.onDestroy=function(e){this._viewRef.onDestroy(e)},t}(function(){});function Jn(e,t,n){return new $n(e,t,n)}var $n=function(){function e(e,t,n){this._view=e,this._elDef=t,this._data=n,this._embeddedViews=[]}return Object.defineProperty(e.prototype,"element",{get:function(){return new tt(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new ir(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"parentInjector",{get:function(){for(var e=this._view,t=this._elDef.parent;!t&&e;)t=fn(e),e=e.parent;return e?new ir(e,t):new ir(this._view,null)},enumerable:!0,configurable:!0}),e.prototype.clear=function(){for(var e=this._embeddedViews.length-1;e>=0;e--){var t=qn(this._data,e);Zt.destroyView(t)}},e.prototype.get=function(e){var t=this._embeddedViews[e];if(t){var n=new tr(t);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(e.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),e.prototype.createEmbeddedView=function(e,t,n){var r=e.createEmbeddedView(t||{});return this.insert(r,n),r},e.prototype.createComponent=function(e,t,n,r,o){var i=n||this.parentInjector;o||e instanceof Ee||(o=i.get(Ce));var s=e.create(i,r,void 0,o);return this.insert(s.hostView,t),s},e.prototype.insert=function(e,t){if(e.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,s=e;return o=s._view,i=(n=this._data).viewContainer._embeddedViews,null!==(r=t)&&void 0!==r||(r=i.length),o.viewContainerParent=this._view,Kn(i,r,o),function(e,t){var n=pn(t);if(n&&n!==e&&!(16&t.state)){t.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(t),function(e,n){if(!(4&n.flags)){t.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,t.parentNodeDef)}}(n,o),Zt.dirtyParentQueries(o),Qn(n,r>0?i[r-1]:null,o),s.attachToViewContainerRef(this),e},e.prototype.move=function(e,t){if(e.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,o,i,s,a=this._embeddedViews.indexOf(e._view);return o=t,s=(i=(n=this._data).viewContainer._embeddedViews)[r=a],Zn(i,r),null==o&&(o=i.length),Kn(i,o,s),Zt.dirtyParentQueries(s),Un(s),Qn(n,o>0?i[o-1]:null,s),e},e.prototype.indexOf=function(e){return this._embeddedViews.indexOf(e._view)},e.prototype.remove=function(e){var t=qn(this._data,e);t&&Zt.destroyView(t)},e.prototype.detach=function(e){var t=qn(this._data,e);return t?new tr(t):null},e}();function er(e){return new tr(e)}var tr=function(){function e(e){this._view=e,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(e.prototype,"rootNodes",{get:function(){return En(this._view,0,void 0,void 0,e=[]),e;var e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),e.prototype.markForCheck=function(){un(this._view)},e.prototype.detach=function(){this._view.state&=-5},e.prototype.detectChanges=function(){var e=this._view.root.rendererFactory;e.begin&&e.begin();try{Zt.checkAndUpdateView(this._view)}finally{e.end&&e.end()}},e.prototype.checkNoChanges=function(){Zt.checkNoChangesView(this._view)},e.prototype.reattach=function(){this._view.state|=4},e.prototype.onDestroy=function(e){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(e)},e.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Zt.destroyView(this._view)},e.prototype.detachFromAppRef=function(){this._appRef=null,Un(this._view),Zt.dirtyParentQueries(this._view)},e.prototype.attachToAppRef=function(e){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=e},e.prototype.attachToViewContainerRef=function(e){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=e},e}();function nr(e,t){return new rr(e,t)}var rr=function(e){function t(t,n){var r=e.call(this)||this;return r._parentView=t,r._def=n,r}return Object(r.b)(t,e),t.prototype.createEmbeddedView=function(e){return new tr(Zt.createEmbeddedView(this._parentView,this._def,this._def.element.template,e))},Object.defineProperty(t.prototype,"elementRef",{get:function(){return new tt(qt(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),t}(rt);function or(e,t){return new ir(e,t)}var ir=function(){function e(e,t){this.view=e,this.elDef=t}return e.prototype.get=function(e,t){return void 0===t&&(t=D.THROW_IF_NOT_FOUND),Zt.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:e,tokenKey:$t(e)},t)},e}();function sr(e){return new ar(e.renderer)}var ar=function(){function e(e){this.delegate=e}return e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.createElement=function(e,t){var n=On(t),r=this.delegate.createElement(n[1],n[0]);return e&&this.delegate.appendChild(e,r),r},e.prototype.createViewRoot=function(e){return e},e.prototype.createTemplateAnchor=function(e){var t=this.delegate.createComment("");return e&&this.delegate.appendChild(e,t),t},e.prototype.createText=function(e,t){var n=this.delegate.createText(t);return e&&this.delegate.appendChild(e,n),n},e.prototype.projectNodes=function(e,t){for(var n=0;n<t.length;n++)this.delegate.appendChild(e,t[n])},e.prototype.attachViewAfter=function(e,t){for(var n=this.delegate.parentNode(e),r=this.delegate.nextSibling(e),o=0;o<t.length;o++)this.delegate.insertBefore(n,t[o],r)},e.prototype.detachView=function(e){for(var t=0;t<e.length;t++){var n=e[t],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},e.prototype.destroyView=function(e,t){for(var n=0;n<t.length;n++)this.delegate.destroyNode(t[n])},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.listenGlobal=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.setElementProperty=function(e,t,n){this.delegate.setProperty(e,t,n)},e.prototype.setElementAttribute=function(e,t,n){var r=On(t),o=r[0],i=r[1];null!=n?this.delegate.setAttribute(e,i,n,o):this.delegate.removeAttribute(e,i,o)},e.prototype.setBindingDebugInfo=function(e,t,n){},e.prototype.setElementClass=function(e,t,n){n?this.delegate.addClass(e,t):this.delegate.removeClass(e,t)},e.prototype.setElementStyle=function(e,t,n){null!=n?this.delegate.setStyle(e,t,n):this.delegate.removeStyle(e,t)},e.prototype.invokeElementMethod=function(e,t,n){e[t].apply(e,n)},e.prototype.setText=function(e,t){this.delegate.setValue(e,t)},e.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},e}();function ur(e,t,n,r){return new cr(e,t,n,r)}var cr=function(){function e(e,t,n,r){this._moduleType=e,this._parent=t,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(e){for(var t=e._def,n=e._providers=new Array(t.providers.length),r=0;r<t.providers.length;r++){var o=t.providers[r];4096&o.flags||(n[r]=zn(e,o))}}(this)}return e.prototype.get=function(e,t){return void 0===t&&(t=D.THROW_IF_NOT_FOUND),Hn(this,{token:e,tokenKey:$t(e),flags:0},t)},Object.defineProperty(e.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(be)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+k(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(e,t){for(var n=e._def,r=0;r<n.providers.length;r++)if(131072&n.providers[r].flags){var o=e._providers[r];o&&o!==jn&&o.ngOnDestroy()}}(this),this._destroyListeners.forEach(function(e){return e()})},e.prototype.onDestroy=function(e){this._destroyListeners.push(e)},e}(),lr=$t(function(){}),pr=$t(function(){}),fr=$t(tt),hr=$t(ot),dr=$t(rt),yr=$t(function(){}),mr=$t(D);function vr(e,t,n,r,o,i,s,a){var u=[];if(s)for(var c in s){var l=s[c];u[l[0]]={flags:8,name:c,nonMinifiedName:l[1],ns:null,securityContext:null,suffix:null}}var p=[];if(a)for(var f in a)p.push({type:1,propName:f,target:null,eventName:a[f]});return function(e,t,n,r,o,i,s,a,u){var c=vn(n),l=c.matchedQueries,p=c.references,f=c.matchedQueryIds;u||(u=[]),a||(a=[]),i=A(i);var h=gn(s,k(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:f,references:p,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:An(a),outputs:u,element:null,provider:{token:o,value:i,deps:h},text:null,query:null,ngContent:null}}(e,t|=16384,n,r,o,o,i,u,p)}function gr(e,t){return Er(e,t)}function _r(e,t){for(var n=e;n.parent&&!dn(n);)n=n.parent;return Cr(n.parent,fn(n),!0,t.provider.value,t.provider.deps)}function br(e,t){var n=Cr(e,t.parent,(32768&t.flags)>0,t.provider.value,t.provider.deps);if(t.outputs.length)for(var r=0;r<t.outputs.length;r++){var o=t.outputs[r],i=n[o.propName].subscribe(wr(e,t.parent.nodeIndex,o.eventName));e.disposables[t.outputIndex+r]=i.unsubscribe.bind(i)}return n}function wr(e,t,n){return function(r){return ln(e,t,n,r)}}function Er(e,t){var n=(8192&t.flags)>0,r=t.provider;switch(201347067&t.flags){case 512:return Cr(e,t.parent,n,r.value,r.deps);case 1024:return function(e,t,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(Tr(e,t,n,o[0]));case 2:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var s=Array(i),a=0;a<i;a++)s[a]=Tr(e,t,n,o[a]);return r.apply(void 0,s)}}(e,t.parent,n,r.value,r.deps);case 2048:return Tr(e,t.parent,n,r.deps[0]);case 256:return r.value}}function Cr(e,t,n,r,o){var i=o.length;switch(i){case 0:return new r;case 1:return new r(Tr(e,t,n,o[0]));case 2:return new r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]));case 3:return new r(Tr(e,t,n,o[0]),Tr(e,t,n,o[1]),Tr(e,t,n,o[2]));default:for(var s=new Array(i),a=0;a<i;a++)s[a]=Tr(e,t,n,o[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}var Sr={};function Tr(e,t,n,r,o){if(void 0===o&&(o=D.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var i=e;2&r.flags&&(o=null);var s=r.tokenKey;for(s===yr&&(n=!(!t||!t.element.componentView)),t&&1&r.flags&&(n=!1,t=t.parent);e;){if(t)switch(s){case lr:return sr(xr(e,t,n));case pr:return xr(e,t,n).renderer;case fr:return new tt(qt(e,t.nodeIndex).renderElement);case hr:return qt(e,t.nodeIndex).viewContainer;case dr:if(t.element.template)return qt(e,t.nodeIndex).template;break;case yr:return er(xr(e,t,n));case mr:return or(e,t);default:var a=(n?t.element.allProviders:t.element.publicProviders)[s];if(a){var u=Qt(e,a.nodeIndex);return u||(u={instance:Er(e,a)},e.nodes[a.nodeIndex]=u),u.instance}}n=dn(e),t=fn(e),e=e.parent}var c=i.root.injector.get(r.token,Sr);return c!==Sr||o===Sr?c:i.root.ngModule.injector.get(r.token,o)}function xr(e,t,n){var r;if(n)r=qt(e,t.nodeIndex).componentView;else for(r=e;r.parent&&!dn(r);)r=r.parent;return r}function kr(e,t,n,r,o,i){if(32768&n.flags){var s=qt(e,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}if(t.instance[n.bindings[r].name]=o,524288&n.flags){i=i||{};var a=ht.unwrap(e.oldValues[n.bindingIndex+r]);i[n.bindings[r].nonMinifiedName]=new dt(a,o,0!=(2&e.state))}return e.oldValues[n.bindingIndex+r]=o,i}function Or(e,t){if(e.def.nodeFlags&t)for(var n=e.def.nodes,r=0,o=0;o<n.length;o++){var i=n[o],s=i.parent;for(!s&&i.flags&t&&Nr(e,o,i.flags&t,r++),0==(i.childFlags&t)&&(o+=i.childCount);s&&1&s.flags&&o===s.nodeIndex+s.childCount;)s.directChildFlags&t&&(r=Ar(e,s,t,r)),s=s.parent}}function Ar(e,t,n,r){for(var o=t.nodeIndex+1;o<=t.nodeIndex+t.childCount;o++){var i=e.def.nodes[o];i.flags&n&&Nr(e,o,i.flags&n,r++),o+=i.childCount}return r}function Nr(e,t,n,r){var o=Qt(e,t);if(o){var i=o.instance;i&&(Zt.setCurrentNode(e,t),1048576&n&&Ht(e,512,r)&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&Ht(e,768,r)&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function Pr(e,t,n){var r=[];for(var o in n)r.push({propName:o,bindingType:n[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:t,filterId:mn(t),bindings:r},ngContent:null}}function Ir(e){for(var t=e.def.nodeMatchedQueries;e.parent&&yn(e);){var n=e.parentNodeDef;e=e.parent;for(var r=n.nodeIndex+n.childCount,o=0;o<=r;o++)67108864&(i=e.def.nodes[o]).flags&&536870912&i.flags&&(i.query.filterId&t)===i.query.filterId&&Kt(e,o).setDirty(),!(1&i.flags&&o+i.childCount<n.nodeIndex)&&67108864&i.childFlags&&536870912&i.childFlags||(o+=i.childCount)}if(134217728&e.def.nodeFlags)for(o=0;o<e.def.nodes.length;o++){var i;134217728&(i=e.def.nodes[o]).flags&&536870912&i.flags&&Kt(e,o).setDirty(),o+=i.childCount}}function Dr(e,t){var n=Kt(e,t.nodeIndex);if(n.dirty){var r,o=void 0;if(67108864&t.flags){var i=t.parent.parent;o=Mr(e,i.nodeIndex,i.nodeIndex+i.childCount,t.query,[]),r=Qt(e,t.parent.nodeIndex).instance}else 134217728&t.flags&&(o=Mr(e,0,e.def.nodes.length-1,t.query,[]),r=e.component);n.reset(o);for(var s=t.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function Mr(e,t,n,r,o){for(var i=t;i<=n;i++){var s=e.def.nodes[i],a=s.matchedQueries[r.id];if(null!=a&&o.push(Rr(e,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=qt(e,i);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Mr(e,i+1,i+s.childCount,r,o),i+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var p=c[l],f=pn(p);f&&f===u&&Mr(p,0,p.def.nodes.length-1,r,o)}var h=u.template._projectedViews;if(h)for(l=0;l<h.length;l++){var d=h[l];Mr(d,0,d.def.nodes.length-1,r,o)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(i+=s.childCount)}return o}function Rr(e,t,n){if(null!=n)switch(n){case 1:return qt(e,t.nodeIndex).renderElement;case 0:return new tt(qt(e,t.nodeIndex).renderElement);case 2:return qt(e,t.nodeIndex).template;case 3:return qt(e,t.nodeIndex).viewContainer;case 4:return Qt(e,t.nodeIndex).instance}}function jr(e,t,n){var r=_n(e,t,n);r&&Sn(e,n.ngContent.index,1,r,null,void 0)}function Fr(e,t,n){for(var r=new Array(n.length-1),o=1;o<n.length;o++)r[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function Vr(e,t,n){var r,o=e.renderer;r=o.createText(n.text.prefix);var i=_n(e,t,n);return i&&o.appendChild(i,r),{renderText:r}}function Lr(e,t){return(null!=e?e.toString():"")+t.suffix}function Br(e,t,n,r){for(var o=0,i=0,s=0,a=0,u=0,c=null,l=null,p=!1,f=!1,h=null,d=0;d<t.length;d++){var y=t[d];if(y.nodeIndex=d,y.parent=c,y.bindingIndex=o,y.outputIndex=i,y.renderParent=l,s|=y.flags,u|=y.matchedQueryIds,y.element){var m=y.element;m.publicProviders=c?c.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,p=!1,f=!1,y.element.template&&(u|=y.element.template.nodeMatchedQueries)}if(zr(c,y,t.length),o+=y.bindings.length,i+=y.outputs.length,!l&&3&y.flags&&(h=y),20224&y.flags){p||(p=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var v=0!=(32768&y.flags);0==(8192&y.flags)||v?c.element.publicProviders[$t(y.provider.token)]=y:(f||(f=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[$t(y.provider.token)]=y),v&&(c.element.componentProvider=y)}if(c?(c.childFlags|=y.flags,c.directChildFlags|=y.flags,c.childMatchedQueries|=y.matchedQueryIds,y.element&&y.element.template&&(c.childMatchedQueries|=y.element.template.nodeMatchedQueries)):a|=y.flags,y.childCount>0)c=y,Hr(y)||(l=y);else for(;c&&d===c.nodeIndex+c.childCount;){var g=c.parent;g&&(g.childFlags|=c.childFlags,g.childMatchedQueries|=c.childMatchedQueries),l=(c=g)&&Hr(c)?c.renderParent:c}}return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:e,nodes:t,updateDirectives:n||Xt,updateRenderer:r||Xt,handleEvent:function(e,n,r,o){return t[n].element.handleEvent(e,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function Hr(e){return 0!=(1&e.flags)&&null===e.element.name}function zr(e,t,n){var r=t.element&&t.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+t.nodeIndex+"!")}if(20224&t.flags&&0==(1&(e?e.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+t.nodeIndex+"!");if(t.query){if(67108864&t.flags&&(!e||0==(16384&e.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+t.nodeIndex+"!");if(134217728&t.flags&&e)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+t.nodeIndex+"!")}if(t.childCount){var o=e?e.nodeIndex+e.childCount:n-1;if(t.nodeIndex<=o&&t.nodeIndex+t.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+t.nodeIndex+"!")}}function qr(e,t,n,r){var o=Kr(e.root,e.renderer,e,t,n);return Zr(o,e.component,r),Wr(o),o}function Qr(e,t,n){var r=Kr(e,e.renderer,null,null,t);return Zr(r,n,n),Wr(r),r}function Ur(e,t,n,r){var o,i=t.element.componentRendererType;return o=i?e.root.rendererFactory.createRenderer(r,i):e.root.renderer,Kr(e.root,o,e,t.element.componentProvider,n)}function Kr(e,t,n,r,o){var i=new Array(o.nodes.length),s=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:e,renderer:t,oldValues:new Array(o.bindingCount),disposables:s,initIndex:-1}}function Zr(e,t,n){e.component=t,e.context=n}function Wr(e){var t;dn(e)&&(t=qt(e.parent,e.parentNodeDef.parent.nodeIndex).renderElement);for(var n=e.def,r=e.nodes,o=0;o<n.nodes.length;o++){var i=n.nodes[o];Zt.setCurrentNode(e,o);var s=void 0;switch(201347067&i.flags){case 1:var a=In(e,t,i),u=void 0;if(33554432&i.flags){var c=wn(i.element.componentView);u=Zt.createComponentView(e,i,c,a)}Dn(e,u,i,a),s={renderElement:a,componentView:u,viewContainer:null,template:i.element.template?nr(e,i):void 0},16777216&i.flags&&(s.viewContainer=Jn(e,i,s));break;case 2:s=Vr(e,t,i);break;case 512:case 1024:case 2048:case 256:(s=r[o])||4096&i.flags||(s={instance:gr(e,i)});break;case 16:s={instance:_r(e,i)};break;case 16384:(s=r[o])||(s={instance:br(e,i)}),32768&i.flags&&Zr(qt(e,i.parent.nodeIndex).componentView,s.instance,s.instance);break;case 32:case 64:case 128:s={value:void 0};break;case 67108864:case 134217728:s=new nt;break;case 8:jr(e,t,i),s=void 0}r[o]=s}ro(e,no.CreateViewNodes),ao(e,201326592,268435456,0)}function Gr(e){Jr(e),Zt.updateDirectives(e,1),oo(e,no.CheckNoChanges),Zt.updateRenderer(e,1),ro(e,no.CheckNoChanges),e.state&=-97}function Yr(e){1&e.state?(e.state&=-2,e.state|=2):e.state&=-3,Bt(e,0,256),Jr(e),Zt.updateDirectives(e,0),oo(e,no.CheckAndUpdate),ao(e,67108864,536870912,0);var t=Bt(e,256,512);Or(e,2097152|(t?1048576:0)),Zt.updateRenderer(e,0),ro(e,no.CheckAndUpdate),ao(e,134217728,536870912,0),Or(e,8388608|((t=Bt(e,512,768))?4194304:0)),2&e.def.flags&&(e.state&=-9),e.state&=-97,Bt(e,768,1024)}function Xr(e,t,n,r,o,i,s,a,u,c,l,p,f){return 0===n?function(e,t,n,r,o,i,s,a,u,c,l,p){switch(201347067&t.flags){case 1:return function(e,t,n,r,o,i,s,a,u,c,l,p){var f=t.bindings.length,h=!1;return f>0&&Rn(e,t,0,n)&&(h=!0),f>1&&Rn(e,t,1,r)&&(h=!0),f>2&&Rn(e,t,2,o)&&(h=!0),f>3&&Rn(e,t,3,i)&&(h=!0),f>4&&Rn(e,t,4,s)&&(h=!0),f>5&&Rn(e,t,5,a)&&(h=!0),f>6&&Rn(e,t,6,u)&&(h=!0),f>7&&Rn(e,t,7,c)&&(h=!0),f>8&&Rn(e,t,8,l)&&(h=!0),f>9&&Rn(e,t,9,p)&&(h=!0),h}(e,t,n,r,o,i,s,a,u,c,l,p);case 2:return function(e,t,n,r,o,i,s,a,u,c,l,p){var f=!1,h=t.bindings,d=h.length;if(d>0&&sn(e,t,0,n)&&(f=!0),d>1&&sn(e,t,1,r)&&(f=!0),d>2&&sn(e,t,2,o)&&(f=!0),d>3&&sn(e,t,3,i)&&(f=!0),d>4&&sn(e,t,4,s)&&(f=!0),d>5&&sn(e,t,5,a)&&(f=!0),d>6&&sn(e,t,6,u)&&(f=!0),d>7&&sn(e,t,7,c)&&(f=!0),d>8&&sn(e,t,8,l)&&(f=!0),d>9&&sn(e,t,9,p)&&(f=!0),f){var y=t.text.prefix;d>0&&(y+=Lr(n,h[0])),d>1&&(y+=Lr(r,h[1])),d>2&&(y+=Lr(o,h[2])),d>3&&(y+=Lr(i,h[3])),d>4&&(y+=Lr(s,h[4])),d>5&&(y+=Lr(a,h[5])),d>6&&(y+=Lr(u,h[6])),d>7&&(y+=Lr(c,h[7])),d>8&&(y+=Lr(l,h[8])),d>9&&(y+=Lr(p,h[9]));var m=zt(e,t.nodeIndex).renderText;e.renderer.setValue(m,y)}return f}(e,t,n,r,o,i,s,a,u,c,l,p);case 16384:return function(e,t,n,r,o,i,s,a,u,c,l,p){var f=Qt(e,t.nodeIndex),h=f.instance,d=!1,y=void 0,m=t.bindings.length;return m>0&&on(e,t,0,n)&&(d=!0,y=kr(e,f,t,0,n,y)),m>1&&on(e,t,1,r)&&(d=!0,y=kr(e,f,t,1,r,y)),m>2&&on(e,t,2,o)&&(d=!0,y=kr(e,f,t,2,o,y)),m>3&&on(e,t,3,i)&&(d=!0,y=kr(e,f,t,3,i,y)),m>4&&on(e,t,4,s)&&(d=!0,y=kr(e,f,t,4,s,y)),m>5&&on(e,t,5,a)&&(d=!0,y=kr(e,f,t,5,a,y)),m>6&&on(e,t,6,u)&&(d=!0,y=kr(e,f,t,6,u,y)),m>7&&on(e,t,7,c)&&(d=!0,y=kr(e,f,t,7,c,y)),m>8&&on(e,t,8,l)&&(d=!0,y=kr(e,f,t,8,l,y)),m>9&&on(e,t,9,p)&&(d=!0,y=kr(e,f,t,9,p,y)),y&&h.ngOnChanges(y),65536&t.flags&&Ht(e,256,t.nodeIndex)&&h.ngOnInit(),262144&t.flags&&h.ngDoCheck(),d}(e,t,n,r,o,i,s,a,u,c,l,p);case 32:case 64:case 128:return function(e,t,n,r,o,i,s,a,u,c,l,p){var f=t.bindings,h=!1,d=f.length;if(d>0&&sn(e,t,0,n)&&(h=!0),d>1&&sn(e,t,1,r)&&(h=!0),d>2&&sn(e,t,2,o)&&(h=!0),d>3&&sn(e,t,3,i)&&(h=!0),d>4&&sn(e,t,4,s)&&(h=!0),d>5&&sn(e,t,5,a)&&(h=!0),d>6&&sn(e,t,6,u)&&(h=!0),d>7&&sn(e,t,7,c)&&(h=!0),d>8&&sn(e,t,8,l)&&(h=!0),d>9&&sn(e,t,9,p)&&(h=!0),h){var y=Ut(e,t.nodeIndex),m=void 0;switch(201347067&t.flags){case 32:m=new Array(f.length),d>0&&(m[0]=n),d>1&&(m[1]=r),d>2&&(m[2]=o),d>3&&(m[3]=i),d>4&&(m[4]=s),d>5&&(m[5]=a),d>6&&(m[6]=u),d>7&&(m[7]=c),d>8&&(m[8]=l),d>9&&(m[9]=p);break;case 64:m={},d>0&&(m[f[0].name]=n),d>1&&(m[f[1].name]=r),d>2&&(m[f[2].name]=o),d>3&&(m[f[3].name]=i),d>4&&(m[f[4].name]=s),d>5&&(m[f[5].name]=a),d>6&&(m[f[6].name]=u),d>7&&(m[f[7].name]=c),d>8&&(m[f[8].name]=l),d>9&&(m[f[9].name]=p);break;case 128:var v=n;switch(d){case 1:m=v.transform(n);break;case 2:m=v.transform(r);break;case 3:m=v.transform(r,o);break;case 4:m=v.transform(r,o,i);break;case 5:m=v.transform(r,o,i,s);break;case 6:m=v.transform(r,o,i,s,a);break;case 7:m=v.transform(r,o,i,s,a,u);break;case 8:m=v.transform(r,o,i,s,a,u,c);break;case 9:m=v.transform(r,o,i,s,a,u,c,l);break;case 10:m=v.transform(r,o,i,s,a,u,c,l,p)}}y.value=m}return h}(e,t,n,r,o,i,s,a,u,c,l,p);default:throw"unreachable"}}(e,t,r,o,i,s,a,u,c,l,p,f):function(e,t,n){switch(201347067&t.flags){case 1:return function(e,t,n){for(var r=!1,o=0;o<n.length;o++)Rn(e,t,o,n[o])&&(r=!0);return r}(e,t,n);case 2:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)sn(e,t,i,n[i])&&(o=!0);if(o){var s="";for(i=0;i<n.length;i++)s+=Lr(n[i],r[i]);s=t.text.prefix+s;var a=zt(e,t.nodeIndex).renderText;e.renderer.setValue(a,s)}return o}(e,t,n);case 16384:return function(e,t,n){for(var r=Qt(e,t.nodeIndex),o=r.instance,i=!1,s=void 0,a=0;a<n.length;a++)on(e,t,a,n[a])&&(i=!0,s=kr(e,r,t,a,n[a],s));return s&&o.ngOnChanges(s),65536&t.flags&&Ht(e,256,t.nodeIndex)&&o.ngOnInit(),262144&t.flags&&o.ngDoCheck(),i}(e,t,n);case 32:case 64:case 128:return function(e,t,n){for(var r=t.bindings,o=!1,i=0;i<n.length;i++)sn(e,t,i,n[i])&&(o=!0);if(o){var s=Ut(e,t.nodeIndex),a=void 0;switch(201347067&t.flags){case 32:a=n;break;case 64:for(a={},i=0;i<n.length;i++)a[r[i].name]=n[i];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return o}(e,t,n);default:throw"unreachable"}}(e,t,r)}function Jr(e){var t=e.def;if(4&t.nodeFlags)for(var n=0;n<t.nodes.length;n++){var r=t.nodes[n];if(4&r.flags){var o=qt(e,n).template._projectedViews;if(o)for(var i=0;i<o.length;i++){var s=o[i];s.state|=32,cn(s,e)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function $r(e,t,n,r,o,i,s,a,u,c,l,p,f){return 0===n?function(e,t,n,r,o,i,s,a,u,c,l,p){var f=t.bindings.length;f>0&&an(e,t,0,n),f>1&&an(e,t,1,r),f>2&&an(e,t,2,o),f>3&&an(e,t,3,i),f>4&&an(e,t,4,s),f>5&&an(e,t,5,a),f>6&&an(e,t,6,u),f>7&&an(e,t,7,c),f>8&&an(e,t,8,l),f>9&&an(e,t,9,p)}(e,t,r,o,i,s,a,u,c,l,p,f):function(e,t,n){for(var r=0;r<n.length;r++)an(e,t,r,n[r])}(e,t,r),!1}function eo(e,t){if(Kt(e,t.nodeIndex).dirty)throw Wt(Zt.createDebugContext(e,t.nodeIndex),"Query "+t.query.id+" not dirty","Query "+t.query.id+" dirty",0!=(1&e.state))}function to(e){if(!(128&e.state)){if(oo(e,no.Destroy),ro(e,no.Destroy),Or(e,131072),e.disposables)for(var t=0;t<e.disposables.length;t++)e.disposables[t]();!function(e){if(16&e.state){var t=pn(e);if(t){var n=t.template._projectedViews;n&&(Zn(n,n.indexOf(e)),Zt.dirtyParentQueries(e))}}}(e),e.renderer.destroyNode&&function(e){for(var t=e.def.nodes.length,n=0;n<t;n++){var r=e.def.nodes[n];1&r.flags?e.renderer.destroyNode(qt(e,n).renderElement):2&r.flags?e.renderer.destroyNode(zt(e,n).renderText):(67108864&r.flags||134217728&r.flags)&&Kt(e,n).destroy()}}(e),dn(e)&&e.renderer.destroy(),e.state|=128}}var no=function(){var e={CreateViewNodes:0,CheckNoChanges:1,CheckNoChangesProjectedViews:2,CheckAndUpdate:3,CheckAndUpdateProjectedViews:4,Destroy:5};return e[e.CreateViewNodes]="CreateViewNodes",e[e.CheckNoChanges]="CheckNoChanges",e[e.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",e[e.CheckAndUpdate]="CheckAndUpdate",e[e.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",e[e.Destroy]="Destroy",e}();function ro(e,t){var n=e.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];33554432&o.flags?io(qt(e,r).componentView,t):0==(33554432&o.childFlags)&&(r+=o.childCount)}}function oo(e,t){var n=e.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var o=n.nodes[r];if(16777216&o.flags)for(var i=qt(e,r).viewContainer._embeddedViews,s=0;s<i.length;s++)io(i[s],t);else 0==(16777216&o.childFlags)&&(r+=o.childCount)}}function io(e,t){var n=e.state;switch(t){case no.CheckNoChanges:0==(128&n)&&(12==(12&n)?Gr(e):64&n&&so(e,no.CheckNoChangesProjectedViews));break;case no.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Gr(e):64&n&&so(e,t));break;case no.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Yr(e):64&n&&so(e,no.CheckAndUpdateProjectedViews));break;case no.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Yr(e):64&n&&so(e,t));break;case no.Destroy:to(e);break;case no.CreateViewNodes:Wr(e)}}function so(e,t){oo(e,t),ro(e,t)}function ao(e,t,n,r){if(e.def.nodeFlags&t&&e.def.nodeFlags&n)for(var o=e.def.nodes.length,i=0;i<o;i++){var s=e.def.nodes[i];if(s.flags&t&&s.flags&n)switch(Zt.setCurrentNode(e,s.nodeIndex),r){case 0:Dr(e,s);break;case 1:eo(e,s)}s.childFlags&t&&s.childFlags&n||(i+=s.childCount)}}var uo=!1;function co(e,t,n,r,o,i){return Qr(po(e,o,o.injector.get($e),t,n),r,i)}function lo(e,t,n,r,o,i){var s=o.injector.get($e),a=po(e,o,new Uo(s),t,n),u=wo(r);return qo(No.create,Qr,null,[a,u,i])}function po(e,t,n,r,o){var i=t.injector.get(Lt),s=t.injector.get($);return{ngModule:t,injector:e,projectableNodes:r,selectorOrNode:o,sanitizer:i,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}}function fo(e,t,n,r){var o=wo(n);return qo(No.create,qr,null,[e,t,o,r])}function ho(e,t,n,r){return n=vo.get(t.element.componentProvider.provider.token)||wo(n),qo(No.create,Ur,null,[e,t,n,r])}function yo(e,t,n,r){return ur(e,t,n,function(e){var t=function(e){var t=!1,n=!1;return 0===mo.size?{hasOverrides:t,hasDeprecatedOverrides:n}:(e.providers.forEach(function(e){var r=mo.get(e.token);3840&e.flags&&r&&(t=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:t,hasDeprecatedOverrides:n})}(e),n=t.hasDeprecatedOverrides;return t.hasOverrides?(function(e){for(var t=0;t<e.providers.length;t++){var r=e.providers[t];n&&(r.flags|=4096);var o=mo.get(r.token);o&&(r.flags=-3841&r.flags|o.flags,r.deps=gn(o.deps),r.value=o.value)}}(e=e.factory(function(){return Xt})),e):e}(r))}var mo=new Map,vo=new Map;function go(e){mo.set(e.token,e)}function _o(e,t){var n=wn(wn(t.viewDefFactory).nodes[0].element.componentView);vo.set(e,n)}function bo(){mo.clear(),vo.clear()}function wo(e){if(0===mo.size)return e;var t=function(e){for(var t=[],n=null,r=0;r<e.nodes.length;r++){var o=e.nodes[r];1&o.flags&&(n=o),n&&3840&o.flags&&mo.has(o.provider.token)&&(t.push(n.nodeIndex),n=null)}return t}(e);if(0===t.length)return e;e=e.factory(function(){return Xt});for(var n=0;n<t.length;n++)r(e,t[n]);return e;function r(e,t){for(var n=t+1;n<e.nodes.length;n++){var r=e.nodes[n];if(1&r.flags)return;if(3840&r.flags){var o=r.provider,i=mo.get(o.token);i&&(r.flags=-3841&r.flags|i.flags,o.deps=gn(i.deps),o.value=i.value)}}}}function Eo(e,t,n,r,o,i,s,a,u,c,l,p,f){var h=e.def.nodes[t];return Xr(e,h,n,r,o,i,s,a,u,c,l,p,f),224&h.flags?Ut(e,t).value:void 0}function Co(e,t,n,r,o,i,s,a,u,c,l,p,f){var h=e.def.nodes[t];return $r(e,h,n,r,o,i,s,a,u,c,l,p,f),224&h.flags?Ut(e,t).value:void 0}function So(e){return qo(No.detectChanges,Yr,null,[e])}function To(e){return qo(No.checkNoChanges,Gr,null,[e])}function xo(e){return qo(No.destroy,to,null,[e])}var ko,Oo,Ao,No=function(){var e={create:0,detectChanges:1,checkNoChanges:2,destroy:3,handleEvent:4};return e[e.create]="create",e[e.detectChanges]="detectChanges",e[e.checkNoChanges]="checkNoChanges",e[e.destroy]="destroy",e[e.handleEvent]="handleEvent",e}();function Po(e,t){Oo=e,Ao=t}function Io(e,t,n,r){return Po(e,t),qo(No.handleEvent,e.def.handleEvent,null,[e,t,n,r])}function Do(e,t){if(128&e.state)throw Yt(No[ko]);return Po(e,Lo(e,0)),e.def.updateDirectives(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?Ro(e,s,r,o):jo(e,s,r,o),16384&s.flags&&Po(e,Lo(e,n)),224&s.flags?Ut(e,s.nodeIndex).value:void 0},e)}function Mo(e,t){if(128&e.state)throw Yt(No[ko]);return Po(e,Bo(e,0)),e.def.updateRenderer(function(e,n,r){for(var o=[],i=3;i<arguments.length;i++)o[i-3]=arguments[i];var s=e.def.nodes[n];return 0===t?Ro(e,s,r,o):jo(e,s,r,o),3&s.flags&&Po(e,Bo(e,n)),224&s.flags?Ut(e,s.nodeIndex).value:void 0},e)}function Ro(e,t,n,r){if(Xr.apply(void 0,[e,t,n].concat(r))){var o=1===n?r[0]:r;if(16384&t.flags){for(var i={},s=0;s<t.bindings.length;s++){var a=t.bindings[s],u=o[s];8&a.flags&&(i[(f=a.nonMinifiedName,"ng-reflect-"+(f=f.replace(/[$@]/g,"_").replace(Fo,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return"-"+e[1].toLowerCase()})))]=Vo(u))}var c=t.parent,l=qt(e,c.nodeIndex).renderElement;if(c.element.name)for(var p in i)null!=(u=i[p])?e.renderer.setAttribute(l,p,u):e.renderer.removeAttribute(l,p);else e.renderer.setValue(l,"bindings="+JSON.stringify(i,null,2))}}var f}function jo(e,t,n,r){$r.apply(void 0,[e,t,n].concat(r))}var Fo=/([A-Z])/g;function Vo(e){try{return null!=e?e.toString().slice(0,30):e}catch(e){return"[ERROR] Exception while trying to serialize the value"}}function Lo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Bo(e,t){for(var n=t;n<e.def.nodes.length;n++){var r=e.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}var Ho=function(){function e(e,t){this.view=e,this.nodeIndex=t,null==t&&(this.nodeIndex=t=0),this.nodeDef=e.def.nodes[t];for(var n=this.nodeDef,r=e;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=fn(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(e.prototype,"elOrCompView",{get:function(){return qt(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return or(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"providerTokens",{get:function(){var e=[];if(this.elDef)for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&e.push(n.provider.token),t+=n.childCount}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"references",{get:function(){var e={};if(this.elDef){zo(this.elView,this.elDef,e);for(var t=this.elDef.nodeIndex+1;t<=this.elDef.nodeIndex+this.elDef.childCount;t++){var n=this.elView.def.nodes[t];20224&n.flags&&zo(this.elView,n,e),t+=n.childCount}}return e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentRenderElement",{get:function(){var e=function(e){for(;e&&!dn(e);)e=e.parent;return e.parent?qt(e.parent,fn(e).nodeIndex):null}(this.elOrCompView);return e?e.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?hn(this.view,this.nodeDef):hn(this.elView,this.elDef)},enumerable:!0,configurable:!0}),e.prototype.logError=function(e){for(var t,n,r=[],o=1;o<arguments.length;o++)r[o-1]=arguments[o];2&this.nodeDef.flags?(t=this.view.def,n=this.nodeDef.nodeIndex):(t=this.elView.def,n=this.elDef.nodeIndex);var i=function(e,t){for(var n=-1,r=0;r<=t;r++)3&e.nodes[r].flags&&n++;return n}(t,n),s=-1;t.factory(function(){return++s===i?(t=e.error).bind.apply(t,[e].concat(r)):Xt;var t}),s<i&&(e.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),e.error.apply(e,r))},e}();function zo(e,t,n){for(var r in t.references)n[r]=Rr(e,t,t.references[r])}function qo(e,t,n,r){var o=ko,i=Oo,s=Ao;try{ko=e;var a=t.apply(n,r);return Oo=i,Ao=s,ko=o,a}catch(e){if(Y(e)||!Oo)throw e;throw function(e,t){return e instanceof Error||(e=new Error(e.toString())),Gt(e,t),e}(e,Qo())}}function Qo(){return Oo?new Ho(Oo,Ao):null}var Uo=function(){function e(e){this.delegate=e}return e.prototype.createRenderer=function(e,t){return new Ko(this.delegate.createRenderer(e,t))},e.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},e.prototype.end=function(){this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},e}(),Ko=function(){function e(e){this.delegate=e,this.data=this.delegate.data}return e.prototype.destroyNode=function(e){!function(e){ct.delete(e.nativeNode)}(lt(e)),this.delegate.destroyNode&&this.delegate.destroyNode(e)},e.prototype.destroy=function(){this.delegate.destroy()},e.prototype.createElement=function(e,t){var n=this.delegate.createElement(e,t),r=Qo();if(r){var o=new st(n,null,r);o.name=e,pt(o)}return n},e.prototype.createComment=function(e){var t=this.delegate.createComment(e),n=Qo();return n&&pt(new it(t,null,n)),t},e.prototype.createText=function(e){var t=this.delegate.createText(e),n=Qo();return n&&pt(new it(t,null,n)),t},e.prototype.appendChild=function(e,t){var n=lt(e),r=lt(t);n&&r&&n instanceof st&&n.addChild(r),this.delegate.appendChild(e,t)},e.prototype.insertBefore=function(e,t,n){var r=lt(e),o=lt(t),i=lt(n);r&&o&&r instanceof st&&r.insertBefore(i,o),this.delegate.insertBefore(e,t,n)},e.prototype.removeChild=function(e,t){var n=lt(e),r=lt(t);n&&r&&n instanceof st&&n.removeChild(r),this.delegate.removeChild(e,t)},e.prototype.selectRootElement=function(e){var t=this.delegate.selectRootElement(e),n=Qo();return n&&pt(new st(t,null,n)),t},e.prototype.setAttribute=function(e,t,n,r){var o=lt(e);o&&o instanceof st&&(o.attributes[r?r+":"+t:t]=n),this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){var r=lt(e);r&&r instanceof st&&(r.attributes[n?n+":"+t:t]=null),this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){var n=lt(e);n&&n instanceof st&&(n.classes[t]=!0),this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){var n=lt(e);n&&n instanceof st&&(n.classes[t]=!1),this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){var o=lt(e);o&&o instanceof st&&(o.styles[t]=n),this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){var r=lt(e);r&&r instanceof st&&(r.styles[t]=null),this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){var r=lt(e);r&&r instanceof st&&(r.properties[t]=n),this.delegate.setProperty(e,t,n)},e.prototype.listen=function(e,t,n){if("string"!=typeof e){var r=lt(e);r&&r.listeners.push(new function(e,t){this.name=e,this.callback=t}(t,n))}return this.delegate.listen(e,t,n)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setValue=function(e,t){return this.delegate.setValue(e,t)},e}();function Zo(e,t,n){return new Go(e,t,n)}var Wo,Go=function(e){function t(t,n,r){var o=e.call(this)||this;return o.moduleType=t,o._bootstrapComponents=n,o._ngModuleDefFactory=r,o}return Object(r.b)(t,e),t.prototype.create=function(e){!function(){if(!uo){uo=!0;var e=Ue()?{setCurrentNode:Po,createRootView:lo,createEmbeddedView:fo,createComponentView:ho,createNgModuleRef:yo,overrideProvider:go,overrideComponentView:_o,clearOverrides:bo,checkAndUpdateView:So,checkNoChangesView:To,destroyView:xo,createDebugContext:function(e,t){return new Ho(e,t)},handleEvent:Io,updateDirectives:Do,updateRenderer:Mo}:{setCurrentNode:function(){},createRootView:co,createEmbeddedView:qr,createComponentView:Ur,createNgModuleRef:ur,overrideProvider:Xt,overrideComponentView:Xt,clearOverrides:Xt,checkAndUpdateView:Yr,checkNoChangesView:Gr,destroyView:to,createDebugContext:function(e,t){return new Ho(e,t)},handleEvent:function(e,t,n,r){return e.def.handleEvent(e,t,n,r)},updateDirectives:function(e,t){return e.def.updateDirectives(0===t?Eo:Co,e)},updateRenderer:function(e,t){return e.def.updateRenderer(0===t?Eo:Co,e)}};Zt.setCurrentNode=e.setCurrentNode,Zt.createRootView=e.createRootView,Zt.createEmbeddedView=e.createEmbeddedView,Zt.createComponentView=e.createComponentView,Zt.createNgModuleRef=e.createNgModuleRef,Zt.overrideProvider=e.overrideProvider,Zt.overrideComponentView=e.overrideComponentView,Zt.clearOverrides=e.clearOverrides,Zt.checkAndUpdateView=e.checkAndUpdateView,Zt.checkNoChangesView=e.checkNoChangesView,Zt.destroyView=e.destroyView,Zt.resolveDep=Tr,Zt.createDebugContext=e.createDebugContext,Zt.handleEvent=e.handleEvent,Zt.updateDirectives=e.updateDirectives,Zt.updateRenderer=e.updateRenderer,Zt.dirtyParentQueries=Ir}}();var t=wn(this._ngModuleDefFactory);return Zt.createNgModuleRef(this.moduleType,e||D.NULL,this._bootstrapComponents,t)},t}(function(){});"undefined"==typeof ngDevMode&&("undefined"!=typeof window&&(window.ngDevMode=!0),"undefined"!=typeof self&&(self.ngDevMode=!0),"undefined"!=typeof e&&(e.ngDevMode=!0)),Wo=function(e,t,n){return{parent:Wo,id:null,node:null,data:[],ngStaticData:[],cleanup:null,renderer:null,child:null,tail:null,next:null,bindingStartIndex:null,creationMode:!0,viewHookStartIndex:null}}()}).call(t,n("fRUx"))},NGRF:function(e,t,n){"use strict";t.a=function(e){return null!=e&&"object"==typeof e}},TO51:function(e,t,n){"use strict";var r=n("6Xbx"),o=n("AP4T"),i=n("E9/g"),s=n("qLnt"),a=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return Object(r.b)(t,e),t}(Error),u=function(e){function t(t,n){e.call(this),this.subject=t,this.subscriber=n,this.closed=!1}return Object(r.b)(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var n=t.indexOf(this.subscriber);-1!==n&&t.splice(n,1)}}},t}(s.a),c=n("V7AE");n.d(t,"b",function(){return l}),n.d(t,"a",function(){return p});var l=function(e){function t(t){e.call(this,t),this.destination=t}return Object(r.b)(t,e),t}(i.a),p=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return Object(r.b)(t,e),t.prototype[c.a]=function(){return new l(this)},t.prototype.lift=function(e){var t=new f(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new a;if(!this.isStopped)for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new a;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,n=t.length,r=t.slice(),o=0;o<n;o++)r[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new a;this.isStopped=!0;for(var e=this.observers,t=e.length,n=e.slice(),r=0;r<t;r++)n[r].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new a;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new a;return this.hasError?(e.error(this.thrownError),s.a.EMPTY):this.isStopped?(e.complete(),s.a.EMPTY):(this.observers.push(e),new u(this,e))},t.prototype.asObservable=function(){var e=new o.a;return e.source=this,e},t.create=function(e,t){return new f(e,t)},t}(o.a),f=function(e){function t(t,n){e.call(this),this.destination=t,this.source=n}return Object(r.b)(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):s.a.EMPTY},t}(p)},URbD:function(e,t,n){"use strict";var r=n("6Xbx"),o=n("TO51"),i=n("AP4T"),s=n("E9/g"),a=n("qLnt");function u(){return function(e){return e.lift(new c(e))}}var c=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var n=this.connectable;n._refCount++;var r=new l(e,n),o=t.subscribe(r);return r.closed||(r.connection=n.connect()),o},e}(),l=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var n=this.connection,r=e._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},t}(s.a),p=function(e){function t(t,n){e.call(this),this.source=t,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return Object(r.b)(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new a.a).add(this.source.subscribe(new h(this.getSubject(),this))),e.closed?(this._connection=null,e=a.a.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return u()(this)},t}(i.a).prototype,f={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:p._subscribe},_isComplete:{value:p._isComplete,writable:!0},getSubject:{value:p.getSubject},connect:{value:p.connect},refCount:{value:p.refCount}},h=function(e){function t(t,n){e.call(this,t),this.connectable=n}return Object(r.b)(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(o.b);function d(){return new o.a}t.a=function(){return this,u()((e=d,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,f);return r.source=t,r.subjectFactory=n,r})(this));var e}},V7AE:function(e,t,n){"use strict";n.d(t,"a",function(){return o});var r=n("xIGM").a.Symbol,o="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber"},YuZA:function(e,t){function n(e){return Promise.resolve().then(function(){throw new Error("Cannot find module '"+e+"'.")})}n.keys=function(){return[]},n.resolve=n,e.exports=n,n.id="YuZA"},cDNt:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n("LMZF"),o=function(){},i=function(){this.items=[{title:"Slide 1"},{title:"Slide 2"},{title:"Slide 3"},{title:"Slide 4"},{title:"Slide 5"},{title:"Slide 6"},{title:"Slide 7"},{title:"Slide 8"}]},s=function(){function e(){this.currentPosition=new r.j}return e.prototype.ngOnInit=function(){this.cardName="Title "+this.index},Object.defineProperty(e.prototype,"cardPosition",{get:function(){return this.position},enumerable:!0,configurable:!0}),e.prototype.positionChange=function(e){this.position=e;var t=0;switch(e){case 1:t=1;break;case 4:t=-2;break;case 0:t=2;break;case 3:t=-1}0!==t&&this.currentPosition.emit(t)},e}(),a=r.R({encapsulation:0,styles:[['[_nghost-%COMP%]{position:absolute;width:485px;height:300px;cursor:pointer;border-radius:12px;-webkit-box-shadow:0 0 14px 6px rgba(255,0,0,0);box-shadow:0 0 14px 6px rgba(255,0,0,0);-webkit-transition:-webkit-box-shadow .3s ease-out;transition:-webkit-box-shadow .3s ease-out;transition:box-shadow .3s ease-out;transition:box-shadow .3s ease-out,-webkit-box-shadow .3s ease-out}[_nghost-%COMP%]:after{position:absolute;width:100%;height:25px;border-radius:12px 12px 0 0;content:"";bottom:-26px;background:-webkit-gradient(linear,left top,left bottom,from(rgba(0,0,0,.2)),color-stop(90%,transparent));background:linear-gradient(180deg,rgba(0,0,0,.2) 0,transparent 90%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#55ffff",endColorstr="#00ffffff",GradientType=0)}[_nghost-%COMP%]:hover{-webkit-box-shadow:0 0 14px 6px rgba(255,0,0,.3);box-shadow:0 0 14px 6px rgba(255,0,0,.3)}.background[_ngcontent-%COMP%]{position:absolute;left:0;right:0;bottom:0;top:0;background:url(iron-man.47c7cffd7722fca11d12.jpg) no-repeat 50% #fff;background-size:cover;border-radius:12px;overflow:hidden}.background[_ngcontent-%COMP%]:before{position:absolute;width:100%;height:100%;content:"";z-index:2;-webkit-transform:skew(45deg,0deg) translateX(150px);transform:skew(45deg,0deg) translateX(150px);background:-webkit-gradient(linear,left top,left bottom,from(hsla(0,0%,100%,.3)),color-stop(80%,hsla(0,0%,100%,0)));background:linear-gradient(180deg,hsla(0,0%,100%,.3) 0,hsla(0,0%,100%,0) 80%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr="#55ffff",endColorstr="#00ffffff",GradientType=0)}.text-container[_ngcontent-%COMP%]{z-index:4;left:50%;padding:15px;background-color:hsla(0,0%,100%,.5);border-radius:0 12px 12px 0}.text-container[_ngcontent-%COMP%], .text-container[_ngcontent-%COMP%]:before{position:absolute;right:0;bottom:0;top:0}.text-container[_ngcontent-%COMP%]:before{left:0;z-index:3;background-color:#0f0;mix-blend-mode:multiply}img[_ngcontent-%COMP%]{position:absolute;display:block;height:100%;width:auto;position:relative}h2[_ngcontent-%COMP%]{margin:5px 0 10px}p[_ngcontent-%COMP%]{margin:5px 0}']],data:{}});function u(e){return r._7(0,[(e()(),r.T(0,0,null,null,0,"div",[["class","background"]],null,null,null,null,null)),(e()(),r._6(-1,null,["\n"])),(e()(),r.T(2,0,null,null,7,"div",[["class","text-container"]],null,null,null,null,null)),(e()(),r._6(-1,null,["\n    "])),(e()(),r.T(4,0,null,null,1,"h2",[],null,null,null,null,null)),(e()(),r._6(5,null,[""," ",""])),(e()(),r._6(-1,null,["\n    "])),(e()(),r.T(7,0,null,null,1,"p",[],null,null,null,null,null)),(e()(),r._6(-1,null,["It\u2019s point is to repeat a given HTML template once for each value in an array, each time passing it the array value as context for string interpolation or binding."])),(e()(),r._6(-1,null,["\n"]))],null,function(e,t){var n=t.component;e(t,5,0,n.cardName,n.position)})}var c=n("6Xbx"),l=function(){},p=["en",[["a","p"],["AM","PM"]],[["AM","PM"],,],[["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"]],,[["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"]],,[["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}",,"{1} 'at' {0}"],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",function(e){var t=Math.floor(Math.abs(e)),n=e.toString().replace(/^[^.]*\.?/,"").length;return 1===t&&0===n?1:5}],f={},h=function(){var e={Zero:0,One:1,Two:2,Few:3,Many:4,Other:5};return e[e.Zero]="Zero",e[e.One]="One",e[e.Two]="Two",e[e.Few]="Few",e[e.Many]="Many",e[e.Other]="Other",e}(),d=new r.l("UseV4Plurals"),y=function(){},m=function(e){function t(t,n){var r=e.call(this)||this;return r.locale=t,r.deprecatedPluralFn=n,r}return Object(c.b)(t,e),t.prototype.getPluralCategory=function(e,t){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(t||this.locale,e):function(e){return function(e){var t=e.toLowerCase().replace(/_/g,"-"),n=f[t];if(n)return n;var r=t.split("-")[0];if(n=f[r])return n;if("en"===r)return p;throw new Error('Missing locale data for the locale "'+e+'".')}(e)[17]}(t||this.locale)(e)){case h.Zero:return"zero";case h.One:return"one";case h.Two:return"two";case h.Few:return"few";case h.Many:return"many";default:return"other"}},t}(y),v=function(){function e(e,t,n,r){this.$implicit=e,this.ngForOf=t,this.index=n,this.count=r}return Object.defineProperty(e.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),e}(),g=function(){function e(e,t,n){this._viewContainer=e,this._template=t,this._differs=n,this._differ=null}return Object.defineProperty(e.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(e){Object(r.J)()&&null!=e&&"function"!=typeof e&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(e)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=e},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngForTemplate",{set:function(e){e&&(this._template=e)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(e){if("ngForOf"in e){var t=e.ngForOf.currentValue;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(e){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var n},e.prototype.ngDoCheck=function(){if(this._differ){var e=this._differ.diff(this.ngForOf);e&&this._applyChanges(e)}},e.prototype._applyChanges=function(e){var t=this,n=[];e.forEachOperation(function(e,r,o){if(null==e.previousIndex){var i=t._viewContainer.createEmbeddedView(t._template,new v(null,t.ngForOf,-1,-1),o),s=new _(e,i);n.push(s)}else null==o?t._viewContainer.remove(r):(i=t._viewContainer.get(r),t._viewContainer.move(i,o),s=new _(e,i),n.push(s))});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);r=0;for(var o=this._viewContainer.length;r<o;r++){var i=this._viewContainer.get(r);i.context.index=r,i.context.count=o}e.forEachIdentityChange(function(e){t._viewContainer.get(e.currentIndex).context.$implicit=e.item})},e.prototype._perViewChange=function(e,t){e.context.$implicit=t.item},e}(),_=function(e,t){this.record=e,this.view=t},b=function(){},w=new r.l("DocumentToken"),E=function(){},C="*";function S(e,t){return void 0===t&&(t=null),{type:2,steps:e,options:t}}function T(e){return{type:6,styles:e,offset:null}}function x(e){Promise.resolve(null).then(e)}var k=function(){function e(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.init=function(){},e.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},e.prototype.triggerMicrotask=function(){var e=this;x(function(){return e._onFinish()})},e.prototype._onStart=function(){this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[]},e.prototype.pause=function(){},e.prototype.restart=function(){},e.prototype.finish=function(){this._onFinish()},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){},e.prototype.setPosition=function(e){},e.prototype.getPosition=function(){return 0},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),O=function(){function e(e){var t=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=e;var n=0,r=0,o=0,i=this.players.length;0==i?x(function(){return t._onFinish()}):this.players.forEach(function(e){e.onDone(function(){++n==i&&t._onFinish()}),e.onDestroy(function(){++r==i&&t._onDestroy()}),e.onStart(function(){++o==i&&t._onStart()})}),this.totalTime=this.players.reduce(function(e,t){return Math.max(e,t.totalTime)},0)}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this.players.forEach(function(e){return e.init()})},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[])},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(e){return e.play()})},e.prototype.pause=function(){this.players.forEach(function(e){return e.pause()})},e.prototype.restart=function(){this.players.forEach(function(e){return e.restart()})},e.prototype.finish=function(){this._onFinish(),this.players.forEach(function(e){return e.finish()})},e.prototype.destroy=function(){this._onDestroy()},e.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(e){return e.destroy()}),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.reset=function(){this.players.forEach(function(e){return e.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype.setPosition=function(e){var t=e*this.totalTime;this.players.forEach(function(e){var n=e.totalTime?Math.min(1,t/e.totalTime):1;e.setPosition(n)})},e.prototype.getPosition=function(){var e=0;return this.players.forEach(function(t){var n=t.getPosition();e=Math.min(n,e)}),e},e.prototype.beforeDestroy=function(){this.players.forEach(function(e){e.beforeDestroy&&e.beforeDestroy()})},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}(),A="!",N=function(){function e(e,t){this.animationBuilder=e,this.elementRef=t,this.items=new Array(8),this.speed=400,this.timing=this.speed+"ms ease-out",this.centerCoords={x:0,y:0},this.radius=0,this.canvasSize={width:0,height:0},this.cardBaseSize={width:0,height:0},this.propCanvasCard=0,this.cardsArr=[]}return e.prototype.ngAfterViewInit=function(){this.cardsArr=this.cards.toArray(),this.proportions()},e.prototype.proportions=function(){this.canvasSize.width=this.elementRef.nativeElement.parentNode.clientWidth,this.canvasSize.height=.3*this.canvasSize.width,this.elementRef.nativeElement.parentNode.style.height=this.canvasSize.height+"px",this.radius=.395*this.canvasSize.width,this.centerCoords.x=this.canvasSize.width/2,this.centerCoords.y=this.canvasSize.height/2,this.cardBaseSize.width=this.baseCard.nativeElement.clientWidth,this.cardBaseSize.height=this.baseCard.nativeElement.clientHeight,this.propCanvasCard=this.canvasSize.width/this.cardBaseSize.width,this.createAnimation(0,!1)},e.prototype.createAnimation=function(e,t){var n=this;this.player&&this.player.destroy(),this.elCards.forEach(function(t,r){var o=e+n.cardsArr[r].cardPosition;switch(o){case-1:o=7;break;case-2:o=6;break;case 8:o=0;break;case 9:o=1}n.cardsArr[r].positionChange(o);var i=n.calculateCoords(o);t.nativeElement.style.zIndex=Math.round(100*(i.z+1));var s=n.buildAnimation(i);n.player=s.create(t.nativeElement),n.player.play(),n.player.onDone(function(){t.nativeElement.style.transform="translate("+i.x+"px, "+i.y+"px) scale("+(i.z+1)*n.propCanvasCard*.2+")"})}),!0===t&&setTimeout(function(){return n.createAnimation(e,!1)},this.speed+20)},e.prototype.calculateCoords=function(e){return{x:this.radius*Math.cos(360*e/8*Math.PI/180)+this.centerCoords.x-.5*this.cardBaseSize.width,y:0*this.radius*Math.sin(360*e/8*Math.PI/180)+this.centerCoords.y-.5*this.cardBaseSize.height,z:Math.sin(360*e/8*Math.PI/180)}},e.prototype.buildAnimation=function(e){return e.z<0&&(e.z=0),this.animationBuilder.build([(t=this.timing,n=T({transform:"translate("+e.x+"px, "+e.y+"px) scale("+(e.z+1)*this.propCanvasCard*.2+")"}),void 0===n&&(n=null),{type:4,styles:n,timings:t})]);var t,n},e.prototype.onCardClick=function(e){switch(this.cardsArr[e].position){case 0:this.createAnimation(1,!0);break;case 1:this.createAnimation(1,!1);break;case 3:this.createAnimation(-1,!1);break;case 4:this.createAnimation(-1,!0)}},e.prototype.onResize=function(){this.proportions()},e}(),P=r.R({encapsulation:0,styles:[["[_nghost-%COMP%]{left:0;right:0;top:0;bottom:0}.box[_ngcontent-%COMP%], [_nghost-%COMP%]{position:absolute}.box[_ngcontent-%COMP%]{width:300px;height:50px;background-color:rgba(255,0,0,.3);border-right:4px solid red;z-index:300;left:calc(50% - 150px);top:calc(50% - 25px)}"]],data:{}});function I(e){return r._7(0,[(e()(),r.T(0,0,[[2,0],[3,0]],null,2,"app-card",[],null,[[null,"click"],["window","resize"]],function(e,t,n){var r=!0,o=e.component;return"click"===t&&(r=!1!==o.onCardClick(e.context.index)&&r),"window:resize"===t&&(r=!1!==o.onResize(n)&&r),r},u,a)),r.S(1,114688,[[1,4],["withBuilder",4]],0,s,[],{index:[0,"index"],position:[1,"position"]},null),(e()(),r._6(-1,null,["\n"]))],function(e,t){e(t,1,0,t.context.index,t.context.index)},null)}function D(e){return r._7(0,[r._4(671088640,1,{cards:1}),r._4(671088640,2,{elCards:1}),r._4(671088640,3,{baseCard:0}),r._4(402653184,4,{box:0}),(e()(),r.O(16777216,null,null,1,null,I)),r.S(5,802816,null,0,g,[r.D,r.A,r.n],{ngForOf:[0,"ngForOf"]},null)],function(e,t){e(t,5,0,t.component.items)},null)}var M=r.R({encapsulation:0,styles:[["[_nghost-%COMP%]{position:absolute;right:0;left:0;top:0;bottom:0}.carousel[_ngcontent-%COMP%]{position:relative;width:96%;margin:30px auto;height:800px;background-color:#f2f6ff}"]],data:{}});function R(e){return r._7(0,[(e()(),r.T(0,0,null,null,4,"div",[["class","carousel"]],null,null,null,null,null)),(e()(),r._6(-1,null,["\n  "])),(e()(),r.T(2,0,null,null,1,"app-carousel",[],null,null,null,D,P)),r.S(3,4243456,null,0,N,[E,r.h],null,null),(e()(),r._6(-1,null,["\n"]))],null,null)}var j=r.P("app-root",i,function(e){return r._7(0,[(e()(),r.T(0,0,null,null,1,"app-root",[],null,null,null,R,M)),r.S(1,49152,null,0,i,[],null,null)],null,null)},{},{},[]),F=null;function V(){return F}var L,B={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},H={"\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"},z={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"};r.U.Node&&(L=r.U.Node.prototype.contains||function(e){return!!(16&this.compareDocumentPosition(e))});var q,Q=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.parse=function(e){throw new Error("parse not implemented")},t.makeCurrent=function(){var e;e=new t,F||(F=e)},t.prototype.hasProperty=function(e,t){return t in e},t.prototype.setProperty=function(e,t,n){e[t]=n},t.prototype.getProperty=function(e,t){return e[t]},t.prototype.invoke=function(e,t,n){var r;(r=e)[t].apply(r,n)},t.prototype.logError=function(e){window.console&&(console.error?console.error(e):console.log(e))},t.prototype.log=function(e){window.console&&window.console.log&&window.console.log(e)},t.prototype.logGroup=function(e){window.console&&window.console.group&&window.console.group(e)},t.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return B},enumerable:!0,configurable:!0}),t.prototype.contains=function(e,t){return L.call(e,t)},t.prototype.querySelector=function(e,t){return e.querySelector(t)},t.prototype.querySelectorAll=function(e,t){return e.querySelectorAll(t)},t.prototype.on=function(e,t,n){e.addEventListener(t,n,!1)},t.prototype.onAndCancel=function(e,t,n){return e.addEventListener(t,n,!1),function(){e.removeEventListener(t,n,!1)}},t.prototype.dispatchEvent=function(e,t){e.dispatchEvent(t)},t.prototype.createMouseEvent=function(e){var t=this.getDefaultDocument().createEvent("MouseEvent");return t.initEvent(e,!0,!0),t},t.prototype.createEvent=function(e){var t=this.getDefaultDocument().createEvent("Event");return t.initEvent(e,!0,!0),t},t.prototype.preventDefault=function(e){e.preventDefault(),e.returnValue=!1},t.prototype.isPrevented=function(e){return e.defaultPrevented||null!=e.returnValue&&!e.returnValue},t.prototype.getInnerHTML=function(e){return e.innerHTML},t.prototype.getTemplateContent=function(e){return"content"in e&&this.isTemplateElement(e)?e.content:null},t.prototype.getOuterHTML=function(e){return e.outerHTML},t.prototype.nodeName=function(e){return e.nodeName},t.prototype.nodeValue=function(e){return e.nodeValue},t.prototype.type=function(e){return e.type},t.prototype.content=function(e){return this.hasProperty(e,"content")?e.content:e},t.prototype.firstChild=function(e){return e.firstChild},t.prototype.nextSibling=function(e){return e.nextSibling},t.prototype.parentElement=function(e){return e.parentNode},t.prototype.childNodes=function(e){return e.childNodes},t.prototype.childNodesAsList=function(e){for(var t=e.childNodes,n=new Array(t.length),r=0;r<t.length;r++)n[r]=t[r];return n},t.prototype.clearNodes=function(e){for(;e.firstChild;)e.removeChild(e.firstChild)},t.prototype.appendChild=function(e,t){e.appendChild(t)},t.prototype.removeChild=function(e,t){e.removeChild(t)},t.prototype.replaceChild=function(e,t,n){e.replaceChild(t,n)},t.prototype.remove=function(e){return e.parentNode&&e.parentNode.removeChild(e),e},t.prototype.insertBefore=function(e,t,n){e.insertBefore(n,t)},t.prototype.insertAllBefore=function(e,t,n){n.forEach(function(n){return e.insertBefore(n,t)})},t.prototype.insertAfter=function(e,t,n){e.insertBefore(n,t.nextSibling)},t.prototype.setInnerHTML=function(e,t){e.innerHTML=t},t.prototype.getText=function(e){return e.textContent},t.prototype.setText=function(e,t){e.textContent=t},t.prototype.getValue=function(e){return e.value},t.prototype.setValue=function(e,t){e.value=t},t.prototype.getChecked=function(e){return e.checked},t.prototype.setChecked=function(e,t){e.checked=t},t.prototype.createComment=function(e){return this.getDefaultDocument().createComment(e)},t.prototype.createTemplate=function(e){var t=this.getDefaultDocument().createElement("template");return t.innerHTML=e,t},t.prototype.createElement=function(e,t){return(t=t||this.getDefaultDocument()).createElement(e)},t.prototype.createElementNS=function(e,t,n){return(n=n||this.getDefaultDocument()).createElementNS(e,t)},t.prototype.createTextNode=function(e,t){return(t=t||this.getDefaultDocument()).createTextNode(e)},t.prototype.createScriptTag=function(e,t,n){var r=(n=n||this.getDefaultDocument()).createElement("SCRIPT");return r.setAttribute(e,t),r},t.prototype.createStyleElement=function(e,t){var n=(t=t||this.getDefaultDocument()).createElement("style");return this.appendChild(n,this.createTextNode(e,t)),n},t.prototype.createShadowRoot=function(e){return e.createShadowRoot()},t.prototype.getShadowRoot=function(e){return e.shadowRoot},t.prototype.getHost=function(e){return e.host},t.prototype.clone=function(e){return e.cloneNode(!0)},t.prototype.getElementsByClassName=function(e,t){return e.getElementsByClassName(t)},t.prototype.getElementsByTagName=function(e,t){return e.getElementsByTagName(t)},t.prototype.classList=function(e){return Array.prototype.slice.call(e.classList,0)},t.prototype.addClass=function(e,t){e.classList.add(t)},t.prototype.removeClass=function(e,t){e.classList.remove(t)},t.prototype.hasClass=function(e,t){return e.classList.contains(t)},t.prototype.setStyle=function(e,t,n){e.style[t]=n},t.prototype.removeStyle=function(e,t){e.style[t]=""},t.prototype.getStyle=function(e,t){return e.style[t]},t.prototype.hasStyle=function(e,t,n){var r=this.getStyle(e,t)||"";return n?r==n:r.length>0},t.prototype.tagName=function(e){return e.tagName},t.prototype.attributeMap=function(e){for(var t=new Map,n=e.attributes,r=0;r<n.length;r++){var o=n.item(r);t.set(o.name,o.value)}return t},t.prototype.hasAttribute=function(e,t){return e.hasAttribute(t)},t.prototype.hasAttributeNS=function(e,t,n){return e.hasAttributeNS(t,n)},t.prototype.getAttribute=function(e,t){return e.getAttribute(t)},t.prototype.getAttributeNS=function(e,t,n){return e.getAttributeNS(t,n)},t.prototype.setAttribute=function(e,t,n){e.setAttribute(t,n)},t.prototype.setAttributeNS=function(e,t,n,r){e.setAttributeNS(t,n,r)},t.prototype.removeAttribute=function(e,t){e.removeAttribute(t)},t.prototype.removeAttributeNS=function(e,t,n){e.removeAttributeNS(t,n)},t.prototype.templateAwareRoot=function(e){return this.isTemplateElement(e)?this.content(e):e},t.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},t.prototype.getDefaultDocument=function(){return document},t.prototype.getBoundingClientRect=function(e){try{return e.getBoundingClientRect()}catch(e){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},t.prototype.getTitle=function(e){return e.title},t.prototype.setTitle=function(e,t){e.title=t||""},t.prototype.elementMatches=function(e,t){return!!this.isElementNode(e)&&(e.matches&&e.matches(t)||e.msMatchesSelector&&e.msMatchesSelector(t)||e.webkitMatchesSelector&&e.webkitMatchesSelector(t))},t.prototype.isTemplateElement=function(e){return this.isElementNode(e)&&"TEMPLATE"===e.nodeName},t.prototype.isTextNode=function(e){return e.nodeType===Node.TEXT_NODE},t.prototype.isCommentNode=function(e){return e.nodeType===Node.COMMENT_NODE},t.prototype.isElementNode=function(e){return e.nodeType===Node.ELEMENT_NODE},t.prototype.hasShadowRoot=function(e){return null!=e.shadowRoot&&e instanceof HTMLElement},t.prototype.isShadowRoot=function(e){return e instanceof DocumentFragment},t.prototype.importIntoDoc=function(e){return document.importNode(this.templateAwareRoot(e),!0)},t.prototype.adoptNode=function(e){return document.adoptNode(e)},t.prototype.getHref=function(e){return e.getAttribute("href")},t.prototype.getEventKey=function(e){var t=e.key;if(null==t){if(null==(t=e.keyIdentifier))return"Unidentified";t.startsWith("U+")&&(t=String.fromCharCode(parseInt(t.substring(2),16)),3===e.location&&z.hasOwnProperty(t)&&(t=z[t]))}return H[t]||t},t.prototype.getGlobalEventTarget=function(e,t){return"window"===t?window:"document"===t?e:"body"===t?e.body:null},t.prototype.getHistory=function(){return window.history},t.prototype.getLocation=function(){return window.location},t.prototype.getBaseHref=function(e){var t,n=U||(U=document.querySelector("base"))?U.getAttribute("href"):null;return null==n?null:(t=n,q||(q=document.createElement("a")),q.setAttribute("href",t),"/"===q.pathname.charAt(0)?q.pathname:"/"+q.pathname)},t.prototype.resetBaseElement=function(){U=null},t.prototype.getUserAgent=function(){return window.navigator.userAgent},t.prototype.setData=function(e,t,n){this.setAttribute(e,"data-"+t,n)},t.prototype.getData=function(e,t){return this.getAttribute(e,"data-"+t)},t.prototype.getComputedStyle=function(e){return getComputedStyle(e)},t.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},t.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},t.prototype.supportsCookies=function(){return!0},t.prototype.getCookie=function(e){return function(e,t){t=encodeURIComponent(t);for(var n=0,r=e.split(";");n<r.length;n++){var o=r[n],i=o.indexOf("="),s=-1==i?[o,""]:[o.slice(0,i),o.slice(i+1)],a=s[1];if(s[0].trim()===t)return decodeURIComponent(a)}return null}(document.cookie,e)},t.prototype.setCookie=function(e,t){document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)},t}(function(e){function t(){var t=e.call(this)||this;t._animationPrefix=null,t._transitionEnd=null;try{var n=t.createElement("div",document);if(null!=t.getStyle(n,"animationName"))t._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],o=0;o<r.length;o++)if(null!=t.getStyle(n,r[o]+"AnimationName")){t._animationPrefix="-"+r[o].toLowerCase()+"-";break}var i={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(i).forEach(function(e){null!=t.getStyle(n,e)&&(t._transitionEnd=i[e])})}catch(e){t._animationPrefix=null,t._transitionEnd=null}return t}return Object(c.b)(t,e),t.prototype.getDistributedNodes=function(e){return e.getDistributedNodes()},t.prototype.resolveAndSetHref=function(e,t,n){e.href=null==n?t:t+"/../"+n},t.prototype.supportsDOMEvents=function(){return!0},t.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},t.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},t.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},t.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},t}(function(){function e(){this.resourceLoaderType=null}return Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(e){this._attrToPropMap=e},enumerable:!0,configurable:!0}),e}())),U=null,K=w;function Z(){return!!window.history.pushState}var W=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._init(),n}return Object(c.b)(t,e),t.prototype._init=function(){this.location=V().getLocation(),this._history=V().getHistory()},t.prototype.getBaseHrefFromDOM=function(){return V().getBaseHref(this._doc)},t.prototype.onPopState=function(e){V().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",e,!1)},t.prototype.onHashChange=function(e){V().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",e,!1)},Object.defineProperty(t.prototype,"pathname",{get:function(){return this.location.pathname},set:function(e){this.location.pathname=e},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),t.prototype.pushState=function(e,t,n){Z()?this._history.pushState(e,t,n):this.location.hash=n},t.prototype.replaceState=function(e,t,n){Z()?this._history.replaceState(e,t,n):this.location.hash=n},t.prototype.forward=function(){this._history.forward()},t.prototype.back=function(){this._history.back()},t.ctorParameters=function(){return[{type:void 0,decorators:[{type:r.k,args:[K]}]}]},t}(l),G=function(){function e(e){this._doc=e,this._dom=V()}return e.prototype.addTag=function(e,t){return void 0===t&&(t=!1),e?this._getOrCreateElement(e,t):null},e.prototype.addTags=function(e,t){var n=this;return void 0===t&&(t=!1),e?e.reduce(function(e,r){return r&&e.push(n._getOrCreateElement(r,t)),e},[]):[]},e.prototype.getTag=function(e){return e&&this._dom.querySelector(this._doc,"meta["+e+"]")||null},e.prototype.getTags=function(e){if(!e)return[];var t=this._dom.querySelectorAll(this._doc,"meta["+e+"]");return t?[].slice.call(t):[]},e.prototype.updateTag=function(e,t){if(!e)return null;t=t||this._parseSelector(e);var n=this.getTag(t);return n?this._setMetaElementAttributes(e,n):this._getOrCreateElement(e,!0)},e.prototype.removeTag=function(e){this.removeTagElement(this.getTag(e))},e.prototype.removeTagElement=function(e){e&&this._dom.remove(e)},e.prototype._getOrCreateElement=function(e,t){if(void 0===t&&(t=!1),!t){var n=this._parseSelector(e),r=this.getTag(n);if(r&&this._containsAttributes(e,r))return r}var o=this._dom.createElement("meta");this._setMetaElementAttributes(e,o);var i=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(i,o),o},e.prototype._setMetaElementAttributes=function(e,t){var n=this;return Object.keys(e).forEach(function(r){return n._dom.setAttribute(t,r,e[r])}),t},e.prototype._parseSelector=function(e){var t=e.name?"name":"property";return t+'="'+e[t]+'"'},e.prototype._containsAttributes=function(e,t){var n=this;return Object.keys(e).every(function(r){return n._dom.getAttribute(t,r)===e[r]})},e}(),Y=new r.l("TRANSITION_ID"),X=[{provide:r.b,useFactory:function(e,t,n){return function(){n.get(r.c).donePromise.then(function(){var n=V();Array.prototype.slice.apply(n.querySelectorAll(t,"style[ng-transition]")).filter(function(t){return n.getAttribute(t,"ng-transition")===e}).forEach(function(e){return n.remove(e)})})}},deps:[Y,K,r.m],multi:!0}],J=function(){function e(){}return e.init=function(){Object(r.L)(new e)},e.prototype.addToWindow=function(e){r.U.getAngularTestability=function(t,n){void 0===n&&(n=!0);var r=e.findTestabilityInTree(t,n);if(null==r)throw new Error("Could not find testability for element.");return r},r.U.getAllAngularTestabilities=function(){return e.getAllTestabilities()},r.U.getAllAngularRootElements=function(){return e.getAllRootElements()},r.U.frameworkStabilizers||(r.U.frameworkStabilizers=[]),r.U.frameworkStabilizers.push(function(e){var t=r.U.getAllAngularTestabilities(),n=t.length,o=!1,i=function(t){o=o||t,0==--n&&e(o)};t.forEach(function(e){e.whenStable(i)})})},e.prototype.findTestabilityInTree=function(e,t,n){if(null==t)return null;var r=e.getTestability(t);return null!=r?r:n?V().isShadowRoot(t)?this.findTestabilityInTree(e,V().getHost(t),!0):this.findTestabilityInTree(e,V().parentElement(t),!0):null},e}(),$=function(){function e(e){this._doc=e}return e.prototype.getTitle=function(){return V().getTitle(this._doc)},e.prototype.setTitle=function(e){V().setTitle(this._doc,e)},e}();function ee(e,t){"undefined"!=typeof COMPILED&&COMPILED||((r.U.ng=r.U.ng||{})[e]=t)}var te={ApplicationRef:r.e,NgZone:r.s};function ne(e){return Object(r.I)(e)}var re=new r.l("EventManagerPlugins"),oe=function(){function e(e,t){var n=this;this._zone=t,this._eventNameToPlugin=new Map,e.forEach(function(e){return e.manager=n}),this._plugins=e.slice().reverse()}return e.prototype.addEventListener=function(e,t,n){return this._findPluginFor(t).addEventListener(e,t,n)},e.prototype.addGlobalEventListener=function(e,t,n){return this._findPluginFor(t).addGlobalEventListener(e,t,n)},e.prototype.getZone=function(){return this._zone},e.prototype._findPluginFor=function(e){var t=this._eventNameToPlugin.get(e);if(t)return t;for(var n=this._plugins,r=0;r<n.length;r++){var o=n[r];if(o.supports(e))return this._eventNameToPlugin.set(e,o),o}throw new Error("No event manager plugin found for event "+e)},e}(),ie=function(){function e(e){this._doc=e}return e.prototype.addGlobalEventListener=function(e,t,n){var r=V().getGlobalEventTarget(this._doc,e);if(!r)throw new Error("Unsupported event target "+r+" for event "+t);return this.addEventListener(r,t,n)},e}(),se=function(){function e(){this._stylesSet=new Set}return e.prototype.addStyles=function(e){var t=this,n=new Set;e.forEach(function(e){t._stylesSet.has(e)||(t._stylesSet.add(e),n.add(e))}),this.onStylesAdded(n)},e.prototype.onStylesAdded=function(e){},e.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},e}(),ae=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(t.head),n}return Object(c.b)(t,e),t.prototype._addStylesToHost=function(e,t){var n=this;e.forEach(function(e){var r=n._doc.createElement("style");r.textContent=e,n._styleNodes.add(t.appendChild(r))})},t.prototype.addHost=function(e){this._addStylesToHost(this._stylesSet,e),this._hostNodes.add(e)},t.prototype.removeHost=function(e){this._hostNodes.delete(e)},t.prototype.onStylesAdded=function(e){var t=this;this._hostNodes.forEach(function(n){return t._addStylesToHost(e,n)})},t.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(e){return V().remove(e)})},t}(se),ue={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/"},ce=/%COMP%/g,le="_nghost-%COMP%",pe="_ngcontent-%COMP%";function fe(e,t,n){for(var r=0;r<t.length;r++){var o=t[r];Array.isArray(o)?fe(e,o,n):(o=o.replace(ce,e),n.push(o))}return n}function he(e){return function(t){!1===e(t)&&(t.preventDefault(),t.returnValue=!1)}}var de=function(){function e(e,t){this.eventManager=e,this.sharedStylesHost=t,this.rendererByCompId=new Map,this.defaultRenderer=new ye(e)}return e.prototype.createRenderer=function(e,t){if(!e||!t)return this.defaultRenderer;switch(t.encapsulation){case r.E.Emulated:var n=this.rendererByCompId.get(t.id);return n||(n=new _e(this.eventManager,this.sharedStylesHost,t),this.rendererByCompId.set(t.id,n)),n.applyToHost(e),n;case r.E.Native:return new be(this.eventManager,this.sharedStylesHost,e,t);default:if(!this.rendererByCompId.has(t.id)){var o=fe(t.id,t.styles,[]);this.sharedStylesHost.addStyles(o),this.rendererByCompId.set(t.id,this.defaultRenderer)}return this.defaultRenderer}},e.prototype.begin=function(){},e.prototype.end=function(){},e}(),ye=function(){function e(e){this.eventManager=e,this.data=Object.create(null)}return e.prototype.destroy=function(){},e.prototype.createElement=function(e,t){return t?document.createElementNS(ue[t],e):document.createElement(e)},e.prototype.createComment=function(e){return document.createComment(e)},e.prototype.createText=function(e){return document.createTextNode(e)},e.prototype.appendChild=function(e,t){e.appendChild(t)},e.prototype.insertBefore=function(e,t,n){e&&e.insertBefore(t,n)},e.prototype.removeChild=function(e,t){e&&e.removeChild(t)},e.prototype.selectRootElement=function(e){var t="string"==typeof e?document.querySelector(e):e;if(!t)throw new Error('The selector "'+e+'" did not match any elements');return t.textContent="",t},e.prototype.parentNode=function(e){return e.parentNode},e.prototype.nextSibling=function(e){return e.nextSibling},e.prototype.setAttribute=function(e,t,n,r){if(r){t=r+":"+t;var o=ue[r];o?e.setAttributeNS(o,t,n):e.setAttribute(t,n)}else e.setAttribute(t,n)},e.prototype.removeAttribute=function(e,t,n){if(n){var r=ue[n];r?e.removeAttributeNS(r,t):e.removeAttribute(n+":"+t)}else e.removeAttribute(t)},e.prototype.addClass=function(e,t){e.classList.add(t)},e.prototype.removeClass=function(e,t){e.classList.remove(t)},e.prototype.setStyle=function(e,t,n,o){o&r.x.DashCase?e.style.setProperty(t,n,o&r.x.Important?"important":""):e.style[t]=n},e.prototype.removeStyle=function(e,t,n){n&r.x.DashCase?e.style.removeProperty(t):e.style[t]=""},e.prototype.setProperty=function(e,t,n){ve(t,"property"),e[t]=n},e.prototype.setValue=function(e,t){e.nodeValue=t},e.prototype.listen=function(e,t,n){return ve(t,"listener"),"string"==typeof e?this.eventManager.addGlobalEventListener(e,t,he(n)):this.eventManager.addEventListener(e,t,he(n))},e}(),me="@".charCodeAt(0);function ve(e,t){if(e.charCodeAt(0)===me)throw new Error("Found the synthetic "+t+" "+e+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var ge,_e=function(e){function t(t,n,r){var o=e.call(this,t)||this;o.component=r;var i=fe(r.id,r.styles,[]);return n.addStyles(i),o.contentAttr=pe.replace(ce,r.id),o.hostAttr=le.replace(ce,r.id),o}return Object(c.b)(t,e),t.prototype.applyToHost=function(t){e.prototype.setAttribute.call(this,t,this.hostAttr,"")},t.prototype.createElement=function(t,n){var r=e.prototype.createElement.call(this,t,n);return e.prototype.setAttribute.call(this,r,this.contentAttr,""),r},t}(ye),be=function(e){function t(t,n,r,o){var i=e.call(this,t)||this;i.sharedStylesHost=n,i.hostEl=r,i.component=o,i.shadowRoot=r.createShadowRoot(),i.sharedStylesHost.addHost(i.shadowRoot);for(var s=fe(o.id,o.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],i.shadowRoot.appendChild(u)}return i}return Object(c.b)(t,e),t.prototype.nodeOrShadowRoot=function(e){return e===this.hostEl?this.shadowRoot:e},t.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},t.prototype.appendChild=function(t,n){return e.prototype.appendChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.insertBefore=function(t,n,r){return e.prototype.insertBefore.call(this,this.nodeOrShadowRoot(t),n,r)},t.prototype.removeChild=function(t,n){return e.prototype.removeChild.call(this,this.nodeOrShadowRoot(t),n)},t.prototype.parentNode=function(t){return this.nodeOrShadowRoot(e.prototype.parentNode.call(this,this.nodeOrShadowRoot(t)))},t}(ye),we="undefined"!=typeof Zone&&Zone.__symbol__||function(e){return"__zone_symbol__"+e},Ee=we("addEventListener"),Ce=we("removeEventListener"),Se={},Te="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[we("BLACK_LISTED_EVENTS")]&&(ge={});var xe=function(e){return!!ge&&ge.hasOwnProperty(e)},ke=function(e){var t=Se[e.type];if(t){var n=this[t];if(n){var r=[e];if(1===n.length)return(s=n[0]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r);for(var o=n.slice(),i=0;i<o.length&&!0!==e[Te];i++){var s;(s=o[i]).zone!==Zone.current?s.zone.run(s.handler,this,r):s.handler.apply(this,r)}}}},Oe=function(e){function t(t,n){var r=e.call(this,t)||this;return r.ngZone=n,r.patchEvent(),r}return Object(c.b)(t,e),t.prototype.patchEvent=function(){if(Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var e=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[Te]=!0),e&&e.apply(this,arguments)}}},t.prototype.supports=function(e){return!0},t.prototype.addEventListener=function(e,t,n){var o=this,i=n;if(!e[Ee]||r.s.isInAngularZone()&&!xe(t))e.addEventListener(t,i,!1);else{var s=Se[t];s||(s=Se[t]=we("ANGULAR"+t+"FALSE"));var a=e[s],u=a&&a.length>0;a||(a=e[s]=[]);var c=xe(t)?Zone.root:Zone.current;if(0===a.length)a.push({zone:c,handler:i});else{for(var l=!1,p=0;p<a.length;p++)if(a[p].handler===i){l=!0;break}l||a.push({zone:c,handler:i})}u||e[Ee](t,ke,!1)}return function(){return o.removeEventListener(e,t,i)}},t.prototype.removeEventListener=function(e,t,n){var r=e[Ce];if(!r)return e.removeEventListener.apply(e,[t,n,!1]);var o=Se[t],i=o&&e[o];if(!i)return e.removeEventListener.apply(e,[t,n,!1]);for(var s=!1,a=0;a<i.length;a++)if(i[a].handler===n){s=!0,i.splice(a,1);break}s?0===i.length&&r.apply(e,[t,ke,!1]):e.removeEventListener.apply(e,[t,n,!1])},t}(ie),Ae={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},Ne=new r.l("HammerGestureConfig"),Pe=function(){function e(){this.events=[],this.overrides={}}return e.prototype.buildHammer=function(e){var t=new Hammer(e);for(var n in t.get("pinch").set({enable:!0}),t.get("rotate").set({enable:!0}),this.overrides)t.get(n).set(this.overrides[n]);return t},e}(),Ie=function(e){function t(t,n){var r=e.call(this,t)||this;return r._config=n,r}return Object(c.b)(t,e),t.prototype.supports=function(e){if(!Ae.hasOwnProperty(e.toLowerCase())&&!this.isCustomEvent(e))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+e+" event");return!0},t.prototype.addEventListener=function(e,t,n){var r=this,o=this.manager.getZone();return t=t.toLowerCase(),o.runOutsideAngular(function(){var i=r._config.buildHammer(e),s=function(e){o.runGuarded(function(){n(e)})};return i.on(t,s),function(){return i.off(t,s)}})},t.prototype.isCustomEvent=function(e){return this._config.events.indexOf(e)>-1},t}(ie),De=["alt","control","meta","shift"],Me={alt:function(e){return e.altKey},control:function(e){return e.ctrlKey},meta:function(e){return e.metaKey},shift:function(e){return e.shiftKey}},Re=function(e){function t(t){return e.call(this,t)||this}return Object(c.b)(t,e),t.prototype.supports=function(e){return null!=t.parseEventName(e)},t.prototype.addEventListener=function(e,n,r){var o=t.parseEventName(n),i=t.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return V().onAndCancel(e,o.domEventName,i)})},t.parseEventName=function(e){var n=e.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var o=t._normalizeKey(n.pop()),i="";if(De.forEach(function(e){var t=n.indexOf(e);t>-1&&(n.splice(t,1),i+=e+".")}),i+=o,0!=n.length||0===o.length)return null;var s={};return s.domEventName=r,s.fullKey=i,s},t.getEventFullKey=function(e){var t="",n=V().getEventKey(e);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),De.forEach(function(r){r!=n&&(0,Me[r])(e)&&(t+=r+".")}),t+=n},t.eventCallback=function(e,n,r){return function(o){t.getEventFullKey(o)===e&&r.runGuarded(function(){return n(o)})}},t._normalizeKey=function(e){switch(e){case"esc":return"escape";default:return e}},t}(ie),je=function(){function e(e,t){this.defaultDoc=e,this.DOM=t;var n=this.DOM.createHtmlDocument();if(this.inertBodyElement=n.body,null==this.inertBodyElement){var r=this.DOM.createElement("html",n);this.inertBodyElement=this.DOM.createElement("body",n),this.DOM.appendChild(r,this.inertBodyElement),this.DOM.appendChild(n,r)}this.DOM.setInnerHTML(this.inertBodyElement,'<svg><g onload="this.parentNode.remove()"></g></svg>'),!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.DOM.setInnerHTML(this.inertBodyElement,'<svg><p><style><img src="</style><img src=x onerror=alert(1)//">'),this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(e){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return e.prototype.getInertBodyElement_XHR=function(e){e="<body><remove></remove>"+e+"</body>";try{e=encodeURI(e)}catch(e){return null}var t=new XMLHttpRequest;t.responseType="document",t.open("GET","data:text/html;charset=utf-8,"+e,!1),t.send(null);var n=t.response.body;return n.removeChild(n.firstChild),n},e.prototype.getInertBodyElement_DOMParser=function(e){e="<body><remove></remove>"+e+"</body>";try{var t=(new window.DOMParser).parseFromString(e,"text/html").body;return t.removeChild(t.firstChild),t}catch(e){return null}},e.prototype.getInertBodyElement_InertDocument=function(e){var t=this.DOM.createElement("template");return"content"in t?(this.DOM.setInnerHTML(t,e),t):(this.DOM.setInnerHTML(this.inertBodyElement,e),this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},e.prototype.stripCustomNsAttrs=function(e){var t=this;this.DOM.attributeMap(e).forEach(function(n,r){"xmlns:ns1"!==r&&0!==r.indexOf("ns1:")||t.DOM.removeAttribute(e,r)});for(var n=0,r=this.DOM.childNodesAsList(e);n<r.length;n++){var o=r[n];this.DOM.isElementNode(o)&&this.stripCustomNsAttrs(o)}},e}(),Fe=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ve=/^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 Le(e){return(e=String(e)).match(Fe)||e.match(Ve)?e:(Object(r.J)()&&V().log("WARNING: sanitizing unsafe URL value "+e+" (see http://g.co/ng/security#xss)"),"unsafe:"+e)}function Be(e){for(var t={},n=0,r=e.split(",");n<r.length;n++)t[r[n]]=!0;return t}function He(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];for(var n={},r=0,o=e;r<o.length;r++){var i=o[r];for(var s in i)i.hasOwnProperty(s)&&(n[s]=!0)}return n}var ze,qe=Be("area,br,col,hr,img,wbr"),Qe=Be("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Ue=Be("rp,rt"),Ke=He(Ue,Qe),Ze=He(qe,He(Qe,Be("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")),He(Ue,Be("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")),Ke),We=Be("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ge=Be("srcset"),Ye=He(We,Ge,Be("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")),Xe=function(){function e(){this.sanitizedSomething=!1,this.buf=[],this.DOM=V()}return e.prototype.sanitizeChildren=function(e){for(var t=this.DOM.firstChild(e);t;)if(this.DOM.isElementNode(t)?this.startElement(t):this.DOM.isTextNode(t)?this.chars(this.DOM.nodeValue(t)):this.sanitizedSomething=!0,this.DOM.firstChild(t))t=this.DOM.firstChild(t);else for(;t;){this.DOM.isElementNode(t)&&this.endElement(t);var n=this.checkClobberedElement(t,this.DOM.nextSibling(t));if(n){t=n;break}t=this.checkClobberedElement(t,this.DOM.parentElement(t))}return this.buf.join("")},e.prototype.startElement=function(e){var t=this,n=this.DOM.nodeName(e).toLowerCase();Ze.hasOwnProperty(n)?(this.buf.push("<"),this.buf.push(n),this.DOM.attributeMap(e).forEach(function(e,n){var r,o=n.toLowerCase();Ye.hasOwnProperty(o)?(We[o]&&(e=Le(e)),Ge[o]&&(r=e,e=(r=String(r)).split(",").map(function(e){return Le(e.trim())}).join(", ")),t.buf.push(" "),t.buf.push(n),t.buf.push('="'),t.buf.push(et(e)),t.buf.push('"')):t.sanitizedSomething=!0}),this.buf.push(">")):this.sanitizedSomething=!0},e.prototype.endElement=function(e){var t=this.DOM.nodeName(e).toLowerCase();Ze.hasOwnProperty(t)&&!qe.hasOwnProperty(t)&&(this.buf.push("</"),this.buf.push(t),this.buf.push(">"))},e.prototype.chars=function(e){this.buf.push(et(e))},e.prototype.checkClobberedElement=function(e,t){if(t&&this.DOM.contains(e,t))throw new Error("Failed to sanitize html because the element is clobbered: "+this.DOM.getOuterHTML(e));return t},e}(),Je=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,$e=/([^\#-~ |!])/g;function et(e){return e.replace(/&/g,"&amp;").replace(Je,function(e){return"&#"+(1024*(e.charCodeAt(0)-55296)+(e.charCodeAt(1)-56320)+65536)+";"}).replace($e,function(e){return"&#"+e.charCodeAt(0)+";"}).replace(/</g,"&lt;").replace(/>/g,"&gt;")}var tt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),nt=/^url\(([^)]+)\)$/,rt=function(){},ot=function(e){function t(t){var n=e.call(this)||this;return n._doc=t,n}return Object(c.b)(t,e),t.prototype.sanitize=function(e,t){if(null==t)return null;switch(e){case r.z.NONE:return t;case r.z.HTML:return t instanceof st?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"HTML"),function(e,t){var n=V(),o=null;try{ze=ze||new je(e,n);var i=t?String(t):"";o=ze.getInertBodyElement(i);var s=5,a=i;do{if(0===s)throw new Error("Failed to sanitize html because the input is unstable");s--,i=a,a=n.getInnerHTML(o),o=ze.getInertBodyElement(i)}while(i!==a);var u=new Xe,c=u.sanitizeChildren(n.getTemplateContent(o)||o);return Object(r.J)()&&u.sanitizedSomething&&n.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),c}finally{if(o)for(var l=n.getTemplateContent(o)||o,p=0,f=n.childNodesAsList(l);p<f.length;p++)n.removeChild(l,f[p])}}(this._doc,String(t)));case r.z.STYLE:return t instanceof at?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"Style"),function(e){if(!(e=String(e).trim()))return"";var t=e.match(nt);return t&&Le(t[1])===t[1]||e.match(tt)&&function(e){for(var t=!0,n=!0,r=0;r<e.length;r++){var o=e.charAt(r);"'"===o&&n?t=!t:'"'===o&&t&&(n=!n)}return t&&n}(e)?e:(Object(r.J)()&&V().log("WARNING: sanitizing unsafe style value "+e+" (see http://g.co/ng/security#xss)."),"unsafe")}(t));case r.z.SCRIPT:if(t instanceof ut)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"Script"),new Error("unsafe value used in a script context");case r.z.URL:return t instanceof lt||t instanceof ct?t.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(t,"URL"),Le(String(t)));case r.z.RESOURCE_URL:if(t instanceof lt)return t.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(t,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+e+" (see http://g.co/ng/security#xss)")}},t.prototype.checkNotSafeValue=function(e,t){if(e instanceof it)throw new Error("Required a safe "+t+", got a "+e.getTypeName()+" (see http://g.co/ng/security#xss)")},t.prototype.bypassSecurityTrustHtml=function(e){return new st(e)},t.prototype.bypassSecurityTrustStyle=function(e){return new at(e)},t.prototype.bypassSecurityTrustScript=function(e){return new ut(e)},t.prototype.bypassSecurityTrustUrl=function(e){return new ct(e)},t.prototype.bypassSecurityTrustResourceUrl=function(e){return new lt(e)},t}(rt),it=function(){function e(e){this.changingThisBreaksApplicationSecurity=e}return e.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},e}(),st=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.getTypeName=function(){return"HTML"},t}(it),at=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.getTypeName=function(){return"Style"},t}(it),ut=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.getTypeName=function(){return"Script"},t}(it),ct=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.getTypeName=function(){return"URL"},t}(it),lt=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.getTypeName=function(){return"ResourceURL"},t}(it),pt=[{provide:r.u,useValue:"browser"},{provide:r.v,useValue:function(){Q.makeCurrent(),J.init()},multi:!0},{provide:l,useClass:W,deps:[K]},{provide:K,useFactory:function(){return document},deps:[]}],ft=Object(r.G)(r.K,"browser",pt);function ht(){return new r.i}var dt=function(){function e(e){if(e)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return e.withServerTransition=function(t){return{ngModule:e,providers:[{provide:r.a,useValue:t.appId},{provide:Y,useExisting:r.a},X]}},e}();function yt(e){switch(e.length){case 0:return new k;case 1:return e[0];default:return new O(e)}}function mt(e,t,n,r,o,i){void 0===o&&(o={}),void 0===i&&(i={});var s=[],a=[],u=-1,c=null;if(r.forEach(function(e){var n=e.offset,r=n==u,l=r&&c||{};Object.keys(e).forEach(function(n){var r=n,a=e[n];if("offset"!==n)switch(r=t.normalizePropertyName(r,s),a){case A:a=o[n];break;case C:a=i[n];break;default:a=t.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length)throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "));return a}function vt(e,t,n,r){switch(t){case"start":e.onStart(function(){return r(n&&gt(n,"start",e.totalTime))});break;case"done":e.onDone(function(){return r(n&&gt(n,"done",e.totalTime))});break;case"destroy":e.onDestroy(function(){return r(n&&gt(n,"destroy",e.totalTime))})}}function gt(e,t,n){var r=_t(e.element,e.triggerName,e.fromState,e.toState,t||e.phaseName,void 0==n?e.totalTime:n),o=e._data;return null!=o&&(r._data=o),r}function _t(e,t,n,r,o,i){return void 0===o&&(o=""),void 0===i&&(i=0),{element:e,triggerName:t,fromState:n,toState:r,phaseName:o,totalTime:i}}function bt(e,t,n){var r;return e instanceof Map?(r=e.get(t))||e.set(t,r=n):(r=e[t])||(r=e[t]=n),r}function wt(e){var t=e.indexOf(":");return[e.substring(1,t),e.substr(t+1)]}"undefined"!=typeof window&&window;var Et=function(e,t){return!1},Ct=function(e,t){return!1},St=function(e,t,n){return[]};if("undefined"!=typeof Element){if(Et=function(e,t){return e.contains(t)},Element.prototype.matches)Ct=function(e,t){return e.matches(t)};else{var Tt=Element.prototype,xt=Tt.matchesSelector||Tt.mozMatchesSelector||Tt.msMatchesSelector||Tt.oMatchesSelector||Tt.webkitMatchesSelector;xt&&(Ct=function(e,t){return xt.apply(e,[t])})}St=function(e,t,n){var r=[];if(n)r.push.apply(r,e.querySelectorAll(t));else{var o=e.querySelector(t);o&&r.push(o)}return r}}var kt=null,Ot=!1;function At(e){kt||(kt=Nt()||{},Ot=!!kt.style&&"WebkitAppearance"in kt.style);var t=!0;return kt.style&&!function(e){return"ebkit"==e.substring(1,6)}(e)&&!(t=e in kt.style)&&Ot&&(t="Webkit"+e.charAt(0).toUpperCase()+e.substr(1)in kt.style),t}function Nt(){return"undefined"!=typeof document?document.body:null}var Pt=Ct,It=Et,Dt=St,Mt=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return At(e)},e.prototype.matchesElement=function(e,t){return Pt(e,t)},e.prototype.containsElement=function(e,t){return It(e,t)},e.prototype.query=function(e,t,n){return Dt(e,t,n)},e.prototype.computeStyle=function(e,t,n){return n||""},e.prototype.animate=function(e,t,n,r,o,i){return void 0===i&&(i=[]),new k},e}(),Rt=function(){function e(){}return e.NOOP=new Mt,e}(),jt=1e3;function Ft(e){if("number"==typeof e)return e;var t=e.match(/^(-?[\.\d]+)(m?s)/);return!t||t.length<2?0:Vt(parseFloat(t[1]),t[2])}function Vt(e,t){switch(t){case"s":return e*jt;default:return e}}function Lt(e,t,n){return e.hasOwnProperty("duration")?e:function(e,t,n){var r,o=0,i="";if("string"==typeof e){var s=e.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===s)return t.push('The provided timing value "'+e+'" is invalid.'),{duration:0,delay:0,easing:""};r=Vt(parseFloat(s[1]),s[2]);var a=s[3];null!=a&&(o=Vt(Math.floor(parseFloat(a)),s[4]));var u=s[5];u&&(i=u)}else r=e;if(!n){var c=!1,l=t.length;r<0&&(t.push("Duration values below 0 are not allowed for this animation step."),c=!0),o<0&&(t.push("Delay values below 0 are not allowed for this animation step."),c=!0),c&&t.splice(l,0,'The provided timing value "'+e+'" is invalid.')}return{duration:r,delay:o,easing:i}}(e,t,n)}function Bt(e,t){return void 0===t&&(t={}),Object.keys(e).forEach(function(n){t[n]=e[n]}),t}function Ht(e,t,n){if(void 0===n&&(n={}),t)for(var r in e)n[r]=e[r];else Bt(e,n);return n}function zt(e,t){e.style&&Object.keys(t).forEach(function(n){var r=Yt(n);e.style[r]=t[n]})}function qt(e,t){e.style&&Object.keys(t).forEach(function(t){var n=Yt(t);e.style[n]=""})}function Qt(e){return Array.isArray(e)?1==e.length?e[0]:S(e):e}var Ut=new RegExp("{{\\s*(.+?)\\s*}}","g");function Kt(e){var t=[];if("string"==typeof e){for(var n=e.toString(),r=void 0;r=Ut.exec(n);)t.push(r[1]);Ut.lastIndex=0}return t}function Zt(e,t,n){var r=e.toString(),o=r.replace(Ut,function(e,r){var o=t[r];return t.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),o=""),o.toString()});return o==r?e:o}function Wt(e){for(var t=[],n=e.next();!n.done;)t.push(n.value),n=e.next();return t}var Gt=/-+([a-z0-9])/g;function Yt(e){return e.replace(Gt,function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];return e[1].toUpperCase()})}function Xt(e,t,n){switch(t.type){case 7:return e.visitTrigger(t,n);case 0:return e.visitState(t,n);case 1:return e.visitTransition(t,n);case 2:return e.visitSequence(t,n);case 3:return e.visitGroup(t,n);case 4:return e.visitAnimate(t,n);case 5:return e.visitKeyframes(t,n);case 6:return e.visitStyle(t,n);case 8:return e.visitReference(t,n);case 9:return e.visitAnimateChild(t,n);case 10:return e.visitAnimateRef(t,n);case 11:return e.visitQuery(t,n);case 12:return e.visitStagger(t,n);default:throw new Error("Unable to resolve animation metadata node #"+t.type)}}var Jt="*",$t=new Set(["true","1"]),en=new Set(["false","0"]);function tn(e,t){var n=$t.has(e)||en.has(e),r=$t.has(t)||en.has(t);return function(o,i){var s=e==Jt||e==o,a=t==Jt||t==i;return!s&&n&&"boolean"==typeof o&&(s=o?$t.has(e):en.has(e)),!a&&r&&"boolean"==typeof i&&(a=i?$t.has(t):en.has(t)),s&&a}}var nn=new RegExp("s*:selfs*,?","g");function rn(e,t,n){return new on(e).build(t,n)}var on=function(){function e(e){this._driver=e}return e.prototype.build=function(e,t){var n=new sn(t);return this._resetContextStyleTimingState(n),Xt(this,Qt(e),n)},e.prototype._resetContextStyleTimingState=function(e){e.currentQuerySelector="",e.collectedStyles={},e.collectedStyles[""]={},e.currentTime=0},e.prototype.visitTrigger=function(e,t){var n=this,r=t.queryCount=0,o=t.depCount=0,i=[],s=[];return"@"==e.name.charAt(0)&&t.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),e.definitions.forEach(function(e){if(n._resetContextStyleTimingState(t),0==e.type){var a=e,u=a.name;u.split(/\s*,\s*/).forEach(function(e){a.name=e,i.push(n.visitState(a,t))}),a.name=u}else if(1==e.type){var c=n.visitTransition(e,t);r+=c.queryCount,o+=c.depCount,s.push(c)}else t.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:e.name,states:i,transitions:s,queryCount:r,depCount:o,options:null}},e.prototype.visitState=function(e,t){var n=this.visitStyle(e.styles,t),r=e.options&&e.options.params||null;if(n.containsDynamicStyles){var o=new Set,i=r||{};if(n.styles.forEach(function(e){if(an(e)){var t=e;Object.keys(t).forEach(function(e){Kt(t[e]).forEach(function(e){i.hasOwnProperty(e)||o.add(e)})})}}),o.size){var s=Wt(o.values());t.errors.push('state("'+e.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:e.name,style:n,options:r?{params:r}:null}},e.prototype.visitTransition=function(e,t){t.queryCount=0,t.depCount=0;var n,r,o,i=Xt(this,Qt(e.animation),t);return{type:1,matchers:(n=e.expr,r=t.errors,o=[],"string"==typeof n?n.split(/\s*,\s*/).forEach(function(e){return function(e,t,n){if(":"==e[0]){var r=function(e,t){switch(e){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(e,t){return parseFloat(t)>parseFloat(e)};case":decrement":return function(e,t){return parseFloat(t)<parseFloat(e)};default:return t.push('The transition alias value "'+e+'" is not supported'),"* => *"}}(e,n);if("function"==typeof r)return void t.push(r);e=r}var o=e.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return n.push('The provided transition expression "'+e+'" is not supported'),t;var i=o[1],s=o[2],a=o[3];t.push(tn(i,a)),"<"!=s[0]||i==Jt&&a==Jt||t.push(tn(a,i))}(e,o,r)}):o.push(n),o),animation:i,queryCount:t.queryCount,depCount:t.depCount,options:un(e.options)}},e.prototype.visitSequence=function(e,t){var n=this;return{type:2,steps:e.steps.map(function(e){return Xt(n,e,t)}),options:un(e.options)}},e.prototype.visitGroup=function(e,t){var n=this,r=t.currentTime,o=0,i=e.steps.map(function(e){t.currentTime=r;var i=Xt(n,e,t);return o=Math.max(o,t.currentTime),i});return t.currentTime=o,{type:3,steps:i,options:un(e.options)}},e.prototype.visitAnimate=function(e,t){var n,r=function(e,t){var n=null;if(e.hasOwnProperty("duration"))n=e;else if("number"==typeof e)return cn(Lt(e,t).duration,0,"");var r=e;if(r.split(/\s+/).some(function(e){return"{"==e.charAt(0)&&"{"==e.charAt(1)})){var o=cn(0,0,"");return o.dynamic=!0,o.strValue=r,o}return cn((n=n||Lt(r,t)).duration,n.delay,n.easing)}(e.timings,t.errors);t.currentAnimateTimings=r;var o=e.styles?e.styles:T({});if(5==o.type)n=this.visitKeyframes(o,t);else{var i=e.styles,s=!1;if(!i){s=!0;var a={};r.easing&&(a.easing=r.easing),i=T(a)}t.currentTime+=r.duration+r.delay;var u=this.visitStyle(i,t);u.isEmptyStep=s,n=u}return t.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},e.prototype.visitStyle=function(e,t){var n=this._makeStyleAst(e,t);return this._validateStyleAst(n,t),n},e.prototype._makeStyleAst=function(e,t){var n=[];Array.isArray(e.styles)?e.styles.forEach(function(e){"string"==typeof e?e==C?n.push(e):t.errors.push("The provided style string value "+e+" is not allowed."):n.push(e)}):n.push(e.styles);var r=!1,o=null;return n.forEach(function(e){if(an(e)){var t=e,n=t.easing;if(n&&(o=n,delete t.easing),!r)for(var i in t)if(t[i].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:o,offset:e.offset,containsDynamicStyles:r,options:null}},e.prototype._validateStyleAst=function(e,t){var n=this,r=t.currentAnimateTimings,o=t.currentTime,i=t.currentTime;r&&i>0&&(i-=r.duration+r.delay),e.styles.forEach(function(e){"string"!=typeof e&&Object.keys(e).forEach(function(r){if(n._driver.validateStyleProperty(r)){var s,a,u,c=t.collectedStyles[t.currentQuerySelector],l=c[r],p=!0;l&&(i!=o&&i>=l.startTime&&o<=l.endTime&&(t.errors.push('The CSS property "'+r+'" that exists between the times of "'+l.startTime+'ms" and "'+l.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+o+'ms"'),p=!1),i=l.startTime),p&&(c[r]={startTime:i,endTime:o}),t.options&&(s=t.errors,a=t.options.params||{},(u=Kt(e[r])).length&&u.forEach(function(e){a.hasOwnProperty(e)||s.push("Unable to resolve the local animation param "+e+" in the given list of values")}))}else t.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},e.prototype.visitKeyframes=function(e,t){var n=this,r={type:5,styles:[],options:null};if(!t.currentAnimateTimings)return t.errors.push("keyframes() must be placed inside of a call to animate()"),r;var o=0,i=[],s=!1,a=!1,u=0,c=e.steps.map(function(e){var r=n._makeStyleAst(e,t),c=null!=r.offset?r.offset:function(e){if("string"==typeof e)return null;var t=null;if(Array.isArray(e))e.forEach(function(e){if(an(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}});else if(an(e)&&e.hasOwnProperty("offset")){var n=e;t=parseFloat(n.offset),delete n.offset}return t}(r.styles),l=0;return null!=c&&(o++,l=r.offset=c),a=a||l<0||l>1,s=s||l<u,u=l,i.push(l),r});a&&t.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&t.errors.push("Please ensure that all keyframe offsets are in order");var l=e.steps.length,p=0;o>0&&o<l?t.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(p=1/(l-1));var f=l-1,h=t.currentTime,d=t.currentAnimateTimings,y=d.duration;return c.forEach(function(e,o){var s=p>0?o==f?1:p*o:i[o],a=s*y;t.currentTime=h+d.delay+a,d.duration=a,n._validateStyleAst(e,t),e.offset=s,r.styles.push(e)}),r},e.prototype.visitReference=function(e,t){return{type:8,animation:Xt(this,Qt(e.animation),t),options:un(e.options)}},e.prototype.visitAnimateChild=function(e,t){return t.depCount++,{type:9,options:un(e.options)}},e.prototype.visitAnimateRef=function(e,t){return{type:10,animation:this.visitReference(e.animation,t),options:un(e.options)}},e.prototype.visitQuery=function(e,t){var n=t.currentQuerySelector,r=e.options||{};t.queryCount++,t.currentQuery=e;var o=function(e){var t=!!e.split(/\s*,\s*/).find(function(e){return":self"==e});return t&&(e=e.replace(nn,"")),[e=e.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(e){return".ng-trigger-"+e.substr(1)}).replace(/:animating/g,".ng-animating"),t]}(e.selector),i=o[0],s=o[1];t.currentQuerySelector=n.length?n+" "+i:i,bt(t.collectedStyles,t.currentQuerySelector,{});var a=Xt(this,Qt(e.animation),t);return t.currentQuery=null,t.currentQuerySelector=n,{type:11,selector:i,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:e.selector,options:un(e.options)}},e.prototype.visitStagger=function(e,t){t.currentQuery||t.errors.push("stagger() can only be used inside of query()");var n="full"===e.timings?{duration:0,delay:0,easing:"full"}:Lt(e.timings,t.errors,!0);return{type:12,animation:Xt(this,Qt(e.animation),t),timings:n,options:null}},e}(),sn=function(e){this.errors=e,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null};function an(e){return!Array.isArray(e)&&"object"==typeof e}function un(e){var t;return e?(e=Bt(e)).params&&(e.params=(t=e.params)?Bt(t):null):e={},e}function cn(e,t,n){return{duration:e,delay:t,easing:n}}function ln(e,t,n,r,o,i,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:e,keyframes:t,preStyleProps:n,postStyleProps:r,duration:o,delay:i,totalTime:o+i,easing:s,subTimeline:a}}var pn=function(){function e(){this._map=new Map}return e.prototype.consume=function(e){var t=this._map.get(e);return t?this._map.delete(e):t=[],t},e.prototype.append=function(e,t){var n=this._map.get(e);n||this._map.set(e,n=[]),n.push.apply(n,t)},e.prototype.has=function(e){return this._map.has(e)},e.prototype.clear=function(){this._map.clear()},e}(),fn=new RegExp(":enter","g"),hn=new RegExp(":leave","g");function dn(e,t,n,r,o,i,s,a,u,c){return void 0===i&&(i={}),void 0===s&&(s={}),void 0===c&&(c=[]),(new yn).buildKeyframes(e,t,n,r,o,i,s,a,u,c)}var yn=function(){function e(){}return e.prototype.buildKeyframes=function(e,t,n,r,o,i,s,a,u,c){void 0===c&&(c=[]),u=u||new pn;var l=new vn(e,t,u,r,o,c,[]);l.options=a,l.currentTimeline.setStyles([i],null,l.errors,a),Xt(this,n,l);var p=l.timelines.filter(function(e){return e.containsAnimation()});if(p.length&&Object.keys(s).length){var f=p[p.length-1];f.allowOnlyTimelineStyles()||f.setStyles([s],null,l.errors,a)}return p.length?p.map(function(e){return e.buildKeyframes()}):[ln(t,[],[],[],0,0,"",!1)]},e.prototype.visitTrigger=function(e,t){},e.prototype.visitState=function(e,t){},e.prototype.visitTransition=function(e,t){},e.prototype.visitAnimateChild=function(e,t){var n=t.subInstructions.consume(t.element);if(n){var r=t.createSubContext(e.options),o=t.currentTimeline.currentTime,i=this._visitSubInstructions(n,r,r.options);o!=i&&t.transformIntoNewTimeline(i)}t.previousNode=e},e.prototype.visitAnimateRef=function(e,t){var n=t.createSubContext(e.options);n.transformIntoNewTimeline(),this.visitReference(e.animation,n),t.transformIntoNewTimeline(n.currentTimeline.currentTime),t.previousNode=e},e.prototype._visitSubInstructions=function(e,t,n){var r=t.currentTimeline.currentTime,o=null!=n.duration?Ft(n.duration):null,i=null!=n.delay?Ft(n.delay):null;return 0!==o&&e.forEach(function(e){var n=t.appendInstructionToTimeline(e,o,i);r=Math.max(r,n.duration+n.delay)}),r},e.prototype.visitReference=function(e,t){t.updateOptions(e.options,!0),Xt(this,e.animation,t),t.previousNode=e},e.prototype.visitSequence=function(e,t){var n=this,r=t.subContextCount,o=t,i=e.options;if(i&&(i.params||i.delay)&&((o=t.createSubContext(i)).transformIntoNewTimeline(),null!=i.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=mn);var s=Ft(i.delay);o.delayNextStep(s)}e.steps.length&&(e.steps.forEach(function(e){return Xt(n,e,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>r&&o.transformIntoNewTimeline()),t.previousNode=e},e.prototype.visitGroup=function(e,t){var n=this,r=[],o=t.currentTimeline.currentTime,i=e.options&&e.options.delay?Ft(e.options.delay):0;e.steps.forEach(function(s){var a=t.createSubContext(e.options);i&&a.delayNextStep(i),Xt(n,s,a),o=Math.max(o,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(e){return t.currentTimeline.mergeTimelineCollectedStyles(e)}),t.transformIntoNewTimeline(o),t.previousNode=e},e.prototype._visitTiming=function(e,t){if(e.dynamic){var n=e.strValue;return Lt(t.params?Zt(n,t.params,t.errors):n,t.errors)}return{duration:e.duration,delay:e.delay,easing:e.easing}},e.prototype.visitAnimate=function(e,t){var n=t.currentAnimateTimings=this._visitTiming(e.timings,t),r=t.currentTimeline;n.delay&&(t.incrementTime(n.delay),r.snapshotCurrentStyles());var o=e.style;5==o.type?this.visitKeyframes(o,t):(t.incrementTime(n.duration),this.visitStyle(o,t),r.applyStylesToKeyframe()),t.currentAnimateTimings=null,t.previousNode=e},e.prototype.visitStyle=function(e,t){var n=t.currentTimeline,r=t.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var o=r&&r.easing||e.easing;e.isEmptyStep?n.applyEmptyStep(o):n.setStyles(e.styles,o,t.errors,t.options),t.previousNode=e},e.prototype.visitKeyframes=function(e,t){var n=t.currentAnimateTimings,r=t.currentTimeline.duration,o=n.duration,i=t.createSubContext().currentTimeline;i.easing=n.easing,e.styles.forEach(function(e){i.forwardTime((e.offset||0)*o),i.setStyles(e.styles,e.easing,t.errors,t.options),i.applyStylesToKeyframe()}),t.currentTimeline.mergeTimelineCollectedStyles(i),t.transformIntoNewTimeline(r+o),t.previousNode=e},e.prototype.visitQuery=function(e,t){var n=this,r=t.currentTimeline.currentTime,o=e.options||{},i=o.delay?Ft(o.delay):0;i&&(6===t.previousNode.type||0==r&&t.currentTimeline.getCurrentStyleProperties().length)&&(t.currentTimeline.snapshotCurrentStyles(),t.previousNode=mn);var s=r,a=t.invokeQuery(e.selector,e.originalSelector,e.limit,e.includeSelf,!!o.optional,t.errors);t.currentQueryTotal=a.length;var u=null;a.forEach(function(r,o){t.currentQueryIndex=o;var a=t.createSubContext(e.options,r);i&&a.delayNextStep(i),r===t.element&&(u=a.currentTimeline),Xt(n,e.animation,a),a.currentTimeline.applyStylesToKeyframe(),s=Math.max(s,a.currentTimeline.currentTime)}),t.currentQueryIndex=0,t.currentQueryTotal=0,t.transformIntoNewTimeline(s),u&&(t.currentTimeline.mergeTimelineCollectedStyles(u),t.currentTimeline.snapshotCurrentStyles()),t.previousNode=e},e.prototype.visitStagger=function(e,t){var n=t.parentContext,r=t.currentTimeline,o=e.timings,i=Math.abs(o.duration),s=i*(t.currentQueryTotal-1),a=i*t.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=t.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;Xt(this,e.animation,t),t.previousNode=e,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},e}(),mn={},vn=function(){function e(e,t,n,r,o,i,s,a){this._driver=e,this.element=t,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=o,this.errors=i,this.timelines=s,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=mn,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new gn(this._driver,t,0),s.push(this.currentTimeline)}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.updateOptions=function(e,t){var n=this;if(e){var r=e,o=this.options;null!=r.duration&&(o.duration=Ft(r.duration)),null!=r.delay&&(o.delay=Ft(r.delay));var i=r.params;if(i){var s=o.params;s||(s=this.options.params={}),Object.keys(i).forEach(function(e){t&&s.hasOwnProperty(e)||(s[e]=Zt(i[e],s,n.errors))})}}},e.prototype._copyOptions=function(){var e={};if(this.options){var t=this.options.params;if(t){var n=e.params={};Object.keys(t).forEach(function(e){n[e]=t[e]})}}return e},e.prototype.createSubContext=function(t,n,r){void 0===t&&(t=null);var o=n||this.element,i=new e(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,r||0));return i.previousNode=this.previousNode,i.currentAnimateTimings=this.currentAnimateTimings,i.options=this._copyOptions(),i.updateOptions(t),i.currentQueryIndex=this.currentQueryIndex,i.currentQueryTotal=this.currentQueryTotal,i.parentContext=this,this.subContextCount++,i},e.prototype.transformIntoNewTimeline=function(e){return this.previousNode=mn,this.currentTimeline=this.currentTimeline.fork(this.element,e),this.timelines.push(this.currentTimeline),this.currentTimeline},e.prototype.appendInstructionToTimeline=function(e,t,n){var r={duration:null!=t?t:e.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+e.delay,easing:""},o=new _n(this._driver,e.element,e.keyframes,e.preStyleProps,e.postStyleProps,r,e.stretchStartingKeyframe);return this.timelines.push(o),r},e.prototype.incrementTime=function(e){this.currentTimeline.forwardTime(this.currentTimeline.duration+e)},e.prototype.delayNextStep=function(e){e>0&&this.currentTimeline.delayNextStep(e)},e.prototype.invokeQuery=function(e,t,n,r,o,i){var s=[];if(r&&s.push(this.element),e.length>0){e=(e=e.replace(fn,"."+this._enterClassName)).replace(hn,"."+this._leaveClassName);var a=this._driver.query(this.element,e,1!=n);0!==n&&(a=n<0?a.slice(a.length+n,a.length):a.slice(0,n)),s.push.apply(s,a)}return o||0!=s.length||i.push('`query("'+t+'")` returned zero elements. (Use `query("'+t+'", { optional: true })` if you wish to allow this.)'),s},e}(),gn=function(){function e(e,t,n,r){this._driver=e,this.element=t,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return e.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},e.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(e.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),e.prototype.delayNextStep=function(e){var t=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||t?(this.forwardTime(this.currentTime+e),t&&this.snapshotCurrentStyles()):this.startTime+=e},e.prototype.fork=function(t,n){return this.applyStylesToKeyframe(),new e(this._driver,t,n||this.currentTime,this._elementTimelineStylesLookup)},e.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},e.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},e.prototype.forwardTime=function(e){this.applyStylesToKeyframe(),this.duration=e,this._loadKeyframe()},e.prototype._updateStyle=function(e,t){this._localTimelineStyles[e]=t,this._globalTimelineStyles[e]=t,this._styleSummary[e]={time:this.currentTime,value:t}},e.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},e.prototype.applyEmptyStep=function(e){var t=this;e&&(this._previousKeyframe.easing=e),Object.keys(this._globalTimelineStyles).forEach(function(e){t._backFill[e]=t._globalTimelineStyles[e]||C,t._currentKeyframe[e]=C}),this._currentEmptyStepKeyframe=this._currentKeyframe},e.prototype.setStyles=function(e,t,n,r){var o=this;t&&(this._previousKeyframe.easing=t);var i=r&&r.params||{},s=function(e,t){var n,r={};return e.forEach(function(e){"*"===e?(n=n||Object.keys(t)).forEach(function(e){r[e]=C}):Ht(e,!1,r)}),r}(e,this._globalTimelineStyles);Object.keys(s).forEach(function(e){var t=Zt(s[e],i,n);o._pendingStyles[e]=t,o._localTimelineStyles.hasOwnProperty(e)||(o._backFill[e]=o._globalTimelineStyles.hasOwnProperty(e)?o._globalTimelineStyles[e]:C),o._updateStyle(e,t)})},e.prototype.applyStylesToKeyframe=function(){var e=this,t=this._pendingStyles,n=Object.keys(t);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){e._currentKeyframe[n]=t[n]}),Object.keys(this._localTimelineStyles).forEach(function(t){e._currentKeyframe.hasOwnProperty(t)||(e._currentKeyframe[t]=e._localTimelineStyles[t])}))},e.prototype.snapshotCurrentStyles=function(){var e=this;Object.keys(this._localTimelineStyles).forEach(function(t){var n=e._localTimelineStyles[t];e._pendingStyles[t]=n,e._updateStyle(t,n)})},e.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(e.prototype,"properties",{get:function(){var e=[];for(var t in this._currentKeyframe)e.push(t);return e},enumerable:!0,configurable:!0}),e.prototype.mergeTimelineCollectedStyles=function(e){var t=this;Object.keys(e._styleSummary).forEach(function(n){var r=t._styleSummary[n],o=e._styleSummary[n];(!r||o.time>r.time)&&t._updateStyle(n,o.value)})},e.prototype.buildKeyframes=function(){var e=this;this.applyStylesToKeyframe();var t=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(i,s){var a=Ht(i,!0);Object.keys(a).forEach(function(e){var r=a[e];r==A?t.add(e):r==C&&n.add(e)}),r||(a.offset=s/e.duration),o.push(a)});var i=t.size?Wt(t.values()):[],s=n.size?Wt(n.values()):[];if(r){var a=o[0],u=Bt(a);a.offset=0,u.offset=1,o=[a,u]}return ln(this.element,o,i,s,this.duration,this.startTime,this.easing,!1)},e}(),_n=function(e){function t(t,n,r,o,i,s,a){void 0===a&&(a=!1);var u=e.call(this,t,n,s.delay)||this;return u.element=n,u.keyframes=r,u.preStyleProps=o,u.postStyleProps=i,u._stretchStartingKeyframe=a,u.timings={duration:s.duration,delay:s.delay,easing:s.easing},u}return Object(c.b)(t,e),t.prototype.containsAnimation=function(){return this.keyframes.length>1},t.prototype.buildKeyframes=function(){var e=this.keyframes,t=this.timings,n=t.delay,r=t.duration,o=t.easing;if(this._stretchStartingKeyframe&&n){var i=[],s=r+n,a=n/s,u=Ht(e[0],!1);u.offset=0,i.push(u);var c=Ht(e[0],!1);c.offset=bn(a),i.push(c);for(var l=e.length-1,p=1;p<=l;p++){var f=Ht(e[p],!1);f.offset=bn((n+f.offset*r)/s),i.push(f)}r=s,n=0,o="",e=i}return ln(this.element,e,this.preStyleProps,this.postStyleProps,r,n,o,!0)},t}(gn);function bn(e,t){void 0===t&&(t=3);var n=Math.pow(10,t-1);return Math.round(e*n)/n}var wn=function(){},En=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return Object(c.b)(t,e),t.prototype.normalizePropertyName=function(e,t){return Yt(e)},t.prototype.normalizeStyleValue=function(e,t,n,r){var o="",i=n.toString().trim();if(Cn[t]&&0!==n&&"0"!==n)if("number"==typeof n)o="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+e+":"+n)}return i+o},t}(wn),Cn=function(e){var t={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(e){return t[e]=!0}),t}();function Sn(e,t,n,r,o,i,s,a,u,c,l,p){return{type:0,element:e,triggerName:t,isRemovalTransition:o,fromState:n,fromStyles:i,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:p}}var Tn={},xn=function(){function e(e,t,n){this._triggerName=e,this.ast=t,this._stateStyles=n}return e.prototype.match=function(e,t){return function(e,t,n){return e.some(function(e){return e(t,n)})}(this.ast.matchers,e,t)},e.prototype.buildStyles=function(e,t,n){var r=this._stateStyles["*"],o=this._stateStyles[e],i=r?r.buildStyles(t,n):{};return o?o.buildStyles(t,n):i},e.prototype.build=function(e,t,n,r,o,i,s,a,u){var l=[],p=this.ast.options&&this.ast.options.params||Tn,f=this.buildStyles(n,s&&s.params||Tn,l),h=a&&a.params||Tn,d=this.buildStyles(r,h,l),y=new Set,m=new Map,v=new Map,g="void"===r,_={params:Object(c.a)({},p,h)},b=dn(e,t,this.ast.animation,o,i,f,d,_,u,l);if(l.length)return Sn(t,this._triggerName,n,r,g,f,d,[],[],m,v,l);b.forEach(function(e){var n=e.element,r=bt(m,n,{});e.preStyleProps.forEach(function(e){return r[e]=!0});var o=bt(v,n,{});e.postStyleProps.forEach(function(e){return o[e]=!0}),n!==t&&y.add(n)});var w=Wt(y.values());return Sn(t,this._triggerName,n,r,g,f,d,b,w,m,v)},e}(),kn=function(){function e(e,t){this.styles=e,this.defaultParams=t}return e.prototype.buildStyles=function(e,t){var n={},r=Bt(this.defaultParams);return Object.keys(e).forEach(function(t){var n=e[t];null!=n&&(r[t]=n)}),this.styles.styles.forEach(function(e){if("string"!=typeof e){var o=e;Object.keys(o).forEach(function(e){var i=o[e];i.length>1&&(i=Zt(i,r,t)),n[e]=i})}}),n},e}(),On=function(){function e(e,t){var n=this;this.name=e,this.ast=t,this.transitionFactories=[],this.states={},t.states.forEach(function(e){n.states[e.name]=new kn(e.style,e.options&&e.options.params||{})}),An(this.states,"true","1"),An(this.states,"false","0"),t.transitions.forEach(function(t){n.transitionFactories.push(new xn(e,t,n.states))}),this.fallbackTransition=new xn(e,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(e,t){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(e.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),e.prototype.matchTransition=function(e,t){return this.transitionFactories.find(function(n){return n.match(e,t)})||null},e.prototype.matchStyles=function(e,t,n){return this.fallbackTransition.buildStyles(e,t,n)},e}();function An(e,t,n){e.hasOwnProperty(t)?e.hasOwnProperty(n)||(e[n]=e[t]):e.hasOwnProperty(n)&&(e[t]=e[n])}var Nn=new pn,Pn=function(){function e(e,t){this._driver=e,this._normalizer=t,this._animations={},this._playersById={},this.players=[]}return e.prototype.register=function(e,t){var n=[],r=rn(this._driver,t,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[e]=r},e.prototype._buildPlayer=function(e,t,n){var r=e.element,o=mt(0,this._normalizer,0,e.keyframes,t,n);return this._driver.animate(r,o,e.duration,e.delay,e.easing,[])},e.prototype.create=function(e,t,n){var r=this;void 0===n&&(n={});var o,i=[],s=this._animations[e],a=new Map;if(s?(o=dn(this._driver,t,s,"ng-enter","ng-leave",{},{},n,Nn,i)).forEach(function(e){var t=bt(a,e.element,{});e.postStyleProps.forEach(function(e){return t[e]=null})}):(i.push("The requested animation doesn't exist or has already been destroyed"),o=[]),i.length)throw new Error("Unable to create the animation due to the following errors: "+i.join("\n"));a.forEach(function(e,t){Object.keys(e).forEach(function(n){e[n]=r._driver.computeStyle(t,n,C)})});var u=yt(o.map(function(e){var t=a.get(e.element);return r._buildPlayer(e,{},t)}));return this._playersById[e]=u,u.onDestroy(function(){return r.destroy(e)}),this.players.push(u),u},e.prototype.destroy=function(e){var t=this._getPlayer(e);t.destroy(),delete this._playersById[e];var n=this.players.indexOf(t);n>=0&&this.players.splice(n,1)},e.prototype._getPlayer=function(e){var t=this._playersById[e];if(!t)throw new Error("Unable to find the timeline player referenced by "+e);return t},e.prototype.listen=function(e,t,n,r){var o=_t(t,"","","");return vt(this._getPlayer(e),n,o,r),function(){}},e.prototype.command=function(e,t,n,r){if("register"!=n)if("create"!=n){var o=this._getPlayer(e);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(e)}}else this.create(e,t,r[0]||{});else this.register(e,r[0])},e}(),In=[],Dn={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},Mn={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},Rn="__ng_removed",jn=function(){function e(e,t){void 0===t&&(t=""),this.namespaceId=t;var n=e&&e.hasOwnProperty("value");if(this.value=function(e){return null!=e?e:null}(n?e.value:e),n){var r=Bt(e);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(e.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),e.prototype.absorbOptions=function(e){var t=e.params;if(t){var n=this.options.params;Object.keys(t).forEach(function(e){null==n[e]&&(n[e]=t[e])})}},e}(),Fn=new jn("void"),Vn=new jn("DELETED"),Ln=function(){function e(e,t,n){this.id=e,this.hostElement=t,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+e,Zn(t,this._hostClassName)}return e.prototype.listen=function(e,t,n,r){var o,i=this;if(!this._triggers.hasOwnProperty(t))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+t+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+t+'" because the provided event is undefined!');if("start"!=(o=n)&&"done"!=o)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+t+'" is not supported!');var s=bt(this._elementListeners,e,[]),a={name:t,phase:n,callback:r};s.push(a);var u=bt(this._engine.statesByElement,e,{});return u.hasOwnProperty(t)||(Zn(e,"ng-trigger"),Zn(e,"ng-trigger-"+t),u[t]=Fn),function(){i._engine.afterFlush(function(){var e=s.indexOf(a);e>=0&&s.splice(e,1),i._triggers[t]||delete u[t]})}},e.prototype.register=function(e,t){return!this._triggers[e]&&(this._triggers[e]=t,!0)},e.prototype._getTrigger=function(e){var t=this._triggers[e];if(!t)throw new Error('The provided animation trigger "'+e+'" has not been registered!');return t},e.prototype.trigger=function(e,t,n,r){var o=this;void 0===r&&(r=!0);var i=this._getTrigger(t),s=new Hn(this.id,t,e),a=this._engine.statesByElement.get(e);a||(Zn(e,"ng-trigger"),Zn(e,"ng-trigger-"+t),this._engine.statesByElement.set(e,a={}));var u=a[t],c=new jn(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&c.absorbOptions(u.options),a[t]=c,u){if(u===Vn)return s}else u=Fn;if("void"===c.value||u.value!==c.value){var l=bt(this._engine.playersByElement,e,[]);l.forEach(function(e){e.namespaceId==o.id&&e.triggerName==t&&e.queued&&e.destroy()});var p=i.matchTransition(u.value,c.value),f=!1;if(!p){if(!r)return;p=i.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:e,triggerName:t,transition:p,fromState:u,toState:c,player:s,isFallbackTransition:f}),f||(Zn(e,"ng-animate-queued"),s.onStart(function(){Wn(e,"ng-animate-queued")})),s.onDone(function(){var t=o.players.indexOf(s);t>=0&&o.players.splice(t,1);var n=o._engine.playersByElement.get(e);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),l.push(s),s}if(!function(e,t){var n=Object.keys(e),r=Object.keys(t);if(n.length!=r.length)return!1;for(var o=0;o<n.length;o++){var i=n[o];if(!t.hasOwnProperty(i)||e[i]!==t[i])return!1}return!0}(u.params,c.params)){var h=[],d=i.matchStyles(u.value,u.params,h),y=i.matchStyles(c.value,c.params,h);h.length?this._engine.reportError(h):this._engine.afterFlush(function(){qt(e,d),zt(e,y)})}},e.prototype.deregister=function(e){var t=this;delete this._triggers[e],this._engine.statesByElement.forEach(function(t,n){delete t[e]}),this._elementListeners.forEach(function(n,r){t._elementListeners.set(r,n.filter(function(t){return t.name!=e}))})},e.prototype.clearElementCache=function(e){this._engine.statesByElement.delete(e),this._elementListeners.delete(e);var t=this._engine.playersByElement.get(e);t&&(t.forEach(function(e){return e.destroy()}),this._engine.playersByElement.delete(e))},e.prototype._signalRemovalForInnerTriggers=function(e,t,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(e,".ng-trigger",!0).forEach(function(e){if(!e[Rn]){var n=r._engine.fetchNamespacesByElement(e);n.size?n.forEach(function(n){return n.triggerLeaveAnimation(e,t,!1,!0)}):r.clearElementCache(e)}})},e.prototype.triggerLeaveAnimation=function(e,t,n,r){var o=this,i=this._engine.statesByElement.get(e);if(i){var s=[];if(Object.keys(i).forEach(function(t){if(o._triggers[t]){var n=o.trigger(e,t,"void",r);n&&s.push(n)}}),s.length)return this._engine.markElementAsRemoved(this.id,e,!0,t),n&&yt(s).onDone(function(){return o._engine.processLeaveNode(e)}),!0}return!1},e.prototype.prepareLeaveAnimationListeners=function(e){var t=this,n=this._elementListeners.get(e);if(n){var r=new Set;n.forEach(function(n){var o=n.name;if(!r.has(o)){r.add(o);var i=t._triggers[o].fallbackTransition,s=t._engine.statesByElement.get(e)[o]||Fn,a=new jn("void"),u=new Hn(t.id,o,e);t._engine.totalQueuedPlayers++,t._queue.push({element:e,triggerName:o,transition:i,fromState:s,toState:a,player:u,isFallbackTransition:!0})}})}},e.prototype.removeNode=function(e,t){var n=this,r=this._engine;if(e.childElementCount&&this._signalRemovalForInnerTriggers(e,t,!0),!this.triggerLeaveAnimation(e,t,!0)){var o=!1;if(r.totalAnimations){var i=r.players.length?r.playersByQueriedElement.get(e):[];if(i&&i.length)o=!0;else for(var s=e;s=s.parentNode;)if(r.statesByElement.get(s)){o=!0;break}}this.prepareLeaveAnimationListeners(e),o?r.markElementAsRemoved(this.id,e,!1,t):(r.afterFlush(function(){return n.clearElementCache(e)}),r.destroyInnerAnimations(e),r._onRemovalComplete(e,t))}},e.prototype.insertNode=function(e,t){Zn(e,this._hostClassName)},e.prototype.drainQueuedTransitions=function(e){var t=this,n=[];return this._queue.forEach(function(r){var o=r.player;if(!o.destroyed){var i=r.element,s=t._elementListeners.get(i);s&&s.forEach(function(t){if(t.name==r.triggerName){var n=_t(i,r.triggerName,r.fromState.value,r.toState.value);n._data=e,vt(r.player,t.phase,n,t.callback)}}),o.markedForDestroy?t._engine.afterFlush(function(){o.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(e,n){var r=e.transition.ast.depCount,o=n.transition.ast.depCount;return 0==r||0==o?r-o:t._engine.driver.containsElement(e.element,n.element)?1:-1})},e.prototype.destroy=function(e){this.players.forEach(function(e){return e.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,e)},e.prototype.elementContainsData=function(e){var t=!1;return this._elementListeners.has(e)&&(t=!0),!!this._queue.find(function(t){return t.element===e})||t},e}(),Bn=function(){function e(e,t){this.driver=e,this._normalizer=t,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(e,t){}}return e.prototype._onRemovalComplete=function(e,t){this.onRemovalComplete(e,t)},Object.defineProperty(e.prototype,"queuedPlayers",{get:function(){var e=[];return this._namespaceList.forEach(function(t){t.players.forEach(function(t){t.queued&&e.push(t)})}),e},enumerable:!0,configurable:!0}),e.prototype.createNamespace=function(e,t){var n=new Ln(e,t,this);return t.parentNode?this._balanceNamespaceList(n,t):(this.newHostElements.set(t,n),this.collectEnterElement(t)),this._namespaceLookup[e]=n},e.prototype._balanceNamespaceList=function(e,t){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,o=n;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,t)){this._namespaceList.splice(o+1,0,e),r=!0;break}r||this._namespaceList.splice(0,0,e)}else this._namespaceList.push(e);return this.namespacesByHostElement.set(t,e),e},e.prototype.register=function(e,t){var n=this._namespaceLookup[e];return n||(n=this.createNamespace(e,t)),n},e.prototype.registerTrigger=function(e,t,n){var r=this._namespaceLookup[e];r&&r.register(t,n)&&this.totalAnimations++},e.prototype.destroy=function(e,t){var n=this;if(e){var r=this._fetchNamespace(e);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[e];var t=n._namespaceList.indexOf(r);t>=0&&n._namespaceList.splice(t,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(t)})}},e.prototype._fetchNamespace=function(e){return this._namespaceLookup[e]},e.prototype.fetchNamespacesByElement=function(e){var t=new Set,n=this.statesByElement.get(e);if(n)for(var r=Object.keys(n),o=0;o<r.length;o++){var i=n[r[o]].namespaceId;if(i){var s=this._fetchNamespace(i);s&&t.add(s)}}return t},e.prototype.trigger=function(e,t,n,r){return!!zn(t)&&(this._fetchNamespace(e).trigger(t,n,r),!0)},e.prototype.insertNode=function(e,t,n,r){if(zn(t)){var o=t[Rn];o&&o.setForRemoval&&(o.setForRemoval=!1),e&&this._fetchNamespace(e).insertNode(t,n),r&&this.collectEnterElement(t)}},e.prototype.collectEnterElement=function(e){this.collectedEnterElements.push(e)},e.prototype.markElementAsDisabled=function(e,t){t?this.disabledNodes.has(e)||(this.disabledNodes.add(e),Zn(e,"ng-animate-disabled")):this.disabledNodes.has(e)&&(this.disabledNodes.delete(e),Wn(e,"ng-animate-disabled"))},e.prototype.removeNode=function(e,t,n){if(zn(t)){var r=e?this._fetchNamespace(e):null;r?r.removeNode(t,n):this.markElementAsRemoved(e,t,!1,n)}else this._onRemovalComplete(t,n)},e.prototype.markElementAsRemoved=function(e,t,n,r){this.collectedLeaveElements.push(t),t[Rn]={namespaceId:e,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},e.prototype.listen=function(e,t,n,r,o){return zn(t)?this._fetchNamespace(e).listen(t,n,r,o):function(){}},e.prototype._buildInstruction=function(e,t,n,r){return e.transition.build(this.driver,e.element,e.fromState.value,e.toState.value,n,r,e.fromState.options,e.toState.options,t)},e.prototype.destroyInnerAnimations=function(e){var t=this,n=this.driver.query(e,".ng-trigger",!0);n.forEach(function(e){return t.destroyActiveAnimationsForElement(e)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(e,".ng-animating",!0)).forEach(function(e){return t.finishActiveQueriedAnimationOnElement(e)})},e.prototype.destroyActiveAnimationsForElement=function(e){var t=this.playersByElement.get(e);t&&t.forEach(function(e){e.queued?e.markedForDestroy=!0:e.destroy()});var n=this.statesByElement.get(e);n&&Object.keys(n).forEach(function(e){return n[e]=Vn})},e.prototype.finishActiveQueriedAnimationOnElement=function(e){var t=this.playersByQueriedElement.get(e);t&&t.forEach(function(e){return e.finish()})},e.prototype.whenRenderingDone=function(){var e=this;return new Promise(function(t){if(e.players.length)return yt(e.players).onDone(function(){return t()});t()})},e.prototype.processLeaveNode=function(e){var t=this,n=e[Rn];if(n&&n.setForRemoval){if(e[Rn]=Dn,n.namespaceId){this.destroyInnerAnimations(e);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(e)}this._onRemovalComplete(e,n.setForRemoval)}this.driver.matchesElement(e,".ng-animate-disabled")&&this.markElementAsDisabled(e,!1),this.driver.query(e,".ng-animate-disabled",!0).forEach(function(n){t.markElementAsDisabled(e,!1)})},e.prototype.flush=function(e){var t=this;void 0===e&&(e=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(e,n){return t._balanceNamespaceList(e,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r<this.collectedEnterElements.length;r++)Zn(this.collectedEnterElements[r],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{n=this._flushAnimations(o,e)}finally{for(r=0;r<o.length;r++)o[r]()}}else for(r=0;r<this.collectedLeaveElements.length;r++)this.processLeaveNode(this.collectedLeaveElements[r]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(e){return e()}),this._flushFns=[],this._whenQuietFns.length){var i=this._whenQuietFns;this._whenQuietFns=[],n.length?yt(n).onDone(function(){i.forEach(function(e){return e()})}):i.forEach(function(e){return e()})}},e.prototype.reportError=function(e){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+e.join("\n"))},e.prototype._flushAnimations=function(e,t){var n=this,r=new pn,o=[],i=new Map,s=[],a=new Map,u=new Map,l=new Map,p=new Set;this.disabledNodes.forEach(function(e){p.add(e);for(var t=n.driver.query(e,".ng-animate-queued",!0),r=0;r<t.length;r++)p.add(t[r])});var f=Nt(),h=Array.from(this.statesByElement.keys()),d=Un(h,this.collectedEnterElements),y=new Map,m=0;d.forEach(function(e,t){var n="ng-enter"+m++;y.set(t,n),e.forEach(function(e){return Zn(e,n)})});for(var v=[],g=new Set,_=new Set,b=0;b<this.collectedLeaveElements.length;b++)(L=(V=this.collectedLeaveElements[b])[Rn])&&L.setForRemoval&&(v.push(V),g.add(V),L.hasAnimation?this.driver.query(V,".ng-star-inserted",!0).forEach(function(e){return g.add(e)}):_.add(V));var w=new Map,E=Un(h,Array.from(g));E.forEach(function(e,t){var n="ng-leave"+m++;w.set(t,n),e.forEach(function(e){return Zn(e,n)})}),e.push(function(){d.forEach(function(e,t){var n=y.get(t);e.forEach(function(e){return Wn(e,n)})}),E.forEach(function(e,t){var n=w.get(t);e.forEach(function(e){return Wn(e,n)})}),v.forEach(function(e){n.processLeaveNode(e)})});for(var S=[],T=[],x=this._namespaceList.length-1;x>=0;x--)this._namespaceList[x].drainQueuedTransitions(t).forEach(function(e){var t=e.player;S.push(t);var i=e.element;if(f&&n.driver.containsElement(f,i)){var c=w.get(i),p=y.get(i),h=n._buildInstruction(e,r,p,c);if(h.errors&&h.errors.length)T.push(h);else{if(e.isFallbackTransition)return t.onStart(function(){return qt(i,h.fromStyles)}),t.onDestroy(function(){return zt(i,h.toStyles)}),void o.push(t);h.timelines.forEach(function(e){return e.stretchStartingKeyframe=!0}),r.append(i,h.timelines),s.push({instruction:h,player:t,element:i}),h.queriedElements.forEach(function(e){return bt(a,e,[]).push(t)}),h.preStyleProps.forEach(function(e,t){var n=Object.keys(e);if(n.length){var r=u.get(t);r||u.set(t,r=new Set),n.forEach(function(e){return r.add(e)})}}),h.postStyleProps.forEach(function(e,t){var n=Object.keys(e),r=l.get(t);r||l.set(t,r=new Set),n.forEach(function(e){return r.add(e)})})}}else t.destroy()});if(T.length){var k=[];T.forEach(function(e){k.push("@"+e.triggerName+" has failed due to:\n"),e.errors.forEach(function(e){return k.push("- "+e+"\n")})}),S.forEach(function(e){return e.destroy()}),this.reportError(k)}var O=new Map,N=new Map;s.forEach(function(e){var t=e.element;r.has(t)&&(N.set(t,t),n._beforeAnimationBuild(e.player.namespaceId,e.instruction,O))}),o.forEach(function(e){var t=e.element;n._getPreviousPlayers(t,!1,e.namespaceId,e.triggerName,null).forEach(function(e){bt(O,t,[]).push(e),e.destroy()})});var P=v.filter(function(e){return Yn(e,u,l)}),I=new Map;Qn(I,this.driver,_,l,C).forEach(function(e){Yn(e,u,l)&&P.push(e)});var D=new Map;d.forEach(function(e,t){Qn(D,n.driver,new Set(e),u,A)}),P.forEach(function(e){var t=I.get(e),n=D.get(e);I.set(e,Object(c.a)({},t,n))});var M=[],R=[],j={};s.forEach(function(e){var t=e.element,s=e.player,a=e.instruction;if(r.has(t)){if(p.has(t))return s.onDestroy(function(){return zt(t,a.toStyles)}),void o.push(s);var u=j;if(N.size>1){for(var c=t,l=[];c=c.parentNode;){var f=N.get(c);if(f){u=f;break}l.push(c)}l.forEach(function(e){return N.set(e,u)})}var h=n._buildAnimation(s.namespaceId,a,O,i,D,I);if(s.setRealPlayer(h),u===j)M.push(s);else{var d=n.playersByElement.get(u);d&&d.length&&(s.parentPlayer=yt(d)),o.push(s)}}else qt(t,a.fromStyles),s.onDestroy(function(){return zt(t,a.toStyles)}),R.push(s),p.has(t)&&o.push(s)}),R.forEach(function(e){var t=i.get(e.element);if(t&&t.length){var n=yt(t);e.setRealPlayer(n)}}),o.forEach(function(e){e.parentPlayer?e.syncPlayerEvents(e.parentPlayer):e.destroy()});for(var F=0;F<v.length;F++){var V,L=(V=v[F])[Rn];if(Wn(V,"ng-leave"),!L||!L.hasAnimation){var B=[];if(a.size){var H=a.get(V);H&&H.length&&B.push.apply(B,H);for(var z=this.driver.query(V,".ng-animating",!0),q=0;q<z.length;q++){var Q=a.get(z[q]);Q&&Q.length&&B.push.apply(B,Q)}}var U=B.filter(function(e){return!e.destroyed});U.length?Gn(this,V,U):this.processLeaveNode(V)}}return v.length=0,M.forEach(function(e){n.players.push(e),e.onDone(function(){e.destroy();var t=n.players.indexOf(e);n.players.splice(t,1)}),e.play()}),M},e.prototype.elementContainsData=function(e,t){var n=!1,r=t[Rn];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(t)&&(n=!0),this.playersByQueriedElement.has(t)&&(n=!0),this.statesByElement.has(t)&&(n=!0),this._fetchNamespace(e).elementContainsData(t)||n},e.prototype.afterFlush=function(e){this._flushFns.push(e)},e.prototype.afterFlushAnimationsDone=function(e){this._whenQuietFns.push(e)},e.prototype._getPreviousPlayers=function(e,t,n,r,o){var i=[];if(t){var s=this.playersByQueriedElement.get(e);s&&(i=s)}else{var a=this.playersByElement.get(e);if(a){var u=!o||"void"==o;a.forEach(function(e){e.queued||(u||e.triggerName==r)&&i.push(e)})}}return(n||r)&&(i=i.filter(function(e){return!(n&&n!=e.namespaceId||r&&r!=e.triggerName)})),i},e.prototype._beforeAnimationBuild=function(e,t,n){for(var r=t.element,o=t.isRemovalTransition?void 0:e,i=t.isRemovalTransition?void 0:t.triggerName,s=function(e){var s=e.element,u=s!==r,c=bt(n,s,[]);a._getPreviousPlayers(s,u,o,i,t.toState).forEach(function(e){var t=e.getRealPlayer();t.beforeDestroy&&t.beforeDestroy(),e.destroy(),c.push(e)})},a=this,u=0,c=t.timelines;u<c.length;u++)s(c[u]);qt(r,t.fromStyles)},e.prototype._buildAnimation=function(e,t,n,r,o,i){var s=this,a=t.triggerName,u=t.element,c=[],l=new Set,p=new Set,f=t.timelines.map(function(t){var f=t.element;l.add(f);var h=f[Rn];if(h&&h.removedBeforeQueried)return new k;var d,y,m=f!==u,v=(d=(n.get(f)||In).map(function(e){return e.getRealPlayer()}),y=[],function e(t,n){for(var r=0;r<t.length;r++){var o=t[r];o instanceof O?e(o.players,n):n.push(o)}}(d,y),y).filter(function(e){return!!e.element&&e.element===f}),g=o.get(f),_=i.get(f),b=mt(0,s._normalizer,0,t.keyframes,g,_),w=s._buildPlayer(t,b,v);if(t.subTimeline&&r&&p.add(f),m){var E=new Hn(e,a,f);E.setRealPlayer(w),c.push(E)}return w});c.forEach(function(e){bt(s.playersByQueriedElement,e.element,[]).push(e),e.onDone(function(){return function(e,t,n){var r;if(e instanceof Map){if(r=e.get(t)){if(r.length){var o=r.indexOf(n);r.splice(o,1)}0==r.length&&e.delete(t)}}else(r=e[t])&&(r.length&&(o=r.indexOf(n),r.splice(o,1)),0==r.length&&delete e[t]);return r}(s.playersByQueriedElement,e.element,e)})}),l.forEach(function(e){return Zn(e,"ng-animating")});var h=yt(f);return h.onDestroy(function(){l.forEach(function(e){return Wn(e,"ng-animating")}),zt(u,t.toStyles)}),p.forEach(function(e){bt(r,e,[]).push(h)}),h},e.prototype._buildPlayer=function(e,t,n){return t.length>0?this.driver.animate(e.element,t,e.duration,e.delay,e.easing,n):new k},e}(),Hn=function(){function e(e,t,n){this.namespaceId=e,this.triggerName=t,this.element=n,this._player=new k,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.queued=!0}return e.prototype.setRealPlayer=function(e){var t=this;this._containsRealPlayer||(this._player=e,Object.keys(this._queuedCallbacks).forEach(function(n){t._queuedCallbacks[n].forEach(function(t){return vt(e,n,void 0,t)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.queued=!1)},e.prototype.getRealPlayer=function(){return this._player},e.prototype.syncPlayerEvents=function(e){var t=this,n=this._player;n.triggerCallback&&e.onStart(function(){return n.triggerCallback("start")}),e.onDone(function(){return t.finish()}),e.onDestroy(function(){return t.destroy()})},e.prototype._queueEvent=function(e,t){bt(this._queuedCallbacks,e,[]).push(t)},e.prototype.onDone=function(e){this.queued&&this._queueEvent("done",e),this._player.onDone(e)},e.prototype.onStart=function(e){this.queued&&this._queueEvent("start",e),this._player.onStart(e)},e.prototype.onDestroy=function(e){this.queued&&this._queueEvent("destroy",e),this._player.onDestroy(e)},e.prototype.init=function(){this._player.init()},e.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},e.prototype.play=function(){!this.queued&&this._player.play()},e.prototype.pause=function(){!this.queued&&this._player.pause()},e.prototype.restart=function(){!this.queued&&this._player.restart()},e.prototype.finish=function(){this._player.finish()},e.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},e.prototype.reset=function(){!this.queued&&this._player.reset()},e.prototype.setPosition=function(e){this.queued||this._player.setPosition(e)},e.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),e.prototype.triggerCallback=function(e){var t=this._player;t.triggerCallback&&t.triggerCallback(e)},e}();function zn(e){return e&&1===e.nodeType}function qn(e,t){var n=e.style.display;return e.style.display=null!=t?t:"none",n}function Qn(e,t,n,r,o){var i=[];n.forEach(function(e){return i.push(qn(e))});var s=[];r.forEach(function(n,r){var i={};n.forEach(function(e){var n=i[e]=t.computeStyle(r,e,o);n&&0!=n.length||(r[Rn]=Mn,s.push(r))}),e.set(r,i)});var a=0;return n.forEach(function(e){return qn(e,i[a++])}),s}function Un(e,t){var n=new Map;if(e.forEach(function(e){return n.set(e,[])}),0==t.length)return n;var r=new Set(t),o=new Map;return t.forEach(function(e){var t=function e(t){if(!t)return 1;var i=o.get(t);if(i)return i;var s=t.parentNode;return i=n.has(s)?s:r.has(s)?1:e(s),o.set(t,i),i}(e);1!==t&&n.get(t).push(e)}),n}var Kn="$$classes";function Zn(e,t){if(e.classList)e.classList.add(t);else{var n=e[Kn];n||(n=e[Kn]={}),n[t]=!0}}function Wn(e,t){if(e.classList)e.classList.remove(t);else{var n=e[Kn];n&&delete n[t]}}function Gn(e,t,n){yt(n).onDone(function(){return e.processLeaveNode(t)})}function Yn(e,t,n){var r=n.get(e);if(!r)return!1;var o=t.get(e);return o?r.forEach(function(e){return o.add(e)}):t.set(e,r),n.delete(e),!0}var Xn=function(){function e(e,t){var n=this;this._driver=e,this._triggerCache={},this.onRemovalComplete=function(e,t){},this._transitionEngine=new Bn(e,t),this._timelineEngine=new Pn(e,t),this._transitionEngine.onRemovalComplete=function(e,t){return n.onRemovalComplete(e,t)}}return e.prototype.registerTrigger=function(e,t,n,r,o){var i=e+"-"+r,s=this._triggerCache[i];if(!s){var a=[],u=rn(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=function(e,t){return new On(e,t)}(r,u),this._triggerCache[i]=s}this._transitionEngine.registerTrigger(t,r,s)},e.prototype.register=function(e,t){this._transitionEngine.register(e,t)},e.prototype.destroy=function(e,t){this._transitionEngine.destroy(e,t)},e.prototype.onInsert=function(e,t,n,r){this._transitionEngine.insertNode(e,t,n,r)},e.prototype.onRemove=function(e,t,n){this._transitionEngine.removeNode(e,t,n)},e.prototype.disableAnimations=function(e,t){this._transitionEngine.markElementAsDisabled(e,t)},e.prototype.process=function(e,t,n,r){if("@"==n.charAt(0)){var o=wt(n);this._timelineEngine.command(o[0],t,o[1],r)}else this._transitionEngine.trigger(e,t,n,r)},e.prototype.listen=function(e,t,n,r,o){if("@"==n.charAt(0)){var i=wt(n);return this._timelineEngine.listen(i[0],t,i[1],o)}return this._transitionEngine.listen(e,t,n,r,o)},e.prototype.flush=function(e){void 0===e&&(e=-1),this._transitionEngine.flush(e)},Object.defineProperty(e.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),e.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},e}(),Jn=function(){function e(e,t,n,r){void 0===r&&(r=[]);var o=this;this.element=e,this.keyframes=t,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,(0===this._duration||0===this._delay)&&r.forEach(function(e){var t=e.currentSnapshot;Object.keys(t).forEach(function(e){return o.previousStyles[e]=t[e]})})}return e.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(e){return e()}),this._onDoneFns=[])},e.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},e.prototype._buildPlayer=function(){var e=this;if(!this._initialized){this._initialized=!0;var t=this.keyframes.map(function(e){return Ht(e,!1)}),n=Object.keys(this.previousStyles);if(n.length&&t.length){var r=t[0],o=[];if(n.forEach(function(t){r.hasOwnProperty(t)||o.push(t),r[t]=e.previousStyles[t]}),o.length)for(var i=this,s=function(){var e=t[a];o.forEach(function(t){e[t]=$n(i.element,t)})},a=1;a<t.length;a++)s()}this.domPlayer=this._triggerWebAnimation(this.element,t,this.options),this._finalKeyframe=t.length?t[t.length-1]:{},this.domPlayer.addEventListener("finish",function(){return e._onFinish()})}},e.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},e.prototype._triggerWebAnimation=function(e,t,n){return e.animate(t,n)},e.prototype.onStart=function(e){this._onStartFns.push(e)},e.prototype.onDone=function(e){this._onDoneFns.push(e)},e.prototype.onDestroy=function(e){this._onDestroyFns.push(e)},e.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(e){return e()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},e.prototype.pause=function(){this.init(),this.domPlayer.pause()},e.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},e.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},e.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},e.prototype.restart=function(){this.reset(),this.play()},e.prototype.hasStarted=function(){return this._started},e.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(e){return e()}),this._onDestroyFns=[])},e.prototype.setPosition=function(e){this.domPlayer.currentTime=e*this.time},e.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(e.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),e.prototype.beforeDestroy=function(){var e=this,t={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(t[n]=e._finished?e._finalKeyframe[n]:$n(e.element,n))}),this.currentSnapshot=t},e.prototype.triggerCallback=function(e){var t="start"==e?this._onStartFns:this._onDoneFns;t.forEach(function(e){return e()}),t.length=0},e}();function $n(e,t){return window.getComputedStyle(e)[t]}var er=function(){function e(){}return e.prototype.validateStyleProperty=function(e){return At(e)},e.prototype.matchesElement=function(e,t){return Pt(e,t)},e.prototype.containsElement=function(e,t){return It(e,t)},e.prototype.query=function(e,t,n){return Dt(e,t,n)},e.prototype.computeStyle=function(e,t,n){return window.getComputedStyle(e)[t]},e.prototype.animate=function(e,t,n,r,o,i){void 0===i&&(i=[]);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};o&&(s.easing=o);var a=i.filter(function(e){return e instanceof Jn});return new Jn(e,t,s,a)},e}(),tr=function(e){function t(t,n){var o=e.call(this)||this;return o._nextAnimationId=0,o._renderer=t.createRenderer(n.body,{id:"0",encapsulation:r.E.None,styles:[],data:{animation:[]}}),o}return Object(c.b)(t,e),t.prototype.build=function(e){var t=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(e)?S(e):e;return or(this._renderer,null,t,"register",[n]),new nr(t,this._renderer)},t}(E),nr=function(e){function t(t,n){var r=e.call(this)||this;return r._id=t,r._renderer=n,r}return Object(c.b)(t,e),t.prototype.create=function(e,t){return new rr(this._id,e,t||{},this._renderer)},t}(function(){}),rr=function(){function e(e,t,n,r){this.id=e,this.element=t,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return e.prototype._listen=function(e,t){return this._renderer.listen(this.element,"@@"+this.id+":"+e,t)},e.prototype._command=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return or(this._renderer,this.element,this.id,e,t)},e.prototype.onDone=function(e){this._listen("done",e)},e.prototype.onStart=function(e){this._listen("start",e)},e.prototype.onDestroy=function(e){this._listen("destroy",e)},e.prototype.init=function(){this._command("init")},e.prototype.hasStarted=function(){return this._started},e.prototype.play=function(){this._command("play"),this._started=!0},e.prototype.pause=function(){this._command("pause")},e.prototype.restart=function(){this._command("restart")},e.prototype.finish=function(){this._command("finish")},e.prototype.destroy=function(){this._command("destroy")},e.prototype.reset=function(){this._command("reset")},e.prototype.setPosition=function(e){this._command("setPosition",e)},e.prototype.getPosition=function(){return 0},e}();function or(e,t,n,r,o){return e.setProperty(t,"@@"+n+":"+r,o)}var ir=function(){function e(e,t,n){this.delegate=e,this.engine=t,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),t.onRemovalComplete=function(e,t){t&&t.parentNode(e)&&t.removeChild(e.parentNode,e)}}return e.prototype.createRenderer=function(e,t){var n=this,r=this.delegate.createRenderer(e,t);if(!(e&&t&&t.data&&t.data.animation)){var o=this._rendererCache.get(r);return o||(o=new sr("",r,this.engine),this._rendererCache.set(r,o)),o}var i=t.id,s=t.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,e),t.data.animation.forEach(function(t){return n.engine.registerTrigger(i,s,e,t.name,t)}),new ar(this,s,r,this.engine)},e.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},e.prototype._scheduleCountTask=function(){var e=this;this.promise.then(function(){e._microtaskId++})},e.prototype.scheduleListenerCallback=function(e,t,n){var r=this;e>=0&&e<this._microtaskId?this._zone.run(function(){return t(n)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(e){(0,e[0])(e[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([t,n]))},e.prototype.end=function(){var e=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){e._scheduleCountTask(),e.engine.flush(e._microtaskId)}),this.delegate.end&&this.delegate.end()},e.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},e}(),sr=function(){function e(e,t,n){this.namespaceId=e,this.delegate=t,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(e){return t.destroyNode(e)}:null}return Object.defineProperty(e.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},e.prototype.createElement=function(e,t){return this.delegate.createElement(e,t)},e.prototype.createComment=function(e){return this.delegate.createComment(e)},e.prototype.createText=function(e){return this.delegate.createText(e)},e.prototype.appendChild=function(e,t){this.delegate.appendChild(e,t),this.engine.onInsert(this.namespaceId,t,e,!1)},e.prototype.insertBefore=function(e,t,n){this.delegate.insertBefore(e,t,n),this.engine.onInsert(this.namespaceId,t,e,!0)},e.prototype.removeChild=function(e,t){this.engine.onRemove(this.namespaceId,t,this.delegate)},e.prototype.selectRootElement=function(e){return this.delegate.selectRootElement(e)},e.prototype.parentNode=function(e){return this.delegate.parentNode(e)},e.prototype.nextSibling=function(e){return this.delegate.nextSibling(e)},e.prototype.setAttribute=function(e,t,n,r){this.delegate.setAttribute(e,t,n,r)},e.prototype.removeAttribute=function(e,t,n){this.delegate.removeAttribute(e,t,n)},e.prototype.addClass=function(e,t){this.delegate.addClass(e,t)},e.prototype.removeClass=function(e,t){this.delegate.removeClass(e,t)},e.prototype.setStyle=function(e,t,n,r){this.delegate.setStyle(e,t,n,r)},e.prototype.removeStyle=function(e,t,n){this.delegate.removeStyle(e,t,n)},e.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)&&"@.disabled"==t?this.disableAnimations(e,!!n):this.delegate.setProperty(e,t,n)},e.prototype.setValue=function(e,t){this.delegate.setValue(e,t)},e.prototype.listen=function(e,t,n){return this.delegate.listen(e,t,n)},e.prototype.disableAnimations=function(e,t){this.engine.disableAnimations(e,t)},e}(),ar=function(e){function t(t,n,r,o){var i=e.call(this,n,r,o)||this;return i.factory=t,i.namespaceId=n,i}return Object(c.b)(t,e),t.prototype.setProperty=function(e,t,n){"@"==t.charAt(0)?"."==t.charAt(1)&&"@.disabled"==t?this.disableAnimations(e,n=void 0===n||!!n):this.engine.process(this.namespaceId,e,t.substr(1),n):this.delegate.setProperty(e,t,n)},t.prototype.listen=function(e,t,n){var r,o,i,s=this;if("@"==t.charAt(0)){var a=function(e){switch(e){case"body":return document.body;case"document":return document;case"window":return window;default:return e}}(e),u=t.substr(1),c="";return"@"!=u.charAt(0)&&(u=(o=u,i=o.indexOf("."),r=[o.substring(0,i),o.substr(i+1)])[0],c=r[1]),this.engine.listen(this.namespaceId,a,u,c,function(e){s.factory.scheduleListenerCallback(e._data||-1,n,e)})}return this.delegate.listen(e,t,n)},t}(sr),ur=function(e){function t(t,n){return e.call(this,t,n)||this}return Object(c.b)(t,e),t}(Xn);function cr(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate?new er:new Mt}function lr(){return new En}function pr(e,t,n){return new ir(e,t,n)}var fr=function(){},hr=r.Q(o,[i],function(e){return r.Z([r._0(512,r.g,r.M,[[8,[j]],[3,r.g],r.q]),r._0(5120,r.p,r._3,[[3,r.p]]),r._0(4608,y,m,[r.p,[2,d]]),r._0(4608,r.f,r.f,[]),r._0(5120,r.a,r.V,[]),r._0(5120,r.n,r._1,[]),r._0(5120,r.o,r._2,[]),r._0(4608,rt,ot,[w]),r._0(6144,r.y,null,[rt]),r._0(4608,Ne,Pe,[]),r._0(5120,re,function(e,t,n,r,o){return[new Oe(e,t),new Re(n),new Ie(r,o)]},[w,r.s,w,w,Ne]),r._0(4608,oe,oe,[re,r.s]),r._0(135680,ae,ae,[w]),r._0(4608,de,de,[oe,ae]),r._0(5120,Rt,cr,[]),r._0(5120,wn,lr,[]),r._0(4608,Xn,ur,[Rt,wn]),r._0(5120,r.w,pr,[de,Xn,r.s]),r._0(6144,se,null,[ae]),r._0(4608,r.B,r.B,[r.s]),r._0(4608,G,G,[w]),r._0(4608,$,$,[w]),r._0(4608,E,tr,[r.w,K]),r._0(512,b,b,[]),r._0(1024,r.i,ht,[]),r._0(1024,r.b,function(e){return[(t=e,ee("probe",ne),ee("coreTokens",Object(c.a)({},te,(t||[]).reduce(function(e,t){return e[t.name]=t.token,e},{}))),function(){return ne})];var t},[[2,r.r]]),r._0(512,r.c,r.c,[[2,r.b]]),r._0(131584,r.e,r.e,[r.s,r.N,r.m,r.i,r.g,r.c]),r._0(512,r.d,r.d,[r.e]),r._0(512,dt,dt,[[3,dt]]),r._0(512,fr,fr,[]),r._0(512,o,o,[])])});Object(r.H)(),ft().bootstrapModuleFactory(hr).catch(function(e){return console.log(e)})},fRUx:function(e,t){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(e){"object"==typeof window&&(n=window)}e.exports=n},grVA:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}}},mz3w:function(e,t,n){"use strict";n.d(t,"a",function(){return r});var r=function(e){var t,r=n("xIGM").a.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}()},qLnt:function(e,t,n){"use strict";var r,o=Array.isArray||function(e){return e&&"number"==typeof e.length},i=n("NGRF"),s=n("B1iP"),a={e:{}};function u(){try{return r.apply(this,arguments)}catch(e){return a.e=e,a}}function c(e){return r=e,u}var l=n("6Xbx"),p=function(e){function t(t){e.call(this),this.errors=t;var n=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return Object(l.b)(t,e),t}(Error);n.d(t,"a",function(){return f});var f=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}var t;return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var n=this._parent,r=this._parents,u=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var f=-1,d=r?r.length:0;n;)n.remove(this),n=++f<d&&r[f]||null;if(Object(s.a)(u)&&c(u).call(this)===a&&(t=!0,e=e||(a.e instanceof p?h(a.e.errors):[a.e])),o(l))for(f=-1,d=l.length;++f<d;){var y=l[f];if(Object(i.a)(y)&&c(y.unsubscribe).call(y)===a){t=!0,e=e||[];var m=a.e;m instanceof p?e=e.concat(h(m.errors)):e.push(m)}}if(t)throw new p(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var n=t;switch(typeof t){case"function":n=new e(t);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;(n=new e)._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},e.prototype._addParent=function(e){var t=this._parent,n=this._parents;t&&t!==e?n?-1===n.indexOf(e)&&n.push(e):this._parents=[e]:this._parent=e},e.EMPTY=((t=new e).closed=!0,t),e}();function h(e){return e.reduce(function(e,t){return e.concat(t instanceof p?t.errors:t)},[])}},xIGM:function(e,t,n){"use strict";(function(e){n.d(t,"a",function(){return i});var r="undefined"!=typeof window&&window,o="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=r||"undefined"!=typeof e&&e||o}).call(t,n("fRUx"))}},[0]);