(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,n,e){t.exports=e("zUnb")},crnd:function(t,n){function e(t){return Promise.resolve().then(function(){var n=new Error("Cannot find module '"+t+"'");throw n.code="MODULE_NOT_FOUND",n})}e.keys=function(){return[]},e.resolve=e,t.exports=e,e.id="crnd"},zUnb:function(t,n,e){"use strict";e.r(n);var i=function(t,n){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,n){t.__proto__=n}||function(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e])})(t,n)};function o(t,n){function e(){this.constructor=t}i(t,n),t.prototype=null===n?Object.create(n):(e.prototype=n.prototype,new e)}var l=function(){return(l=Object.assign||function(t){for(var n,e=1,i=arguments.length;e<i;e++)for(var o in n=arguments[e])Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o]);return t}).apply(this,arguments)};function r(t,n,e,i){var o,l=arguments.length,r=l<3?n:null===i?i=Object.getOwnPropertyDescriptor(n,e):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)r=Reflect.decorate(t,n,e,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(r=(l<3?o(r):l>3?o(n,e,r):o(n,e))||r);return l>3&&r&&Object.defineProperty(n,e,r),r}function a(t,n){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,n)}function s(t){var n="function"==typeof Symbol&&t[Symbol.iterator],e=0;return n?n.call(t):{next:function(){return t&&e>=t.length&&(t=void 0),{value:t&&t[e++],done:!t}}}}function u(t,n){var e="function"==typeof Symbol&&t[Symbol.iterator];if(!e)return t;var i,o,l=e.call(t),r=[];try{for(;(void 0===n||n-- >0)&&!(i=l.next()).done;)r.push(i.value)}catch(a){o={error:a}}finally{try{i&&!i.done&&(e=l.return)&&e.call(l)}finally{if(o)throw o.error}}return r}function c(){for(var t=[],n=0;n<arguments.length;n++)t=t.concat(u(arguments[n]));return t}var p=Array.isArray||function(t){return t&&"number"==typeof t.length};function h(t){return null!=t&&"object"==typeof t}function d(t){return"function"==typeof t}var f,g={e:{}};function m(){try{return f.apply(this,arguments)}catch(t){return g.e=t,g}}function y(t){return f=t,m}var v=function(t){function n(e){var i=t.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,n){return n+1+") "+t.toString()}).join("\n "):"")||this;return i.errors=e,i.name="UnsubscriptionError",Object.setPrototypeOf(i,n.prototype),i}return o(n,t),n}(Error),b=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}var n;return t.prototype.unsubscribe=function(){var t,n=!1;if(!this.closed){var e=this._parent,i=this._parents,o=this._unsubscribe,l=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var r=-1,a=i?i.length:0;e;)e.remove(this),e=++r<a&&i[r]||null;if(d(o)&&y(o).call(this)===g&&(n=!0,t=t||(g.e instanceof v?_(g.e.errors):[g.e])),p(l))for(r=-1,a=l.length;++r<a;){var s=l[r];if(h(s)&&y(s.unsubscribe).call(s)===g){n=!0,t=t||[];var u=g.e;u instanceof v?t=t.concat(_(u.errors)):t.push(u)}}if(n)throw new v(t)}},t.prototype.add=function(n){if(!n||n===t.EMPTY)return t.EMPTY;if(n===this)return this;var e=n;switch(typeof n){case"function":e=new t(n);case"object":if(e.closed||"function"!=typeof e.unsubscribe)return e;if(this.closed)return e.unsubscribe(),e;if("function"!=typeof e._addParent){var i=e;(e=new t)._subscriptions=[i]}break;default:throw new Error("unrecognized teardown "+n+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(e),e._addParent(this),e},t.prototype.remove=function(t){var n=this._subscriptions;if(n){var e=n.indexOf(t);-1!==e&&n.splice(e,1)}},t.prototype._addParent=function(t){var n=this._parent,e=this._parents;n&&n!==t?e?-1===e.indexOf(t)&&e.push(t):this._parents=[t]:this._parent=t},t.EMPTY=((n=new t).closed=!0,n),t}();function _(t){return t.reduce(function(t,n){return t.concat(n instanceof v?n.errors:n)},[])}var w=!1,x={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){w=t},get useDeprecatedSynchronousErrorHandling(){return w}};function P(t){setTimeout(function(){throw t})}var C={closed:!0,next:function(t){},error:function(t){if(x.useDeprecatedSynchronousErrorHandling)throw t;P(t)},complete:function(){}},S="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber",I=function(t){function n(n,e,i){var o,l=t.call(this)||this;switch(l.syncErrorValue=null,l.syncErrorThrown=!1,l.syncErrorThrowable=!1,l.isStopped=!1,arguments.length){case 0:l.destination=C;break;case 1:if(!n){l.destination=C;break}if("object"==typeof n){if((o=n)instanceof I||"syncErrorThrowable"in o&&o[S]){var r=n[S]();l.syncErrorThrowable=r.syncErrorThrowable,l.destination=r,r.add(l)}else l.syncErrorThrowable=!0,l.destination=new k(l,n);break}default:l.syncErrorThrowable=!0,l.destination=new k(l,n,e,i)}return l}return o(n,t),n.prototype[S]=function(){return this},n.create=function(t,e,i){var o=new n(t,e,i);return o.syncErrorThrowable=!1,o},n.prototype.next=function(t){this.isStopped||this._next(t)},n.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},n.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},n.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},n.prototype._next=function(t){this.destination.next(t)},n.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},n.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},n.prototype._unsubscribeAndRecycle=function(){var t=this._parent,n=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=n,this},n}(b),k=function(t){function n(n,e,i,o){var l,r=t.call(this)||this;r._parentSubscriber=n;var a=r;return d(e)?l=e:e&&(l=e.next,i=e.error,o=e.complete,e!==C&&(d((a=Object.create(e)).unsubscribe)&&r.add(a.unsubscribe.bind(a)),a.unsubscribe=r.unsubscribe.bind(r))),r._context=a,r._next=l,r._error=i,r._complete=o,r}return o(n,t),n.prototype.next=function(t){if(!this.isStopped&&this._next){var n=this._parentSubscriber;x.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?this.__tryOrSetError(n,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},n.prototype.error=function(t){if(!this.isStopped){var n=this._parentSubscriber,e=x.useDeprecatedSynchronousErrorHandling;if(this._error)e&&n.syncErrorThrowable?(this.__tryOrSetError(n,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(n.syncErrorThrowable)e?(n.syncErrorValue=t,n.syncErrorThrown=!0):P(t),this.unsubscribe();else{if(this.unsubscribe(),e)throw t;P(t)}}},n.prototype.complete=function(){var t=this;if(!this.isStopped){var n=this._parentSubscriber;if(this._complete){var e=function(){return t._complete.call(t._context)};x.useDeprecatedSynchronousErrorHandling&&n.syncErrorThrowable?(this.__tryOrSetError(n,e),this.unsubscribe()):(this.__tryOrUnsub(e),this.unsubscribe())}else this.unsubscribe()}},n.prototype.__tryOrUnsub=function(t,n){try{t.call(this._context,n)}catch(e){if(this.unsubscribe(),x.useDeprecatedSynchronousErrorHandling)throw e;P(e)}},n.prototype.__tryOrSetError=function(t,n,e){if(!x.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{n.call(this._context,e)}catch(i){return x.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=i,t.syncErrorThrown=!0,!0):(P(i),!0)}return!1},n.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},n}(I),O="function"==typeof Symbol&&Symbol.observable||"@@observable";function E(){}function D(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return A(t)}function A(t){return t?1===t.length?t[0]:function(n){return t.reduce(function(t,n){return n(t)},n)}:E}var M=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(n){var e=new t;return e.source=this,e.operator=n,e},t.prototype.subscribe=function(t,n,e){var i=this.operator,o=function(t,n,e){if(t){if(t instanceof I)return t;if(t[S])return t[S]()}return t||n||e?new I(t,n,e):new I(C)}(t,n,e);if(i?i.call(o,this.source):o.add(this.source||x.useDeprecatedSynchronousErrorHandling&&!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),x.useDeprecatedSynchronousErrorHandling&&o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(n){x.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=n),t.error(n)}},t.prototype.forEach=function(t,n){var e=this;return new(n=T(n))(function(n,i){var o;o=e.subscribe(function(n){try{t(n)}catch(e){i(e),o&&o.unsubscribe()}},i,n)})},t.prototype._subscribe=function(t){var n=this.source;return n&&n.subscribe(t)},t.prototype[O]=function(){return this},t.prototype.pipe=function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 0===t.length?this:A(t)(this)},t.prototype.toPromise=function(t){var n=this;return new(t=T(t))(function(t,e){var i;n.subscribe(function(t){return i=t},function(t){return e(t)},function(){return t(i)})})},t.create=function(n){return new t(n)},t}();function T(t){if(t||(t=x.Promise||Promise),!t)throw new Error("no Promise impl found");return t}var R=function(t){function n(){var e=t.call(this,"object unsubscribed")||this;return e.name="ObjectUnsubscribedError",Object.setPrototypeOf(e,n.prototype),e}return o(n,t),n}(Error),L=function(t){function n(n,e){var i=t.call(this)||this;return i.subject=n,i.subscriber=e,i.closed=!1,i}return o(n,t),n.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,n=t.observers;if(this.subject=null,n&&0!==n.length&&!t.isStopped&&!t.closed){var e=n.indexOf(this.subscriber);-1!==e&&n.splice(e,1)}}},n}(b),N=function(t){function n(n){var e=t.call(this,n)||this;return e.destination=n,e}return o(n,t),n}(I),j=function(t){function n(){var n=t.call(this)||this;return n.observers=[],n.closed=!1,n.isStopped=!1,n.hasError=!1,n.thrownError=null,n}return o(n,t),n.prototype[S]=function(){return new N(this)},n.prototype.lift=function(t){var n=new V(this,this);return n.operator=t,n},n.prototype.next=function(t){if(this.closed)throw new R;if(!this.isStopped)for(var n=this.observers,e=n.length,i=n.slice(),o=0;o<e;o++)i[o].next(t)},n.prototype.error=function(t){if(this.closed)throw new R;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var n=this.observers,e=n.length,i=n.slice(),o=0;o<e;o++)i[o].error(t);this.observers.length=0},n.prototype.complete=function(){if(this.closed)throw new R;this.isStopped=!0;for(var t=this.observers,n=t.length,e=t.slice(),i=0;i<n;i++)e[i].complete();this.observers.length=0},n.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},n.prototype._trySubscribe=function(n){if(this.closed)throw new R;return t.prototype._trySubscribe.call(this,n)},n.prototype._subscribe=function(t){if(this.closed)throw new R;return this.hasError?(t.error(this.thrownError),b.EMPTY):this.isStopped?(t.complete(),b.EMPTY):(this.observers.push(t),new L(this,t))},n.prototype.asObservable=function(){var t=new M;return t.source=this,t},n.create=function(t,n){return new V(t,n)},n}(M),V=function(t){function n(n,e){var i=t.call(this)||this;return i.destination=n,i.source=e,i}return o(n,t),n.prototype.next=function(t){var n=this.destination;n&&n.next&&n.next(t)},n.prototype.error=function(t){var n=this.destination;n&&n.error&&this.destination.error(t)},n.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},n.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):b.EMPTY},n}(j);function B(t){return t&&"function"==typeof t.schedule}var U=function(t){function n(n,e,i){var o=t.call(this)||this;return o.parent=n,o.outerValue=e,o.outerIndex=i,o.index=0,o}return o(n,t),n.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},n.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},n.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},n}(I),F=function(t){return function(n){for(var e=0,i=t.length;e<i&&!n.closed;e++)n.next(t[e]);n.closed||n.complete()}},z=function(t){return function(n){return t.then(function(t){n.closed||(n.next(t),n.complete())},function(t){return n.error(t)}).then(null,P),n}};function H(){return"function"==typeof Symbol&&Symbol.iterator?Symbol.iterator:"@@iterator"}var q=H(),G=function(t){return function(n){for(var e=t[q]();;){var i=e.next();if(i.done){n.complete();break}if(n.next(i.value),n.closed)break}return"function"==typeof e.return&&n.add(function(){e.return&&e.return()}),n}},Q=function(t){return function(n){var e=t[O]();if("function"!=typeof e.subscribe)throw new TypeError("Provided object does not correctly implement Symbol.observable");return e.subscribe(n)}},W=function(t){return t&&"number"==typeof t.length&&"function"!=typeof t};function K(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}var Z=function(t){if(t instanceof M)return function(n){return t._isScalar?(n.next(t.value),void n.complete()):t.subscribe(n)};if(t&&"function"==typeof t[O])return Q(t);if(W(t))return F(t);if(K(t))return z(t);if(t&&"function"==typeof t[q])return G(t);var n=h(t)?"an invalid object":"'"+t+"'";throw new TypeError("You provided "+n+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.")};function X(t,n,e,i){var o=new U(t,e,i);return Z(n)(o)}var Y=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.notifyNext=function(t,n,e,i,o){this.destination.next(n)},n.prototype.notifyError=function(t,n){this.destination.error(t)},n.prototype.notifyComplete=function(t){this.destination.complete()},n}(I);function J(t,n){return function(e){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return e.lift(new tt(t,n))}}var tt=function(){function t(t,n){this.project=t,this.thisArg=n}return t.prototype.call=function(t,n){return n.subscribe(new nt(t,this.project,this.thisArg))},t}(),nt=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.project=e,o.count=0,o.thisArg=i||o,o}return o(n,t),n.prototype._next=function(t){var n;try{n=this.project.call(this.thisArg,t,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(n)},n}(I);function et(t,n){return new M(n?function(e){var i=new b,o=0;return i.add(n.schedule(function(){o!==t.length?(e.next(t[o++]),e.closed||i.add(this.schedule())):e.complete()})),i}:F(t))}function it(t,n){if(!n)return t instanceof M?t:new M(Z(t));if(null!=t){if(function(t){return t&&"function"==typeof t[O]}(t))return function(t,n){return new M(n?function(e){var i=new b;return i.add(n.schedule(function(){var o=t[O]();i.add(o.subscribe({next:function(t){i.add(n.schedule(function(){return e.next(t)}))},error:function(t){i.add(n.schedule(function(){return e.error(t)}))},complete:function(){i.add(n.schedule(function(){return e.complete()}))}}))})),i}:Q(t))}(t,n);if(K(t))return function(t,n){return new M(n?function(e){var i=new b;return i.add(n.schedule(function(){return t.then(function(t){i.add(n.schedule(function(){e.next(t),i.add(n.schedule(function(){return e.complete()}))}))},function(t){i.add(n.schedule(function(){return e.error(t)}))})})),i}:z(t))}(t,n);if(W(t))return et(t,n);if(function(t){return t&&"function"==typeof t[q]}(t)||"string"==typeof t)return function(t,n){if(!t)throw new Error("Iterable cannot be null");return new M(n?function(e){var i,o=new b;return o.add(function(){i&&"function"==typeof i.return&&i.return()}),o.add(n.schedule(function(){i=t[q](),o.add(n.schedule(function(){if(!e.closed){var t,n;try{var o=i.next();t=o.value,n=o.done}catch(l){return void e.error(l)}n?e.complete():(e.next(t),this.schedule())}}))})),o}:G(t))}(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")}function ot(t,n,e){return void 0===e&&(e=Number.POSITIVE_INFINITY),"function"==typeof n?function(i){return i.pipe(ot(function(e,i){return it(t(e,i)).pipe(J(function(t,o){return n(e,t,i,o)}))},e))}:("number"==typeof n&&(e=n),function(n){return n.lift(new lt(t,e))})}var lt=function(){function t(t,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.concurrent=n}return t.prototype.call=function(t,n){return n.subscribe(new rt(t,this.project,this.concurrent))},t}(),rt=function(t){function n(n,e,i){void 0===i&&(i=Number.POSITIVE_INFINITY);var o=t.call(this,n)||this;return o.project=e,o.concurrent=i,o.hasCompleted=!1,o.buffer=[],o.active=0,o.index=0,o}return o(n,t),n.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},n.prototype._tryNext=function(t){var n,e=this.index++;try{n=this.project(t,e)}catch(i){return void this.destination.error(i)}this.active++,this._innerSub(n,t,e)},n.prototype._innerSub=function(t,n,e){this.add(X(this,t,n,e))},n.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},n.prototype.notifyNext=function(t,n,e,i,o){this.destination.next(n)},n.prototype.notifyComplete=function(t){var n=this.buffer;this.remove(t),this.active--,n.length>0?this._next(n.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},n}(Y);function at(t){return t}function st(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),ot(at,t)}function ut(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=Number.POSITIVE_INFINITY,i=null,o=t[t.length-1];return B(o)?(i=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(e=t.pop())):"number"==typeof o&&(e=t.pop()),null===i&&1===t.length&&t[0]instanceof M?t[0]:st(e)(et(t,i))}function ct(){return function(t){return t.lift(new pt(t))}}var pt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,n){var e=this.connectable;e._refCount++;var i=new ht(t,e),o=n.subscribe(i);return i.closed||(i.connection=e.connect()),o},t}(),ht=function(t){function n(n,e){var i=t.call(this,n)||this;return i.connectable=e,i}return o(n,t),n.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._refCount;if(n<=0)this.connection=null;else if(t._refCount=n-1,n>1)this.connection=null;else{var e=this.connection,i=t._connection;this.connection=null,!i||e&&i!==e||i.unsubscribe()}}else this.connection=null},n}(I),dt=function(t){function n(n,e){var i=t.call(this)||this;return i.source=n,i.subjectFactory=e,i._refCount=0,i._isComplete=!1,i}return o(n,t),n.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},n.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},n.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new b).add(this.source.subscribe(new gt(this.getSubject(),this))),t.closed?(this._connection=null,t=b.EMPTY):this._connection=t),t},n.prototype.refCount=function(){return ct()(this)},n}(M).prototype,ft={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:dt._subscribe},_isComplete:{value:dt._isComplete,writable:!0},getSubject:{value:dt.getSubject},connect:{value:dt.connect},refCount:{value:dt.refCount}},gt=function(t){function n(n,e){var i=t.call(this,n)||this;return i.connectable=e,i}return o(n,t),n.prototype._error=function(n){this._unsubscribe(),t.prototype._error.call(this,n)},n.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},n.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var n=t._connection;t._refCount=0,t._subject=null,t._connection=null,n&&n.unsubscribe()}},n}(N);function mt(){return new j}function yt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var vt=function(){function t(t,n){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==n?yt({providedIn:n.providedIn||"root",factory:n.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),bt="__parameters__";function _t(t,n,e){var i=function(t){return function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(t){var i=t.apply(void 0,c(n));for(var o in i)this[o]=i[o]}}}(n);function o(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];if(this instanceof o)return i.apply(this,n),this;var l=new((t=o).bind.apply(t,c([void 0],n)));return r.annotation=l,r;function r(t,n,e){for(var i=t.hasOwnProperty(bt)?t[bt]:Object.defineProperty(t,bt,{value:[]})[bt];i.length<=e;)i.push(null);return(i[e]=i[e]||[]).push(l),t}}return e&&(o.prototype=Object.create(e.prototype)),o.prototype.ngMetadataName=t,o.annotationCls=o,o}var wt=new vt("AnalyzeForEntryComponents"),xt="undefined"!=typeof window&&window,Pt="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,Ct="undefined"!=typeof global&&global||xt||Pt,St=Promise.resolve(0),It=null;function kt(){if(!It){var t=Ct.Symbol;if(t&&t.iterator)It=t.iterator;else for(var n=Object.getOwnPropertyNames(Map.prototype),e=0;e<n.length;++e){var i=n[e];"entries"!==i&&"size"!==i&&Map.prototype[i]===Map.prototype.entries&&(It=i)}}return It}function Ot(t){"undefined"==typeof Zone?St.then(function(){t&&t.apply(null,null)}):Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function Et(t,n){return t===n||"number"==typeof t&&"number"==typeof n&&isNaN(t)&&isNaN(n)}function Dt(t){if("string"==typeof t)return t;if(t instanceof Array)return"["+t.map(Dt).join(", ")+"]";if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var n=t.toString();if(null==n)return""+n;var e=n.indexOf("\n");return-1===e?n:n.substring(0,e)}function At(t){return t.__forward_ref__=At,t.toString=function(){return Dt(this())},t}function Mt(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===At?t():t}var Tt=_t("Inject",function(t){return{token:t}}),Rt=_t("Optional"),Lt=_t("Self"),Nt=_t("SkipSelf"),jt="__source",Vt=new Object,Bt=new vt("INJECTOR"),Ut=function(){function t(){}return t.prototype.get=function(t,n){if(void 0===n&&(n=Vt),n===Vt)throw new Error("NullInjectorError: No provider for "+Dt(t)+"!");return n},t}(),Ft=function(){function t(){}return t.create=function(t,n){return Array.isArray(t)?new Xt(t,n):new Xt(t.providers,t.parent,t.name||null)},t.THROW_IF_NOT_FOUND=Vt,t.NULL=new Ut,t.ngInjectableDef=yt({providedIn:"any",factory:function(){return ln(Bt)}}),t}(),zt=function(t){return t},Ht=[],qt=zt,$t=function(){return Array.prototype.slice.call(arguments)},Gt={},Qt=nn({provide:String,useValue:Gt}),Wt=Ft.NULL,Kt=/\n/gm,Zt="\u0275",Xt=function(){function t(t,n,e){void 0===n&&(n=Wt),void 0===e&&(e=null),this.parent=n,this.source=e;var i=this._records=new Map;i.set(Ft,{token:Ft,fn:zt,deps:Ht,value:this,useNew:!1}),i.set(Bt,{token:Bt,fn:zt,deps:Ht,value:this,useNew:!1}),function t(n,e){if(e)if((e=Mt(e))instanceof Array)for(var i=0;i<e.length;i++)t(n,e[i]);else{if("function"==typeof e)throw tn("Function/Class not supported",e);if(!e||"object"!=typeof e||!e.provide)throw tn("Unexpected provider",e);var o=Mt(e.provide),l=function(t){var n=function(t){var n=Ht,e=t.deps;if(e&&e.length){n=[];for(var i=0;i<e.length;i++){var o=6;if((s=Mt(e[i]))instanceof Array)for(var l=0,r=s;l<r.length;l++){var a=r[l];a instanceof Rt||a==Rt?o|=1:a instanceof Nt||a==Nt?o&=-3:a instanceof Lt||a==Lt?o&=-5:s=a instanceof Tt?a.token:Mt(a)}n.push({token:s,options:o})}}else if(t.useExisting){var s;n=[{token:s=Mt(t.useExisting),options:6}]}else if(!(e||Qt in t))throw tn("'deps' required",t);return n}(t),e=zt,i=Ht,o=!1,l=Mt(t.provide);if(Qt in t)i=t.useValue;else if(t.useFactory)e=t.useFactory;else if(t.useExisting);else if(t.useClass)o=!0,e=Mt(t.useClass);else{if("function"!=typeof l)throw tn("StaticProvider does not have [useValue|useFactory|useExisting|useClass] or [provide] is not newable",t);o=!0,e=l}return{deps:n,fn:e,useNew:o,value:i}}(e);if(!0===e.multi){var r=n.get(o);if(r){if(r.fn!==$t)throw Yt(o)}else n.set(o,r={token:e.provide,deps:[],useNew:!1,fn:$t,value:Ht});r.deps.push({token:o=e,options:6})}var a=n.get(o);if(a&&a.fn==$t)throw Yt(o);n.set(o,l)}}(i,t)}return t.prototype.get=function(t,n,e){void 0===e&&(e=0);var i=this._records.get(t);try{return function t(n,e,i,o,l,r){try{return function(n,e,i,o,l,r){var a,s;if(!e||4&r)2&r||(s=o.get(n,l,0));else{if((s=e.value)==qt)throw Error(Zt+"Circular dependency");if(s===Ht){e.value=qt;var u=e.useNew,p=e.fn,h=e.deps,d=Ht;if(h.length){d=[];for(var f=0;f<h.length;f++){var g=h[f],m=g.options,y=2&m?i.get(g.token):void 0;d.push(t(g.token,y,i,y||4&m?o:Wt,1&m?null:Ft.THROW_IF_NOT_FOUND,0))}}e.value=s=u?new((a=p).bind.apply(a,c([void 0],d))):p.apply(void 0,d)}}return s}(n,e,i,o,l,r)}catch(a){throw a instanceof Error||(a=new Error(a)),(a.ngTempTokenPath=a.ngTempTokenPath||[]).unshift(n),e&&e.value==qt&&(e.value=Ht),a}}(t,i,this._records,this.parent,n,e)}catch(l){var o=l.ngTempTokenPath;throw t[jt]&&o.unshift(t[jt]),l.message=Jt("\n"+l.message,o,this.source),l.ngTokenPath=o,l.ngTempTokenPath=null,l}},t.prototype.toString=function(){var t=[];return this._records.forEach(function(n,e){return t.push(Dt(e))}),"StaticInjector["+t.join(", ")+"]"},t}();function Yt(t){return tn("Cannot mix multi providers and regular providers",t)}function Jt(t,n,e){void 0===e&&(e=null),t=t&&"\n"===t.charAt(0)&&t.charAt(1)==Zt?t.substr(2):t;var i=Dt(n);if(n instanceof Array)i=n.map(Dt).join(" -> ");else if("object"==typeof n){var o=[];for(var l in n)if(n.hasOwnProperty(l)){var r=n[l];o.push(l+":"+("string"==typeof r?JSON.stringify(r):Dt(r)))}i="{"+o.join(", ")+"}"}return"StaticInjectorError"+(e?"("+e+")":"")+"["+i+"]: "+t.replace(Kt,"\n ")}function tn(t,n){return new Error(Jt(t,n))}function nn(t){for(var n in t)if(t[n]===Gt)return n;throw Error("!prop")}var en=void 0;function on(t){var n=en;return en=t,n}function ln(t,n){if(void 0===n&&(n=0),void 0===en)throw new Error("inject() must be called from an injection context");if(null===en){var e=t.ngInjectableDef;if(e&&"root"==e.providedIn)return void 0===e.value?e.value=e.factory():e.value;if(8&n)return null;throw new Error("Injector: NOT_FOUND ["+Dt(t)+"]")}return en.get(t,8&n?null:void 0,n)}var rn=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({}),an=new(function(){return function(t){this.full=t,this.major=t.split(".")[0],this.minor=t.split(".")[1],this.patch=t.split(".").slice(2).join(".")}}())("6.1.10"),sn="ngDebugContext",un="ngOriginalError",cn="ngErrorLogger";function pn(t){return t[sn]}function hn(t){return t[un]}function dn(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];t.error.apply(t,c(n))}var fn=function(){function t(){this._console=console}return t.prototype.handleError=function(t){var n=this._findOriginalError(t),e=this._findContext(t),i=function(t){return t[cn]||dn}(t);i(this._console,"ERROR",t),n&&i(this._console,"ORIGINAL ERROR",n),e&&i(this._console,"ERROR CONTEXT",e)},t.prototype._findContext=function(t){return t?pn(t)?pn(t):this._findContext(hn(t)):null},t.prototype._findOriginalError=function(t){for(var n=hn(t);n&&hn(n);)n=hn(n);return n},t}(),gn=new vt("The presence of this token marks an injector as being the root injector.");function mn(t){return!!t&&"function"==typeof t.then}function yn(t){return!!t&&"function"==typeof t.subscribe}var vn=new vt("Application Initializer"),bn=function(){function t(t){var n=this;this.appInits=t,this.initialized=!1,this.done=!1,this.donePromise=new Promise(function(t,e){n.resolve=t,n.reject=e})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var n=[],e=function(){t.done=!0,t.resolve()};if(this.appInits)for(var i=0;i<this.appInits.length;i++){var o=this.appInits[i]();mn(o)&&n.push(o)}Promise.all(n).then(function(){e()}).catch(function(n){t.reject(n)}),0===n.length&&e(),this.initialized=!0}},t}(),_n=new vt("AppId");function wn(){return""+xn()+xn()+xn()}function xn(){return String.fromCharCode(97+Math.floor(25*Math.random()))}var Pn=new vt("Platform Initializer"),Cn=new vt("Platform ID"),Sn=new vt("appBootstrapListener"),In=function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}();function kn(){throw new Error("Runtime compiler is not loaded")}var On=function(){function t(){}return t.prototype.compileModuleSync=function(t){throw kn()},t.prototype.compileModuleAsync=function(t){throw kn()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw kn()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw kn()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t.prototype.getModuleId=function(t){},t}(),En=function(){return function(){}}(),Dn=function(){return function(){}}(),An=function(){return function(){}}();function Mn(t){var n=Error("No component factory found for "+Dt(t)+". Did you add it to @NgModule.entryComponents?");return n[Ln]=t,n}var Tn,Rn,Ln="ngComponent",Nn=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Mn(t)},t}(),jn=function(){function t(){}return t.NULL=new Nn,t}(),Vn=function(){function t(t,n,e){this._parent=n,this._ngModule=e,this._factories=new Map;for(var i=0;i<t.length;i++){var o=t[i];this._factories.set(o.componentType,o)}}return t.prototype.resolveComponentFactory=function(t){var n=this._factories.get(t);if(!n&&this._parent&&(n=this._parent.resolveComponentFactory(t)),!n)throw Mn(t);return new Bn(n,this._ngModule)},t}(),Bn=function(t){function n(n,e){var i=t.call(this)||this;return i.factory=n,i.ngModule=e,i.selector=n.selector,i.componentType=n.componentType,i.ngContentSelectors=n.ngContentSelectors,i.inputs=n.inputs,i.outputs=n.outputs,i}return o(n,t),n.prototype.create=function(t,n,e,i){return this.factory.create(t,n,e,i||this.ngModule)},n}(An),Un=function(){return function(){}}(),Fn=function(){return function(){}}();function zn(){var t=Ct.wtf;return!(!t||!(Tn=t.trace)||(Rn=Tn.events,0))}var Hn=zn();function qn(t,n){return null}var $n=Hn?function(t,n){return void 0===n&&(n=null),Rn.createScope(t,n)}:function(t,n){return qn},Gn=Hn?function(t,n){return Tn.leaveScope(t,n),n}:function(t,n){return n},Qn=function(t){function n(n){void 0===n&&(n=!1);var e=t.call(this)||this;return e.__isAsync=n,e}return o(n,t),n.prototype.emit=function(n){t.prototype.next.call(this,n)},n.prototype.subscribe=function(n,e,i){var o,l=function(t){return null},r=function(){return null};n&&"object"==typeof n?(o=this.__isAsync?function(t){setTimeout(function(){return n.next(t)})}:function(t){n.next(t)},n.error&&(l=this.__isAsync?function(t){setTimeout(function(){return n.error(t)})}:function(t){n.error(t)}),n.complete&&(r=this.__isAsync?function(){setTimeout(function(){return n.complete()})}:function(){n.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)},e&&(l=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)}),i&&(r=this.__isAsync?function(){setTimeout(function(){return i()})}:function(){i()}));var a=t.prototype.subscribe.call(this,o,l,r);return n instanceof b&&n.add(a),a},n}(j),Wn=function(){function t(t){var n,e=t.enableLongStackTrace,i=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Qn(!1),this.onMicrotaskEmpty=new Qn(!1),this.onStable=new Qn(!1),this.onError=new Qn(!1),"undefined"==typeof Zone)throw new Error("In this configuration Angular requires Zone.js");Zone.assertZonePatched(),this._nesting=0,this._outer=this._inner=Zone.current,Zone.wtfZoneSpec&&(this._inner=this._inner.fork(Zone.wtfZoneSpec)),Zone.TaskTrackingZoneSpec&&(this._inner=this._inner.fork(new Zone.TaskTrackingZoneSpec)),i&&Zone.longStackTraceZoneSpec&&(this._inner=this._inner.fork(Zone.longStackTraceZoneSpec)),(n=this)._inner=n._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(t,e,i,o,l,r){try{return Yn(n),t.invokeTask(i,o,l,r)}finally{Jn(n)}},onInvoke:function(t,e,i,o,l,r,a){try{return Yn(n),t.invoke(i,o,l,r,a)}finally{Jn(n)}},onHasTask:function(t,e,i,o){t.hasTask(i,o),e===i&&("microTask"==o.change?(n.hasPendingMicrotasks=o.microTask,Xn(n)):"macroTask"==o.change&&(n.hasPendingMacrotasks=o.macroTask))},onHandleError:function(t,e,i,o){return t.handleError(i,o),n.runOutsideAngular(function(){return n.onError.emit(o)}),!1}})}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t,n,e){return this._inner.run(t,n,e)},t.prototype.runTask=function(t,n,e,i){var o=this._inner,l=o.scheduleEventTask("NgZoneEvent: "+i,t,Zn,Kn,Kn);try{return o.runTask(l,n,e)}finally{o.cancelTask(l)}},t.prototype.runGuarded=function(t,n,e){return this._inner.runGuarded(t,n,e)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}();function Kn(){}var Zn={};function Xn(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function Yn(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function Jn(t){t._nesting--,Xn(t)}var te,ne=function(){function t(){this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new Qn,this.onMicrotaskEmpty=new Qn,this.onStable=new Qn,this.onError=new Qn}return t.prototype.run=function(t){return t()},t.prototype.runGuarded=function(t){return t()},t.prototype.runOutsideAngular=function(t){return t()},t.prototype.runTask=function(t){return t()},t}(),ee=function(){function t(t){var n=this;this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents(),t.run(function(){n.taskTrackingZone=Zone.current.get("TaskTrackingZone")})}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){Wn.assertNotInAngularZone(),Ot(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0===this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;if(this.isStable())Ot(function(){for(;0!==t._callbacks.length;){var n=t._callbacks.pop();clearTimeout(n.timeoutId),n.doneCb(t._didWork)}t._didWork=!1});else{var n=this.getPendingTasks();this._callbacks=this._callbacks.filter(function(t){return!t.updateCb||!t.updateCb(n)||(clearTimeout(t.timeoutId),!1)}),this._didWork=!0}},t.prototype.getPendingTasks=function(){return this.taskTrackingZone?this.taskTrackingZone.macroTasks.map(function(t){return{source:t.source,isPeriodic:t.data.isPeriodic,delay:t.data.delay,creationLocation:t.creationLocation,xhr:t.data.target}}):[]},t.prototype.addCallback=function(t,n,e){var i=this,o=-1;n&&n>0&&(o=setTimeout(function(){i._callbacks=i._callbacks.filter(function(t){return t.timeoutId!==o}),t(i._didWork,i.getPendingTasks())},n)),this._callbacks.push({doneCb:t,timeoutId:o,updateCb:e})},t.prototype.whenStable=function(t,n,e){if(e&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,n,e),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,n,e){return[]},t}(),ie=function(){function t(){this._applications=new Map,oe.addToWindow(this)}return t.prototype.registerApplication=function(t,n){this._applications.set(t,n)},t.prototype.unregisterApplication=function(t){this._applications.delete(t)},t.prototype.unregisterAllApplications=function(){this._applications.clear()},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,n){return void 0===n&&(n=!0),oe.findTestabilityInTree(this,t,n)},r([a("design:paramtypes",[])],t)}(),oe=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,n,e){return null},t}()),le=!0,re=!1,ae=new vt("AllowMultipleToken");function se(){return re=!0,le}var ue=function(){return function(t,n){this.name=t,this.token=n}}();function ce(t,n,e){void 0===e&&(e=[]);var i="Platform: "+n,o=new vt(i);return function(n){void 0===n&&(n=[]);var l=pe();if(!l||l.injector.get(ae,!1))if(t)t(e.concat(n).concat({provide:o,useValue:!0}));else{var r=e.concat(n).concat({provide:o,useValue:!0});!function(t){if(te&&!te.destroyed&&!te.injector.get(ae,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");te=t.get(he);var n=t.get(Pn,null);n&&n.forEach(function(t){return t()})}(Ft.create({providers:r,name:i}))}return function(t){var n=pe();if(!n)throw new Error("No platform exists!");if(!n.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return n}(o)}}function pe(){return te&&!te.destroyed?te:null}var he=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,n){var e,i=this,o="noop"===(e=n?n.ngZone:void 0)?new ne:("zone.js"===e?void 0:e)||new Wn({enableLongStackTrace:se()}),l=[{provide:Wn,useValue:o}];return o.run(function(){var n=Ft.create({providers:l,parent:i.injector,name:t.moduleType.name}),e=t.create(n),r=e.injector.get(fn,null);if(!r)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return e.onDestroy(function(){return ge(i._modules,e)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){r.handleError(t)}})}),function(t,n,o){try{var l=((r=e.injector.get(bn)).runInitializers(),r.donePromise.then(function(){return i._moduleDoBootstrap(e),e}));return mn(l)?l.catch(function(e){throw n.runOutsideAngular(function(){return t.handleError(e)}),e}):l}catch(a){throw n.runOutsideAngular(function(){return t.handleError(a)}),a}var r}(r,o)})},t.prototype.bootstrapModule=function(t,n){var e=this;void 0===n&&(n=[]);var i=this.injector.get(En),o=de({},n);return i.createCompiler([o]).compileModuleAsync(t).then(function(t){return e.bootstrapModuleFactory(t,o)})},t.prototype._moduleDoBootstrap=function(t){var n=t.injector.get(fe);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return n.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Dt(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(n)}this._modules.push(t)},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(t.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t}();function de(t,n){return Array.isArray(n)?n.reduce(de,t):l({},t,n)}var fe=function(){function t(t,n,e,i,o,l){var r=this;this._zone=t,this._console=n,this._injector=e,this._exceptionHandler=i,this._componentFactoryResolver=o,this._initStatus=l,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=se(),this._zone.onMicrotaskEmpty.subscribe({next:function(){r._zone.run(function(){r.tick()})}});var a=new M(function(t){r._stable=r._zone.isStable&&!r._zone.hasPendingMacrotasks&&!r._zone.hasPendingMicrotasks,r._zone.runOutsideAngular(function(){t.next(r._stable),t.complete()})}),s=new M(function(t){var n;r._zone.runOutsideAngular(function(){n=r._zone.onStable.subscribe(function(){Wn.assertNotInAngularZone(),Ot(function(){r._stable||r._zone.hasPendingMacrotasks||r._zone.hasPendingMicrotasks||(r._stable=!0,t.next(!0))})})});var e=r._zone.onUnstable.subscribe(function(){Wn.assertInAngularZone(),r._stable&&(r._stable=!1,r._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){n.unsubscribe(),e.unsubscribe()}});this.isStable=ut(a,s.pipe(function(t){return ct()((n=mt,function(t){var e;e="function"==typeof n?n:function(){return n};var i=Object.create(t,ft);return i.source=t,i.subjectFactory=e,i})(t));var n}))}var n;return n=t,t.prototype.bootstrap=function(t,n){var e,i=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.");e=t instanceof An?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(e.componentType);var o=e instanceof Bn?null:this._injector.get(Un),l=e.create(Ft.NULL,[],n||e.selector,o);l.onDestroy(function(){i._unloadComponent(l)});var r=l.injector.get(ee,null);return r&&l.injector.get(ie).registerApplication(l.location.nativeElement,r),this._loadComponent(l),se()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),l},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var e=n._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(i){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(i)})}finally{this._runningTick=!1,Gn(e)}},t.prototype.attachView=function(t){var n=t;this._views.push(n),n.attachToAppRef(this)},t.prototype.detachView=function(t){var n=t;ge(this._views,n),n.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sn,[]).concat(this._bootstrapListeners).forEach(function(n){return n(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ge(this.components,t)},t.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(t.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),t._tickScope=$n("ApplicationRef#tick()"),t}();function ge(t,n){var e=t.indexOf(n);e>-1&&t.splice(e,1)}var me=function(){return function(){}}(),ye=function(){return function(){}}(),ve=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),be=function(){return function(){}}(),_e=function(){return function(t){this.nativeElement=t}}(),we=function(){return function(){}}(),xe=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Qn,this.length=0}return t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,n){return this._results.reduce(t,n)},t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[kt()]=function(){return this._results[kt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(n){return n.reduce(function(n,e){var i=Array.isArray(e)?t(e):e;return n.concat(i)},[])}(t),this.dirty=!1,this.length=this._results.length,this.last=this._results[this.length-1],this.first=this._results[0]},t.prototype.notifyOnChanges=function(){this.changes.emit(this)},t.prototype.setDirty=function(){this.dirty=!0},t.prototype.destroy=function(){this.changes.complete(),this.changes.unsubscribe()},t}(),Pe=function(){return function(){}}(),Ce={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Se=function(){function t(t,n){this._compiler=t,this._config=n||Ce}return t.prototype.load=function(t){return this._compiler instanceof On?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var n=this,i=u(t.split("#"),2),o=i[0],l=i[1];return void 0===l&&(l="default"),e("crnd")(o).then(function(t){return t[l]}).then(function(t){return Ie(t,o,l)}).then(function(t){return n._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var n=u(t.split("#"),2),i=n[0],o=n[1],l="NgFactory";return void 0===o&&(o="default",l=""),e("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+l]}).then(function(t){return Ie(t,i,o)})},t}();function Ie(t,n,e){if(!t)throw new Error("Cannot find '"+e+"' in '"+n+"'");return t}var ke=function(){return function(){}}(),Oe=function(){return function(){}}(),Ee=function(){return function(){}}(),De=function(){return function(t,n){this.name=t,this.callback=n}}(),Ae=function(){function t(t,n,e){this._debugContext=e,this.nativeNode=t,n&&n instanceof Me?n.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),t}(),Me=function(t){function n(n,e,i){var o=t.call(this,n,e,i)||this;return o.properties={},o.attributes={},o.classes={},o.styles={},o.childNodes=[],o.nativeElement=n,o}return o(n,t),n.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},n.prototype.removeChild=function(t){var n=this.childNodes.indexOf(t);-1!==n&&(t.parent=null,this.childNodes.splice(n,1))},n.prototype.insertChildrenAfter=function(t,n){var e,i=this,o=this.childNodes.indexOf(t);-1!==o&&((e=this.childNodes).splice.apply(e,c([o+1,0],n)),n.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=i}))},n.prototype.insertBefore=function(t,n){var e=this.childNodes.indexOf(t);-1===e?this.addChild(n):(n.parent&&n.parent.removeChild(n),n.parent=this,this.childNodes.splice(e,0,n))},n.prototype.query=function(t){return this.queryAll(t)[0]||null},n.prototype.queryAll=function(t){var n=[];return function t(n,e,i){n.childNodes.forEach(function(n){n instanceof Me&&(e(n)&&i.push(n),t(n,e,i))})}(this,t,n),n},n.prototype.queryAllNodes=function(t){var n=[];return function t(n,e,i){n instanceof Me&&n.childNodes.forEach(function(n){e(n)&&i.push(n),n instanceof Me&&t(n,e,i)})}(this,t,n),n},Object.defineProperty(n.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof n})},enumerable:!0,configurable:!0}),n.prototype.triggerEventHandler=function(t,n){this.listeners.forEach(function(e){e.name==t&&e.callback(n)})},n}(Ae),Te=new Map;function Re(t){return Te.get(t)||null}function Le(t){Te.set(t.nativeNode,t)}function Ne(t,n){var e=Be(t),i=Be(n);return e&&i?function(t,n,e){for(var i=t[kt()](),o=n[kt()]();;){var l=i.next(),r=o.next();if(l.done&&r.done)return!0;if(l.done||r.done)return!1;if(!e(l.value,r.value))return!1}}(t,n,Ne):!(e||!t||"object"!=typeof t&&"function"!=typeof t||i||!n||"object"!=typeof n&&"function"!=typeof n)||Et(t,n)}var je=function(){function t(t){this.wrapped=t}return t.wrap=function(n){return new t(n)},t.unwrap=function(n){return t.isWrapped(n)?n.wrapped:n},t.isWrapped=function(n){return n instanceof t},t}(),Ve=function(){function t(t,n,e){this.previousValue=t,this.currentValue=n,this.firstChange=e}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Be(t){return!!Ue(t)&&(Array.isArray(t)||!(t instanceof Map)&&kt()in t)}function Ue(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Fe=function(){function t(){}return t.prototype.supports=function(t){return Be(t)},t.prototype.create=function(t){return new He(t)},t}(),ze=function(t,n){return n},He=function(){function t(t){this.length=0,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ze}return t.prototype.forEachItem=function(t){var n;for(n=this._itHead;null!==n;n=n._next)t(n)},t.prototype.forEachOperation=function(t){for(var n=this._itHead,e=this._removalsHead,i=0,o=null;n||e;){var l=!e||n&&n.currentIndex<Qe(e,i,o)?n:e,r=Qe(l,i,o),a=l.currentIndex;if(l===e)i--,e=e._nextRemoved;else if(n=n._next,null==l.previousIndex)i++;else{o||(o=[]);var s=r-i,u=a-i;if(s!=u){for(var c=0;c<s;c++){var p=c<o.length?o[c]:o[c]=0,h=p+c;u<=h&&h<s&&(o[c]=p+1)}o[l.previousIndex]=u-s}}r!==a&&t(l,r,a)}},t.prototype.forEachPreviousItem=function(t){var n;for(n=this._previousItHead;null!==n;n=n._nextPrevious)t(n)},t.prototype.forEachAddedItem=function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)},t.prototype.forEachMovedItem=function(t){var n;for(n=this._movesHead;null!==n;n=n._nextMoved)t(n)},t.prototype.forEachRemovedItem=function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)},t.prototype.forEachIdentityChange=function(t){var n;for(n=this._identityChangesHead;null!==n;n=n._nextIdentityChange)t(n)},t.prototype.diff=function(t){if(null==t&&(t=[]),!Be(t))throw new Error("Error trying to diff '"+Dt(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var n=this;this._reset();var e,i,o,l=this._itHead,r=!1;if(Array.isArray(t)){this.length=t.length;for(var a=0;a<this.length;a++)o=this._trackByFn(a,i=t[a]),null!==l&&Et(l.trackById,o)?(r&&(l=this._verifyReinsertion(l,i,o,a)),Et(l.item,i)||this._addIdentityChange(l,i)):(l=this._mismatch(l,i,o,a),r=!0),l=l._next}else e=0,function(t,n){if(Array.isArray(t))for(var e=0;e<t.length;e++)n(t[e]);else for(var i=t[kt()](),o=void 0;!(o=i.next()).done;)n(o.value)}(t,function(t){o=n._trackByFn(e,t),null!==l&&Et(l.trackById,o)?(r&&(l=n._verifyReinsertion(l,t,o,e)),Et(l.item,t)||n._addIdentityChange(l,t)):(l=n._mismatch(l,t,o,e),r=!0),l=l._next,e++}),this.length=e;return this._truncate(l),this.collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,n=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=n)t.previousIndex=t.currentIndex,n=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,n,e,i){var o;return null===t?o=this._itTail:(o=t._prev,this._remove(t)),null!==(t=null===this._linkedRecords?null:this._linkedRecords.get(e,i))?(Et(t.item,n)||this._addIdentityChange(t,n),this._moveAfter(t,o,i)):null!==(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null))?(Et(t.item,n)||this._addIdentityChange(t,n),this._reinsertAfter(t,o,i)):t=this._addAfter(new qe(n,e),o,i),t},t.prototype._verifyReinsertion=function(t,n,e,i){var o=null===this._unlinkedRecords?null:this._unlinkedRecords.get(e,null);return null!==o?t=this._reinsertAfter(o,t._prev,i):t.currentIndex!=i&&(t.currentIndex=i,this._addToMoves(t,i)),t},t.prototype._truncate=function(t){for(;null!==t;){var n=t._next;this._addToRemovals(this._unlink(t)),t=n}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,n,e){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var i=t._prevRemoved,o=t._nextRemoved;return null===i?this._removalsHead=o:i._nextRemoved=o,null===o?this._removalsTail=i:o._prevRemoved=i,this._insertAfter(t,n,e),this._addToMoves(t,e),t},t.prototype._moveAfter=function(t,n,e){return this._unlink(t),this._insertAfter(t,n,e),this._addToMoves(t,e),t},t.prototype._addAfter=function(t,n,e){return this._insertAfter(t,n,e),this._additionsTail=null===this._additionsTail?this._additionsHead=t:this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,n,e){var i=null===n?this._itHead:n._next;return t._next=i,t._prev=n,null===i?this._itTail=t:i._prev=t,null===n?this._itHead=t:n._next=t,null===this._linkedRecords&&(this._linkedRecords=new Ge),this._linkedRecords.put(t),t.currentIndex=e,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var n=t._prev,e=t._next;return null===n?this._itHead=e:n._next=e,null===e?this._itTail=n:e._prev=n,t},t.prototype._addToMoves=function(t,n){return t.previousIndex===n?t:(this._movesTail=null===this._movesTail?this._movesHead=t:this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new Ge),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,n){return t.item=n,this._identityChangesTail=null===this._identityChangesTail?this._identityChangesHead=t:this._identityChangesTail._nextIdentityChange=t,t},t}(),qe=function(){return function(t,n){this.item=t,this.trackById=n,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}}(),$e=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,n){var e;for(e=this._head;null!==e;e=e._nextDup)if((null===n||n<=e.currentIndex)&&Et(e.trackById,t))return e;return null},t.prototype.remove=function(t){var n=t._prevDup,e=t._nextDup;return null===n?this._head=e:n._nextDup=e,null===e?this._tail=n:e._prevDup=n,null===this._head},t}(),Ge=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var n=t.trackById,e=this.map.get(n);e||(e=new $e,this.map.set(n,e)),e.add(t)},t.prototype.get=function(t,n){var e=this.map.get(t);return e?e.get(t,n):null},t.prototype.remove=function(t){var n=t.trackById;return this.map.get(n).remove(t)&&this.map.delete(n),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t}();function Qe(t,n,e){var i=t.previousIndex;if(null===i)return i;var o=0;return e&&i<e.length&&(o=e[i]),i+n+o}var We=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||Ue(t)},t.prototype.create=function(){return new Ke},t}(),Ke=function(){function t(){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(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var n;for(n=this._mapHead;null!==n;n=n._next)t(n)},t.prototype.forEachPreviousItem=function(t){var n;for(n=this._previousMapHead;null!==n;n=n._nextPrevious)t(n)},t.prototype.forEachChangedItem=function(t){var n;for(n=this._changesHead;null!==n;n=n._nextChanged)t(n)},t.prototype.forEachAddedItem=function(t){var n;for(n=this._additionsHead;null!==n;n=n._nextAdded)t(n)},t.prototype.forEachRemovedItem=function(t){var n;for(n=this._removalsHead;null!==n;n=n._nextRemoved)t(n)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||Ue(t)))throw new Error("Error trying to diff '"+Dt(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var n=this;this._reset();var e=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,i){if(e&&e.key===i)n._maybeAddToChanges(e,t),n._appendAfter=e,e=e._next;else{var o=n._getOrCreateRecordForKey(i,t);e=n._insertBeforeOrAppend(e,o)}}),e){e._prev&&(e._prev._next=null),this._removalsHead=e;for(var i=e;null!==i;i=i._nextRemoved)i===this._mapHead&&(this._mapHead=null),this._records.delete(i.key),i._nextRemoved=i._next,i.previousValue=i.currentValue,i.currentValue=null,i._prev=null,i._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,n){if(t){var e=t._prev;return n._next=t,n._prev=e,t._prev=n,e&&(e._next=n),t===this._mapHead&&(this._mapHead=n),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=n,n._prev=this._appendAfter):this._mapHead=n,this._appendAfter=n,null},t.prototype._getOrCreateRecordForKey=function(t,n){if(this._records.has(t)){var e=this._records.get(t);this._maybeAddToChanges(e,n);var i=e._prev,o=e._next;return i&&(i._next=o),o&&(o._prev=i),e._next=null,e._prev=null,e}var l=new Ze(t);return this._records.set(t,l),l.currentValue=n,this._addToAdditions(l),l},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,n){Et(n,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=n,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,n){t instanceof Map?t.forEach(n):Object.keys(t).forEach(function(e){return n(t[e],e)})},t}(),Ze=function(){return function(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}}(),Xe=function(){function t(t){this.factories=t}return t.create=function(n,e){if(null!=e){var i=e.factories.slice();n=n.concat(i)}return new t(n)},t.extend=function(n){return{provide:t,useFactory:function(e){if(!e)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(n,e)},deps:[[t,new Nt,new Rt]]}},t.prototype.find=function(t){var n,e=this.factories.find(function(n){return n.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((n=t).name||typeof n)+"'")},t.ngInjectableDef=yt({providedIn:"root",factory:function(){return new t([new Fe])}}),t}(),Ye=function(){function t(t){this.factories=t}return t.create=function(n,e){if(e){var i=e.factories.slice();n=n.concat(i)}return new t(n)},t.extend=function(n){return{provide:t,useFactory:function(e){if(!e)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(n,e)},deps:[[t,new Nt,new Rt]]}},t.prototype.find=function(t){var n=this.factories.find(function(n){return n.supports(t)});if(n)return n;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),Je=[new We],ti=new Xe([new Fe]),ni=new Ye(Je),ei=ce(null,"core",[{provide:Cn,useValue:"unknown"},{provide:he,deps:[Ft]},{provide:ie,deps:[]},{provide:In,deps:[]}]),ii=new vt("LocaleId");function oi(){return ti}function li(){return ni}function ri(t){return t||"en-US"}var ai=function(){return function(t){}}(),si=function(){function t(t){if(this.defaultDoc=t,this.inertDocument=this.defaultDoc.implementation.createHTMLDocument("sanitization-inert"),this.inertBodyElement=this.inertDocument.body,null==this.inertBodyElement){var n=this.inertDocument.createElement("html");this.inertDocument.appendChild(n),this.inertBodyElement=this.inertDocument.createElement("body"),n.appendChild(this.inertBodyElement)}this.inertBodyElement.innerHTML='<svg><g onload="this.parentNode.remove()"></g></svg>',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='<svg><p><style><img src="</style><img src=x onerror=alert(1)//">',this.getInertBodyElement=this.inertBodyElement.querySelector&&this.inertBodyElement.querySelector("svg img")&&function(){try{return!!window.DOMParser}catch(t){return!1}}()?this.getInertBodyElement_DOMParser:this.getInertBodyElement_InertDocument):this.getInertBodyElement=this.getInertBodyElement_XHR}return t.prototype.getInertBodyElement_XHR=function(t){t="<body><remove></remove>"+t+"</body>";try{t=encodeURI(t)}catch(i){return null}var n=new XMLHttpRequest;n.responseType="document",n.open("GET","data:text/html;charset=utf-8,"+t,!1),n.send(null);var e=n.response.body;return e.removeChild(e.firstChild),e},t.prototype.getInertBodyElement_DOMParser=function(t){t="<body><remove></remove>"+t+"</body>";try{var n=(new window.DOMParser).parseFromString(t,"text/html").body;return n.removeChild(n.firstChild),n}catch(e){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var n=this.inertDocument.createElement("template");return"content"in n?(n.innerHTML=t,n):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var n=t.attributes,e=n.length-1;0<e;e--){var i=n.item(e).name;"xmlns:ns1"!==i&&0!==i.indexOf("ns1:")||t.removeAttribute(i)}for(var o=t.firstChild;o;)o.nodeType===Node.ELEMENT_NODE&&this.stripCustomNsAttrs(o),o=o.nextSibling},t}(),ui=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,ci=/^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 pi(t){return(t=String(t)).match(ui)||t.match(ci)?t:(se()&&console.warn("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function hi(t){var n,e,i={};try{for(var o=s(t.split(",")),l=o.next();!l.done;l=o.next())i[l.value]=!0}catch(r){n={error:r}}finally{try{l&&!l.done&&(e=o.return)&&e.call(o)}finally{if(n)throw n.error}}return i}function di(){for(var t,n,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o={};try{for(var l=s(e),r=l.next();!r.done;r=l.next()){var a=r.value;for(var u in a)a.hasOwnProperty(u)&&(o[u]=!0)}}catch(c){t={error:c}}finally{try{r&&!r.done&&(n=l.return)&&n.call(l)}finally{if(t)throw t.error}}return o}var fi,gi=hi("area,br,col,hr,img,wbr"),mi=hi("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),yi=hi("rp,rt"),vi=di(yi,mi),bi=di(gi,di(mi,hi("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")),di(yi,hi("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")),vi),_i=hi("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),wi=hi("srcset"),xi=di(_i,wi,hi("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")),Pi=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var n=t.firstChild;n;)if(n.nodeType===Node.ELEMENT_NODE?this.startElement(n):n.nodeType===Node.TEXT_NODE?this.chars(n.nodeValue):this.sanitizedSomething=!0,n.firstChild)n=n.firstChild;else for(;n;){n.nodeType===Node.ELEMENT_NODE&&this.endElement(n);var e=this.checkClobberedElement(n,n.nextSibling);if(e){n=e;break}n=this.checkClobberedElement(n,n.parentNode)}return this.buf.join("")},t.prototype.startElement=function(t){var n=t.nodeName.toLowerCase();if(bi.hasOwnProperty(n)){this.buf.push("<"),this.buf.push(n);for(var e,i=t.attributes,o=0;o<i.length;o++){var l=i.item(o),r=l.name,a=r.toLowerCase();if(xi.hasOwnProperty(a)){var s=l.value;_i[a]&&(s=pi(s)),wi[a]&&(e=s,s=(e=String(e)).split(",").map(function(t){return pi(t.trim())}).join(", ")),this.buf.push(" ",r,'="',Ii(s),'"')}else this.sanitizedSomething=!0}this.buf.push(">")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var n=t.nodeName.toLowerCase();bi.hasOwnProperty(n)&&!gi.hasOwnProperty(n)&&(this.buf.push("</"),this.buf.push(n),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(Ii(t))},t.prototype.checkClobberedElement=function(t,n){if(n&&(t.compareDocumentPosition(n)&Node.DOCUMENT_POSITION_CONTAINED_BY)===Node.DOCUMENT_POSITION_CONTAINED_BY)throw new Error("Failed to sanitize html because the element is clobbered: "+t.outerHTML);return n},t}(),Ci=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Si=/([^\#-~ |!])/g;function Ii(t){return t.replace(/&/g,"&").replace(Ci,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Si,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function ki(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Oi=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"),Ei=/^url\(([^)]+)\)$/,Di=function(t){return t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL",t}({}),Ai=function(){return function(){}}();function Mi(t,n,e){var i=t.state,o=1792&i;return o===n?(t.state=-1793&i|e,t.initIndex=-1,!0):o===e}function Ti(t,n,e){return(1792&t.state)===n&&t.initIndex<=e&&(t.initIndex=e+1,!0)}function Ri(t,n){return t.nodes[n]}function Li(t,n){return t.nodes[n]}function Ni(t,n){return t.nodes[n]}function ji(t,n){return t.nodes[n]}function Vi(t,n){return t.nodes[n]}var Bi={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 Ui(t,n,e,i){var o="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+n+"'. Current value: '"+e+"'.";return i&&(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(t,n){var e=new Error(t);return Fi(e,n),e}(o,t)}function Fi(t,n){t[sn]=n,t[cn]=n.logError.bind(n)}function zi(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Hi=function(){},qi=new Map;function $i(t){var n=qi.get(t);return n||(n=Dt(t)+"_"+qi.size,qi.set(t,n)),n}function Gi(t,n,e,i){if(je.isWrapped(i)){i=je.unwrap(i);var o=t.def.nodes[n].bindingIndex+e,l=je.unwrap(t.oldValues[o]);t.oldValues[o]=new je(l)}return i}var Qi="$$undefined",Wi="$$empty";function Ki(t){return{id:Qi,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Zi=0;function Xi(t,n,e,i){return!(!(2&t.state)&&Et(t.oldValues[n.bindingIndex+e],i))}function Yi(t,n,e,i){return!!Xi(t,n,e,i)&&(t.oldValues[n.bindingIndex+e]=i,!0)}function Ji(t,n,e,i){var o=t.oldValues[n.bindingIndex+e];if(1&t.state||!Ne(o,i)){var l=n.bindings[e].name;throw Ui(Bi.createDebugContext(t,n.nodeIndex),l+": "+o,l+": "+i,0!=(1&t.state))}}function to(t){for(var n=t;n;)2&n.def.flags&&(n.state|=8),n=n.viewContainerParent||n.parent}function no(t,n){for(var e=t;e&&e!==n;)e.state|=64,e=e.viewContainerParent||e.parent}function eo(t,n,e,i){try{return to(33554432&t.def.nodes[n].flags?Li(t,n).componentView:t),Bi.handleEvent(t,n,e,i)}catch(o){t.root.errorHandler.handleError(o)}}function io(t){return t.parent?Li(t.parent,t.parentNodeDef.nodeIndex):null}function oo(t){return t.parent?t.parentNodeDef.parent:null}function lo(t,n){switch(201347067&n.flags){case 1:return Li(t,n.nodeIndex).renderElement;case 2:return Ri(t,n.nodeIndex).renderText}}function ro(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function ao(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function so(t){return 1<<t%32}function uo(t){var n={},e=0,i={};return t&&t.forEach(function(t){var o=u(t,2),l=o[0],r=o[1];"number"==typeof l?(n[l]=r,e|=so(l)):i[l]=r}),{matchedQueries:n,references:i,matchedQueryIds:e}}function co(t,n){return t.map(function(t){var e,i,o;return Array.isArray(t)?(o=(e=u(t,2))[0],i=e[1]):(o=0,i=t),i&&("function"==typeof i||"object"==typeof i)&&n&&Object.defineProperty(i,jt,{value:n,configurable:!0}),{flags:o,token:i,tokenKey:$i(i)}})}function po(t,n,e){var i=e.renderParent;return i?0==(1&i.flags)||0==(33554432&i.flags)||i.element.componentRendererType&&i.element.componentRendererType.encapsulation===rn.Native?Li(t,e.renderParent.nodeIndex).renderElement:void 0:n}var ho=new WeakMap;function fo(t){var n=ho.get(t);return n||((n=t(function(){return Hi})).factory=t,ho.set(t,n)),n}function go(t,n,e,i,o){3===n&&(e=t.renderer.parentNode(lo(t,t.def.lastRenderRootNode))),mo(t,n,0,t.def.nodes.length-1,e,i,o)}function mo(t,n,e,i,o,l,r){for(var a=e;a<=i;a++){var s=t.def.nodes[a];11&s.flags&&vo(t,s,n,o,l,r),a+=s.childCount}}function yo(t,n,e,i,o,l){for(var r=t;r&&!ro(r);)r=r.parent;for(var a=r.parent,s=oo(r),u=s.nodeIndex+s.childCount,c=s.nodeIndex+1;c<=u;c++){var p=a.def.nodes[c];p.ngContentIndex===n&&vo(a,p,e,i,o,l),c+=p.childCount}if(!a.parent){var h=t.root.projectableNodes[n];if(h)for(c=0;c<h.length;c++)bo(t,h[c],e,i,o,l)}}function vo(t,n,e,i,o,l){if(8&n.flags)yo(t,n.ngContent.index,e,i,o,l);else{var r=lo(t,n);if(3===e&&33554432&n.flags&&48&n.bindingFlags?(16&n.bindingFlags&&bo(t,r,e,i,o,l),32&n.bindingFlags&&bo(Li(t,n.nodeIndex).componentView,r,e,i,o,l)):bo(t,r,e,i,o,l),16777216&n.flags)for(var a=Li(t,n.nodeIndex).viewContainer._embeddedViews,s=0;s<a.length;s++)go(a[s],e,i,o,l);1&n.flags&&!n.element.name&&mo(t,e,n.nodeIndex+1,n.nodeIndex+n.childCount,i,o,l)}}function bo(t,n,e,i,o,l){var r=t.renderer;switch(e){case 1:r.appendChild(i,n);break;case 2:r.insertBefore(i,n,o);break;case 3:r.removeChild(i,n);break;case 0:l.push(n)}}var _o=/^:([^:]+):(.+)$/;function wo(t){if(":"===t[0]){var n=t.match(_o);return[n[1],n[2]]}return["",t]}function xo(t){for(var n=0,e=0;e<t.length;e++)n|=t[e].flags;return n}function Po(t,n,e,i,o,l,r,a,s,u,c,p,h,d,f,g,m,y,v,b){switch(t){case 1:return n+Co(e)+i;case 2:return n+Co(e)+i+Co(o)+l;case 3:return n+Co(e)+i+Co(o)+l+Co(r)+a;case 4:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u;case 5:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u+Co(c)+p;case 6:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u+Co(c)+p+Co(h)+d;case 7:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u+Co(c)+p+Co(h)+d+Co(f)+g;case 8:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u+Co(c)+p+Co(h)+d+Co(f)+g+Co(m)+y;case 9:return n+Co(e)+i+Co(o)+l+Co(r)+a+Co(s)+u+Co(c)+p+Co(h)+d+Co(f)+g+Co(m)+y+Co(v)+b;default:throw new Error("Does not support more than 9 expressions")}}function Co(t){return null!=t?t.toString():""}function So(t,n,e,i,o,l){t|=1;var r=uo(n);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:r.matchedQueries,matchedQueryIds:r.matchedQueryIds,references:r.references,ngContentIndex:e,childCount:i,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:l?fo(l):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:o||Hi},provider:null,text:null,query:null,ngContent:null}}function Io(t,n,e,i,o,l,r,a,s,c,p,h){var d;void 0===r&&(r=[]),c||(c=Hi);var f=uo(e),g=f.matchedQueries,m=f.references,y=f.matchedQueryIds,v=null,b=null;l&&(v=(d=u(wo(l),2))[0],b=d[1]),a=a||[];for(var _=new Array(a.length),w=0;w<a.length;w++){var x=u(a[w],3),P=x[0],C=x[2],S=u(wo(x[1]),2),I=S[0],k=S[1],O=void 0,E=void 0;switch(15&P){case 4:E=C;break;case 1:case 8:O=C}_[w]={flags:P,ns:I,name:k,nonMinifiedName:k,securityContext:O,suffix:E}}s=s||[];var D=new Array(s.length);for(w=0;w<s.length;w++){var A=u(s[w],2);D[w]={type:0,target:A[0],eventName:A[1],propName:null}}var M=(r=r||[]).map(function(t){var n=u(t,2),e=n[1],i=u(wo(n[0]),2);return[i[0],i[1],e]});return h=function(t){if(t&&t.id===Qi){var n=null!=t.encapsulation&&t.encapsulation!==rn.None||t.styles.length||Object.keys(t.data).length;t.id=n?"c"+Zi++:Wi}return t&&t.id===Wi&&(t=null),t||null}(h),p&&(n|=33554432),{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:n|=1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:g,matchedQueryIds:y,references:m,ngContentIndex:i,childCount:o,bindings:_,bindingFlags:xo(_),outputs:D,element:{ns:v,name:b,attrs:M,template:null,componentProvider:null,componentView:p||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Hi},provider:null,text:null,query:null,ngContent:null}}function ko(t,n,e){var i,o=e.element,l=t.root.selectorOrNode,r=t.renderer;if(t.parent||!l){i=o.name?r.createElement(o.name,o.ns):r.createComment("");var a=po(t,n,e);a&&r.appendChild(a,i)}else i=r.selectRootElement(l);if(o.attrs)for(var s=0;s<o.attrs.length;s++){var c=u(o.attrs[s],3);r.setAttribute(i,c[1],c[2],c[0])}return i}function Oo(t,n,e,i){for(var o=0;o<e.outputs.length;o++){var l=e.outputs[o],r=Eo(t,e.nodeIndex,(p=l.eventName,(c=l.target)?c+":"+p:p)),a=l.target,s=t;"component"===l.target&&(a=null,s=n);var u=s.renderer.listen(a||i,l.eventName,r);t.disposables[e.outputIndex+o]=u}var c,p}function Eo(t,n,e){return function(i){return eo(t,n,e,i)}}function Do(t,n,e,i){if(!Yi(t,n,e,i))return!1;var o=n.bindings[e],l=Li(t,n.nodeIndex),r=l.renderElement,a=o.name;switch(15&o.flags){case 1:!function(t,n,e,i,o,l){var r=n.securityContext,a=r?t.root.sanitizer.sanitize(r,l):l;a=null!=a?a.toString():null;var s=t.renderer;null!=l?s.setAttribute(e,o,a,i):s.removeAttribute(e,o,i)}(t,o,r,o.ns,a,i);break;case 2:!function(t,n,e,i){var o=t.renderer;i?o.addClass(n,e):o.removeClass(n,e)}(t,r,a,i);break;case 4:!function(t,n,e,i,o){var l=t.root.sanitizer.sanitize(Di.STYLE,o);if(null!=l){l=l.toString();var r=n.suffix;null!=r&&(l+=r)}else l=null;var a=t.renderer;null!=l?a.setStyle(e,i,l):a.removeStyle(e,i)}(t,o,r,a,i);break;case 8:!function(t,n,e,i,o){var l=n.securityContext,r=l?t.root.sanitizer.sanitize(l,o):o;t.renderer.setProperty(e,i,r)}(33554432&n.flags&&32&o.flags?l.componentView:t,o,r,a,i)}return!0}var Ao=new Object,Mo=$i(Ft),To=$i(Bt),Ro=$i(Un);function Lo(t,n,e,i){return e=Mt(e),{index:-1,deps:co(i,Dt(n)),flags:t,token:n,value:e}}function No(t,n,e){void 0===e&&(e=Ft.THROW_IF_NOT_FOUND);var i,o,l=on(t);try{if(8&n.flags)return n.token;if(2&n.flags&&(e=null),1&n.flags)return t._parent.get(n.token,e);var r=n.tokenKey;switch(r){case Mo:case To:case Ro:return t}var a=t._def.providersByKey[r];if(a){var s=t._providers[a.index];return void 0===s&&(s=t._providers[a.index]=jo(t,a)),s===Ao?void 0:s}if(n.token.ngInjectableDef&&(i=t,null!=(o=n.token.ngInjectableDef).providedIn&&(function(t,n){return t._def.modules.indexOf(o.providedIn)>-1}(i)||"root"===o.providedIn&&i._def.isRoot))){var u=t._providers.length;return t._def.providersByKey[n.tokenKey]={flags:5120,value:n.token.ngInjectableDef.factory,deps:[],index:u,token:n.token},t._providers[u]=Ao,t._providers[u]=jo(t,t._def.providersByKey[n.tokenKey])}return 4&n.flags?e:t._parent.get(n.token,e)}finally{on(l)}}function jo(t,n){var e;switch(201347067&n.flags){case 512:e=function(t,n,e){var i=e.length;switch(i){case 0:return new n;case 1:return new n(No(t,e[0]));case 2:return new n(No(t,e[0]),No(t,e[1]));case 3:return new n(No(t,e[0]),No(t,e[1]),No(t,e[2]));default:for(var o=new Array(i),l=0;l<i;l++)o[l]=No(t,e[l]);return new(n.bind.apply(n,c([void 0],o)))}}(t,n.value,n.deps);break;case 1024:e=function(t,n,e){var i=e.length;switch(i){case 0:return n();case 1:return n(No(t,e[0]));case 2:return n(No(t,e[0]),No(t,e[1]));case 3:return n(No(t,e[0]),No(t,e[1]),No(t,e[2]));default:for(var o=Array(i),l=0;l<i;l++)o[l]=No(t,e[l]);return n.apply(void 0,c(o))}}(t,n.value,n.deps);break;case 2048:e=No(t,n.deps[0]);break;case 256:e=n.value}return e===Ao||null==e||"object"!=typeof e||131072&n.flags||"function"!=typeof e.ngOnDestroy||(n.flags|=131072),void 0===e?Ao:e}function Vo(t,n){var e=t.viewContainer._embeddedViews;if((null==n||n>=e.length)&&(n=e.length-1),n<0)return null;var i=e[n];return i.viewContainerParent=null,zo(e,n),Bi.dirtyParentQueries(i),Uo(i),i}function Bo(t,n,e){var i=n?lo(n,n.def.lastRenderRootNode):t.renderElement,o=e.renderer.parentNode(i),l=e.renderer.nextSibling(i);go(e,2,o,l,void 0)}function Uo(t){go(t,3,null,null,void 0)}function Fo(t,n,e){n>=t.length?t.push(e):t.splice(n,0,e)}function zo(t,n){n>=t.length-1?t.pop():t.splice(n,1)}var Ho=new Object;function qo(t,n,e,i,o,l){return new $o(t,n,e,i,o,l)}var $o=function(t){function n(n,e,i,o,l,r){var a=t.call(this)||this;return a.selector=n,a.componentType=e,a._inputs=o,a._outputs=l,a.ngContentSelectors=r,a.viewDefFactory=i,a}return o(n,t),Object.defineProperty(n.prototype,"inputs",{get:function(){var t=[],n=this._inputs;for(var e in n)t.push({propName:e,templateName:n[e]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"outputs",{get:function(){var t=[];for(var n in this._outputs)t.push({propName:n,templateName:this._outputs[n]});return t},enumerable:!0,configurable:!0}),n.prototype.create=function(t,n,e,i){if(!i)throw new Error("ngModule should be provided");var o=fo(this.viewDefFactory),l=o.nodes[0].element.componentProvider.nodeIndex,r=Bi.createRootView(t,n||[],e,o,i,Ho),a=Ni(r,l).instance;return e&&r.renderer.setAttribute(Li(r,0).renderElement,"ng-version",an.full),new Go(r,new Zo(r),a)},n}(An),Go=function(t){function n(n,e,i){var o=t.call(this)||this;return o._view=n,o._viewRef=e,o._component=i,o._elDef=o._view.def.nodes[0],o.hostView=e,o.changeDetectorRef=e,o.instance=i,o}return o(n,t),Object.defineProperty(n.prototype,"location",{get:function(){return new _e(Li(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new tl(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),n.prototype.destroy=function(){this._viewRef.destroy()},n.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},n}(Dn);function Qo(t,n,e){return new Wo(t,n,e)}var Wo=function(){function t(t,n,e){this._view=t,this._elDef=n,this._data=e,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new _e(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new tl(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,n=this._elDef.parent;!n&&t;)n=oo(t),t=t.parent;return t?new tl(t,n):new tl(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var n=Vo(this._data,t);Bi.destroyView(n)}},t.prototype.get=function(t){var n=this._embeddedViews[t];if(n){var e=new Zo(n);return e.attachToViewContainerRef(this),e}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,n,e){var i=t.createEmbeddedView(n||{});return this.insert(i,e),i},t.prototype.createComponent=function(t,n,e,i,o){var l=e||this.parentInjector;o||t instanceof Bn||(o=l.get(Un));var r=t.create(l,i,void 0,o);return this.insert(r.hostView,n),r},t.prototype.insert=function(t,n){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var e,i,o,l,r=t;return l=(e=this._data).viewContainer._embeddedViews,null==(i=n)&&(i=l.length),(o=r._view).viewContainerParent=this._view,Fo(l,i,o),function(t,n){var e=io(n);if(e&&e!==t&&!(16&n.state)){n.state|=16;var i=e.template._projectedViews;i||(i=e.template._projectedViews=[]),i.push(n),function(t,e){if(!(4&e.flags)){n.parent.def.nodeFlags|=4,e.flags|=4;for(var i=e.parent;i;)i.childFlags|=4,i=i.parent}}(0,n.parentNodeDef)}}(e,o),Bi.dirtyParentQueries(o),Bo(e,i>0?l[i-1]:null,o),r.attachToViewContainerRef(this),t},t.prototype.move=function(t,n){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var e,i,o,l,r,a=this._embeddedViews.indexOf(t._view);return o=n,r=(l=(e=this._data).viewContainer._embeddedViews)[i=a],zo(l,i),null==o&&(o=l.length),Fo(l,o,r),Bi.dirtyParentQueries(r),Uo(r),Bo(e,o>0?l[o-1]:null,r),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var n=Vo(this._data,t);n&&Bi.destroyView(n)},t.prototype.detach=function(t){var n=Vo(this._data,t);return n?new Zo(n):null},t}();function Ko(t){return new Zo(t)}var Zo=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return go(this._view,0,void 0,void 0,t=[]),t;var t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){to(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin();try{Bi.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Bi.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Bi.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Uo(this._view),Bi.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}();function Xo(t,n){return new Yo(t,n)}var Yo=function(t){function n(n,e){var i=t.call(this)||this;return i._parentView=n,i._def=e,i}return o(n,t),n.prototype.createEmbeddedView=function(t){return new Zo(Bi.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(n.prototype,"elementRef",{get:function(){return new _e(Li(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),n}(ke);function Jo(t,n){return new tl(t,n)}var tl=function(){function t(t,n){this.view=t,this.elDef=n}return t.prototype.get=function(t,n){return void 0===n&&(n=Ft.THROW_IF_NOT_FOUND),Bi.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:$i(t)},n)},t}();function nl(t,n){var e=t.def.nodes[n];if(1&e.flags){var i=Li(t,e.nodeIndex);return e.element.template?i.template:i.renderElement}if(2&e.flags)return Ri(t,e.nodeIndex).renderText;if(20240&e.flags)return Ni(t,e.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+n)}function el(t){return new il(t.renderer)}var il=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,n){var e=u(wo(n),2),i=this.delegate.createElement(e[1],e[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var n=this.delegate.createComment("");return t&&this.delegate.appendChild(t,n),n},t.prototype.createText=function(t,n){var e=this.delegate.createText(n);return t&&this.delegate.appendChild(t,e),e},t.prototype.projectNodes=function(t,n){for(var e=0;e<n.length;e++)this.delegate.appendChild(t,n[e])},t.prototype.attachViewAfter=function(t,n){for(var e=this.delegate.parentNode(t),i=this.delegate.nextSibling(t),o=0;o<n.length;o++)this.delegate.insertBefore(e,n[o],i)},t.prototype.detachView=function(t){for(var n=0;n<t.length;n++){var e=t[n],i=this.delegate.parentNode(e);this.delegate.removeChild(i,e)}},t.prototype.destroyView=function(t,n){for(var e=0;e<n.length;e++)this.delegate.destroyNode(n[e])},t.prototype.listen=function(t,n,e){return this.delegate.listen(t,n,e)},t.prototype.listenGlobal=function(t,n,e){return this.delegate.listen(t,n,e)},t.prototype.setElementProperty=function(t,n,e){this.delegate.setProperty(t,n,e)},t.prototype.setElementAttribute=function(t,n,e){var i=u(wo(n),2),o=i[0],l=i[1];null!=e?this.delegate.setAttribute(t,l,e,o):this.delegate.removeAttribute(t,l,o)},t.prototype.setBindingDebugInfo=function(t,n,e){},t.prototype.setElementClass=function(t,n,e){e?this.delegate.addClass(t,n):this.delegate.removeClass(t,n)},t.prototype.setElementStyle=function(t,n,e){null!=e?this.delegate.setStyle(t,n,e):this.delegate.removeStyle(t,n)},t.prototype.invokeElementMethod=function(t,n,e){t[n].apply(t,e)},t.prototype.setText=function(t,n){this.delegate.setValue(t,n)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}();function ol(t,n,e,i){return new ll(t,n,e,i)}var ll=function(){function t(t,n,e,i){this._moduleType=t,this._parent=n,this._bootstrapComponents=e,this._def=i,this._destroyListeners=[],this._destroyed=!1,this.injector=this,function(t){for(var n=t._def,e=t._providers=new Array(n.providers.length),i=0;i<n.providers.length;i++){var o=n.providers[i];4096&o.flags||void 0===e[i]&&(e[i]=jo(t,o))}}(this)}return t.prototype.get=function(t,n,e){void 0===n&&(n=Ft.THROW_IF_NOT_FOUND),void 0===e&&(e=0);var i=0;return 4&e?i|=1:2&e&&(i|=4),No(this,{token:t,tokenKey:$i(t),flags:i},n)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(jn)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+Dt(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,function(t,n){for(var e=t._def,i=new Set,o=0;o<e.providers.length;o++)if(131072&e.providers[o].flags){var l=t._providers[o];if(l&&l!==Ao){var r=l.ngOnDestroy;"function"!=typeof r||i.has(l)||(r.apply(l),i.add(l))}}}(this),this._destroyListeners.forEach(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),rl=$i(me),al=$i(be),sl=$i(_e),ul=$i(Oe),cl=$i(ke),pl=$i(Ee),hl=$i(Ft),dl=$i(Bt);function fl(t,n,e,i,o,l,r,a){var s=[];if(r)for(var c in r){var p=u(r[c],2);s[p[0]]={flags:8,name:c,nonMinifiedName:p[1],ns:null,securityContext:null,suffix:null}}var h=[];if(a)for(var d in a)h.push({type:1,propName:d,target:null,eventName:a[d]});return yl(t,n|=16384,e,i,o,o,l,s,h)}function gl(t,n,e){return yl(-1,t|=16,null,0,n,n,e)}function ml(t,n,e,i,o){return yl(-1,t,n,0,e,i,o)}function yl(t,n,e,i,o,l,r,a,s){var u=uo(e),c=u.matchedQueries,p=u.references,h=u.matchedQueryIds;s||(s=[]),a||(a=[]),l=Mt(l);var d=co(r,Dt(o));return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:n,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:c,matchedQueryIds:h,references:p,ngContentIndex:-1,childCount:i,bindings:a,bindingFlags:xo(a),outputs:s,element:null,provider:{token:o,value:l,deps:d},text:null,query:null,ngContent:null}}function vl(t,n){return xl(t,n)}function bl(t,n){for(var e=t;e.parent&&!ro(e);)e=e.parent;return Pl(e.parent,oo(e),!0,n.provider.value,n.provider.deps)}function _l(t,n){var e=Pl(t,n.parent,(32768&n.flags)>0,n.provider.value,n.provider.deps);if(n.outputs.length)for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],l=e[o.propName].subscribe(wl(t,n.parent.nodeIndex,o.eventName));t.disposables[n.outputIndex+i]=l.unsubscribe.bind(l)}return e}function wl(t,n,e){return function(i){return eo(t,n,e,i)}}function xl(t,n){var e=(8192&n.flags)>0,i=n.provider;switch(201347067&n.flags){case 512:return Pl(t,n.parent,e,i.value,i.deps);case 1024:return function(t,n,e,i,o){var l=o.length;switch(l){case 0:return i();case 1:return i(Sl(t,n,e,o[0]));case 2:return i(Sl(t,n,e,o[0]),Sl(t,n,e,o[1]));case 3:return i(Sl(t,n,e,o[0]),Sl(t,n,e,o[1]),Sl(t,n,e,o[2]));default:for(var r=Array(l),a=0;a<l;a++)r[a]=Sl(t,n,e,o[a]);return i.apply(void 0,c(r))}}(t,n.parent,e,i.value,i.deps);case 2048:return Sl(t,n.parent,e,i.deps[0]);case 256:return i.value}}function Pl(t,n,e,i,o){var l=o.length;switch(l){case 0:return new i;case 1:return new i(Sl(t,n,e,o[0]));case 2:return new i(Sl(t,n,e,o[0]),Sl(t,n,e,o[1]));case 3:return new i(Sl(t,n,e,o[0]),Sl(t,n,e,o[1]),Sl(t,n,e,o[2]));default:for(var r=new Array(l),a=0;a<l;a++)r[a]=Sl(t,n,e,o[a]);return new(i.bind.apply(i,c([void 0],r)))}}var Cl={};function Sl(t,n,e,i,o){if(void 0===o&&(o=Ft.THROW_IF_NOT_FOUND),8&i.flags)return i.token;var l=t;2&i.flags&&(o=null);var r=i.tokenKey;r===pl&&(e=!(!n||!n.element.componentView)),n&&1&i.flags&&(e=!1,n=n.parent);for(var a=t;a;){if(n)switch(r){case rl:return el(Il(a,n,e));case al:return Il(a,n,e).renderer;case sl:return new _e(Li(a,n.nodeIndex).renderElement);case ul:return Li(a,n.nodeIndex).viewContainer;case cl:if(n.element.template)return Li(a,n.nodeIndex).template;break;case pl:return Ko(Il(a,n,e));case hl:case dl:return Jo(a,n);default:var s=(e?n.element.allProviders:n.element.publicProviders)[r];if(s){var u=Ni(a,s.nodeIndex);return u||(u={instance:xl(a,s)},a.nodes[s.nodeIndex]=u),u.instance}}e=ro(a),n=oo(a),a=a.parent,4&i.flags&&(a=null)}var c=l.root.injector.get(i.token,Cl);return c!==Cl||o===Cl?c:l.root.ngModule.injector.get(i.token,o)}function Il(t,n,e){var i;if(e)i=Li(t,n.nodeIndex).componentView;else for(i=t;i.parent&&!ro(i);)i=i.parent;return i}function kl(t,n,e,i,o,l){if(32768&e.flags){var r=Li(t,e.parent.nodeIndex).componentView;2&r.def.flags&&(r.state|=8)}if(n.instance[e.bindings[i].name]=o,524288&e.flags){l=l||{};var a=je.unwrap(t.oldValues[e.bindingIndex+i]);l[e.bindings[i].nonMinifiedName]=new Ve(a,o,0!=(2&t.state))}return t.oldValues[e.bindingIndex+i]=o,l}function Ol(t,n){if(t.def.nodeFlags&n)for(var e=t.def.nodes,i=0,o=0;o<e.length;o++){var l=e[o],r=l.parent;for(!r&&l.flags&n&&Dl(t,o,l.flags&n,i++),0==(l.childFlags&n)&&(o+=l.childCount);r&&1&r.flags&&o===r.nodeIndex+r.childCount;)r.directChildFlags&n&&(i=El(t,r,n,i)),r=r.parent}}function El(t,n,e,i){for(var o=n.nodeIndex+1;o<=n.nodeIndex+n.childCount;o++){var l=t.def.nodes[o];l.flags&e&&Dl(t,o,l.flags&e,i++),o+=l.childCount}return i}function Dl(t,n,e,i){var o=Ni(t,n);if(o){var l=o.instance;l&&(Bi.setCurrentNode(t,n),1048576&e&&Ti(t,512,i)&&l.ngAfterContentInit(),2097152&e&&l.ngAfterContentChecked(),4194304&e&&Ti(t,768,i)&&l.ngAfterViewInit(),8388608&e&&l.ngAfterViewChecked(),131072&e&&l.ngOnDestroy())}}function Al(t,n,e){var i=[];for(var o in e)i.push({propName:o,bindingType:e[o]});return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:t,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:n,filterId:so(n),bindings:i},ngContent:null}}function Ml(t){for(var n=t.def.nodeMatchedQueries;t.parent&&ao(t);){var e=t.parentNodeDef;t=t.parent;for(var i=e.nodeIndex+e.childCount,o=0;o<=i;o++)67108864&(l=t.def.nodes[o]).flags&&536870912&l.flags&&(l.query.filterId&n)===l.query.filterId&&Vi(t,o).setDirty(),!(1&l.flags&&o+l.childCount<e.nodeIndex)&&67108864&l.childFlags&&536870912&l.childFlags||(o+=l.childCount)}if(134217728&t.def.nodeFlags)for(o=0;o<t.def.nodes.length;o++){var l;134217728&(l=t.def.nodes[o]).flags&&536870912&l.flags&&Vi(t,o).setDirty(),o+=l.childCount}}function Tl(t,n){var e=Vi(t,n.nodeIndex);if(e.dirty){var i,o=void 0;if(67108864&n.flags){var l=n.parent.parent;o=Rl(t,l.nodeIndex,l.nodeIndex+l.childCount,n.query,[]),i=Ni(t,n.parent.nodeIndex).instance}else 134217728&n.flags&&(o=Rl(t,0,t.def.nodes.length-1,n.query,[]),i=t.component);e.reset(o);for(var r=n.query.bindings,a=!1,s=0;s<r.length;s++){var u=r[s],c=void 0;switch(u.bindingType){case 0:c=e.first;break;case 1:c=e,a=!0}i[u.propName]=c}a&&e.notifyOnChanges()}}function Rl(t,n,e,i,o){for(var l=n;l<=e;l++){var r=t.def.nodes[l],a=r.matchedQueries[i.id];if(null!=a&&o.push(Ll(t,r,a)),1&r.flags&&r.element.template&&(r.element.template.nodeMatchedQueries&i.filterId)===i.filterId){var s=Li(t,l);if((r.childMatchedQueries&i.filterId)===i.filterId&&(Rl(t,l+1,l+r.childCount,i,o),l+=r.childCount),16777216&r.flags)for(var u=s.viewContainer._embeddedViews,c=0;c<u.length;c++){var p=u[c],h=io(p);h&&h===s&&Rl(p,0,p.def.nodes.length-1,i,o)}var d=s.template._projectedViews;if(d)for(c=0;c<d.length;c++){var f=d[c];Rl(f,0,f.def.nodes.length-1,i,o)}}(r.childMatchedQueries&i.filterId)!==i.filterId&&(l+=r.childCount)}return o}function Ll(t,n,e){if(null!=e)switch(e){case 1:return Li(t,n.nodeIndex).renderElement;case 0:return new _e(Li(t,n.nodeIndex).renderElement);case 2:return Li(t,n.nodeIndex).template;case 3:return Li(t,n.nodeIndex).viewContainer;case 4:return Ni(t,n.nodeIndex).instance}}function Nl(t,n){return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:-1,flags:8,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:t,childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:null,ngContent:{index:n}}}function jl(t,n,e){var i=po(t,n,e);i&&yo(t,e.ngContent.index,1,i,null,void 0)}function Vl(t,n){for(var e=Object.keys(n),i=e.length,o=new Array(i),l=0;l<i;l++){var r=e[l];o[n[r]]=r}return function(t,n,e){for(var i=new Array(e.length),o=0;o<e.length;o++){var l=e[o];i[o]={flags:8,name:l,ns:null,nonMinifiedName:l,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:n,flags:64,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:i,bindingFlags:xo(i),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}(0,t,o)}function Bl(t,n,e){for(var i=new Array(e.length-1),o=1;o<e.length;o++)i[o-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:e[o]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:n,childCount:0,bindings:i,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:e[0]},query:null,ngContent:null}}function Ul(t,n,e){var i,o=t.renderer;i=o.createText(e.text.prefix);var l=po(t,n,e);return l&&o.appendChild(l,i),{renderText:i}}function Fl(t,n){return(null!=t?t.toString():"")+n.suffix}function zl(t,n,e,i){for(var o=0,l=0,r=0,a=0,s=0,u=null,c=null,p=!1,h=!1,d=null,f=0;f<n.length;f++){var g=n[f];if(g.nodeIndex=f,g.parent=u,g.bindingIndex=o,g.outputIndex=l,g.renderParent=c,r|=g.flags,s|=g.matchedQueryIds,g.element){var m=g.element;m.publicProviders=u?u.element.publicProviders:Object.create(null),m.allProviders=m.publicProviders,p=!1,h=!1,g.element.template&&(s|=g.element.template.nodeMatchedQueries)}if(ql(u,g,n.length),o+=g.bindings.length,l+=g.outputs.length,!c&&3&g.flags&&(d=g),20224&g.flags){p||(p=!0,u.element.publicProviders=Object.create(u.element.publicProviders),u.element.allProviders=u.element.publicProviders);var y=0!=(32768&g.flags);0==(8192&g.flags)||y?u.element.publicProviders[$i(g.provider.token)]=g:(h||(h=!0,u.element.allProviders=Object.create(u.element.publicProviders)),u.element.allProviders[$i(g.provider.token)]=g),y&&(u.element.componentProvider=g)}if(u?(u.childFlags|=g.flags,u.directChildFlags|=g.flags,u.childMatchedQueries|=g.matchedQueryIds,g.element&&g.element.template&&(u.childMatchedQueries|=g.element.template.nodeMatchedQueries)):a|=g.flags,g.childCount>0)u=g,Hl(g)||(c=g);else for(;u&&f===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&Hl(u)?u.renderParent:u}}return{factory:null,nodeFlags:r,rootNodeFlags:a,nodeMatchedQueries:s,flags:t,nodes:n,updateDirectives:e||Hi,updateRenderer:i||Hi,handleEvent:function(t,e,i,o){return n[e].element.handleEvent(t,i,o)},bindingCount:o,outputCount:l,lastRenderRootNode:d}}function Hl(t){return 0!=(1&t.flags)&&null===t.element.name}function ql(t,n,e){var i=n.element&&n.element.template;if(i){if(!i.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(i.lastRenderRootNode&&16777216&i.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+n.nodeIndex+"!")}if(20224&n.flags&&0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+n.nodeIndex+"!");if(n.query){if(67108864&n.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+n.nodeIndex+"!");if(134217728&n.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+n.nodeIndex+"!")}if(n.childCount){var o=t?t.nodeIndex+t.childCount:e-1;if(n.nodeIndex<=o&&n.nodeIndex+n.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+n.nodeIndex+"!")}}function $l(t,n,e,i){var o=Wl(t.root,t.renderer,t,n,e);return Kl(o,t.component,i),Zl(o),o}function Gl(t,n,e){var i=Wl(t,t.renderer,null,null,n);return Kl(i,e,e),Zl(i),i}function Ql(t,n,e,i){var o,l=n.element.componentRendererType;return o=l?t.root.rendererFactory.createRenderer(i,l):t.root.renderer,Wl(t.root,o,t,n.element.componentProvider,e)}function Wl(t,n,e,i,o){var l=new Array(o.nodes.length),r=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:e,viewContainerParent:null,parentNodeDef:i,context:null,component:null,nodes:l,state:13,root:t,renderer:n,oldValues:new Array(o.bindingCount),disposables:r,initIndex:-1}}function Kl(t,n,e){t.component=n,t.context=e}function Zl(t){var n;ro(t)&&(n=Li(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var e=t.def,i=t.nodes,o=0;o<e.nodes.length;o++){var l=e.nodes[o];Bi.setCurrentNode(t,o);var r=void 0;switch(201347067&l.flags){case 1:var a=ko(t,n,l),s=void 0;if(33554432&l.flags){var u=fo(l.element.componentView);s=Bi.createComponentView(t,l,u,a)}Oo(t,s,l,a),r={renderElement:a,componentView:s,viewContainer:null,template:l.element.template?Xo(t,l):void 0},16777216&l.flags&&(r.viewContainer=Qo(t,l,r));break;case 2:r=Ul(t,n,l);break;case 512:case 1024:case 2048:case 256:(r=i[o])||4096&l.flags||(r={instance:vl(t,l)});break;case 16:r={instance:bl(t,l)};break;case 16384:(r=i[o])||(r={instance:_l(t,l)}),32768&l.flags&&Kl(Li(t,l.parent.nodeIndex).componentView,r.instance,r.instance);break;case 32:case 64:case 128:r={value:void 0};break;case 67108864:case 134217728:r=new xe;break;case 8:jl(t,n,l),r=void 0}i[o]=r}lr(t,or.CreateViewNodes),ur(t,201326592,268435456,0)}function Xl(t){tr(t),Bi.updateDirectives(t,1),rr(t,or.CheckNoChanges),Bi.updateRenderer(t,1),lr(t,or.CheckNoChanges),t.state&=-97}function Yl(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Mi(t,0,256),tr(t),Bi.updateDirectives(t,0),rr(t,or.CheckAndUpdate),ur(t,67108864,536870912,0);var n=Mi(t,256,512);Ol(t,2097152|(n?1048576:0)),Bi.updateRenderer(t,0),lr(t,or.CheckAndUpdate),ur(t,134217728,536870912,0),Ol(t,8388608|((n=Mi(t,512,768))?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97,Mi(t,768,1024)}function Jl(t,n,e,i,o,l,r,a,s,u,p,h,d){return 0===e?function(t,n,e,i,o,l,r,a,s,u,c,p){switch(201347067&n.flags){case 1:return function(t,n,e,i,o,l,r,a,s,u,c,p){var h=n.bindings.length,d=!1;return h>0&&Do(t,n,0,e)&&(d=!0),h>1&&Do(t,n,1,i)&&(d=!0),h>2&&Do(t,n,2,o)&&(d=!0),h>3&&Do(t,n,3,l)&&(d=!0),h>4&&Do(t,n,4,r)&&(d=!0),h>5&&Do(t,n,5,a)&&(d=!0),h>6&&Do(t,n,6,s)&&(d=!0),h>7&&Do(t,n,7,u)&&(d=!0),h>8&&Do(t,n,8,c)&&(d=!0),h>9&&Do(t,n,9,p)&&(d=!0),d}(t,n,e,i,o,l,r,a,s,u,c,p);case 2:return function(t,n,e,i,o,l,r,a,s,u,c,p){var h=!1,d=n.bindings,f=d.length;if(f>0&&Yi(t,n,0,e)&&(h=!0),f>1&&Yi(t,n,1,i)&&(h=!0),f>2&&Yi(t,n,2,o)&&(h=!0),f>3&&Yi(t,n,3,l)&&(h=!0),f>4&&Yi(t,n,4,r)&&(h=!0),f>5&&Yi(t,n,5,a)&&(h=!0),f>6&&Yi(t,n,6,s)&&(h=!0),f>7&&Yi(t,n,7,u)&&(h=!0),f>8&&Yi(t,n,8,c)&&(h=!0),f>9&&Yi(t,n,9,p)&&(h=!0),h){var g=n.text.prefix;f>0&&(g+=Fl(e,d[0])),f>1&&(g+=Fl(i,d[1])),f>2&&(g+=Fl(o,d[2])),f>3&&(g+=Fl(l,d[3])),f>4&&(g+=Fl(r,d[4])),f>5&&(g+=Fl(a,d[5])),f>6&&(g+=Fl(s,d[6])),f>7&&(g+=Fl(u,d[7])),f>8&&(g+=Fl(c,d[8])),f>9&&(g+=Fl(p,d[9]));var m=Ri(t,n.nodeIndex).renderText;t.renderer.setValue(m,g)}return h}(t,n,e,i,o,l,r,a,s,u,c,p);case 16384:return function(t,n,e,i,o,l,r,a,s,u,c,p){var h=Ni(t,n.nodeIndex),d=h.instance,f=!1,g=void 0,m=n.bindings.length;return m>0&&Xi(t,n,0,e)&&(f=!0,g=kl(t,h,n,0,e,g)),m>1&&Xi(t,n,1,i)&&(f=!0,g=kl(t,h,n,1,i,g)),m>2&&Xi(t,n,2,o)&&(f=!0,g=kl(t,h,n,2,o,g)),m>3&&Xi(t,n,3,l)&&(f=!0,g=kl(t,h,n,3,l,g)),m>4&&Xi(t,n,4,r)&&(f=!0,g=kl(t,h,n,4,r,g)),m>5&&Xi(t,n,5,a)&&(f=!0,g=kl(t,h,n,5,a,g)),m>6&&Xi(t,n,6,s)&&(f=!0,g=kl(t,h,n,6,s,g)),m>7&&Xi(t,n,7,u)&&(f=!0,g=kl(t,h,n,7,u,g)),m>8&&Xi(t,n,8,c)&&(f=!0,g=kl(t,h,n,8,c,g)),m>9&&Xi(t,n,9,p)&&(f=!0,g=kl(t,h,n,9,p,g)),g&&d.ngOnChanges(g),65536&n.flags&&Ti(t,256,n.nodeIndex)&&d.ngOnInit(),262144&n.flags&&d.ngDoCheck(),f}(t,n,e,i,o,l,r,a,s,u,c,p);case 32:case 64:case 128:return function(t,n,e,i,o,l,r,a,s,u,c,p){var h=n.bindings,d=!1,f=h.length;if(f>0&&Yi(t,n,0,e)&&(d=!0),f>1&&Yi(t,n,1,i)&&(d=!0),f>2&&Yi(t,n,2,o)&&(d=!0),f>3&&Yi(t,n,3,l)&&(d=!0),f>4&&Yi(t,n,4,r)&&(d=!0),f>5&&Yi(t,n,5,a)&&(d=!0),f>6&&Yi(t,n,6,s)&&(d=!0),f>7&&Yi(t,n,7,u)&&(d=!0),f>8&&Yi(t,n,8,c)&&(d=!0),f>9&&Yi(t,n,9,p)&&(d=!0),d){var g=ji(t,n.nodeIndex),m=void 0;switch(201347067&n.flags){case 32:m=new Array(h.length),f>0&&(m[0]=e),f>1&&(m[1]=i),f>2&&(m[2]=o),f>3&&(m[3]=l),f>4&&(m[4]=r),f>5&&(m[5]=a),f>6&&(m[6]=s),f>7&&(m[7]=u),f>8&&(m[8]=c),f>9&&(m[9]=p);break;case 64:m={},f>0&&(m[h[0].name]=e),f>1&&(m[h[1].name]=i),f>2&&(m[h[2].name]=o),f>3&&(m[h[3].name]=l),f>4&&(m[h[4].name]=r),f>5&&(m[h[5].name]=a),f>6&&(m[h[6].name]=s),f>7&&(m[h[7].name]=u),f>8&&(m[h[8].name]=c),f>9&&(m[h[9].name]=p);break;case 128:var y=e;switch(f){case 1:m=y.transform(e);break;case 2:m=y.transform(i);break;case 3:m=y.transform(i,o);break;case 4:m=y.transform(i,o,l);break;case 5:m=y.transform(i,o,l,r);break;case 6:m=y.transform(i,o,l,r,a);break;case 7:m=y.transform(i,o,l,r,a,s);break;case 8:m=y.transform(i,o,l,r,a,s,u);break;case 9:m=y.transform(i,o,l,r,a,s,u,c);break;case 10:m=y.transform(i,o,l,r,a,s,u,c,p)}}g.value=m}return d}(t,n,e,i,o,l,r,a,s,u,c,p);default:throw"unreachable"}}(t,n,i,o,l,r,a,s,u,p,h,d):function(t,n,e){switch(201347067&n.flags){case 1:return function(t,n,e){for(var i=!1,o=0;o<e.length;o++)Do(t,n,o,e[o])&&(i=!0);return i}(t,n,e);case 2:return function(t,n,e){for(var i=n.bindings,o=!1,l=0;l<e.length;l++)Yi(t,n,l,e[l])&&(o=!0);if(o){var r="";for(l=0;l<e.length;l++)r+=Fl(e[l],i[l]);r=n.text.prefix+r;var a=Ri(t,n.nodeIndex).renderText;t.renderer.setValue(a,r)}return o}(t,n,e);case 16384:return function(t,n,e){for(var i=Ni(t,n.nodeIndex),o=i.instance,l=!1,r=void 0,a=0;a<e.length;a++)Xi(t,n,a,e[a])&&(l=!0,r=kl(t,i,n,a,e[a],r));return r&&o.ngOnChanges(r),65536&n.flags&&Ti(t,256,n.nodeIndex)&&o.ngOnInit(),262144&n.flags&&o.ngDoCheck(),l}(t,n,e);case 32:case 64:case 128:return function(t,n,e){for(var i=n.bindings,o=!1,l=0;l<e.length;l++)Yi(t,n,l,e[l])&&(o=!0);if(o){var r=ji(t,n.nodeIndex),a=void 0;switch(201347067&n.flags){case 32:a=e;break;case 64:for(a={},l=0;l<e.length;l++)a[i[l].name]=e[l];break;case 128:var s=e[0],u=e.slice(1);a=s.transform.apply(s,c(u))}r.value=a}return o}(t,n,e);default:throw"unreachable"}}(t,n,i)}function tr(t){var n=t.def;if(4&n.nodeFlags)for(var e=0;e<n.nodes.length;e++){var i=n.nodes[e];if(4&i.flags){var o=Li(t,e).template._projectedViews;if(o)for(var l=0;l<o.length;l++){var r=o[l];r.state|=32,no(r,t)}}else 0==(4&i.childFlags)&&(e+=i.childCount)}}function nr(t,n,e,i,o,l,r,a,s,u,c,p,h){return 0===e?function(t,n,e,i,o,l,r,a,s,u,c,p){var h=n.bindings.length;h>0&&Ji(t,n,0,e),h>1&&Ji(t,n,1,i),h>2&&Ji(t,n,2,o),h>3&&Ji(t,n,3,l),h>4&&Ji(t,n,4,r),h>5&&Ji(t,n,5,a),h>6&&Ji(t,n,6,s),h>7&&Ji(t,n,7,u),h>8&&Ji(t,n,8,c),h>9&&Ji(t,n,9,p)}(t,n,i,o,l,r,a,s,u,c,p,h):function(t,n,e){for(var i=0;i<e.length;i++)Ji(t,n,i,e[i])}(t,n,i),!1}function er(t,n){if(Vi(t,n.nodeIndex).dirty)throw Ui(Bi.createDebugContext(t,n.nodeIndex),"Query "+n.query.id+" not dirty","Query "+n.query.id+" dirty",0!=(1&t.state))}function ir(t){if(!(128&t.state)){if(rr(t,or.Destroy),lr(t,or.Destroy),Ol(t,131072),t.disposables)for(var n=0;n<t.disposables.length;n++)t.disposables[n]();!function(t){if(16&t.state){var n=io(t);if(n){var e=n.template._projectedViews;e&&(zo(e,e.indexOf(t)),Bi.dirtyParentQueries(t))}}}(t),t.renderer.destroyNode&&function(t){for(var n=t.def.nodes.length,e=0;e<n;e++){var i=t.def.nodes[e];1&i.flags?t.renderer.destroyNode(Li(t,e).renderElement):2&i.flags?t.renderer.destroyNode(Ri(t,e).renderText):(67108864&i.flags||134217728&i.flags)&&Vi(t,e).destroy()}}(t),ro(t)&&t.renderer.destroy(),t.state|=128}}var or=function(t){return t[t.CreateViewNodes=0]="CreateViewNodes",t[t.CheckNoChanges=1]="CheckNoChanges",t[t.CheckNoChangesProjectedViews=2]="CheckNoChangesProjectedViews",t[t.CheckAndUpdate=3]="CheckAndUpdate",t[t.CheckAndUpdateProjectedViews=4]="CheckAndUpdateProjectedViews",t[t.Destroy=5]="Destroy",t}({});function lr(t,n){var e=t.def;if(33554432&e.nodeFlags)for(var i=0;i<e.nodes.length;i++){var o=e.nodes[i];33554432&o.flags?ar(Li(t,i).componentView,n):0==(33554432&o.childFlags)&&(i+=o.childCount)}}function rr(t,n){var e=t.def;if(16777216&e.nodeFlags)for(var i=0;i<e.nodes.length;i++){var o=e.nodes[i];if(16777216&o.flags)for(var l=Li(t,i).viewContainer._embeddedViews,r=0;r<l.length;r++)ar(l[r],n);else 0==(16777216&o.childFlags)&&(i+=o.childCount)}}function ar(t,n){var e=t.state;switch(n){case or.CheckNoChanges:0==(128&e)&&(12==(12&e)?Xl(t):64&e&&sr(t,or.CheckNoChangesProjectedViews));break;case or.CheckNoChangesProjectedViews:0==(128&e)&&(32&e?Xl(t):64&e&&sr(t,n));break;case or.CheckAndUpdate:0==(128&e)&&(12==(12&e)?Yl(t):64&e&&sr(t,or.CheckAndUpdateProjectedViews));break;case or.CheckAndUpdateProjectedViews:0==(128&e)&&(32&e?Yl(t):64&e&&sr(t,n));break;case or.Destroy:ir(t);break;case or.CreateViewNodes:Zl(t)}}function sr(t,n){rr(t,n),lr(t,n)}function ur(t,n,e,i){if(t.def.nodeFlags&n&&t.def.nodeFlags&e)for(var o=t.def.nodes.length,l=0;l<o;l++){var r=t.def.nodes[l];if(r.flags&n&&r.flags&e)switch(Bi.setCurrentNode(t,r.nodeIndex),i){case 0:Tl(t,r);break;case 1:er(t,r)}r.childFlags&n&&r.childFlags&e||(l+=r.childCount)}}var cr=!1;function pr(t,n,e,i,o,l){var r=o.injector.get(ye);return Gl(dr(t,o,r,n,e),i,l)}function hr(t,n,e,i,o,l){var r=o.injector.get(ye),a=dr(t,o,new Qr(r),n,e),s=Pr(i);return $r(Mr.create,Gl,null,[a,s,l])}function dr(t,n,e,i,o){var l=n.injector.get(Ai),r=n.injector.get(fn),a=e.createRenderer(null,null);return{ngModule:n,injector:t,projectableNodes:i,selectorOrNode:o,sanitizer:l,rendererFactory:e,renderer:a,errorHandler:r}}function fr(t,n,e,i){var o=Pr(e);return $r(Mr.create,$l,null,[t,n,o,i])}function gr(t,n,e,i){return e=br.get(n.element.componentProvider.provider.token)||Pr(e),$r(Mr.create,Ql,null,[t,n,e,i])}function mr(t,n,e,i){return ol(t,n,e,function(t){var n=function(t){var n=!1,e=!1;return 0===yr.size?{hasOverrides:n,hasDeprecatedOverrides:e}:(t.providers.forEach(function(t){var i=yr.get(t.token);3840&t.flags&&i&&(n=!0,e=e||i.deprecatedBehavior)}),t.modules.forEach(function(t){vr.forEach(function(i,o){o.ngInjectableDef.providedIn===t&&(n=!0,e=e||i.deprecatedBehavior)})}),{hasOverrides:n,hasDeprecatedOverrides:e})}(t),e=n.hasDeprecatedOverrides;return n.hasOverrides?(function(t){for(var n=0;n<t.providers.length;n++){var i=t.providers[n];e&&(i.flags|=4096);var o=yr.get(i.token);o&&(i.flags=-3841&i.flags|o.flags,i.deps=co(o.deps),i.value=o.value)}if(vr.size>0){var l=new Set(t.modules);vr.forEach(function(n,i){if(l.has(i.ngInjectableDef.providedIn)){var o={token:i,flags:n.flags|(e?4096:0),deps:co(n.deps),value:n.value,index:t.providers.length};t.providers.push(o),t.providersByKey[$i(i)]=o}})}}(t=t.factory(function(){return Hi})),t):t}(i))}var yr=new Map,vr=new Map,br=new Map;function _r(t){yr.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&vr.set(t.token,t)}function wr(t,n){var e=fo(n.viewDefFactory),i=fo(e.nodes[0].element.componentView);br.set(t,i)}function xr(){yr.clear(),vr.clear(),br.clear()}function Pr(t){if(0===yr.size)return t;var n=function(t){for(var n=[],e=null,i=0;i<t.nodes.length;i++){var o=t.nodes[i];1&o.flags&&(e=o),e&&3840&o.flags&&yr.has(o.provider.token)&&(n.push(e.nodeIndex),e=null)}return n}(t);if(0===n.length)return t;t=t.factory(function(){return Hi});for(var e=0;e<n.length;e++)i(t,n[e]);return t;function i(t,n){for(var e=n+1;e<t.nodes.length;e++){var i=t.nodes[e];if(1&i.flags)return;if(3840&i.flags){var o=i.provider,l=yr.get(o.token);l&&(i.flags=-3841&i.flags|l.flags,o.deps=co(l.deps),o.value=l.value)}}}}function Cr(t,n,e,i,o,l,r,a,s,u,c,p,h){var d=t.def.nodes[n];return Jl(t,d,e,i,o,l,r,a,s,u,c,p,h),224&d.flags?ji(t,n).value:void 0}function Sr(t,n,e,i,o,l,r,a,s,u,c,p,h){var d=t.def.nodes[n];return nr(t,d,e,i,o,l,r,a,s,u,c,p,h),224&d.flags?ji(t,n).value:void 0}function Ir(t){return $r(Mr.detectChanges,Yl,null,[t])}function kr(t){return $r(Mr.checkNoChanges,Xl,null,[t])}function Or(t){return $r(Mr.destroy,ir,null,[t])}var Er,Dr,Ar,Mr=function(t){return t[t.create=0]="create",t[t.detectChanges=1]="detectChanges",t[t.checkNoChanges=2]="checkNoChanges",t[t.destroy=3]="destroy",t[t.handleEvent=4]="handleEvent",t}({});function Tr(t,n){Dr=t,Ar=n}function Rr(t,n,e,i){return Tr(t,n),$r(Mr.handleEvent,t.def.handleEvent,null,[t,n,e,i])}function Lr(t,n){if(128&t.state)throw zi(Mr[Er]);return Tr(t,Fr(t,0)),t.def.updateDirectives(function(t,e,i){for(var o=[],l=3;l<arguments.length;l++)o[l-3]=arguments[l];var r=t.def.nodes[e];return 0===n?jr(t,r,i,o):Vr(t,r,i,o),16384&r.flags&&Tr(t,Fr(t,e)),224&r.flags?ji(t,r.nodeIndex).value:void 0},t)}function Nr(t,n){if(128&t.state)throw zi(Mr[Er]);return Tr(t,zr(t,0)),t.def.updateRenderer(function(t,e,i){for(var o=[],l=3;l<arguments.length;l++)o[l-3]=arguments[l];var r=t.def.nodes[e];return 0===n?jr(t,r,i,o):Vr(t,r,i,o),3&r.flags&&Tr(t,zr(t,e)),224&r.flags?ji(t,r.nodeIndex).value:void 0},t)}function jr(t,n,e,i){if(Jl.apply(void 0,c([t,n,e],i))){var o=1===e?i[0]:i;if(16384&n.flags){for(var l={},r=0;r<n.bindings.length;r++){var a=n.bindings[r],s=o[r];8&a.flags&&(l[(d=a.nonMinifiedName,f=void 0,f=d.replace(/[$@]/g,"_"),"ng-reflect-"+(d=f.replace(Br,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return"-"+t[1].toLowerCase()})))]=Ur(s))}var u=n.parent,p=Li(t,u.nodeIndex).renderElement;if(u.element.name)for(var h in l)null!=(s=l[h])?t.renderer.setAttribute(p,h,s):t.renderer.removeAttribute(p,h);else t.renderer.setValue(p,"bindings="+JSON.stringify(l,null,2))}}var d,f}function Vr(t,n,e,i){nr.apply(void 0,c([t,n,e],i))}var Br=/([A-Z])/g;function Ur(t){try{return null!=t?t.toString().slice(0,30):t}catch(n){return"[ERROR] Exception while trying to serialize the value"}}function Fr(t,n){for(var e=n;e<t.def.nodes.length;e++){var i=t.def.nodes[e];if(16384&i.flags&&i.bindings&&i.bindings.length)return e}return null}function zr(t,n){for(var e=n;e<t.def.nodes.length;e++){var i=t.def.nodes[e];if(3&i.flags&&i.bindings&&i.bindings.length)return e}return null}var Hr=function(){function t(t,n){this.view=t,this.nodeIndex=n,null==n&&(this.nodeIndex=n=0),this.nodeDef=t.def.nodes[n];for(var e=this.nodeDef,i=t;e&&0==(1&e.flags);)e=e.parent;if(!e)for(;!e&&i;)e=oo(i),i=i.parent;this.elDef=e,this.elView=i}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Li(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return Jo(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){var e=this.elView.def.nodes[n];20224&e.flags&&t.push(e.provider.token),n+=e.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){qr(this.elView,this.elDef,t);for(var n=this.elDef.nodeIndex+1;n<=this.elDef.nodeIndex+this.elDef.childCount;n++){var e=this.elView.def.nodes[n];20224&e.flags&&qr(this.elView,e,t),n+=e.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=function(t){for(;t&&!ro(t);)t=t.parent;return t.parent?Li(t.parent,oo(t).nodeIndex):null}(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?lo(this.view,this.nodeDef):lo(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var n,e,i=[],o=1;o<arguments.length;o++)i[o-1]=arguments[o];2&this.nodeDef.flags?(n=this.view.def,e=this.nodeDef.nodeIndex):(n=this.elView.def,e=this.elDef.nodeIndex);var l=function(t,n){for(var e=-1,i=0;i<=n;i++)3&t.nodes[i].flags&&e++;return e}(n,e),r=-1;n.factory(function(){var n;return++r===l?(n=t.error).bind.apply(n,c([t],i)):Hi}),r<l&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,c(i)))},t}();function qr(t,n,e){for(var i in n.references)e[i]=Ll(t,n,n.references[i])}function $r(t,n,e,i){var o=Er,l=Dr,r=Ar;try{Er=t;var a=n.apply(e,i);return Dr=l,Ar=r,Er=o,a}catch(s){if(pn(s)||!Dr)throw s;throw function(t,n){return t instanceof Error||(t=new Error(t.toString())),Fi(t,n),t}(s,Gr())}}function Gr(){return Dr?new Hr(Dr,Ar):null}var Qr=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,n){return new Wr(this.delegate.createRenderer(t,n))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),Wr=function(){function t(t){this.delegate=t,this.data=this.delegate.data}return t.prototype.destroyNode=function(t){!function(t){Te.delete(t.nativeNode)}(Re(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,n){var e=this.delegate.createElement(t,n),i=Gr();if(i){var o=new Me(e,null,i);o.name=t,Le(o)}return e},t.prototype.createComment=function(t){var n=this.delegate.createComment(t),e=Gr();return e&&Le(new Ae(n,null,e)),n},t.prototype.createText=function(t){var n=this.delegate.createText(t),e=Gr();return e&&Le(new Ae(n,null,e)),n},t.prototype.appendChild=function(t,n){var e=Re(t),i=Re(n);e&&i&&e instanceof Me&&e.addChild(i),this.delegate.appendChild(t,n)},t.prototype.insertBefore=function(t,n,e){var i=Re(t),o=Re(n),l=Re(e);i&&o&&i instanceof Me&&i.insertBefore(l,o),this.delegate.insertBefore(t,n,e)},t.prototype.removeChild=function(t,n){var e=Re(t),i=Re(n);e&&i&&e instanceof Me&&e.removeChild(i),this.delegate.removeChild(t,n)},t.prototype.selectRootElement=function(t){var n=this.delegate.selectRootElement(t),e=Gr();return e&&Le(new Me(n,null,e)),n},t.prototype.setAttribute=function(t,n,e,i){var o=Re(t);o&&o instanceof Me&&(o.attributes[i?i+":"+n:n]=e),this.delegate.setAttribute(t,n,e,i)},t.prototype.removeAttribute=function(t,n,e){var i=Re(t);i&&i instanceof Me&&(i.attributes[e?e+":"+n:n]=null),this.delegate.removeAttribute(t,n,e)},t.prototype.addClass=function(t,n){var e=Re(t);e&&e instanceof Me&&(e.classes[n]=!0),this.delegate.addClass(t,n)},t.prototype.removeClass=function(t,n){var e=Re(t);e&&e instanceof Me&&(e.classes[n]=!1),this.delegate.removeClass(t,n)},t.prototype.setStyle=function(t,n,e,i){var o=Re(t);o&&o instanceof Me&&(o.styles[n]=e),this.delegate.setStyle(t,n,e,i)},t.prototype.removeStyle=function(t,n,e){var i=Re(t);i&&i instanceof Me&&(i.styles[n]=null),this.delegate.removeStyle(t,n,e)},t.prototype.setProperty=function(t,n,e){var i=Re(t);i&&i instanceof Me&&(i.properties[n]=e),this.delegate.setProperty(t,n,e)},t.prototype.listen=function(t,n,e){if("string"!=typeof t){var i=Re(t);i&&i.listeners.push(new De(n,e))}return this.delegate.listen(t,n,e)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,n){return this.delegate.setValue(t,n)},t}();function Kr(t,n,e){return new Zr(t,n,e)}var Zr=function(t){function n(n,e,i){var o=t.call(this)||this;return o.moduleType=n,o._bootstrapComponents=e,o._ngModuleDefFactory=i,o}return o(n,t),n.prototype.create=function(t){!function(){if(!cr){cr=!0;var t=se()?{setCurrentNode:Tr,createRootView:hr,createEmbeddedView:fr,createComponentView:gr,createNgModuleRef:mr,overrideProvider:_r,overrideComponentView:wr,clearOverrides:xr,checkAndUpdateView:Ir,checkNoChangesView:kr,destroyView:Or,createDebugContext:function(t,n){return new Hr(t,n)},handleEvent:Rr,updateDirectives:Lr,updateRenderer:Nr}:{setCurrentNode:function(){},createRootView:pr,createEmbeddedView:$l,createComponentView:Ql,createNgModuleRef:ol,overrideProvider:Hi,overrideComponentView:Hi,clearOverrides:Hi,checkAndUpdateView:Yl,checkNoChangesView:Xl,destroyView:ir,createDebugContext:function(t,n){return new Hr(t,n)},handleEvent:function(t,n,e,i){return t.def.handleEvent(t,n,e,i)},updateDirectives:function(t,n){return t.def.updateDirectives(0===n?Cr:Sr,t)},updateRenderer:function(t,n){return t.def.updateRenderer(0===n?Cr:Sr,t)}};Bi.setCurrentNode=t.setCurrentNode,Bi.createRootView=t.createRootView,Bi.createEmbeddedView=t.createEmbeddedView,Bi.createComponentView=t.createComponentView,Bi.createNgModuleRef=t.createNgModuleRef,Bi.overrideProvider=t.overrideProvider,Bi.overrideComponentView=t.overrideComponentView,Bi.clearOverrides=t.clearOverrides,Bi.checkAndUpdateView=t.checkAndUpdateView,Bi.checkNoChangesView=t.checkNoChangesView,Bi.destroyView=t.destroyView,Bi.resolveDep=Sl,Bi.createDebugContext=t.createDebugContext,Bi.handleEvent=t.handleEvent,Bi.updateDirectives=t.updateDirectives,Bi.updateRenderer=t.updateRenderer,Bi.dirtyParentQueries=Ml}}();var n=function(t){var n=Array.from(t.providers),e=Array.from(t.modules),i={};for(var o in t.providersByKey)i[o]=t.providersByKey[o];return{factory:t.factory,isRoot:t.isRoot,providers:n,modules:e,providersByKey:i}}(fo(this._ngModuleDefFactory));return Bi.createNgModuleRef(this.moduleType,t||Ft.NULL,this._bootstrapComponents,n)},n}(Fn),Xr={production:!0,debug:!1,thorDevUrl:"https://www.ebi.ac.uk/europepmc/hubthor/",thorUrl:"https://www.ebi.ac.uk/europepmc/thor/",pdbeUrl:"https://www.ebi.ac.uk/pdbe/",pdbeEntryUrl:"https://www.ebi.ac.uk/pdbe/entry/pdb/",kbEntryUrl:"https://www.ebi.ac.uk/pdbe/pdbe-kb/proteins/",pdbeAutocompleteUrl:"https://www.ebi.ac.uk/pdbe/search/pdb-autocomplete/select",pdbeAggregatedApiUrl:"https://www.ebi.ac.uk/pdbe/aggregated-api/",pdbeGraphApiUrl:"https://www.ebi.ac.uk/pdbe/graph-api/",pdbeApiUrl:"https://www.ebi.ac.uk/pdbe/api/",uniProtApiUrl:"https://www.ebi.ac.uk/proteins/api/proteins/",predictedStructuresUrl:"https://www.ebi.ac.uk/pdbe/pdbe-kb/3dbeacons/api/uniprot/summary/",fileDownloadUrl:"https://www.ebi.ac.uk/pdbe/download/api/pdb/entry/",alphafoldEntryUrl:"http://alphafold.ebi.ac.uk/entry/",swissModelEntryUrl:"https://swissmodel.expasy.org/repository/uniprot/",pdbeEntrySearchUrl:"https://www.ebi.ac.uk/pdbe/entry/search/",pdbeStaticUrl:"https://www.ebi.ac.uk/pdbe/static/",uniprotUrl:"https://www.uniprot.org/",brendaSearchUrl:"https://www.brenda-enzymes.org/search_result.php?quicksearch=1&noOfResults=10&a=9&W[2]=",gaTag:"G-G6RXP7P9YP"},Yr=new M(function(t){return t.complete()});function Jr(t){return t?function(t){return new M(function(n){return t.schedule(function(){return n.complete()})})}(t):Yr}function ta(){for(var t,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return"function"==typeof n[n.length-1]&&(t=n.pop()),1===n.length&&p(n[0])&&(n=n[0]),0===n.length?Yr:t?ta(n).pipe(J(function(n){return t.apply(void 0,n)})):new M(function(t){return new na(t,n)})}var na=function(t){function n(n,e){var i=t.call(this,n)||this;i.sources=e,i.completed=0,i.haveValues=0;var o=e.length;i.values=new Array(o);for(var l=0;l<o;l++){var r=X(i,e[l],null,l);r&&i.add(r)}return i}return o(n,t),n.prototype.notifyNext=function(t,n,e,i,o){this.values[e]=n,o._hasValue||(o._hasValue=!0,this.haveValues++)},n.prototype.notifyComplete=function(t){var n=this.destination,e=this.haveValues,i=this.values,o=i.length;t._hasValue?(this.completed++,this.completed===o&&(e===o&&n.next(i),n.complete())):n.complete()},n}(Y);function ea(t){var n=new M(function(n){n.next(t),n.complete()});return n._isScalar=!0,n.value=t,n}function ia(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=t[t.length-1];switch(B(e)?t.pop():e=void 0,t.length){case 0:return Jr(e);case 1:return e?et(t,e):ea(t[0]);default:return et(t,e)}}function oa(t,n,e){return function(i){return i.lift(new la(t,n,e))}}var la=function(){function t(t,n,e){this.nextOrObserver=t,this.error=n,this.complete=e}return t.prototype.call=function(t,n){return n.subscribe(new ra(t,this.nextOrObserver,this.error,this.complete))},t}(),ra=function(t){function n(n,e,i,o){var l=t.call(this,n)||this;return l._tapNext=E,l._tapError=E,l._tapComplete=E,l._tapError=i||E,l._tapComplete=o||E,d(e)?(l._context=l,l._tapNext=e):e&&(l._context=e,l._tapNext=e.next||E,l._tapError=e.error||E,l._tapComplete=e.complete||E),l}return o(n,t),n.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(n){return void this.destination.error(n)}this.destination.next(t)},n.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},n.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},n}(I);function aa(t){return function(n){var e=new sa(t),i=n.lift(e);return e.caught=i}}var sa=function(){function t(t){this.selector=t}return t.prototype.call=function(t,n){return n.subscribe(new ua(t,this.selector,this.caught))},t}(),ua=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.selector=e,o.caught=i,o}return o(n,t),n.prototype.error=function(n){if(!this.isStopped){var e=void 0;try{e=this.selector(n,this.caught)}catch(i){return void t.prototype.error.call(this,i)}this._unsubscribeAndRecycle(),this.add(X(this,e))}},n}(Y);function ca(t,n){return ot(t,n,1)}function pa(t,n){return function(e){return e.lift(new ha(t,n))}}var ha=function(){function t(t,n){this.predicate=t,this.thisArg=n}return t.prototype.call=function(t,n){return n.subscribe(new da(t,this.predicate,this.thisArg))},t}(),da=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.predicate=e,o.thisArg=i,o.count=0,o}return o(n,t),n.prototype._next=function(t){var n;try{n=this.predicate.call(this.thisArg,t,this.count++)}catch(e){return void this.destination.error(e)}n&&this.destination.next(t)},n}(I),fa=function(){return function(){}}(),ga=new vt("Location Initialized"),ma=function(){return function(){}}(),ya=new vt("appBaseHref"),va=function(){function t(t){var e=this;this._subject=new Qn,this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._baseHref=n.stripTrailingSlash(ba(i)),this._platformStrategy.onPopState(function(t){e._subject.emit({url:e.path(!0),pop:!0,state:t.state,type:t.type})})}var n;return n=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+n.normalizeQueryParams(e))},t.prototype.normalize=function(t){return n.stripTrailingSlash(function(t,n){return t&&n.startsWith(t)?n.substring(t.length):n}(this._baseHref,ba(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,n,e){void 0===n&&(n=""),void 0===e&&(e=null),this._platformStrategy.pushState(e,"",t,n)},t.prototype.replaceState=function(t,n,e){void 0===n&&(n=""),void 0===e&&(e=null),this._platformStrategy.replaceState(e,"",t,n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,n,e){return this._subject.subscribe({next:t,error:n,complete:e})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,n){if(0==t.length)return n;if(0==n.length)return t;var e=0;return t.endsWith("/")&&e++,n.startsWith("/")&&e++,2==e?t+n.substring(1):1==e?t+n:t+"/"+n},t.stripTrailingSlash=function(t){var n=t.match(/#|\?|$/),e=n&&n.index||t.length;return t.slice(0,e-("/"===t[e-1]?1:0))+t.slice(e)},t}();function ba(t){return t.replace(/\/index.html$/,"")}var _a=function(t){function n(n,e){var i=t.call(this)||this;return i._platformLocation=n,i._baseHref="",null!=e&&(i._baseHref=e),i}return o(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.path=function(t){void 0===t&&(t=!1);var n=this._platformLocation.hash;return null==n&&(n="#"),n.length>0?n.substring(1):n},n.prototype.prepareExternalUrl=function(t){var n=va.joinWithSlash(this._baseHref,t);return n.length>0?"#"+n:n},n.prototype.pushState=function(t,n,e,i){var o=this.prepareExternalUrl(e+va.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,n,o)},n.prototype.replaceState=function(t,n,e,i){var o=this.prepareExternalUrl(e+va.normalizeQueryParams(i));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,n,o)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n}(ma),wa=function(t){function n(n,e){var i=t.call(this)||this;if(i._platformLocation=n,null==e&&(e=i._platformLocation.getBaseHrefFromDOM()),null==e)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return i._baseHref=e,i}return o(n,t),n.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},n.prototype.getBaseHref=function(){return this._baseHref},n.prototype.prepareExternalUrl=function(t){return va.joinWithSlash(this._baseHref,t)},n.prototype.path=function(t){void 0===t&&(t=!1);var n=this._platformLocation.pathname+va.normalizeQueryParams(this._platformLocation.search),e=this._platformLocation.hash;return e&&t?""+n+e:n},n.prototype.pushState=function(t,n,e,i){var o=this.prepareExternalUrl(e+va.normalizeQueryParams(i));this._platformLocation.pushState(t,n,o)},n.prototype.replaceState=function(t,n,e,i){var o=this.prepareExternalUrl(e+va.normalizeQueryParams(i));this._platformLocation.replaceState(t,n,o)},n.prototype.forward=function(){this._platformLocation.forward()},n.prototype.back=function(){this._platformLocation.back()},n}(ma),xa=void 0,Pa=["en",[["a","p"],["AM","PM"],xa],[["AM","PM"],xa,xa],[["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"]],xa,[["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"]],xa,[["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}",xa,"{1} 'at' {0}",xa],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var n=Math.floor(Math.abs(t)),e=t.toString().replace(/^[^.]*\.?/,"").length;return 1===n&&0===e?1:5}],Ca={},Sa=function(t){return t[t.Zero=0]="Zero",t[t.One=1]="One",t[t.Two=2]="Two",t[t.Few=3]="Few",t[t.Many=4]="Many",t[t.Other=5]="Other",t}({}),Ia=new vt("UseV4Plurals"),ka=function(){return function(){}}(),Oa=function(t){function n(n,e){var i=t.call(this)||this;return i.locale=n,i.deprecatedPluralFn=e,i}return o(n,t),n.prototype.getPluralCategory=function(t,n){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(n||this.locale,t):function(t){return function(t){var n=t.toLowerCase().replace(/_/g,"-"),e=Ca[n];if(e)return e;var i=n.split("-")[0];if(e=Ca[i])return e;if("en"===i)return Pa;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(n||this.locale)(t)){case Sa.Zero:return"zero";case Sa.One:return"one";case Sa.Two:return"two";case Sa.Few:return"few";case Sa.Many:return"many";default:return"other"}},n}(ka);function Ea(t,n){var e,i;n=encodeURIComponent(n);try{for(var o=s(t.split(";")),l=o.next();!l.done;l=o.next()){var r=l.value,a=r.indexOf("="),c=u(-1==a?[r,""]:[r.slice(0,a),r.slice(a+1)],2),p=c[1];if(c[0].trim()===n)return decodeURIComponent(p)}}catch(h){e={error:h}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null}var Da=function(){function t(t,n,e,i){this._iterableDiffers=t,this._keyValueDiffers=n,this._ngEl=e,this._renderer=i,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Be(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var n=this._keyValueDiffer.diff(this._rawClass);n&&this._applyKeyValueChanges(n)}},t.prototype._applyKeyValueChanges=function(t){var n=this;t.forEachAddedItem(function(t){return n._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return n._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&n._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var n=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Dt(t.item));n._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return n._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!0)}):Object.keys(t).forEach(function(e){return n._toggleClass(e,!!t[e])}))},t.prototype._removeClasses=function(t){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return n._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,n){var e=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n?e._renderer.addClass(e._ngEl.nativeElement,t):e._renderer.removeClass(e._ngEl.nativeElement,t)})},t}(),Aa=function(){function t(t,n,e,i){this.$implicit=t,this.ngForOf=n,this.index=e,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),Ma=function(){function t(t,n,e){this._viewContainer=t,this._template=n,this._differs=e,this._ngForOfDirty=!0,this._differ=null}return Object.defineProperty(t.prototype,"ngForOf",{set:function(t){this._ngForOf=t,this._ngForOfDirty=!0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){se()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){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;if(this._differ){var e=this._differ.diff(this._ngForOf);e&&this._applyChanges(e)}},t.prototype._applyChanges=function(t){var n=this,e=[];t.forEachOperation(function(t,i,o){if(null==t.previousIndex){var l=n._viewContainer.createEmbeddedView(n._template,new Aa(null,n._ngForOf,-1,-1),o),r=new Ta(t,l);e.push(r)}else null==o?n._viewContainer.remove(i):(l=n._viewContainer.get(i),n._viewContainer.move(l,o),r=new Ta(t,l),e.push(r))});for(var i=0;i<e.length;i++)this._perViewChange(e[i].view,e[i].record);i=0;for(var o=this._viewContainer.length;i<o;i++){var l=this._viewContainer.get(i);l.context.index=i,l.context.count=o,l.context.ngForOf=this._ngForOf}t.forEachIdentityChange(function(t){n._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,n){t.context.$implicit=n.item},t}(),Ta=function(){return function(t,n){this.record=t,this.view=n}}(),Ra=function(){function t(t,n){this._viewContainer=t,this._context=new La,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=n}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){Na("ngIfThen",t),this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){Na("ngIfElse",t),this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenViewRef=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}(),La=function(){return function(){this.$implicit=null,this.ngIf=null}}();function Na(t,n){if(n&&!n.createEmbeddedView)throw new Error(t+" must be a TemplateRef, but received '"+Dt(n)+"'.")}var ja=function(){function t(t,n){this._viewContainerRef=t,this._templateRef=n,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),Va=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var n=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||n,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),n},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var n=0;n<this._defaultViews.length;n++)this._defaultViews[n].enforceState(t)}},t}(),Ba=function(){function t(t,n,e){this.ngSwitch=e,e._addCase(),this._view=new ja(t,n)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}(),Ua=function(){function t(t,n,e){this._differs=t,this._ngEl=n,this._renderer=e}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var n=this;t.forEachRemovedItem(function(t){return n._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return n._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return n._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,n){var e=u(t.split("."),2),i=e[0],o=e[1];null!=(n=null!=n&&o?""+n+o:n)?this._renderer.setStyle(this._ngEl.nativeElement,i,n):this._renderer.removeStyle(this._ngEl.nativeElement,i)},t}();function Fa(t,n){return Error("InvalidPipeArgument: '"+n+"' for pipe '"+Dt(t)+"'")}var za=function(){function t(){}return t.prototype.createSubscription=function(t,n){return t.subscribe({next:n,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),Ha=new(function(){function t(){}return t.prototype.createSubscription=function(t,n){return t.then(n,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}()),qa=new za,$a=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}var n;return n=t,t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,je.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var n=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(e){return n._updateLatestValue(t,e)})},t.prototype._selectStrategy=function(t){if(mn(t))return Ha;if(yn(t))return qa;throw Fa(n,t)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,n){t===this._obj&&(this._latestValue=n,this._ref.markForCheck())},t}(),Ga=function(){function t(){}var n;return n=t,t.prototype.transform=function(t,e,i){if(null==t)return t;if(!this.supports(t))throw Fa(n,t);return t.slice(e,i)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}(),Qa=function(){return function(){}}(),Wa=new vt("DocumentToken"),Ka="browser",Za="server";function Xa(t){return t===Ka}function Ya(t){return t===Za}var Ja=function(){function t(){}return t.ngInjectableDef=yt({providedIn:"root",factory:function(){return new ts(ln(Wa),window)}}),t}(),ts=function(){function t(t,n){this.document=t,this.window=n,this.offset=function(){return[0,0]}}return t.prototype.setOffset=function(t){this.offset=Array.isArray(t)?function(){return t}:t},t.prototype.getScrollPosition=function(){return this.supportScrollRestoration()?[this.window.scrollX,this.window.scrollY]:[0,0]},t.prototype.scrollToPosition=function(t){this.supportScrollRestoration()&&this.window.scrollTo(t[0],t[1])},t.prototype.scrollToAnchor=function(t){if(this.supportScrollRestoration()){var n=this.document.querySelector("#"+t);if(n)return void this.scrollToElement(n);var e=this.document.querySelector("[name='"+t+"']");if(e)return void this.scrollToElement(e)}},t.prototype.setHistoryScrollRestoration=function(t){if(this.supportScrollRestoration()){var n=this.window.history;n&&n.scrollRestoration&&(n.scrollRestoration=t)}},t.prototype.scrollToElement=function(t){var n=t.getBoundingClientRect(),e=n.left+this.window.pageXOffset,i=n.top+this.window.pageYOffset,o=this.offset();this.window.scrollTo(e-o[0],i-o[1])},t.prototype.supportScrollRestoration=function(){try{return!!this.window&&!!this.window.scrollTo}catch(t){return!1}},t}(),ns=function(){return function(){}}(),es=function(){return function(){}}(),is=function(){function t(t){var n=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){n.headers=new Map,t.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var i=t.slice(0,e),o=i.toLowerCase(),l=t.slice(e+1).trim();n.maybeSetNormalizedName(i,o),n.headers.has(o)?n.headers.get(o).push(l):n.headers.set(o,[l])}})}:function(){n.headers=new Map,Object.keys(t).forEach(function(e){var i=t[e],o=e.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(n.headers.set(o,i),n.maybeSetNormalizedName(e,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var n=this.headers.get(t.toLowerCase());return n&&n.length>0?n[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,n){return this.clone({name:t,value:n,op:"a"})},t.prototype.set=function(t,n){return this.clone({name:t,value:n,op:"s"})},t.prototype.delete=function(t,n){return this.clone({name:t,value:n,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,n){this.normalizedNames.has(n)||this.normalizedNames.set(n,t)},t.prototype.init=function(){var n=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return n.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var n=this;t.init(),Array.from(t.headers.keys()).forEach(function(e){n.headers.set(e,t.headers.get(e)),n.normalizedNames.set(e,t.normalizedNames.get(e))})},t.prototype.clone=function(n){var e=new t;return e.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,e.lazyUpdate=(this.lazyUpdate||[]).concat([n]),e},t.prototype.applyUpdate=function(t){var n=t.name.toLowerCase();switch(t.op){case"a":case"s":var e=t.value;if("string"==typeof e&&(e=[e]),0===e.length)return;this.maybeSetNormalizedName(t.name,n);var i=("a"===t.op?this.headers.get(n):void 0)||[];i.push.apply(i,c(e)),this.headers.set(n,i);break;case"d":var o=t.value;if(o){var l=this.headers.get(n);if(!l)return;0===(l=l.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(n),this.normalizedNames.delete(n)):this.headers.set(n,l)}else this.headers.delete(n),this.normalizedNames.delete(n)}},t.prototype.forEach=function(t){var n=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(e){return t(n.normalizedNames.get(e),n.headers.get(e))})},t}(),os=function(){function t(){}return t.prototype.encodeKey=function(t){return ls(t)},t.prototype.encodeValue=function(t){return ls(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function ls(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}var rs=function(){function t(t){void 0===t&&(t={});var n,e,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new os,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(n=t.fromString,e=this.encoder,i=new Map,n.length>0&&n.split("&").forEach(function(t){var n=t.indexOf("="),o=u(-1==n?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,n)),e.decodeValue(t.slice(n+1))],2),l=o[0],r=o[1],a=i.get(l)||[];a.push(r),i.set(l,a)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(n){var e=t.fromObject[n];o.map.set(n,Array.isArray(e)?e:[e])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var n=this.map.get(t);return n?n[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.keys())},t.prototype.append=function(t,n){return this.clone({param:t,value:n,op:"a"})},t.prototype.set=function(t,n){return this.clone({param:t,value:n,op:"s"})},t.prototype.delete=function(t,n){return this.clone({param:t,value:n,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(n){var e=t.encoder.encodeKey(n);return t.map.get(n).map(function(n){return e+"="+t.encoder.encodeValue(n)}).join("&")}).join("&")},t.prototype.clone=function(n){var e=new t({encoder:this.encoder});return e.cloneFrom=this.cloneFrom||this,e.updates=(this.updates||[]).concat([n]),e},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(n){return t.map.set(n,t.cloneFrom.map.get(n))}),this.updates.forEach(function(n){switch(n.op){case"a":case"s":var e=("a"===n.op?t.map.get(n.param):void 0)||[];e.push(n.value),t.map.set(n.param,e);break;case"d":if(void 0===n.value){t.map.delete(n.param);break}var i=t.map.get(n.param)||[],o=i.indexOf(n.value);-1!==o&&i.splice(o,1),i.length>0?t.map.set(n.param,i):t.map.delete(n.param)}}),this.cloneFrom=null)},t}();function as(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function ss(t){return"undefined"!=typeof Blob&&t instanceof Blob}function us(t){return"undefined"!=typeof FormData&&t instanceof FormData}var cs=function(){function t(t,n,e,i){var o;if(this.url=n,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase(),function(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}(this.method)||i?(this.body=void 0!==e?e:null,o=i):o=e,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new is),this.params){var l=this.params.toString();if(0===l.length)this.urlWithParams=n;else{var r=n.indexOf("?");this.urlWithParams=n+(-1===r?"?":r<n.length-1?"&":"")+l}}else this.params=new rs,this.urlWithParams=n}return t.prototype.serializeBody=function(){return null===this.body?null:as(this.body)||ss(this.body)||us(this.body)||"string"==typeof this.body?this.body:this.body instanceof rs?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:us(this.body)?null:ss(this.body)?this.body.type||null:as(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof rs?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(n){void 0===n&&(n={});var e=n.method||this.method,i=n.url||this.url,o=n.responseType||this.responseType,l=void 0!==n.body?n.body:this.body,r=void 0!==n.withCredentials?n.withCredentials:this.withCredentials,a=void 0!==n.reportProgress?n.reportProgress:this.reportProgress,s=n.headers||this.headers,u=n.params||this.params;return void 0!==n.setHeaders&&(s=Object.keys(n.setHeaders).reduce(function(t,e){return t.set(e,n.setHeaders[e])},s)),n.setParams&&(u=Object.keys(n.setParams).reduce(function(t,e){return t.set(e,n.setParams[e])},u)),new t(e,i,l,{params:u,headers:s,reportProgress:a,responseType:o,withCredentials:r})},t}(),ps=function(t){return t[t.Sent=0]="Sent",t[t.UploadProgress=1]="UploadProgress",t[t.ResponseHeader=2]="ResponseHeader",t[t.DownloadProgress=3]="DownloadProgress",t[t.Response=4]="Response",t[t.User=5]="User",t}({}),hs=function(){return function(t,n,e){void 0===n&&(n=200),void 0===e&&(e="OK"),this.headers=t.headers||new is,this.status=void 0!==t.status?t.status:n,this.statusText=t.statusText||e,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}}(),ds=function(t){function n(n){void 0===n&&(n={});var e=t.call(this,n)||this;return e.type=ps.ResponseHeader,e}return o(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(hs),fs=function(t){function n(n){void 0===n&&(n={});var e=t.call(this,n)||this;return e.type=ps.Response,e.body=void 0!==n.body?n.body:null,e}return o(n,t),n.prototype.clone=function(t){return void 0===t&&(t={}),new n({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},n}(hs),gs=function(t){function n(n){var e=t.call(this,n,0,"Unknown Error")||this;return e.name="HttpErrorResponse",e.ok=!1,e.message=e.status>=200&&e.status<300?"Http failure during parsing for "+(n.url||"(unknown url)"):"Http failure response for "+(n.url||"(unknown url)")+": "+n.status+" "+n.statusText,e.error=n.error||null,e}return o(n,t),n}(hs);function ms(t,n){return{body:n,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var ys=function(){function t(t){this.handler=t}return t.prototype.request=function(t,n,e){var i,o=this;if(void 0===e&&(e={}),t instanceof cs)i=t;else{var l;l=e.headers instanceof is?e.headers:new is(e.headers);var r=void 0;e.params&&(r=e.params instanceof rs?e.params:new rs({fromObject:e.params})),i=new cs(t,n,void 0!==e.body?e.body:null,{headers:l,params:r,reportProgress:e.reportProgress,responseType:e.responseType||"json",withCredentials:e.withCredentials})}var a=ia(i).pipe(ca(function(t){return o.handler.handle(t)}));if(t instanceof cs||"events"===e.observe)return a;var s=a.pipe(pa(function(t){return t instanceof fs}));switch(e.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return s.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return s.pipe(J(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return s.pipe(J(function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body}));case"json":default:return s.pipe(J(function(t){return t.body}))}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+e.observe+"}")}},t.prototype.delete=function(t,n){return void 0===n&&(n={}),this.request("DELETE",t,n)},t.prototype.get=function(t,n){return void 0===n&&(n={}),this.request("GET",t,n)},t.prototype.head=function(t,n){return void 0===n&&(n={}),this.request("HEAD",t,n)},t.prototype.jsonp=function(t,n){return this.request("JSONP",t,{params:(new rs).append(n,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,n){return void 0===n&&(n={}),this.request("OPTIONS",t,n)},t.prototype.patch=function(t,n,e){return void 0===e&&(e={}),this.request("PATCH",t,ms(e,n))},t.prototype.post=function(t,n,e){return void 0===e&&(e={}),this.request("POST",t,ms(e,n))},t.prototype.put=function(t,n,e){return void 0===e&&(e={}),this.request("PUT",t,ms(e,n))},t}(),vs=function(){function t(t,n){this.next=t,this.interceptor=n}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),bs=new vt("HTTP_INTERCEPTORS"),_s=function(){function t(){}return t.prototype.intercept=function(t,n){return n.handle(t)},t}(),ws=/^\)\]\}',?\n/,xs=function(){return function(){}}(),Ps=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Cs=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var n=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new M(function(e){var i=n.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach(function(t,n){return i.setRequestHeader(t,n.join(","))}),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var o=t.detectContentTypeHeader();null!==o&&i.setRequestHeader("Content-Type",o)}if(t.responseType){var l=t.responseType.toLowerCase();i.responseType="json"!==l?l:"text"}var r=t.serializeBody(),a=null,s=function(){if(null!==a)return a;var n=1223===i.status?204:i.status,e=i.statusText||"OK",o=new is(i.getAllResponseHeaders()),l=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return a=new ds({headers:o,status:n,statusText:e,url:l})},u=function(){var n=s(),o=n.headers,l=n.status,r=n.statusText,a=n.url,u=null;204!==l&&(u=void 0===i.response?i.responseText:i.response),0===l&&(l=u?200:0);var c=l>=200&&l<300;if("json"===t.responseType&&"string"==typeof u){var p=u;u=u.replace(ws,"");try{u=""!==u?JSON.parse(u):null}catch(h){u=p,c&&(c=!1,u={error:h,text:u})}}c?(e.next(new fs({body:u,headers:o,status:l,statusText:r,url:a||void 0})),e.complete()):e.error(new gs({error:u,headers:o,status:l,statusText:r,url:a||void 0}))},c=function(t){var n=new gs({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error"});e.error(n)},p=!1,h=function(n){p||(e.next(s()),p=!0);var o={type:ps.DownloadProgress,loaded:n.loaded};n.lengthComputable&&(o.total=n.total),"text"===t.responseType&&i.responseText&&(o.partialText=i.responseText),e.next(o)},d=function(t){var n={type:ps.UploadProgress,loaded:t.loaded};t.lengthComputable&&(n.total=t.total),e.next(n)};return i.addEventListener("load",u),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",h),null!==r&&i.upload&&i.upload.addEventListener("progress",d)),i.send(r),e.next({type:ps.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",u),t.reportProgress&&(i.removeEventListener("progress",h),null!==r&&i.upload&&i.upload.removeEventListener("progress",d)),i.abort()}})},t}(),Ss=new vt("XSRF_COOKIE_NAME"),Is=new vt("XSRF_HEADER_NAME"),ks=function(){return function(){}}(),Os=function(){function t(t,n,e){this.doc=t,this.platform=n,this.cookieName=e,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Ea(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Es=function(){function t(t,n){this.tokenService=t,this.headerName=n}return t.prototype.intercept=function(t,n){var e=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||e.startsWith("http://")||e.startsWith("https://"))return n.handle(t);var i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),n.handle(t)},t}(),Ds=function(){function t(t,n){this.backend=t,this.injector=n,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var n=this.injector.get(bs,[]);this.chain=n.reduceRight(function(t,n){return new vs(t,n)},this.backend)}return this.chain.handle(t)},t}(),As=function(){function t(){}var n;return n=t,t.disable=function(){return{ngModule:n,providers:[{provide:Es,useClass:_s}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:n,providers:[t.cookieName?{provide:Ss,useValue:t.cookieName}:[],t.headerName?{provide:Is,useValue:t.headerName}:[]]}},t}(),Ms=function(){return function(){}}(),Ts=function(){function t(t){this.http=t,this.apiUrls={uniprotAccession:Xr.pdbeGraphApiUrl+"mappings/uniprot/",processedProteins:Xr.pdbeGraphApiUrl+"uniprot/processed_proteins/",protvistaDomains:Xr.pdbeGraphApiUrl+"uniprot/protvista/domains/",protvistaProcessedProteins:Xr.pdbeGraphApiUrl+"uniprot/protvista/processed_proteins/",protvistaSecondaryStructures:Xr.pdbeGraphApiUrl+"uniprot/protvista/secondary_structures/",protvistaAnnotations:Xr.pdbeGraphApiUrl+"uniprot/protvista/annotations/",protvistaLigands:Xr.pdbeGraphApiUrl+"uniprot/protvista/ligand_sites/",pdbStructures:Xr.pdbeGraphApiUrl+"uniprot/protvista/unipdb/",interfaceResidues:Xr.pdbeGraphApiUrl+"uniprot/protvista/interface_residues/",ligands:Xr.pdbeGraphApiUrl+"uniprot/ligands/",partners:Xr.pdbeGraphApiUrl+"uniprot/interaction_partners/",summaryCountApiUrl:Xr.pdbeGraphApiUrl+"uniprot/summary_stats/",bestStructuresApiUrl:Xr.pdbeGraphApiUrl+"uniprot/best_non_overlapping_structures/",similarProteinsApiUrl:Xr.pdbeGraphApiUrl+"uniprot/similar_proteins/",similarPDBsApiUrl:Xr.pdbeGraphApiUrl+"uniprot/similar_proteins/",publications:Xr.pdbeApiUrl+"mappings/uniprot_publications/",superposeSegmentApiUrl:Xr.pdbeGraphApiUrl+"uniprot/superposition_segment/",superposeDataApiUrl:Xr.pdbeGraphApiUrl+"uniprot/superposition/",pingApiUrl:Xr.pdbeGraphApiUrl+"uniprot/annotation_partners/",predictedStructuresUrl:Xr.predictedStructuresUrl,uniProtApiUrl:Xr.uniProtApiUrl,secStructureVariations:Xr.pdbeAggregatedApiUrl+"uniprot/secondary_structures/protvista/variation/",flexibleRegions:Xr.pdbeAggregatedApiUrl+"uniprot/protvista/flexibility_predictions/"}}return t.prototype.getApiData=function(t,n,e){var i=void 0;if(t&&n&&(i=this.apiUrls[n]+""+t),e&&(i=e),i)return this.http.get(i,{responseType:"json"}).pipe(oa(function(t){return t.url=i,t}),aa(this.handleError(i)))},t.prototype.getMultipleApiData=function(t,n,e){var i=this,o=[];if(n&&n.length>0&&n.forEach(function(n){var e=""+i.apiUrls[n]+t;"predictedStructuresUrl"===n&&(e+=".json?exclude_provider=pdbe"),o.push(e)}),e&&e.length>0&&(o=o.concat(e)),0!==o.length)return ta(o.map(function(t){return i.getApiData(void 0,void 0,t)}))},t.prototype.handleError=function(t){return void 0===t&&(t="API request"),function(n){return ia([t,n.status])}},t.ngInjectableDef=yt({factory:function(){return new t(ln(ys))},token:t,providedIn:"root"}),t}(),Rs=function(){function t(t){this._document=t}return t.prototype.insertSchema=function(t,n){var e;void 0===n&&(n="structured-data");var i=!1;this._document.head.getElementsByClassName(n).length?e=this._document.head.getElementsByClassName(n)[0]:(e=this._document.createElement("script"),i=!0),e.setAttribute("class",n),e.type="application/ld+json",e.text=JSON.stringify(t),i&&this._document.head.appendChild(e)},t.websiteSchema=function(t){return{"@context":"http://schema.org","@id":"https://www.ebi.ac.uk/pdbe/pdbe-kb/proteins/P0DTD1","@type":"Protein",alternateName:["rep"],"dct:conformsTo":"https://bioschemas.org/profiles/Protein/0.11-RELEASE",description:"Aggregated structural information for Replicase polyprotein 1ab (P0DTD1)",hasBioPolymerSequence:["MESLVPGFNEKTHVQLSLPVLQVRDVLVRGFGDSVEEVLSEARQHLKDGTCG..."],identifier:"P0DTD1",image:[{"@id":"https://www.ebi.ac.uk/pdbe/static/entry/6wx4_single_entity_1_image-400x400.png","@type":"ImageObject"}],name:"Replicase polyprotein 1ab",url:"https://pdbe-kb.org"}},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wa))},token:t,providedIn:"root"}),t}(),Ls=function(){function t(t,n,e){this.dialogRef=t,this.dialogData=n,this.sanitizer=e}return t.prototype.getStyle=function(){return{width:.75*window.innerWidth+"px"}},t.prototype.closeDialog=function(){this.dialogRef.close("Close")},t}(),Ns=function(){function t(t,n,e,i){var o=this;this.dialog=t,this.route=n,this.commmonService=e,this.jsonLdService=i,this.sectionState=[!0,!1,!1,!1,!1,!1],this.route.paramMap.subscribe(function(t){o.accession=t.get("accession").toUpperCase(),o.accession&&(o.jsonLdData={"@context":"http://schema.org","@id":"https://www.ebi.ac.uk/pdbe/pdbe-kb/proteins/"+o.accession,"@type":"Protein",alternateName:["rep"],"dct:conformsTo":"https://bioschemas.org/profiles/Protein/0.11-RELEASE",description:"Aggregated structural information for "+o.accession,identifier:o.accession,url:"https://pdbe-kb.org"},o.getData())})}return t.prototype.ngOnInit=function(){this.summaryDataLoading=!0,this.isStructuresDataLoding=!0,this.isLigandsDataLoding=!0,this.isInteractionsDataLoding=!0,this.isSimalirityProteinsDataLoding=!0,this.isSimalirityPDBsDataLoding=!0,this.activeSection=0,this.accessionList=[],this.proteinName="",this.parentProtein=void 0,this.similarSummaries={},this.downloadModalData={protvistaProtein:{},ligandsProtein:{},interactionsProtein:{},similarProtein:{}},this.noUniProt=!1,this.noPDB=!1,this.hasComplexes=!1,this.hasLigands=!1,this.hasAnnotations=!1,this.isEnzyme=!1,this.hasSuperpositionData=!1,this.gallery={accession:"",main_label:"",sub_label:"",length:0,active_color:"",inactive_color:"",start_index:0,gallery_items:[]},this.summaryData={title:"",subtitle:"",text_limit:0,texts:[],flags:[]},this.primaryPublications={category:"PDB publications",show_limit:10,publications:[]},this.reviewPublications={category:"PDB-related reviews",show_limit:10,publications:[]},this.uniprotPublications={category:"UniProt publications",show_limit:10,publications:[]},this.summaryIcons=[{label:"Summary",icon_class:"icon-generic",icon_data_icon:"H",section_div_id:"summary",counts:null,description:""},{label:"Structures",icon_class:"icon-conceptual",icon_data_icon:"s",section_div_id:"structures",counts:-1,description:"Click on this icon to see all the PDB entries available for this protein"},{label:"Ligands",icon_class:"icon-conceptual",icon_data_icon:"b",section_div_id:"ligands",counts:-1,description:"Click on this icon to see all the ligands observed in the same PDB entries as this protein. These can be further filtered to only show ligands that directly interact with the protein of interest with a distance cutoff of 5 Angstrom according to the Arpeggio tool"},{label:"Interactions",icon_class:"icon-conceptual",icon_data_icon:"y",section_div_id:"interactions",counts:-1,description:"Click on this icon to see all the macromolecular interaction partners \nobserved in the same PDB entries as this protein"},{label:"Annotations",icon_class:"icon-conceptual",icon_data_icon:"c",section_div_id:"annotations",counts:-1,description:"Click on this icon to see all the additional annotations derived from PDB structures for this protein"},{label:"Similarity",icon_class:"icon-conceptual",icon_data_icon:"o",section_div_id:"similarity",counts:-1,description:"Click on this icon to see all the proteins that either have associated PDBs with sequence identities of 90%+ to the protein of interest, or belong to the same UniRef90 cluster"},{label:"Publications",icon_class:"icon-generic",icon_data_icon:"P",section_div_id:"publications",counts:-1,description:"Click on this icon to see all the primary PDB publications, publications from UniProt and other reviews"}],this.tutorial={title:"How to use the summary section",text:"This short video gives an overview of how to use the summary section.",url:"https://www.youtube.com/embed/Hz1ixiRLcgE?autoplay=1"}},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getSuperposeMatrixData(),this.getSummary(),this.getProcessedProteins(),this.getLigands(),this.getPartners(),this.getSimilarProteins(),this.getSimilarPDBs())},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return this.noUniProt=!0,!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));if(1===e.length)this.accession=e[0].toUpperCase(),this.getSummary(),this.getBestStructuresData();else{for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i,this.accessionList=e}},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){t.createSummaryCounts(n),t.getStructuresDownloadData()})},t.prototype.createSummaryCounts=function(t){t&&404!==t[1]&&500!==t[1]?(this.summaryIcons[1].counts=t[this.accession].pdbs,this.summaryIcons[2].counts=t[this.accession].ligands,this.summaryIcons[3].counts=t[this.accession].interaction_partners,this.summaryIcons[4].counts=t[this.accession].annotations,this.summaryIcons[5].counts=t[this.accession].similar_proteins,this.summaryIcons[2].counts>0&&(this.hasLigands=!0),this.summaryIcons[3].counts>0&&(this.hasComplexes=!0),this.hasAnnotations=!0,this.addCountsToDownloadModalData()):this.noPDB=!0},t.prototype.addCountsToDownloadModalData=function(){return this.updateCountsToDownloadModalData(1,"protvistaProtein"),this.updateCountsToDownloadModalData(2,"ligandsProtein"),this.updateCountsToDownloadModalData(3,"interactionsProtein"),this.updateCountsToDownloadModalData(5,"similarProtein"),!0},t.prototype.updateCountsToDownloadModalData=function(t,n){this.downloadModalData[n].count=this.summaryIcons[t].counts},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){return t.createBestStructuresData(n)})},t.prototype.createBestStructuresData=function(t){if((404===t[1]||500===t[1])&&!t[this.accession])return this.noPDB=!0,this.summaryIcons[1].counts=0,this.summaryIcons[2].counts=0,this.summaryIcons[3].counts=0,this.summaryIcons[4].counts=0,void(this.summaryIcons[6].counts=0);var n="",e="",i=[];1===t[this.accession].length?(n="Representative structure for UniProt "+this.accession,e="PDB chain with highest data quality, coverage and best resolution"):(n="Representative structures for UniProt "+this.accession,e="PDB chains with highest data quality, coverage and best resolution");for(var o=0,l=0;l<t[this.accession].length;l++){var r=t[this.accession][l].pdb_id,a=t[this.accession][l].entity_id,s=t[this.accession][l].chain_id,u=t[this.accession][l].preferred_assembly_id,c=t[this.accession][l].unp_start,p=t[this.accession][l].unp_end,h=Xr.pdbeStaticUrl+"entry/",d=t[this.accession][l].observed_regions,f=t[this.accession][l].coverage;t[this.accession][l].unp_length&&(o=t[this.accession][l].unp_length),t[this.accession][l].uniprot_id&&(this.parentProtein=t[this.accession][l].uniprot_id),i.push({image_url:h+r+"_single_entity_"+a+"_image-400x400.png",image_alt:r+" chain "+s,label:"PDB chain shown: "+r+" "+s,start:c,end:p,target_url:Xr.pdbeEntryUrl+r,main_id:r,sub_id:s,opt_id:u,observed:d,coverage:f,entity_id:a})}var g=i[0].start;i.sort(function(t,n){return t.start>n.start?1:t.start<n.start?-1:0});var m=0;for(l=0;l<i.length;l++)if(i[l].start===g){m=l;break}for(this.gallery={accession:this.accession,main_label:n,sub_label:e,length:o,active_color:"#4169e1",inactive_color:"#696964",start_index:m,gallery_items:i},l=0;l<this.gallery.gallery_items.length;l++)this.getSegmentIdData(this.gallery.gallery_items[l].start,this.gallery.gallery_items[l].end);this.getUniProtData(),this.getProtvistaData()},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){return t.createSummaryData(n)}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.getSegmentIdData=function(t,n){var e;if(void 0!==this.superpositionSegments&&this.superpositionSegments.forEach(function(i){(t>=i.start&&t<=i.end||n>=i.start&&n<=i.end)&&(e=i.segmentId)}),e)for(var i=0;i<this.gallery.gallery_items.length;i++)t.toString()===this.gallery.gallery_items[i].start.toString()&&(this.gallery.gallery_items[i].segment_id=e.toString())},t.prototype.createProcessedSummaryData=function(t){var n,e,i,o,l,r,a,s,u={label:"Organism",text:"",italic:!0,show_long:!0,source:"",source_url:""},c={label:"Synonyms",text:"",italic:!1,show_long:!0,source:"",source_url:""},p={label:"Uniprot",text:"",italic:!1,show_long:!0,source:"",source_url:""},h={label:"Biological function",text:"Not available",italic:!1,show_long:!1,source:"UniProt",source_url:Xr.uniprotUrl+"uniprot/"},d=!1;if(t&&400!==t[1]){this.gallery&&(this.gallery.length=t.sequence.length);for(var f=0;f<t.features.length;f++)if(t.features[f].ftId&&t.features[f].ftId.toUpperCase()===this.accession.toUpperCase()){n=t.features[f].description;break}if(t.protein.component)for(f=0;f<t.protein.component.length;f++)if(t.protein.component[f].recommendedName&&t.protein.component[f].recommendedName===n&&t.protein.component[f].recommendedName.ecNumber){i=t.protein.recommendedName.ecNumber[0].value,this.isEnzyme=!0;break}if(t.gene&&t.gene[0]&&t.gene[0].name&&(e={label:"Gene",value:t.gene[0].name.value}),p.text=t.accession,p.source="UniProt",p.source_url=Xr.uniprotUrl+"uniprot/"+t.accession,t.gene&&t.gene[0]&&t.gene[0].synonyms){var g=[];for(f=0;f<t.gene[0].synonyms.length;f++)g.push(t.gene[0].synonyms[f].value);c.text=g.join(", ")}if(t.comments)for(f=0;f<t.comments.length;f++)"FUNCTION"===t.comments[f].type&&t.comments[f].molecule===n&&(h.text=t.comments[f].text[0].value),"CATALYTIC_ACTIVITY"===t.comments[f].type&&t.comments[f].reaction.ecNumber===i&&(o="This enzyme has known catalytic activity ",o+="involved in reaction: "+(s=t.comments[f].reaction.name)),"DISEASE"===t.comments[f].type&&(d=!0,l||(l=""),t.comments[f].diseaseId&&(l+=t.comments[f].diseaseId+": ",l+=t.comments[f].description.value));if(l&&l.split(" ").length>30){var m=l.split(" ").splice(30).join(" ");l=m}if(s&&"Not available"===h.text&&""!==s&&(h.text="Catalytic activity: "+s),h.source_url+=t.accession,"Not available"!==h.text){var y=new RegExp("PubMed:([0-9]+)","g");h.text=h.text.replace(y,'<a href="https://www.uniprot.org/citations/$1" target="_blank">PubMed:$1</a>')}for(f=0;f<t.organism.names.length;f++)"scientific"===t.organism.names[f].type&&(r=t.organism.names[f].value),"common"===t.organism.names[f].type&&(a=t.organism.names[f].value);var v;u.text=r,a&&(u.text+=" ("+a+")"),this.summaryData.title=n,this.summaryData.subtitle=e,this.summaryData.text_limit=60,this.summaryData.flags=[],i&&(v={name:"Enzyme: EC "+i,color:"rgb(152,195,221)",url:Xr.brendaSearchUrl+i.split(" ")[2]+"&T[2]=2&V[8]=1",tooltip:o},this.summaryData.flags.push(v)),d&&this.summaryData.flags.push({name:"Disease",color:"rgb(255,182,182)",url:Xr.uniprotUrl+"uniprot/"+this.accession+"#pathology_and_biotech",tooltip:l}),this.summaryData.texts.length>0?this.summaryData.texts.splice(0,0,u):this.summaryData.texts.push(u),this.summaryData.texts.push(c),this.summaryData.texts.push(p),this.summaryData.texts.push(h),this.parentAccession=p.text,this.summaryDataLoading=!1}else this.noUniProt=!0},t.prototype.createSummaryData=function(t){var n,e,i,o,l,r,a,s,u,c={label:"Organism",text:"",italic:!0,show_long:!0,source:"",source_url:""},p={label:"Synonyms",text:"",italic:!1,show_long:!0,source:"",source_url:""},h={label:"Uniprot",text:"",italic:!1,show_long:!0,source:"",source_url:""},d={label:"Biological function",text:"Not available",italic:!1,show_long:!1,source:"UniProt",source_url:Xr.uniprotUrl+"uniprot/"},f=!1;if(!t||400===t[1])return this.noUniProt=!0,void(this.summaryDataLoading=!1);if(this.gallery&&!this.gallery.length&&(this.gallery.length=t.sequence.length),t.protein.recommendedName&&t.protein.recommendedName.ecNumber&&(i="Enzyme: EC ",i+=t.protein.recommendedName.ecNumber[0].value,this.isEnzyme=!0),this.proteinName=n=t.protein.recommendedName?t.protein.recommendedName.fullName.value:t.protein.submittedName[0].fullName.value,t.gene&&t.gene[0]&&t.gene[0].name&&(e={label:"Gene",value:t.gene[0].name.value}),h.text=t.accession,h.source="UniProt",h.source_url=Xr.uniprotUrl+"uniprot/"+t.accession,t.gene&&t.gene[0]&&t.gene[0].synonyms){for(var g=[],m=0;m<t.gene[0].synonyms.length;m++)g.push(t.gene[0].synonyms[m].value);p.text=g.join(", ")}if(t.comments)for(m=0;m<t.comments.length;m++)if("FUNCTION"===t.comments[m].type&&(d.text=t.comments[m].text[0].value),"CATALYTIC_ACTIVITY"===t.comments[m].type&&(o="This enzyme has known catalytic activity ",o+="involved in reaction: "+(s=t.comments[m].reaction.name),this.isEnzyme||(i="Enzyme: EC ",i+=t.comments[m].reaction.ecNumber,this.isEnzyme=!0)),"DISEASE"===t.comments[m].type&&(f=!0,l||(l=""),t.comments[m].diseaseId&&(l+=t.comments[m].diseaseId+": ",l+=t.comments[m].description.value)),l&&l.split(" ").length>30){var y=l.split(".").slice(0,2).join(".")+"... [click for more]";l=y}if("Not available"===d.text&&""!==s&&(d.text="Catalytic activity: "+s),d.source_url+=t.accession,"Not available"!==d.text){var v=new RegExp("PubMed:([0-9]+)","g");d.text=d.text.replace(v,'<a href="https://www.uniprot.org/citations/$1" target="_blank" class="exit-link">PubMed:$1</a>')}for(m=0;m<t.organism.names.length;m++)"scientific"===t.organism.names[m].type&&(r=t.organism.names[m].value),"common"===t.organism.names[m].type&&(a=t.organism.names[m].value);c.text=r,a&&(c.text+=" ("+a+")"),this.summaryData.title=n,this.summaryData.subtitle=e,this.summaryData.text_limit=60,this.summaryData.flags=[],i&&(u={name:i,color:"rgb(152,195,221)",url:Xr.brendaSearchUrl+i.split(" ")[2]+"&T[2]=2&V[8]=1",tooltip:o},this.summaryData.flags.push(u)),f&&this.summaryData.flags.push({name:"Disease",color:"rgb(255,182,182)",url:Xr.uniprotUrl+"uniprot/"+this.accession+"#pathology_and_biotech",tooltip:l}),this.summaryData.texts.length>0?this.summaryData.texts.splice(0,0,c):this.summaryData.texts.push(c),this.summaryData.texts.push(p),this.summaryData.texts.push(h),this.summaryData.texts.push(d),this.summaryData.title&&""!=this.summaryData.title&&(this.jsonLdData.name=this.summaryData.title,this.jsonLdData.description="Aggregated structural information for "+this.summaryData.title+" ("+this.accession+")"),this.gallery&&this.gallery.gallery_items.length>0&&(this.jsonLdData.image=[{"@id":this.gallery.gallery_items[this.gallery.start_index].image_url,"@type":"ImageObject"}]),this.jsonLdData.hasBioPolymerSequence&&(this.jsonLdAdded||(this.jsonLdAdded=!0,this.jsonLdService.insertSchema(this.jsonLdData))),this.summaryDataLoading=!1},t.prototype.getProcessedProteins=function(){var t=this;this.commmonService.getApiData(this.accession.toUpperCase(),"processedProteins").subscribe(function(n){return t.createProcessedProteins(n)})},t.prototype.createProcessedProteins=function(t){t&&404!==t[1]&&t[this.accession]&&(this.processedProteins=t[this.accession].data)},t.prototype.getPublications=function(){var t=this;-1===this.accession.toUpperCase().indexOf("PRO_")?this.commmonService.getApiData(this.accession,"publications").subscribe(function(n){return t.createPublicationData(n)}):this.commmonService.getApiData(this.getParentId(),"publications").subscribe(function(n){return t.createPublicationData(n)})},t.prototype.createPublicationData=function(t){404!==t[1]&&500!==t[1]?(this.rawPubs=t,this.createPrimaryPublicationData(void 0),this.createReviewPublicationData(void 0),this.createUniProtPublicationData(void 0),this.getPublicationCount()):this.summaryIcons[6].counts=0},t.prototype.createPrimaryPublicationData=function(t){if(this.rawPubs){var n=[],e=[],i=this.getPdbList(),o=[];o=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].primary_citation.Articles:this.rawPubs[this.accession].primary_citation.Articles;for(var l=0;l<o.length;l++)if("To be published"!==o[l].journal&&(!t||o[l].title.toLowerCase().indexOf(t.toLowerCase())>-1||o[l].pubmed_id&&o[l].pubmed_id.toLowerCase().indexOf(t.toLowerCase())>-1||o[l].pdb_ids&&o[l].pdb_ids.indexOf(t.toLowerCase())>-1))for(var r=0;r<o[l].pdb_ids.length;r++)if(i.indexOf(o[l].pdb_ids[r])>-1){var a={title:o[l].title,authors:o[l].authors,journal:o[l].journal,issue:o[l].issue,pages:o[l].pages,year:o[l].year,pubmed_id:o[l].pubmed_id,associated_pdbs:o[l].pdb_ids,doi:o[l].doi,citation_count:void 0};-1===n.indexOf(o[l].pubmed_id)&&(null!==o[l].pubmed_id&&n.push(o[l].pubmed_id),e.push(a));break}this.primaryPublications.publications=e}},t.prototype.createReviewPublicationData=function(t){if(this.rawPubs){var n,e;n=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].cited_by.Reviews:this.rawPubs[this.accession].cited_by.Reviews,e=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].appears_without_citation.Reviews:this.rawPubs[this.accession].appears_without_citation.Reviews;var i=this.parseReviewList(n,t),o=this.parseReviewList(e,t);this.reviewPublications.publications=i.concat(o)}},t.prototype.createUniProtPublicationData=function(t){if(this.rawPubs){var n=[],e=[],i=[];i=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].uniprot_publications.Articles:this.rawPubs[this.accession].uniprot_publications.Articles;for(var o=0;o<i.length;o++)if(!t||i[o].title.toLowerCase().indexOf(t.toLowerCase())>-1||i[o].pubmed_id.toLowerCase().indexOf(t.toLowerCase())>-1){var l={title:i[o].title,authors:i[o].authors,journal:i[o].journal,issue:i[o].issue,pages:i[o].pages,year:i[o].year,pubmed_id:i[o].pubmed_id,associated_pdbs:[],doi:i[o].doi,citation_count:i[o].cited_by_count};-1===n.indexOf(i[o].pubmed_id)&&(null!==i[o].pubmed_id&&n.push(i[o].pubmed_id),e.push(l))}this.uniprotPublications.publications=e}},t.prototype.parseReviewList=function(t,n){for(var e=[],i=[],o=this.getPdbList(),l=0;l<t.length;l++)if(!n||t[l].title.toLowerCase().indexOf(n.toLowerCase())>-1||t[l].pubmed_id.toLowerCase().indexOf(n.toLowerCase())>-1||t[l].pdb_ids.indexOf(n.toLowerCase())>-1)for(var r=0;r<t[l].pdb_ids.length;r++)if(o.indexOf(t[l].pdb_ids[r])>-1){var a={title:t[l].title,authors:void 0,journal:void 0,issue:void 0,pages:void 0,year:void 0,pubmed_id:t[l].pubmed_id,associated_pdbs:t[l].pdb_ids,doi:void 0,citation_count:void 0};-1===e.indexOf(t[l].pubmed_id)&&(null!==t[l].pubmed_id&&e.push(t[l].pubmed_id),i.push(a))}return i},t.prototype.getPdbList=function(){var t=[];if(this.structureProtvistaData)for(var n=0;n<this.structureProtvistaData.tracks.length;n++)if(this.structureProtvistaData.tracks[n].label.indexOf("PDB Structures")>-1)for(var e=0;e<this.structureProtvistaData.tracks[n].data.length;e++)t.push(this.structureProtvistaData.tracks[n].data[e].accession);return t},t.prototype.getPublicationCount=function(){this.summaryIcons[6].counts=this.primaryPublications.publications.length+this.reviewPublications.publications.length+this.uniprotPublications.publications.length},t.prototype.getSuperposeMatrixData=function(){var t=this;this.commmonService.getApiData(this.accession,"superposeDataApiUrl").subscribe(function(n){return t.setMatrixData(n)})},t.prototype.setMatrixData=function(t){if(this.hasSuperpositionData=t&&404!==t[1],this.hasSuperpositionData){var n=[];t[this.accession].forEach(function(t,e){n.push({start:t.segment_start,end:t.segment_end,segmentId:e+1})}),this.superpositionSegments=n}this.getBestStructuresData()},t.prototype.openDialog=function(){this.dialog.open(Ls,{disableClose:!1,panelClass:"tutorial",data:this.tutorial})},t.prototype.getStructuresDownloadData=function(){var t=this;this.commmonService.getMultipleApiData(this.accession,["pdbStructures"]).subscribe(function(n){n.forEach(function(n){void 0!==n&&void 0!==n[t.accession]&&void 0!==n[t.accession].tracks&&n[t.accession].tracks.length>0&&t.getdownloadModalData("protvistaProtein",n),t.isStructuresDataLoding=!1,n[t.accession]&&n[t.accession].sequence&&""!==n[t.accession].sequence&&(t.jsonLdData.hasBioPolymerSequence||(t.jsonLdData.hasBioPolymerSequence=[n[t.accession].sequence]),t.jsonLdData.image&&(t.jsonLdAdded||(t.jsonLdAdded=!0,t.jsonLdService.insertSchema(t.jsonLdData))))})})},t.prototype.getdownloadModalData=function(t,n){var e=function(t,n,e){return e.indexOf(t)===n},i=[];if("protvistaProtein"===t)for(var o=0;o<n[this.accession].tracks[0].data.length;o++)i.push(n[this.accession].tracks[0].data[o].accession);if("similarProtein"===t)for(o=0;o<n[this.accession].length;o++)for(var l=0,r=n[this.accession][o].representative_pdbs;l<r.length;l++)i.push(r[l].pdb_id);if("similarPDBs"===t)for(o=0;o<n[this.accession].length;o++)for(var a=0,s=n[this.accession][o].mapped_segment;a<s.length;a++)i.push(s[a].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var u=0,c=n;u<c.length;u++)i.push(c[u].substr(0,4));"similarPDBs"===t||"similarProtein"===t?(this.downloadModalData.similarProtein.accession=this.accession,this.downloadModalData.similarProtein.relationship="similarProtein",this.downloadModalData.similarProtein.listPdbIds=this.downloadModalData.similarProtein.listPdbIds?this.downloadModalData.similarProtein.listPdbIds.concat(i).filter(e):i.filter(e)):(this.downloadModalData[t].accession=this.accession,this.downloadModalData[t].listPdbIds=i.filter(e),this.downloadModalData[t].relationship=t)},t.prototype.getLigands=function(){var t=this;this.commmonService.getApiData(this.accession,"ligands").subscribe(function(n){return t.getLigandsDownloadData(n)})},t.prototype.getLigandsDownloadData=function(t){if(!t||404===t[1]||500===t[1]||!t[this.accession])return this.summaryIcons[2].counts=0,void(this.isLigandsDataLoding=!1);this.hasLigands=!0;for(var n=[],e=0;e<t[this.accession].length;e++)for(var i=0,o=Object.keys(t[this.accession][e]);i<o.length;i++)n=n.concat(t[this.accession][e][o[i]].pdbs);this.getdownloadModalData("ligandsProtein",n),this.isLigandsDataLoding=!1},t.prototype.getPartners=function(){var t=this;this.commmonService.getApiData(this.accession,"partners").subscribe(function(n){return t.getPartnersDownloadData(n)})},t.prototype.getPartnersDownloadData=function(t){if(!t||404===t[1]||500===t[1]||!t[this.accession])return this.summaryIcons[3].counts=0,void(this.isInteractionsDataLoding=!1);this.hasComplexes=!0;for(var n=[],e=0;e<t[this.accession].length;e++)for(var i=0,o=Object.keys(t[this.accession][e]);i<o.length;i++)n=n.concat(t[this.accession][e][o[i]].pdbs);this.getdownloadModalData("interactionsProtein",n),this.isInteractionsDataLoding=!1},t.prototype.getSimilarProteins=function(){var t=this;this.commmonService.getApiData(this.accession,"similarProteinsApiUrl").subscribe(function(n){return t.getSimilarProteinsDownloadData(n)})},t.prototype.getSimilarProteinsDownloadData=function(t){t&&t[this.accession]&&404!==t[1]?(this.getdownloadModalData("similarProtein",t),this.isSimalirityProteinsDataLoding=!1):this.isSimalirityProteinsDataLoding=!1},t.prototype.getSimilarPDBs=function(){var t=this;this.commmonService.getApiData(this.accession+"/90","similarPDBsApiUrl").subscribe(function(n){return t.getSimilarPDBsDownloadData(n)})},t.prototype.getSimilarPDBsDownloadData=function(t){t&&t[this.accession]&&(this.similarPDBs=t[this.accession],this.getdownloadModalData("similarPDBs",t)),this.isSimalirityPDBsDataLoding=!1},t.prototype.getProtvistaData=function(){return t=this,void 0,e=function(){var t,n,e,i,o=this;return function(t,n){var e,i,o,l,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(t,r)}catch(a){l=[6,a],i=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}}(this,function(l){return t={structureProtvistaData:["pdbStructures"]},n={structureProtvistaData:{}},e={structureProtvistaData:!1},this.commmonService.getMultipleApiData(this.accession,i=["pdbStructures"]).subscribe(function(l){for(var r in l.forEach(function(l,r){var a=i[r];if("protvistaAnnotations"===a||void 0!==l[o.accession]){for(var s in t){var u=t[s].indexOf(a);if(u>-1)for(var c in l[o.accession])if("tracks"===c)void 0===n[s][c]&&(n[s][c]=[]),n[s][c][u]=l[o.accession][c];else if("legends"===c){if(void 0===n[s][c]&&(n[s][c]={alignment:"right",data:{}},l[o.accession][c].data instanceof Array&&(n[s][c].data=[])),n[s].legends.alignment=l[o.accession][c].alignment,l[o.accession][c].data instanceof Array)n[s].legends.data.push(l[o.accession][c].data);else if(l[o.accession][c].data)for(var p in l[o.accession][c].data)n[s].legends.data[p]=l[o.accession][c].data[p]}else n[s][c]=l[o.accession][c]}"pdbStructures"===a&&void 0!==l[o.accession].tracks&&l[o.accession].tracks.length>0&&(e.structureProtvistaData=!0)}}),n)void 0!==n[r].tracks&&(n[r].tracks=[].concat.apply([],n[r].tracks).filter(function(t){return void 0!==t})),void 0!==n[r].tracks&&n[r].tracks.length>0&&e[r]&&(o[r]=n[r],o[r].accession=o.accession);o.getPublications()}),[2]})},new((n=void 0)||(n=Promise))(function(i,o){function l(t){try{a(e.next(t))}catch(n){o(n)}}function r(t){try{a(e.throw(t))}catch(n){o(n)}}function a(t){t.done?i(t.value):new n(function(n){n(t.value)}).then(l,r)}a((e=e.apply(t,[])).next())});var t,n,e},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),js=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasSuperpositionData=!1,this.downloadModalData={protvistaProtein:{},ligandsProtein:{},interactionsProtein:{},similarProtein:{}},this.route.paramMap.subscribe(function(n){t.accession=n.get("accession").toUpperCase(),t.accession&&t.getData()}),document.addEventListener("protvista-click",this.pvEventListner.bind(this))},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData(),this.getSuperposeMatrixData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){n&&404!==n[1]&&500!==n[1]?t.getProtvistaData():t.noPDB=!0})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getProtvistaData=function(){var t=this,n={structureProtvistaData:["pdbStructures","secStructureVariations","flexibleRegions","protvistaProcessedProteins","protvistaDomains","predictedStructuresUrl"]},e={structureProtvistaData:{},interfaceProtvistaData:{},ligandProtvistaData:{},annotationProtvistaData:{}},i={structureProtvistaData:!1,interfaceProtvistaData:!1,ligandProtvistaData:!1,annotationProtvistaData:!1},o={structureProtvistaData:"structureProtvistaCl",interfaceProtvistaData:"interfaceProtvistaCl",ligandProtvistaData:"ligandProtvistaCl",annotationProtvistaData:"annotationProtvistaCl"},l=["predictedStructuresUrl","pdbStructures","secStructureVariations","flexibleRegions","protvistaProcessedProteins","protvistaDomains"];this.commmonService.getMultipleApiData(this.accession,l).subscribe(function(r){var a=t.processPredictedStrData(r[0]);a[t.accession].tracks[0].data.length>0&&(r[0]=a),r.forEach(function(o,r){var a=l[r];if("protvistaAnnotations"===a||void 0!==o[t.accession]){for(var s in n){var u=n[s].indexOf(a);if(u>-1)for(var c in o[t.accession])if("tracks"===c)void 0===e[s][c]&&(e[s][c]=[]),e[s][c][u]=o[t.accession][c],e[s][c][u]=t.prunePrintsIcons(e[s][c][u]);else if("legends"===c){if(void 0===e[s][c]&&(e[s][c]={alignment:"right",data:{}},o[t.accession][c].data instanceof Array&&(e[s][c].data=[])),e[s].legends.alignment=o[t.accession][c].alignment,o[t.accession][c].data instanceof Array)e[s].legends.data.push(o[t.accession][c].data);else if(o[t.accession][c].data)for(var p in o[t.accession][c].data)e[s].legends.data[p]=o[t.accession][c].data[p]}else e[s][c]=o[t.accession][c]}"pdbStructures"===a?void 0!==o[t.accession].tracks&&o[t.accession].tracks.length>0&&(t.getdownloadModalData("protvistaProtein",o),i.structureProtvistaData=!0):"protvistaDomains"===a?o[t.accession].tracks.length>0&&(i.structureProtvistaData=!0):"protvistaLigands"===a?o[t.accession].tracks.length>0&&(i.ligandProtvistaData=!0):"interfaceResidues"===a&&o[t.accession].tracks.length>0&&(i.interfaceProtvistaData=!0)}});var s=function(n){void 0!==e[n].tracks&&(e[n].tracks=[].concat.apply([],e[n].tracks).filter(function(t){return void 0!==t})),e[n].legends&&e[n].legends.data instanceof Array&&void 0!==e[n].legends&&void 0!==e[n].legends.data&&e[n].legends.data.forEach(function(t,i){e[n].legends.data[i]=[].concat.apply([],e[n].legends.data[i])}),void 0!==e[n].tracks&&e[n].tracks.length>0&&i[n]&&(t[n]=e[n],t[n].accession=t.accession,"annotationProtvistaData"===n&&(t[n].displayVariants=!0,t[n].displayConservation=!0),setTimeout(function(){t.addProtvista(o[n],e[n]),t.setPDBFromTrackData({tooltipContent:e[n].tracks[0].data[0].locations[0].fragments[0].tooltipContent}),t.pdbIdIn3d&&(t.dataLoading=!1,t.loadMolstarView())},1e3))};for(var u in e)s(u)})},t.prototype.prunePrintsIcons=function(t){if(t[0]&&t[0].label.indexOf("PDB Structures")>-1)for(var n in t[0].data)t[0].data[n].label&&t[0].data[n].label.icons&&(t[0].data[n].label.icons.pop(),t[0].data[n].label.icons.reverse(),t[0].data[n].label.icons.pop(),t[0].data[n].label.icons.reverse());return t},t.prototype.setPDBFromTrackData=function(t){if("Other Structures"===t.type)this.pdbIdIn3d={id:t.identifier,dataUrl:t.identifier.includes("PED (")?t.modelUrl.replace("/ensemble/","/ensemble_sample/"):t.modelUrl,dataFormat:t.identifier.includes("PED (")?"cif":t.modelFormat,pageUrl:t.pageUrl};else{var n=t.tooltipContent.match(/\"\>(.+) Best Chain (.+)\<\/a>/);null!==n&&(this.pdbIdIn3d={id:n[1]},n[2]&&(this.pdbIdIn3d.chainId=n[2]))}},t.prototype.processPredictedStrData=function(t){var n=this,e={};return e[this.accession]={tracks:[{label:"Other structures",labelColor:"rgb(128,128,128)",labelType:"text",data:[]}]},e.url=t.url,t&&t.structures&&t.structures.forEach(function(t){var i=t.summary.provider;e[n.accession].tracks[0].data.push({accession:i,color:"rgb(128,128,128)",label:'<a href="'+t.summary.model_page_url+'" target="_blank">'+i+" ("+t.summary.model_identifier+') <i class="icon icon-generic" style="font-size:75%" data-icon="x"></i></a>',labelColor:"rgb(211,211,211)",labelType:"text",labelTooltip:""+i,type:"UniProt range",locations:[{fragments:[{start:t.summary.uniprot_start,end:t.summary.uniprot_end,tooltipContent:"Type: "+i+"<br>Model category: "+t.summary.model_category+"<br>\n Range: "+t.summary.uniprot_start+" - "+t.summary.uniprot_end+'<br>Model URL: <a href="'+t.summary.model_url+'" target="_blank">'+i+' <i class="icon icon-generic" style="font-size:75%" data-icon="x"></i></a><br>\n Model format: '+t.summary.model_format,type:"Other Structures",modelUrl:t.summary.model_url,modelFormat:t.summary.model_format,pageUrl:t.summary.model_page_url,identifier:i+" ("+t.summary.model_identifier+")"}]}]})}),e[this.accession].tracks[0].label="Other structures ("+e[this.accession].tracks[0].data.length+")",e},t.prototype.getdownloadModalData=function(t,n){var e=[];if("protvistaProtein"===t)for(var i=0;i<n[this.accession].tracks[0].data.length;i++)e.push(n[this.accession].tracks[0].data[i].accession);if("similarProtein"===t)for(i=0;i<n[this.accession].length;i++)for(var o=0,l=n[this.accession][i].representative_pdbs;o<l.length;o++)e.push(l[o].pdb_id);if("similarPDBs"===t)for(i=0;i<n[this.accession].length;i++)for(var r=0,a=n[this.accession][i].mapped_segment;r<a.length;r++)e.push(a[r].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var s=0,u=n;s<u.length;s++)e.push(u[s].substr(0,4));this.downloadModalData[t].accession=this.accession,this.downloadModalData[t].listPdbIds=e.filter(function(t,n,e){return e.indexOf(t)===n}),this.downloadModalData[t].relationship=t},t.prototype.addProtvista=function(t,n){var e=this.elm.nativeElement.querySelectorAll("."+t)[0];if(e){var i=this.renderer.createElement("protvista-pdb");this.renderer.setAttribute(i,"accession",this.accession),this.renderer.setAttribute(i,"custom-data","true"),this.renderer.setAttribute(i,"subscribe-events","false"),this.renderer.appendChild(e,i),this.renderer.setProperty(i,"viewerdata",n)}},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.getSuperposeMatrixData=function(){var t=this;this.commmonService.getApiData(this.accession,"superposeDataApiUrl").subscribe(function(n){return t.setMatrixData(n)})},t.prototype.setMatrixData=function(t){this.hasSuperpositionData=t&&404!==t[1]},t.prototype.getSuperposeData=function(){var t={accession:this.accession,superposition:!0,superpositionParams:{segment:1}};return this.parentAccession&&(t.superpositionParams.matrixAccession=this.parentAccession),t},t.prototype.loadMolstarView=function(t){var n=this.getCustomParams();if(t)this.pdbeMolstar.visual.update(n,!0);else{var e=document.getElementById("molstarBox");e&&(this.pdbeMolstar=new PDBeMolstarPlugin,this.pdbeMolstar.render(e,n))}},t.prototype.getCustomParams=function(){var t={moleculeId:this.pdbIdIn3d.id,pdbeUrl:Xr.pdbeUrl,hideExpandIcon:!0,subscribeEvents:!1,bgColor:{r:255,g:255,b:255},selectInteraction:!1,hideCanvasControls:["selection","animation","controlToggle","controlInfo"],hideControls:!0,pdbeLink:!1};this.pdbIdIn3d.dataUrl&&(t.customData={url:""+this.pdbIdIn3d.dataUrl,format:""+this.pdbIdIn3d.dataFormat.toLowerCase(),binary:!1});var n={data:[],nonSelectedColor:{r:231,g:200,b:200}};return this.pdbIdIn3d.chainId&&n.data.push({struct_asym_id:""+this.pdbIdIn3d.chainId,color:{r:50,g:130,b:255}}),n.data.length>0&&(t.selection=n),t},t.prototype.pvEventListner=function(t){if(t&&t.detail&&t.detail.tooltipContent){var n=this.pdbIdIn3d;this.setPDBFromTrackData(t.detail),!this.pdbIdIn3d||this.pdbIdIn3d.id===n.id&&this.pdbIdIn3d.chainId===n.chainId&&this.pdbIdIn3d.dataUrl===n.dataUrl||this.loadMolstarView(!0)}},t.prototype.onView3dSelect=function(t){this.pdbIdIn3d=t,this.loadMolstarView(!0)},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),Vs=function(t,n,e,i){return new(e||(e=Promise))(function(o,l){function r(t){try{s(i.next(t))}catch(n){l(n)}}function a(t){try{s(i.throw(t))}catch(n){l(n)}}function s(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(r,a)}s((i=i.apply(t,n||[])).next())})},Bs=function(t,n){var e,i,o,l,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(t,r)}catch(a){l=[6,a],i=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}},Us=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasSuperpositionData=!1,this.downloadModalData={protvistaProtein:{},ligandsProtein:{},interactionsProtein:{},similarProtein:{}},this.hasFlags=!1,this.route.paramMap.subscribe(function(n){t.accession=n.get("accession").toUpperCase().toUpperCase(),t.accession&&t.getData()})},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary(),this.getLigands())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData(),this.getSuperposeMatrixData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){return Vs(t,void 0,void 0,function(){return Bs(this,function(t){switch(t.label){case 0:return n&&404!==n[1]&&500!==n[1]?[4,this.getProtvistaData()]:(this.noPDB=!0,[2]);case 1:return t.sent(),[2]}})})})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getProtvistaData=function(){return Vs(this,void 0,void 0,function(){var t,n,e,i,o,l=this;return Bs(this,function(r){return t={ligandProtvistaData:["protvistaLigands"]},n={structureProtvistaData:{},interfaceProtvistaData:{},ligandProtvistaData:{},annotationProtvistaData:{}},e={structureProtvistaData:!1,interfaceProtvistaData:!1,ligandProtvistaData:!1,annotationProtvistaData:!1},i={structureProtvistaData:"structureProtvistaCl",interfaceProtvistaData:"interfaceProtvistaCl",ligandProtvistaData:"ligandProtvistaCl",annotationProtvistaData:"annotationProtvistaCl"},this.commmonService.getMultipleApiData(this.accession,o=["protvistaLigands","protvistaDomains"]).subscribe(function(r){r.forEach(function(i,r){var a=o[r];if("protvistaAnnotations"===a||void 0!==i[l.accession]){for(var s in t){var u=t[s].indexOf(a);if(u>-1)for(var c in i[l.accession])if("tracks"===c)void 0===n[s][c]&&(n[s][c]=[]),n[s][c][u]=i[l.accession][c];else if("legends"===c){if(void 0===n[s][c]&&(n[s][c]={alignment:"right",data:{}},i[l.accession][c].data instanceof Array&&(n[s][c].data=[])),n[s].legends.alignment=i[l.accession][c].alignment,i[l.accession][c].data instanceof Array)n[s].legends.data.push(i[l.accession][c].data);else if(i[l.accession][c].data)for(var p in i[l.accession][c].data)n[s].legends.data[p]=i[l.accession][c].data[p]}else n[s][c]=i[l.accession][c]}"pdbStructures"===a?void 0!==i[l.accession].tracks&&i[l.accession].tracks.length>0&&(l.getdownloadModalData("protvistaProtein",i),e.structureProtvistaData=!0):"protvistaDomains"===a?i[l.accession].tracks.length>0&&(e.structureProtvistaData=!0):"protvistaLigands"===a?i[l.accession].tracks.length>0&&(e.ligandProtvistaData=!0):"interfaceResidues"===a&&i[l.accession].tracks.length>0&&(e.interfaceProtvistaData=!0)}});var a=function(t){void 0!==n[t].tracks&&(n[t].tracks=[].concat.apply([],n[t].tracks).filter(function(t){return void 0!==t})),n[t].legends&&n[t].legends.data instanceof Array&&void 0!==n[t].legends&&void 0!==n[t].legends.data&&n[t].legends.data.forEach(function(e,i){n[t].legends.data[i]=[].concat.apply([],n[t].legends.data[i])}),void 0!==n[t].tracks&&n[t].tracks.length>0&&e[t]&&(l[t]=n[t],l[t].accession=l.accession,"annotationProtvistaData"===t&&(l[t].displayVariants=!0,l[t].displayConservation=!0),setTimeout(function(){l.addProtvista(i[t],n[t])},1e3))};for(var s in n)a(s);l.dataLoading=!1}),[2]})})},t.prototype.getdownloadModalData=function(t,n){var e=[];if("protvistaProtein"===t)for(var i=0;i<n[this.accession].tracks[0].data.length;i++)e.push(n[this.accession].tracks[0].data[i].accession);if("similarProtein"===t)for(i=0;i<n[this.accession].length;i++)for(var o=0,l=n[this.accession][i].representative_pdbs;o<l.length;o++)e.push(l[o].pdb_id);if("similarPDBs"===t)for(i=0;i<n[this.accession].length;i++)for(var r=0,a=n[this.accession][i].mapped_segment;r<a.length;r++)e.push(a[r].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var s=0,u=n;s<u.length;s++)e.push(u[s].substr(0,4));this.downloadModalData[t].accession=this.accession,this.downloadModalData[t].listPdbIds=e.filter(function(t,n,e){return e.indexOf(t)===n}),this.downloadModalData[t].relationship=t},t.prototype.addProtvista=function(t,n){var e=this.elm.nativeElement.querySelectorAll("."+t)[0];if(e){var i=this.renderer.createElement("protvista-pdb");this.renderer.setAttribute(i,"accession",this.accession),this.renderer.setAttribute(i,"custom-data","true"),this.renderer.setAttribute(i,"subscribe-events","false"),this.renderer.appendChild(e,i),this.renderer.setProperty(i,"viewerdata",n)}},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.getSuperposeMatrixData=function(){var t=this;this.commmonService.getApiData(this.accession,"superposeDataApiUrl").subscribe(function(n){return t.setMatrixData(n)})},t.prototype.setMatrixData=function(t){this.hasSuperpositionData=t&&404!==t[1]},t.prototype.getSuperposeData=function(t){var n={accession:this.accession,superposition:!0,superpositionParams:{segment:1}};return t&&(n.superpositionParams.ligandView=!0,n.superpositionParams.superposeAll=!0),this.parentAccession&&(n.superpositionParams.matrixAccession=this.parentAccession),n},t.prototype.getLigands=function(){var t=this;this.commmonService.getApiData(this.accession,"ligands").subscribe(function(n){return t.createLigandsGallery(n)})},t.prototype.createLigandsGallery=function(t){if(t&&404!==t[1]&&500!==t[1]&&t[this.accession]){this.hasLigands=!0,this.ligands={title:"All Ligands",help_text:"This section, by default, shows ligands observed directly bound to the protein of interest, if such ligands are available. \nClick on the checkbox to see every ligand from all PDB entries (some may not directly interact with the protein). If there are no directly interacting ligands, all ligands will be shown by default \nClick on the images to see the related PDB entries. For ligand binding residues, see the section below.",div_id:"ligands",ligandGallery:!0,gallery_items:[]};for(var n=[],e=0;e<t[this.accession].length;e++)for(var i=0,o=Object.keys(t[this.accession][e]);i<o.length;i++){var l=o[i];n=n.concat(t[this.accession][e][l].pdbs);var r=Xr.pdbeEntrySearchUrl+"index/?searchParams=%7B%22text%22:%5B%7B%22value%22:%22"+this.accession;r+="%22,%22condition1%22:%22AND%22,%22condition2%22:%22",r+="Contains%22%7D%5D,%22q_compound_id%22:%5B%7B%22value%22:%22"+l+"%22,%22conditi",r+="on1%22:%22AND%22,%22condition2%22:%22Contains%22%7D%5D,%22resultState%22:%7B",r+="%22tabIndex%22:0,%22paginationIndex%22:1,%22perPage%22:%2210%22,%22sortBy%22",r+=":%22Sort%20by%22%7D%7D";var a=t[this.accession][e][l].name,s=t[this.accession][e][l].pdbs.length,u=t[this.accession][e][l].pdbs,c=t[this.accession][e][l].directly_interacts;c&&(this.hasFlags=!0);for(var p={url:Xr.pdbeStaticUrl+"files/pdbechem_v2/"+l+"_200.svg",alt_text:t[this.accession][e][l].name,label:a,sub_label:s,id_code:l,categories:[],related_entries:u,elements:[],target_url:r,buttons:[],flag:c},h=0;h<t[this.accession][e][l].pdbs.length;h++)p.elements.push({label:l,url:Xr.pdbeEntryUrl+t[this.accession][e][l].pdbs[h]+"/ligands"});for(var d=0;d<t[this.accession][e][l].acts_as.length;d++)p.categories.push(t[this.accession][e][l].acts_as[d].split("-")[0]);this.ligands.gallery_items.push(p)}this.getdownloadModalData("ligandsProtein",n)}},t.prototype.interactingCount=function(){var t=0;if(this.hasFlags)for(var n=0;n<this.ligands.gallery_items.length;n++)this.ligands.gallery_items[n].flag&&t++;return"Directly Interacting Ligands ("+t+")"},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),Fs=function(t,n,e,i){return new(e||(e=Promise))(function(o,l){function r(t){try{s(i.next(t))}catch(n){l(n)}}function a(t){try{s(i.throw(t))}catch(n){l(n)}}function s(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(r,a)}s((i=i.apply(t,n||[])).next())})},zs=function(t,n){var e,i,o,l,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(t,r)}catch(a){l=[6,a],i=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}},Hs=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasSuperpositionData=!1,this.downloadModalData={protvistaProtein:{},ligandsProtein:{},interactionsProtein:{},similarProtein:{}},this.hasFlags=!1,this.route.paramMap.subscribe(function(n){t.accession=n.get("accession"),t.accession&&t.getData()})},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary(),this.getPartners())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData(),this.getSuperposeMatrixData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){return Fs(t,void 0,void 0,function(){return zs(this,function(t){switch(t.label){case 0:return n&&404!==n[1]&&500!==n[1]?[4,this.getProtvistaData()]:(this.noPDB=!0,[2]);case 1:return t.sent(),[2]}})})})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getProtvistaData=function(){return Fs(this,void 0,void 0,function(){var t,n,e,i,o,l=this;return zs(this,function(r){return t={interfaceProtvistaData:["interfaceResidues"]},n={structureProtvistaData:{},interfaceProtvistaData:{},ligandProtvistaData:{},annotationProtvistaData:{}},e={structureProtvistaData:!1,interfaceProtvistaData:!1,ligandProtvistaData:!1,annotationProtvistaData:!1},i={structureProtvistaData:"structureProtvistaCl",interfaceProtvistaData:"interfaceProtvistaCl",ligandProtvistaData:"ligandProtvistaCl",annotationProtvistaData:"annotationProtvistaCl"},this.commmonService.getMultipleApiData(this.accession,o=["interfaceResidues","protvistaDomains"]).subscribe(function(r){r.forEach(function(i,r){var a=o[r];if("protvistaAnnotations"===a||void 0!==i[l.accession]){for(var s in t){var u=t[s].indexOf(a);if(u>-1)for(var c in i[l.accession])if("tracks"===c)void 0===n[s][c]&&(n[s][c]=[]),n[s][c][u]=i[l.accession][c];else if("legends"===c){if(void 0===n[s][c]&&(n[s][c]={alignment:"right",data:{}},i[l.accession][c].data instanceof Array&&(n[s][c].data=[])),n[s].legends.alignment=i[l.accession][c].alignment,i[l.accession][c].data instanceof Array)n[s].legends.data.push(i[l.accession][c].data);else if(i[l.accession][c].data)for(var p in i[l.accession][c].data)n[s].legends.data[p]=i[l.accession][c].data[p]}else n[s][c]=i[l.accession][c]}"pdbStructures"===a?void 0!==i[l.accession].tracks&&i[l.accession].tracks.length>0&&(l.getdownloadModalData("protvistaProtein",i),e.structureProtvistaData=!0):"protvistaDomains"===a?i[l.accession].tracks.length>0&&(e.structureProtvistaData=!0):"protvistaLigands"===a?i[l.accession].tracks.length>0&&(e.ligandProtvistaData=!0):"interfaceResidues"===a&&i[l.accession].tracks.length>0&&(e.interfaceProtvistaData=!0)}});var a=function(t){void 0!==n[t].tracks&&(n[t].tracks=[].concat.apply([],n[t].tracks).filter(function(t){return void 0!==t})),n[t].legends&&n[t].legends.data instanceof Array&&void 0!==n[t].legends&&void 0!==n[t].legends.data&&n[t].legends.data.forEach(function(e,i){n[t].legends.data[i]=[].concat.apply([],n[t].legends.data[i])}),void 0!==n[t].tracks&&n[t].tracks.length>0&&e[t]&&(l[t]=n[t],l[t].accession=l.accession,"annotationProtvistaData"===t&&(l[t].displayVariants=!0,l[t].displayConservation=!0),setTimeout(function(){l.addProtvista(i[t],n[t])},1e3))};for(var s in n)a(s);l.dataLoading=!1}),[2]})})},t.prototype.getdownloadModalData=function(t,n){for(var e=[],i=0,o=n;i<o.length;i++)e.push(o[i].substr(0,4));this.downloadModalData[t].accession=this.accession,this.downloadModalData[t].listPdbIds=e.filter(function(t,n,e){return e.indexOf(t)===n}),this.downloadModalData[t].relationship=t},t.prototype.addProtvista=function(t,n){var e=this.elm.nativeElement.querySelectorAll("."+t)[0];if(e){var i=this.renderer.createElement("protvista-pdb");this.renderer.setAttribute(i,"accession",this.accession),this.renderer.setAttribute(i,"custom-data","true"),this.renderer.setAttribute(i,"subscribe-events","false"),this.renderer.appendChild(e,i),this.renderer.setProperty(i,"viewerdata",n)}},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.getSuperposeMatrixData=function(){var t=this;this.commmonService.getApiData(this.accession,"superposeDataApiUrl").subscribe(function(n){return t.setMatrixData(n)})},t.prototype.setMatrixData=function(t){this.hasSuperpositionData=t&&404!==t[1]},t.prototype.getSuperposeData=function(t){var n={accession:this.accession,superposition:!0,superpositionParams:{segment:1}};return t&&(n.superpositionParams.ligandView=!0,n.superpositionParams.superposeAll=!0),this.parentAccession&&(n.superpositionParams.matrixAccession=this.parentAccession),n},t.prototype.getPartners=function(){var t=this;this.commmonService.getApiData(this.accession,"partners").subscribe(function(n){return t.createPartnersGallery(n)})},t.prototype.createPartnersGallery=function(t){if(t&&404!==t[1]&&500!==t[1]&&t[this.accession]){this.hasComplexes=!0,this.complexes={title:"Interaction Partners",help_text:"This section shows macromolecules observed together with the protein of interest in PDB entries. Click on the images to see the related PDB entries. The interaction partner is colored blue.",div_id:"interactions",gallery_items:[]};for(var n=[],e=0;e<t[this.accession].length;e++)for(var i=0,o=Object.keys(t[this.accession][e]);i<o.length;i++){var l=o[i];n=n.concat(t[this.accession][e][l].pdbs);for(var r=t[this.accession][e][l].name,a=[],s=0,u=t[this.accession][e][l].pdbs;s<u.length;s++){var c=u[s];-1===a.indexOf(c.split("_")[0])&&a.push(c.split("_")[0])}var p=a.length,h=t[this.accession][e][l].pdbs,d=t[this.accession][e][l].pdbs[0].split("_")[0],f=t[this.accession][e][l].pdbs[0].split("_")[1],g=[],m="";l.match("[OPQ][0-9][A-Z0-9]{3}[0-9]|[A-NR-Z][0-9]([A-Z][A-Z0-9]{2}[0-9]){1,2}")&&(m=t[this.accession][e][l].name.split(" ").join("%20"),g.push({class:"button",text:"View page",target_url:Xr.kbEntryUrl+l}));var y=Xr.pdbeEntrySearchUrl+"index/",v=y+"?searchParams=%7B%22text%22:%5B%7B%22value%22:%22"+this.accession+"%22,";v+="%22condition1%22:%22AND%22,%22condition2%22:%22Contains%22%7D%5D,",""!==m&&"Other"!==m&&"DNA"!==m&&"RNA"!==m&&(v+="%22q_interacting_molecules%22:%5B%7B%22value%22:%22"+m+"%22,",v+="%22condition1%22:%22AND%22,%22condition2%22:%22Equal%20to%22%7D%5D,");var b=l;b===this.accession&&(b+=" (self)");for(var _={url:Xr.pdbeStaticUrl+"entry/"+d+"_entity_"+f+"_front_image-800x800.png",alt_text:t[this.accession][e][l].name,label:r,sub_label:p,id_code:b,categories:[],related_entries:h,elements:[],target_url:v+="%22resultState%22:%7B%22tabIndex%22:1,%22paginationIndex%22:1,%22perPage%22:%2210%22%7D%7D",buttons:g,flag:!1},w=0;w<t[this.accession][e][l].pdbs.length;w++){var x=t[this.accession][e][l].pdbs[w].split("_")[0],P=t[this.accession][e][l].pdbs[w].split("_")[1];_.elements.push({label:t[this.accession][e][l].pdbs[w],url:Xr.pdbeEntryUrl+x+"/protein/"+P})}if(Object.keys(t[this.accession][e][l]).indexOf("acts_as")>-1)for(var C=0;C<t[this.accession][e][l].acts_as.length;C++){_.categories.push(t[this.accession][e][l].acts_as[C]);for(var S=0,I=t[this.accession][e][l].acts_as;S<I.length;S++)if("antibody"===I[S]){v=y+"?searchParams=%7B%22text%22:%5B%7B%22value%22:%22"+this.accession+"%22,",v+="%22condition1%22:%22AND%22,%22condition2%22:%22Contains%22%7D%5D,",v+="%22q_all_molecule_names%22:%5B%7B%22value%22:%22ig-heavy%20chain%22,",v+="%22condition1%22:%22AND%22,%22condition2%22:%22Equal%20to%22%7D%5D,",_.target_url=v+="%22resultState%22:%7B%22tabIndex%22:1,%22paginationIndex%22:1,%22perPage%22:%2210%22%7D%7D";break}}this.complexes.gallery_items.push(_)}this.getdownloadModalData("interactionsProtein",n)}},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),qs=function(t,n,e,i){return new(e||(e=Promise))(function(o,l){function r(t){try{s(i.next(t))}catch(n){l(n)}}function a(t){try{s(i.throw(t))}catch(n){l(n)}}function s(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(r,a)}s((i=i.apply(t,n||[])).next())})},$s=function(t,n){var e,i,o,l,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(t,r)}catch(a){l=[6,a],i=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}},Gs=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasAnnotations=!1,this.route.paramMap.subscribe(function(n){t.accession=n.get("accession").toUpperCase(),t.accession&&t.getData()})},t.prototype.getPingUrls=function(){var t=this;this.commmonService.getApiData(this.accession,"pingApiUrl").subscribe(function(n){return t.createPingData(n)})},t.prototype.createPingData=function(t){t&&t[this.accession]&&t[this.accession].externalResources&&(this.pingUrlData=t[this.accession].externalResources)},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary(),this.getPingUrls())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){return qs(t,void 0,void 0,function(){return $s(this,function(t){switch(t.label){case 0:return n&&404!==n[1]&&500!==n[1]?[4,this.getProtvistaData()]:(this.noPDB=!0,[2]);case 1:return t.sent(),[2]}})})})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getProtvistaData=function(){return qs(this,void 0,void 0,function(){var t,n,e,i,o,l=this;return $s(this,function(r){return t={annotationProtvistaData:["protvistaAnnotations","protvistaDomains","protvistaLigands","interfaceResidues"]},n={structureProtvistaData:{},interfaceProtvistaData:{},ligandProtvistaData:{},annotationProtvistaData:{}},e={structureProtvistaData:!1,interfaceProtvistaData:!1,ligandProtvistaData:!1,annotationProtvistaData:!1},i={structureProtvistaData:"structureProtvistaCl",interfaceProtvistaData:"interfaceProtvistaCl",ligandProtvistaData:"ligandProtvistaCl",annotationProtvistaData:"annotationProtvistaCl"},this.commmonService.getMultipleApiData(this.accession,o=["protvistaAnnotations","protvistaDomains","protvistaLigands","interfaceResidues"]).subscribe(function(r){r.forEach(function(i,r){var a=o[r];if("protvistaAnnotations"===a||void 0!==i[l.accession]){for(var s in t){var u=t[s].indexOf(a);if(u>-1)for(var c in i[l.accession])if("tracks"===c)void 0===n[s][c]&&(n[s][c]=[]),n[s][c][u]=i[l.accession][c];else if("legends"===c){if(void 0===n[s][c]&&(n[s][c]={alignment:"right",data:{}},i[l.accession][c].data instanceof Array&&(n[s][c].data=[])),n[s].legends.alignment=i[l.accession][c].alignment,i[l.accession][c].data instanceof Array)n[s].legends.data.push(i[l.accession][c].data);else if(i[l.accession][c].data)for(var p in i[l.accession][c].data)n[s].legends.data[p]=i[l.accession][c].data[p]}else n[s][c]=i[l.accession][c]}"pdbStructures"===a?void 0!==i[l.accession].tracks&&i[l.accession].tracks.length>0&&(l.getdownloadModalData("protvistaProtein",i),e.structureProtvistaData=!0):"protvistaDomains"===a?i[l.accession].tracks.length>0&&(e.structureProtvistaData=!0):"protvistaLigands"===a?i[l.accession].tracks.length>0&&(e.ligandProtvistaData=!0):"interfaceResidues"===a?i[l.accession].tracks.length>0&&(e.interfaceProtvistaData=!0):"protvistaAnnotations"===a&&(l.hasAnnotations=!0,e.annotationProtvistaData=!0)}});var a=function(t){void 0!==n[t].tracks&&(n[t].tracks=[].concat.apply([],n[t].tracks).filter(function(t){return void 0!==t})),n[t].legends&&n[t].legends.data instanceof Array&&void 0!==n[t].legends&&void 0!==n[t].legends.data&&n[t].legends.data.forEach(function(e,i){n[t].legends.data[i]=[].concat.apply([],n[t].legends.data[i])}),void 0!==n[t].tracks&&n[t].tracks.length>0&&e[t]&&(l[t]=n[t],l[t].accession=l.accession,"annotationProtvistaData"===t&&(l[t].displayVariants=!0,l[t].displayConservation=!0),setTimeout(function(){l.addProtvista(i[t],n[t])},1e3))};for(var s in n)a(s);l.dataLoading=!1}),[2]})})},t.prototype.getdownloadModalData=function(t,n){var e=[];if("protvistaProtein"===t)for(var i=0;i<n[this.accession].tracks[0].data.length;i++)e.push(n[this.accession].tracks[0].data[i].accession);if("similarProtein"===t)for(i=0;i<n[this.accession].length;i++)for(var o=0,l=n[this.accession][i].representative_pdbs;o<l.length;o++)e.push(l[o].pdb_id);if("similarPDBs"===t)for(i=0;i<n[this.accession].length;i++)for(var r=0,a=n[this.accession][i].mapped_segment;r<a.length;r++)e.push(a[r].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var s=0,u=n;s<u.length;s++)e.push(u[s].substr(0,4))},t.prototype.addProtvista=function(t,n){var e=this.elm.nativeElement.querySelectorAll("."+t)[0];if(e){var i=this.renderer.createElement("protvista-pdb");this.renderer.setAttribute(i,"accession",this.accession),this.renderer.setAttribute(i,"custom-data","true"),this.renderer.setAttribute(i,"subscribe-events","false"),this.renderer.appendChild(e,i),this.renderer.setProperty(i,"viewerdata",n)}},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),Qs=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.molstarRendered=!1,this.similarProteindsLoadComplete=!1,this.similarPdbsLoadComplete=!1,this.similarSummariesLoadComplete=!1,this.totalSimilarProteins=0,this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasSuperpositionData=!1,this.downloadModalData={protvistaProtein:{},ligandsProtein:{},interactionsProtein:{},similarProtein:{}},this.similarSummaries={},this.route.paramMap.subscribe(function(n){t.accession=n.get("accession").toUpperCase(),t.accession&&t.getData()})},t.prototype.ngAfterViewChecked=function(){var t=this;this.accession&&!this.molstarRendered&&this.similarProteindsLoadComplete&&this.similarPdbsLoadComplete&&setTimeout(function(){t.initSimilarPdb&&(t.pdbIdIn3d=t.initSimilarPdb),!t.pdbIdIn3d&&t.initSimilarProtein&&(t.pdbIdIn3d=t.initSimilarProtein),t.pdbIdIn3d&&t.loadMolstarView(),t.dataLoading=!1})},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary(),this.getSimilarProteins(),this.getSimilarPDBs())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){n&&404!==n[1]&&500!==n[1]||(t.noPDB=!0)})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.processPredictedStrData=function(t){var n=this,e={};return e[this.accession]={tracks:[{label:"Other structures",labelColor:"rgb(128,128,128)",labelType:"text",data:[]}]},e.url=t.url,t&&t.structures&&t.structures.forEach(function(t){e[n.accession].tracks[0].data.push({accession:t.provider,color:"rgb(128,128,128)",label:'<a href="'+t.model_page_url+'" target="_blank">'+t.provider+" ("+t.model_identifier+') <i class="icon icon-generic" style="font-size:75%" data-icon="x"></i></a>',labelColor:"rgb(211,211,211)",labelType:"text",labelTooltip:""+t.provider,type:"UniProt range",locations:[{fragments:[{start:t.uniprot_start,end:t.uniprot_end,tooltipContent:"Type: "+t.provider+"<br>Model category: "+t.model_category+"<br>\n Range: "+t.uniprot_start+" - "+t.uniprot_end+'<br>Model URL: <a href="'+t.model_url+'" target="_blank">'+t.provider+' <i class="icon icon-generic" style="font-size:75%" data-icon="x"></i></a><br>\n Model format: '+t.model_format,type:"Other Structures",modelUrl:t.model_url,modelFormat:t.model_format,pageUrl:t.model_page_url,identifier:t.provider+" ("+t.model_identifier+")"}]}]})}),e[this.accession].tracks[0].label="Other structures ("+e[this.accession].tracks[0].data.length+")",e},t.prototype.getdownloadModalData=function(t,n){var e=function(t,n,e){return e.indexOf(t)===n},i=[];if("protvistaProtein"===t)for(var o=0;o<n[this.accession].tracks[0].data.length;o++)i.push(n[this.accession].tracks[0].data[o].accession);if("similarProtein"===t)for(o=0;o<n[this.accession].length;o++)for(var l=0,r=n[this.accession][o].representative_pdbs;l<r.length;l++)i.push(r[l].pdb_id);if("similarPDBs"===t)for(o=0;o<n[this.accession].length;o++)for(var a=0,s=n[this.accession][o].mapped_segment;a<s.length;a++)i.push(s[a].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var u=0,c=n;u<c.length;u++)i.push(c[u].substr(0,4));"similarPDBs"===t||"similarProtein"===t?(this.downloadModalData.similarProtein.accession=this.accession,this.downloadModalData.similarProtein.relationship="similarProtein",this.downloadModalData.similarProtein.listPdbIds=this.downloadModalData.similarProtein.listPdbIds?this.downloadModalData.similarProtein.listPdbIds.concat(i).filter(e):i.filter(e)):(this.downloadModalData[t].accession=this.accession,this.downloadModalData[t].listPdbIds=i.filter(e),this.downloadModalData[t].relationship=t)},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.loadMolstarView=function(t){var n=this.getCustomParams();if(t)this.pdbeMolstar.visual.update(n,!0);else{var e=document.getElementById("molstarBox");e&&(this.molstarRendered=!0,this.pdbeMolstar=new PDBeMolstarPlugin,this.pdbeMolstar.render(e,n))}},t.prototype.getCustomParams=function(){var t={moleculeId:this.pdbIdIn3d.id,pdbeUrl:Xr.pdbeUrl,hideExpandIcon:!0,subscribeEvents:!1,bgColor:{r:255,g:255,b:255},selectInteraction:!1,hideCanvasControls:["selection","animation","controlToggle","controlInfo"],hideControls:!0,pdbeLink:!1};this.pdbIdIn3d.dataUrl&&(t.customData={url:""+this.pdbIdIn3d.dataUrl,format:""+this.pdbIdIn3d.dataFormat.toLowerCase(),binary:!1});var n={data:[],nonSelectedColor:{r:231,g:200,b:200}};return this.pdbIdIn3d.chainId&&n.data.push({struct_asym_id:""+this.pdbIdIn3d.chainId,color:{r:50,g:130,b:255}}),n.data.length>0&&(t.selection=n),t},t.prototype.onView3dSelect=function(t){this.pdbIdIn3d=t,this.loadMolstarView(!0)},t.prototype.getSimilarProteins=function(){var t=this;this.commmonService.getApiData(this.accession,"similarProteinsApiUrl").subscribe(function(n){return t.createSimilarProteins(n)})},t.prototype.createSimilarProteins=function(t){if(!t||!t[this.accession]||404===t[1])return this.similarProteindsLoadComplete=!0,void(this.similarSummariesLoadComplete=!0);this.similarProteins=t[this.accession],this.similarProteins.length>0&&this.similarProteins[0].representative_pdbs.length>0?(this.initSimilarProtein={id:this.similarProteins[0].representative_pdbs[0].pdb_id,chainId:this.similarProteins[0].representative_pdbs[0].best_chain},this.totalSimilarProteins+=this.similarProteins.length):this.similarProteins.length>0&&this.similarProteins[0].mapped_segment.length>0&&(this.initSimilarProtein={id:this.similarProteins[0].mapped_segment[0].pdb_id,chainId:this.similarProteins[0].mapped_segment[0].best_chain},this.totalSimilarProteins+=this.similarProteins.length),this.similarProteindsLoadComplete=!0,this.getdownloadModalData("similarProtein",t);var n=[];t[this.accession].forEach(function(t){t.representative_pdbs.length>0&&n.push(t.uniprot_id)});for(var e=0;e<n.length;e++)this.getSimilarSummary(n[e]);return 0===n.length&&(this.similarSummariesLoadComplete=!0),n},t.prototype.getSimilarSummary=function(t){var n=this;this.commmonService.getApiData(t,"summaryCountApiUrl").subscribe(function(e){return n.createSimilarSummary(e,t)})},t.prototype.createSimilarSummary=function(t,n){t&&t[n]&&(this.similarSummaries[n]=t[n]),this.similarSummariesLoadComplete=!0},t.prototype.getSimilarPDBs=function(){var t=this;this.commmonService.getApiData(this.accession+"/90","similarPDBsApiUrl").subscribe(function(n){return t.createSimilarPDBs(n)})},t.prototype.createSimilarPDBs=function(t){t&&t[this.accession]&&(this.similarPDBs=t[this.accession],this.getdownloadModalData("similarPDBs",t),this.similarPDBs.length>0&&this.similarPDBs[0].mapped_segment.length>0&&(this.initSimilarPdb={id:this.similarPDBs[0].mapped_segment[0].pdb_id,chainId:this.similarPDBs[0].mapped_segment[0].best_chain},this.totalSimilarProteins+=this.similarPDBs.length)),this.similarPdbsLoadComplete=!0},t.prototype.getCombinedData=function(){var t=[];return this.similarProteins&&this.similarProteins.forEach(function(n){return t.push(Object.assign({},n))}),this.similarPDBs&&this.similarPDBs.forEach(function(n){t.push(n)}),t},t.prototype.getCount=function(){var t=0;return this.similarProteins&&(t+=this.similarProteins.length),this.similarPDBs&&(t+=this.similarPDBs.length),t},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),Ws=function(t,n,e,i){return new(e||(e=Promise))(function(o,l){function r(t){try{s(i.next(t))}catch(n){l(n)}}function a(t){try{s(i.throw(t))}catch(n){l(n)}}function s(t){t.done?o(t.value):new e(function(n){n(t.value)}).then(r,a)}s((i=i.apply(t,n||[])).next())})},Ks=function(t,n){var e,i,o,l,r={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return l={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(l[Symbol.iterator]=function(){return this}),l;function a(l){return function(a){return function(l){if(e)throw new TypeError("Generator is already executing.");for(;r;)try{if(e=1,i&&(o=2&l[0]?i.return:l[0]?i.throw||((o=i.return)&&o.call(i),0):i.next)&&!(o=o.call(i,l[1])).done)return o;switch(i=0,o&&(l=[2&l[0],o.value]),l[0]){case 0:case 1:o=l;break;case 4:return r.label++,{value:l[1],done:!1};case 5:r.label++,i=l[1],l=[0];continue;case 7:l=r.ops.pop(),r.trys.pop();continue;default:if(!(o=(o=r.trys).length>0&&o[o.length-1])&&(6===l[0]||2===l[0])){r=0;continue}if(3===l[0]&&(!o||l[1]>o[0]&&l[1]<o[3])){r.label=l[1];break}if(6===l[0]&&r.label<o[1]){r.label=o[1],o=l;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(l);break}o[2]&&r.ops.pop(),r.trys.pop();continue}l=n.call(t,r)}catch(a){l=[6,a],i=0}finally{e=o=0}if(5&l[0])throw l[1];return{value:l[0]?l[1]:void 0,done:!0}}([l,a])}}},Zs=function(){function t(t,n,e,i){this.elm=t,this.renderer=n,this.route=e,this.commmonService=i}return t.prototype.ngOnInit=function(){var t=this;this.dataLoading=!0,this.accessionList=[],this.uniProtMapping=[],this.noPDB=!1,this.noUniProt=!1,this.hasAnnotations=!1,this.primaryPublications={category:"PDB publications",show_limit:10,publications:[]},this.reviewPublications={category:"PDB-related reviews",show_limit:10,publications:[]},this.uniprotPublications={category:"UniProt publications",show_limit:10,publications:[]},this.route.paramMap.subscribe(function(n){t.accession=n.get("accession").toUpperCase(),t.accession&&t.getData()})},t.prototype.getData=function(){this.checkIfPdbId()?this.getUniProtMapping():(this.getBestStructuresData(),this.getSummary())},t.prototype.getBestStructuresData=function(){var t=this;this.commmonService.getApiData(this.accession,"bestStructuresApiUrl").subscribe(function(n){t.setParentAccession(n)})},t.prototype.setParentAccession=function(t){if(404===t[1]||500===t[1])this.noPDB=!0;else{for(var n=0;n<t[this.accession].length;n++)t[this.accession][n].uniprot_id&&(this.parentProtein=t[this.accession][n].uniprot_id);this.getUniProtData()}},t.prototype.getSummary=function(){var t=this;this.commmonService.getApiData(this.accession,"summaryCountApiUrl").subscribe(function(n){return Ws(t,void 0,void 0,function(){return Ks(this,function(t){switch(t.label){case 0:return n&&404!==n[1]&&500!==n[1]?(this.hasAnnotations=!0,[4,this.getProtvistaData()]):(this.noPDB=!0,[2]);case 1:return t.sent(),[2]}})})})},t.prototype.checkIfPdbId=function(){if(4===this.accession.length)return!0},t.prototype.getUniProtMapping=function(){var t=this;this.commmonService.getApiData(this.accession.toLowerCase(),"uniprotAccession").subscribe(function(n){return t.createUniProtMapping(n)})},t.prototype.createUniProtMapping=function(t){if(404===t[1]||500===t[1])return!1;var n=t[this.accession.toLowerCase()].UniProt,e=this.sanitizeAccessionList(Object.keys(n));e.length>1&&(this.accessionList=e);for(var i=[],o=Object.keys(n),l=0;l<o.length;l++){var r=n[o[l]];r.accession=o[l],i.push(r)}this.uniProtMapping=i},t.prototype.sanitizeAccessionList=function(t){for(var n=[],e=0;e<t.length;e++)-1===t[e].indexOf("-")&&n.push(t[e]);return n},t.prototype.getProtvistaData=function(){return Ws(this,void 0,void 0,function(){var t,n,e,i,o=this;return Ks(this,function(l){return t={structureProtvistaData:["pdbStructures"]},n={structureProtvistaData:{}},e={structureProtvistaData:!1},this.commmonService.getMultipleApiData(this.accession,i=["pdbStructures"]).subscribe(function(l){for(var r in l.forEach(function(l,r){var a=i[r];if("protvistaAnnotations"===a||void 0!==l[o.accession]){for(var s in t){var u=t[s].indexOf(a);if(u>-1)for(var c in l[o.accession])if("tracks"===c)void 0===n[s][c]&&(n[s][c]=[]),n[s][c][u]=l[o.accession][c];else if("legends"===c){if(void 0===n[s][c]&&(n[s][c]={alignment:"right",data:{}},l[o.accession][c].data instanceof Array&&(n[s][c].data=[])),n[s].legends.alignment=l[o.accession][c].alignment,l[o.accession][c].data instanceof Array)n[s].legends.data.push(l[o.accession][c].data);else if(l[o.accession][c].data)for(var p in l[o.accession][c].data)n[s].legends.data[p]=l[o.accession][c].data[p]}else n[s][c]=l[o.accession][c]}"pdbStructures"===a&&void 0!==l[o.accession].tracks&&l[o.accession].tracks.length>0&&(e.structureProtvistaData=!0)}}),n)void 0!==n[r].tracks&&(n[r].tracks=[].concat.apply([],n[r].tracks).filter(function(t){return void 0!==t})),void 0!==n[r].tracks&&n[r].tracks.length>0&&e[r]&&(o[r]=n[r],o[r].accession=o.accession);o.getPublications()}),[2]})})},t.prototype.getdownloadModalData=function(t,n){var e=[];if("protvistaProtein"===t)for(var i=0;i<n[this.accession].tracks[0].data.length;i++)e.push(n[this.accession].tracks[0].data[i].accession);if("similarProtein"===t)for(i=0;i<n[this.accession].length;i++)for(var o=0,l=n[this.accession][i].representative_pdbs;o<l.length;o++)e.push(l[o].pdb_id);if("similarPDBs"===t)for(i=0;i<n[this.accession].length;i++)for(var r=0,a=n[this.accession][i].mapped_segment;r<a.length;r++)e.push(a[r].pdb_id);if("ligandsProtein"===t||"interactionsProtein"===t)for(var s=0,u=n;s<u.length;s++)e.push(u[s].substr(0,4))},t.prototype.addProtvista=function(t,n){var e=this.elm.nativeElement.querySelectorAll("."+t)[0];if(e){var i=this.renderer.createElement("protvista-pdb");this.renderer.setAttribute(i,"accession",this.accession),this.renderer.setAttribute(i,"custom-data","true"),this.renderer.setAttribute(i,"subscribe-events","false"),this.renderer.appendChild(e,i),this.renderer.setProperty(i,"viewerdata",n)}},t.prototype.getUniProtData=function(){var t=this;-1===this.accession.indexOf("PRO_")?this.commmonService.getApiData(this.accession,"uniProtApiUrl").subscribe(function(n){n&&400!==n[1]?t.title=n.protein.recommendedName?n.protein.recommendedName.fullName.value:n.protein.submittedName[0].fullName.value:t.noUniProt=!0}):this.commmonService.getApiData(this.getParentId(),"uniProtApiUrl").subscribe(function(n){return t.createProcessedSummaryData(n)})},t.prototype.createProcessedSummaryData=function(t){if(t&&400!==t[1]){for(var n=0;n<t.features.length;n++)if(t.features[n].ftId&&t.features[n].ftId.toUpperCase()===this.accession.toUpperCase()){this.title=t.features[n].description;break}this.parentAccession=t.accession}else this.noUniProt=!0},t.prototype.getParentId=function(){return this.parentProtein?this.parentProtein:this.accession},t.prototype.getPublications=function(){var t=this;-1===this.accession.toUpperCase().indexOf("PRO_")?this.commmonService.getApiData(this.accession,"publications").subscribe(function(n){return t.createPublicationData(n)}):this.commmonService.getApiData(this.getParentId(),"publications").subscribe(function(n){return t.createPublicationData(n)})},t.prototype.createPublicationData=function(t){404!==t[1]&&500!==t[1]?(this.rawPubs=t,this.createPrimaryPublicationData(void 0),this.createReviewPublicationData(void 0),this.createUniProtPublicationData(void 0),this.dataLoading=!1):this.dataLoading=!1},t.prototype.getPdbList=function(){var t=[];if(this.structureProtvistaData)for(var n=0;n<this.structureProtvistaData.tracks.length;n++)if(this.structureProtvistaData.tracks[n].label.indexOf("PDB Structures")>-1)for(var e=0;e<this.structureProtvistaData.tracks[n].data.length;e++)t.push(this.structureProtvistaData.tracks[n].data[e].accession);return t},t.prototype.createPrimaryPublicationData=function(t){if(this.rawPubs){var n=[],e=[],i=this.getPdbList(),o=[];o=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].primary_citation.Articles:this.rawPubs[this.accession].primary_citation.Articles;for(var l=0;l<o.length;l++)if("To be published"!==o[l].journal&&(!t||o[l].title.toLowerCase().indexOf(t.toLowerCase())>-1||o[l].pubmed_id&&o[l].pubmed_id.toLowerCase().indexOf(t.toLowerCase())>-1||o[l].pdb_ids&&o[l].pdb_ids.indexOf(t.toLowerCase())>-1))for(var r=0;r<o[l].pdb_ids.length;r++)if(i.indexOf(o[l].pdb_ids[r])>-1){var a={title:o[l].title,authors:o[l].authors,journal:o[l].journal,issue:o[l].issue,pages:o[l].pages,year:o[l].year,pubmed_id:o[l].pubmed_id,associated_pdbs:o[l].pdb_ids,doi:o[l].doi,citation_count:void 0};-1===n.indexOf(o[l].pubmed_id)&&(null!==o[l].pubmed_id&&n.push(o[l].pubmed_id),e.push(a));break}this.primaryPublications.publications=e}},t.prototype.createReviewPublicationData=function(t){if(this.rawPubs){var n,e;n=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].cited_by.Reviews:this.rawPubs[this.accession].cited_by.Reviews,e=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].appears_without_citation.Reviews:this.rawPubs[this.accession].appears_without_citation.Reviews;var i=this.parseReviewList(n,t),o=this.parseReviewList(e,t);this.reviewPublications.publications=i.concat(o)}},t.prototype.parseReviewList=function(t,n){for(var e=[],i=[],o=this.getPdbList(),l=0;l<t.length;l++)if(!n||t[l].title.toLowerCase().indexOf(n.toLowerCase())>-1||t[l].pubmed_id.toLowerCase().indexOf(n.toLowerCase())>-1||t[l].pdb_ids.indexOf(n.toLowerCase())>-1)for(var r=0;r<t[l].pdb_ids.length;r++)if(o.indexOf(t[l].pdb_ids[r])>-1){var a={title:t[l].title,authors:void 0,journal:void 0,issue:void 0,pages:void 0,year:void 0,pubmed_id:t[l].pubmed_id,associated_pdbs:t[l].pdb_ids,doi:void 0,citation_count:void 0};-1===e.indexOf(t[l].pubmed_id)&&(null!==t[l].pubmed_id&&e.push(t[l].pubmed_id),i.push(a))}return i},t.prototype.createUniProtPublicationData=function(t){if(this.rawPubs){var n=[],e=[],i=[];i=this.accession.toUpperCase().indexOf("PRO_")>-1?this.rawPubs[this.getParentId()].uniprot_publications.Articles:this.rawPubs[this.accession].uniprot_publications.Articles;for(var o=0;o<i.length;o++)if(!t||i[o].title.toLowerCase().indexOf(t.toLowerCase())>-1||i[o].pubmed_id.toLowerCase().indexOf(t.toLowerCase())>-1){var l={title:i[o].title,authors:i[o].authors,journal:i[o].journal,issue:i[o].issue,pages:i[o].pages,year:i[o].year,pubmed_id:i[o].pubmed_id,associated_pdbs:[],doi:i[o].doi,citation_count:i[o].cited_by_count};-1===n.indexOf(i[o].pubmed_id)&&(null!==i[o].pubmed_id&&n.push(i[o].pubmed_id),e.push(l))}this.uniprotPublications.publications=e}},t.prototype.setPubSearch=function(t){var n=t.srcElement.value;this.createPrimaryPublicationData(n),this.createUniProtPublicationData(n),this.createReviewPublicationData(n)},t.prototype.ngAfterViewInit=function(){$(document).foundation(),$(document).foundationExtendEBI()},t}(),Xs=function(){return function(){}}(),Ys=function(t){function n(){var e=t.call(this,"no elements in sequence")||this;return e.name="EmptyError",Object.setPrototypeOf(e,n.prototype),e}return o(n,t),n}(Error),Js=function(t){function n(n){var e=t.call(this)||this;return e._value=n,e}return o(n,t),Object.defineProperty(n.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),n.prototype._subscribe=function(n){var e=t.prototype._subscribe.call(this,n);return e&&!e.closed&&n.next(this._value),e},n.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new R;return this._value},n.prototype.next=function(n){t.prototype.next.call(this,this._value=n)},n}(j);function tu(){return st(1)}var nu=function(t){function n(){var e=t.call(this,"argument out of range")||this;return e.name="ArgumentOutOfRangeError",Object.setPrototypeOf(e,n.prototype),e}return o(n,t),n}(Error);function eu(t){return function(n){return 0===t?Jr():n.lift(new iu(t))}}var iu=function(){function t(t){if(this.total=t,this.total<0)throw new nu}return t.prototype.call=function(t,n){return n.subscribe(new ou(t,this.total))},t}(),ou=function(t){function n(n,e){var i=t.call(this,n)||this;return i.total=e,i.ring=new Array,i.count=0,i}return o(n,t),n.prototype._next=function(t){var n=this.ring,e=this.total,i=this.count++;n.length<e?n.push(t):n[i%e]=t},n.prototype._complete=function(){var t=this.destination,n=this.count;if(n>0)for(var e=this.count>=this.total?this.total:this.count,i=this.ring,o=0;o<e;o++){var l=n++%e;t.next(i[l])}t.complete()},n}(I),lu=function(t){return void 0===t&&(t=ru),oa({hasValue:!1,next:function(){this.hasValue=!0},complete:function(){if(!this.hasValue)throw t()}})};function ru(){return new Ys}function au(t){return void 0===t&&(t=null),function(n){return n.lift(new su(t))}}var su=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,n){return n.subscribe(new uu(t,this.defaultValue))},t}(),uu=function(t){function n(n,e){var i=t.call(this,n)||this;return i.defaultValue=e,i.isEmpty=!0,i}return o(n,t),n.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},n.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},n}(I);function cu(t,n){var e=arguments.length>=2;return function(i){return i.pipe(t?pa(function(n,e){return t(n,e,i)}):at,eu(1),e?au(n):lu(function(){return new Ys}))}}function pu(t,n){return function(e){return e.lift(new hu(t,n,e))}}var hu=function(){function t(t,n,e){this.predicate=t,this.thisArg=n,this.source=e}return t.prototype.call=function(t,n){return n.subscribe(new du(t,this.predicate,this.thisArg,this.source))},t}(),du=function(t){function n(n,e,i,o){var l=t.call(this,n)||this;return l.predicate=e,l.thisArg=i,l.source=o,l.index=0,l.thisArg=i||l,l}return o(n,t),n.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},n.prototype._next=function(t){var n=!1;try{n=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(e){return void this.destination.error(e)}n||this.notifyComplete(!1)},n.prototype._complete=function(){this.notifyComplete(!0)},n}(I);function fu(t){return function(n){return 0===t?Jr():n.lift(new gu(t))}}var gu=function(){function t(t){if(this.total=t,this.total<0)throw new nu}return t.prototype.call=function(t,n){return n.subscribe(new mu(t,this.total))},t}(),mu=function(t){function n(n,e){var i=t.call(this,n)||this;return i.total=e,i.count=0,i}return o(n,t),n.prototype._next=function(t){var n=this.total,e=++this.count;e<=n&&(this.destination.next(t),e===n&&(this.destination.complete(),this.unsubscribe()))},n}(I);function yu(t,n){var e=arguments.length>=2;return function(i){return i.pipe(t?pa(function(n,e){return t(n,e,i)}):at,fu(1),e?au(n):lu(function(){return new Ys}))}}function vu(t,n){var e=!1;return arguments.length>=2&&(e=!0),function(i){return i.lift(new bu(t,n,e))}}var bu=function(){function t(t,n,e){void 0===e&&(e=!1),this.accumulator=t,this.seed=n,this.hasSeed=e}return t.prototype.call=function(t,n){return n.subscribe(new _u(t,this.accumulator,this.seed,this.hasSeed))},t}(),_u=function(t){function n(n,e,i,o){var l=t.call(this,n)||this;return l.accumulator=e,l._seed=i,l.hasSeed=o,l.index=0,l}return o(n,t),Object.defineProperty(n.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),n.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},n.prototype._tryNext=function(t){var n,e=this.index++;try{n=this.accumulator(this.seed,t,e)}catch(i){this.destination.error(i)}this.seed=n,this.destination.next(n)},n}(I),wu=null;function xu(){return wu}var Pu,Cu={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Su={"\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"},Iu={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"};Ct.Node&&(Pu=Ct.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var ku,Ou=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.parse=function(t){throw new Error("parse not implemented")},n.makeCurrent=function(){var t;t=new n,wu||(wu=t)},n.prototype.hasProperty=function(t,n){return n in t},n.prototype.setProperty=function(t,n,e){t[n]=e},n.prototype.getProperty=function(t,n){return t[n]},n.prototype.invoke=function(t,n,e){var i;(i=t)[n].apply(i,c(e))},n.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},n.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},n.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},n.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(n.prototype,"attrToPropMap",{get:function(){return Cu},enumerable:!0,configurable:!0}),n.prototype.contains=function(t,n){return Pu.call(t,n)},n.prototype.querySelector=function(t,n){return t.querySelector(n)},n.prototype.querySelectorAll=function(t,n){return t.querySelectorAll(n)},n.prototype.on=function(t,n,e){t.addEventListener(n,e,!1)},n.prototype.onAndCancel=function(t,n,e){return t.addEventListener(n,e,!1),function(){t.removeEventListener(n,e,!1)}},n.prototype.dispatchEvent=function(t,n){t.dispatchEvent(n)},n.prototype.createMouseEvent=function(t){var n=this.getDefaultDocument().createEvent("MouseEvent");return n.initEvent(t,!0,!0),n},n.prototype.createEvent=function(t){var n=this.getDefaultDocument().createEvent("Event");return n.initEvent(t,!0,!0),n},n.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},n.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},n.prototype.getInnerHTML=function(t){return t.innerHTML},n.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},n.prototype.getOuterHTML=function(t){return t.outerHTML},n.prototype.nodeName=function(t){return t.nodeName},n.prototype.nodeValue=function(t){return t.nodeValue},n.prototype.type=function(t){return t.type},n.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},n.prototype.firstChild=function(t){return t.firstChild},n.prototype.nextSibling=function(t){return t.nextSibling},n.prototype.parentElement=function(t){return t.parentNode},n.prototype.childNodes=function(t){return t.childNodes},n.prototype.childNodesAsList=function(t){for(var n=t.childNodes,e=new Array(n.length),i=0;i<n.length;i++)e[i]=n[i];return e},n.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},n.prototype.appendChild=function(t,n){t.appendChild(n)},n.prototype.removeChild=function(t,n){t.removeChild(n)},n.prototype.replaceChild=function(t,n,e){t.replaceChild(n,e)},n.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},n.prototype.insertBefore=function(t,n,e){t.insertBefore(e,n)},n.prototype.insertAllBefore=function(t,n,e){e.forEach(function(e){return t.insertBefore(e,n)})},n.prototype.insertAfter=function(t,n,e){t.insertBefore(e,n.nextSibling)},n.prototype.setInnerHTML=function(t,n){t.innerHTML=n},n.prototype.getText=function(t){return t.textContent},n.prototype.setText=function(t,n){t.textContent=n},n.prototype.getValue=function(t){return t.value},n.prototype.setValue=function(t,n){t.value=n},n.prototype.getChecked=function(t){return t.checked},n.prototype.setChecked=function(t,n){t.checked=n},n.prototype.createComment=function(t){return this.getDefaultDocument().createComment(t)},n.prototype.createTemplate=function(t){var n=this.getDefaultDocument().createElement("template");return n.innerHTML=t,n},n.prototype.createElement=function(t,n){return(n=n||this.getDefaultDocument()).createElement(t)},n.prototype.createElementNS=function(t,n,e){return(e=e||this.getDefaultDocument()).createElementNS(t,n)},n.prototype.createTextNode=function(t,n){return(n=n||this.getDefaultDocument()).createTextNode(t)},n.prototype.createScriptTag=function(t,n,e){var i=(e=e||this.getDefaultDocument()).createElement("SCRIPT");return i.setAttribute(t,n),i},n.prototype.createStyleElement=function(t,n){var e=(n=n||this.getDefaultDocument()).createElement("style");return this.appendChild(e,this.createTextNode(t,n)),e},n.prototype.createShadowRoot=function(t){return t.createShadowRoot()},n.prototype.getShadowRoot=function(t){return t.shadowRoot},n.prototype.getHost=function(t){return t.host},n.prototype.clone=function(t){return t.cloneNode(!0)},n.prototype.getElementsByClassName=function(t,n){return t.getElementsByClassName(n)},n.prototype.getElementsByTagName=function(t,n){return t.getElementsByTagName(n)},n.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},n.prototype.addClass=function(t,n){t.classList.add(n)},n.prototype.removeClass=function(t,n){t.classList.remove(n)},n.prototype.hasClass=function(t,n){return t.classList.contains(n)},n.prototype.setStyle=function(t,n,e){t.style[n]=e},n.prototype.removeStyle=function(t,n){t.style[n]=""},n.prototype.getStyle=function(t,n){return t.style[n]},n.prototype.hasStyle=function(t,n,e){var i=this.getStyle(t,n)||"";return e?i==e:i.length>0},n.prototype.tagName=function(t){return t.tagName},n.prototype.attributeMap=function(t){for(var n=new Map,e=t.attributes,i=0;i<e.length;i++){var o=e.item(i);n.set(o.name,o.value)}return n},n.prototype.hasAttribute=function(t,n){return t.hasAttribute(n)},n.prototype.hasAttributeNS=function(t,n,e){return t.hasAttributeNS(n,e)},n.prototype.getAttribute=function(t,n){return t.getAttribute(n)},n.prototype.getAttributeNS=function(t,n,e){return t.getAttributeNS(n,e)},n.prototype.setAttribute=function(t,n,e){t.setAttribute(n,e)},n.prototype.setAttributeNS=function(t,n,e,i){t.setAttributeNS(n,e,i)},n.prototype.removeAttribute=function(t,n){t.removeAttribute(n)},n.prototype.removeAttributeNS=function(t,n,e){t.removeAttributeNS(n,e)},n.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},n.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},n.prototype.getDefaultDocument=function(){return document},n.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(n){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},n.prototype.getTitle=function(t){return t.title},n.prototype.setTitle=function(t,n){t.title=n||""},n.prototype.elementMatches=function(t,n){return!!this.isElementNode(t)&&(t.matches&&t.matches(n)||t.msMatchesSelector&&t.msMatchesSelector(n)||t.webkitMatchesSelector&&t.webkitMatchesSelector(n))},n.prototype.isTemplateElement=function(t){return this.isElementNode(t)&&"TEMPLATE"===t.nodeName},n.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},n.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},n.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},n.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},n.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},n.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},n.prototype.adoptNode=function(t){return document.adoptNode(t)},n.prototype.getHref=function(t){return t.getAttribute("href")},n.prototype.getEventKey=function(t){var n=t.key;if(null==n){if(null==(n=t.keyIdentifier))return"Unidentified";n.startsWith("U+")&&(n=String.fromCharCode(parseInt(n.substring(2),16)),3===t.location&&Iu.hasOwnProperty(n)&&(n=Iu[n]))}return Su[n]||n},n.prototype.getGlobalEventTarget=function(t,n){return"window"===n?window:"document"===n?t:"body"===n?t.body:null},n.prototype.getHistory=function(){return window.history},n.prototype.getLocation=function(){return window.location},n.prototype.getBaseHref=function(t){var n,e=Eu||(Eu=document.querySelector("base"))?Eu.getAttribute("href"):null;return null==e?null:(n=e,ku||(ku=document.createElement("a")),ku.setAttribute("href",n),"/"===ku.pathname.charAt(0)?ku.pathname:"/"+ku.pathname)},n.prototype.resetBaseElement=function(){Eu=null},n.prototype.getUserAgent=function(){return window.navigator.userAgent},n.prototype.setData=function(t,n,e){this.setAttribute(t,"data-"+n,e)},n.prototype.getData=function(t,n){return this.getAttribute(t,"data-"+n)},n.prototype.getComputedStyle=function(t){return getComputedStyle(t)},n.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},n.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},n.prototype.supportsCookies=function(){return!0},n.prototype.getCookie=function(t){return Ea(document.cookie,t)},n.prototype.setCookie=function(t,n){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(n)},n}(function(t){function n(){var n=t.call(this)||this;n._animationPrefix=null,n._transitionEnd=null;try{var e=n.createElement("div",document);if(null!=n.getStyle(e,"animationName"))n._animationPrefix="";else for(var i=["Webkit","Moz","O","ms"],o=0;o<i.length;o++)if(null!=n.getStyle(e,i[o]+"AnimationName")){n._animationPrefix="-"+i[o].toLowerCase()+"-";break}var l={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(l).forEach(function(t){null!=n.getStyle(e,t)&&(n._transitionEnd=l[t])})}catch(r){n._animationPrefix=null,n._transitionEnd=null}return n}return o(n,t),n.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},n.prototype.resolveAndSetHref=function(t,n,e){t.href=null==e?n:n+"/../"+e},n.prototype.supportsDOMEvents=function(){return!0},n.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},n.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},n.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},n.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},n}(function(){function t(){this.resourceLoaderType=null}return Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t}())),Eu=null,Du=Wa;function Au(){return!!window.history.pushState}var Mu=function(t){function n(n){var e=t.call(this)||this;return e._doc=n,e._init(),e}var e;return o(n,t),n.prototype._init=function(){this.location=xu().getLocation(),this._history=xu().getHistory()},n.prototype.getBaseHrefFromDOM=function(){return xu().getBaseHref(this._doc)},n.prototype.onPopState=function(t){xu().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},n.prototype.onHashChange=function(t){xu().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(n.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),n.prototype.pushState=function(t,n,e){Au()?this._history.pushState(t,n,e):this.location.hash=e},n.prototype.replaceState=function(t,n,e){Au()?this._history.replaceState(t,n,e):this.location.hash=e},n.prototype.forward=function(){this._history.forward()},n.prototype.back=function(){this._history.back()},r([(e=Tt(Du),function(t,n){e(t,n,0)}),a("design:paramtypes",[Object])],n)}(fa),Tu=new vt("TRANSITION_ID"),Ru=[{provide:vn,useFactory:function(t,n,e){return function(){e.get(bn).donePromise.then(function(){var e=xu();Array.prototype.slice.apply(e.querySelectorAll(n,"style[ng-transition]")).filter(function(n){return e.getAttribute(n,"ng-transition")===t}).forEach(function(t){return e.remove(t)})})}},deps:[Tu,Du,Ft],multi:!0}],Lu=function(){function t(){}return t.init=function(){var n;n=new t,oe=n},t.prototype.addToWindow=function(t){Ct.getAngularTestability=function(n,e){void 0===e&&(e=!0);var i=t.findTestabilityInTree(n,e);if(null==i)throw new Error("Could not find testability for element.");return i},Ct.getAllAngularTestabilities=function(){return t.getAllTestabilities()},Ct.getAllAngularRootElements=function(){return t.getAllRootElements()},Ct.frameworkStabilizers||(Ct.frameworkStabilizers=[]),Ct.frameworkStabilizers.push(function(t){var n=Ct.getAllAngularTestabilities(),e=n.length,i=!1,o=function(n){i=i||n,0==--e&&t(i)};n.forEach(function(t){t.whenStable(o)})})},t.prototype.findTestabilityInTree=function(t,n,e){if(null==n)return null;var i=t.getTestability(n);return null!=i?i:e?xu().isShadowRoot(n)?this.findTestabilityInTree(t,xu().getHost(n),!0):this.findTestabilityInTree(t,xu().parentElement(n),!0):null},t}();function Nu(t,n){"undefined"!=typeof COMPILED&&COMPILED||((Ct.ng=Ct.ng||{})[t]=n)}var ju={ApplicationRef:fe,NgZone:Wn};function Vu(t){return Re(t)}var Bu=new vt("EventManagerPlugins"),Uu=function(){function t(t,n){var e=this;this._zone=n,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=e}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,n,e){return this._findPluginFor(n).addEventListener(t,n,e)},t.prototype.addGlobalEventListener=function(t,n,e){return this._findPluginFor(n).addGlobalEventListener(t,n,e)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var n=this._eventNameToPlugin.get(t);if(n)return n;for(var e=this._plugins,i=0;i<e.length;i++){var o=e[i];if(o.supports(t))return this._eventNameToPlugin.set(t,o),o}throw new Error("No event manager plugin found for event "+t)},t}(),Fu=function(){function t(t){this._doc=t}return t.prototype.addGlobalEventListener=function(t,n,e){var i=xu().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+n);return this.addEventListener(i,n,e)},t}(),zu=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var n=this,e=new Set;t.forEach(function(t){n._stylesSet.has(t)||(n._stylesSet.add(t),e.add(t))}),this.onStylesAdded(e)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}(),Hu=function(t){function n(n){var e=t.call(this)||this;return e._doc=n,e._hostNodes=new Set,e._styleNodes=new Set,e._hostNodes.add(n.head),e}return o(n,t),n.prototype._addStylesToHost=function(t,n){var e=this;t.forEach(function(t){var i=e._doc.createElement("style");i.textContent=t,e._styleNodes.add(n.appendChild(i))})},n.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},n.prototype.removeHost=function(t){this._hostNodes.delete(t)},n.prototype.onStylesAdded=function(t){var n=this;this._hostNodes.forEach(function(e){return n._addStylesToHost(t,e)})},n.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return xu().remove(t)})},n}(zu),qu={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/"},$u=/%COMP%/g,Gu="_nghost-%COMP%",Qu="_ngcontent-%COMP%";function Wu(t,n,e){for(var i=0;i<n.length;i++){var o=n[i];Array.isArray(o)?Wu(t,o,e):(o=o.replace($u,t),e.push(o))}return e}function Ku(t){return function(n){!1===t(n)&&(n.preventDefault(),n.returnValue=!1)}}var Zu=function(){function t(t,n){this.eventManager=t,this.sharedStylesHost=n,this.rendererByCompId=new Map,this.defaultRenderer=new Xu(t)}return t.prototype.createRenderer=function(t,n){if(!t||!n)return this.defaultRenderer;switch(n.encapsulation){case rn.Emulated:var e=this.rendererByCompId.get(n.id);return e||(e=new nc(this.eventManager,this.sharedStylesHost,n),this.rendererByCompId.set(n.id,e)),e.applyToHost(t),e;case rn.Native:case rn.ShadowDom:return new ec(this.eventManager,this.sharedStylesHost,t,n);default:if(!this.rendererByCompId.has(n.id)){var i=Wu(n.id,n.styles,[]);this.sharedStylesHost.addStyles(i),this.rendererByCompId.set(n.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}(),Xu=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,n){return n?document.createElementNS(qu[n],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,n){t.appendChild(n)},t.prototype.insertBefore=function(t,n,e){t&&t.insertBefore(n,e)},t.prototype.removeChild=function(t,n){t&&t.removeChild(n)},t.prototype.selectRootElement=function(t){var n="string"==typeof t?document.querySelector(t):t;if(!n)throw new Error('The selector "'+t+'" did not match any elements');return n.textContent="",n},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,n,e,i){if(i){n=i+":"+n;var o=qu[i];o?t.setAttributeNS(o,n,e):t.setAttribute(n,e)}else t.setAttribute(n,e)},t.prototype.removeAttribute=function(t,n,e){if(e){var i=qu[e];i?t.removeAttributeNS(i,n):t.removeAttribute(e+":"+n)}else t.removeAttribute(n)},t.prototype.addClass=function(t,n){t.classList.add(n)},t.prototype.removeClass=function(t,n){t.classList.remove(n)},t.prototype.setStyle=function(t,n,e,i){i&ve.DashCase?t.style.setProperty(n,e,i&ve.Important?"important":""):t.style[n]=e},t.prototype.removeStyle=function(t,n,e){e&ve.DashCase?t.style.removeProperty(n):t.style[n]=""},t.prototype.setProperty=function(t,n,e){Ju(n,"property"),t[n]=e},t.prototype.setValue=function(t,n){t.nodeValue=n},t.prototype.listen=function(t,n,e){return Ju(n,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,n,Ku(e)):this.eventManager.addEventListener(t,n,Ku(e))},t}(),Yu="@".charCodeAt(0);function Ju(t,n){if(t.charCodeAt(0)===Yu)throw new Error("Found the synthetic "+n+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}var tc,nc=function(t){function n(n,e,i){var o=t.call(this,n)||this;o.component=i;var l=Wu(i.id,i.styles,[]);return e.addStyles(l),o.contentAttr=Qu.replace($u,i.id),o.hostAttr=Gu.replace($u,i.id),o}return o(n,t),n.prototype.applyToHost=function(n){t.prototype.setAttribute.call(this,n,this.hostAttr,"")},n.prototype.createElement=function(n,e){var i=t.prototype.createElement.call(this,n,e);return t.prototype.setAttribute.call(this,i,this.contentAttr,""),i},n}(Xu),ec=function(t){function n(n,e,i,o){var l=t.call(this,n)||this;l.sharedStylesHost=e,l.hostEl=i,l.component=o,l.shadowRoot=o.encapsulation===rn.ShadowDom?i.attachShadow({mode:"open"}):i.createShadowRoot(),l.sharedStylesHost.addHost(l.shadowRoot);for(var r=Wu(o.id,o.styles,[]),a=0;a<r.length;a++){var s=document.createElement("style");s.textContent=r[a],l.shadowRoot.appendChild(s)}return l}return o(n,t),n.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},n.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},n.prototype.appendChild=function(n,e){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(n),e)},n.prototype.insertBefore=function(n,e,i){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(n),e,i)},n.prototype.removeChild=function(n,e){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(n),e)},n.prototype.parentNode=function(n){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(n)))},n}(Xu),ic="undefined"!=typeof Zone&&Zone.__symbol__||function(t){return"__zone_symbol__"+t},oc=ic("addEventListener"),lc=ic("removeEventListener"),rc={},ac="__zone_symbol__propagationStopped";"undefined"!=typeof Zone&&Zone[ic("BLACK_LISTED_EVENTS")]&&(tc={});var sc=function(t){return!!tc&&tc.hasOwnProperty(t)},uc=function(t){var n=rc[t.type];if(n){var e=this[n];if(e){var i=[t];if(1===e.length)return(r=e[0]).zone!==Zone.current?r.zone.run(r.handler,this,i):r.handler.apply(this,i);for(var o=e.slice(),l=0;l<o.length&&!0!==t[ac];l++){var r;(r=o[l]).zone!==Zone.current?r.zone.run(r.handler,this,i):r.handler.apply(this,i)}}}},cc=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.ngZone=e,i&&Ya(i)||o.patchEvent(),o}return o(n,t),n.prototype.patchEvent=function(){if("undefined"!=typeof Event&&Event&&Event.prototype&&!Event.prototype.__zone_symbol__stopImmediatePropagation){var t=Event.prototype.__zone_symbol__stopImmediatePropagation=Event.prototype.stopImmediatePropagation;Event.prototype.stopImmediatePropagation=function(){this&&(this[ac]=!0),t&&t.apply(this,arguments)}}},n.prototype.supports=function(t){return!0},n.prototype.addEventListener=function(t,n,e){var i=this,o=e;if(!t[oc]||Wn.isInAngularZone()&&!sc(n))t.addEventListener(n,o,!1);else{var l=rc[n];l||(l=rc[n]=ic("ANGULAR"+n+"FALSE"));var r=t[l],a=r&&r.length>0;r||(r=t[l]=[]);var s=sc(n)?Zone.root:Zone.current;if(0===r.length)r.push({zone:s,handler:o});else{for(var u=!1,c=0;c<r.length;c++)if(r[c].handler===o){u=!0;break}u||r.push({zone:s,handler:o})}a||t[oc](n,uc,!1)}return function(){return i.removeEventListener(t,n,o)}},n.prototype.removeEventListener=function(t,n,e){var i=t[lc];if(!i)return t.removeEventListener.apply(t,[n,e,!1]);var o=rc[n],l=o&&t[o];if(!l)return t.removeEventListener.apply(t,[n,e,!1]);for(var r=!1,a=0;a<l.length;a++)if(l[a].handler===e){r=!0,l.splice(a,1);break}r?0===l.length&&i.apply(t,[n,uc,!1]):t.removeEventListener.apply(t,[n,e,!1])},n}(Fu),pc={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},hc=new vt("HammerGestureConfig"),dc=new vt("HammerLoader"),fc=function(){function t(){this.events=[],this.overrides={}}return t.prototype.buildHammer=function(t){var n=new Hammer(t,this.options);for(var e in n.get("pinch").set({enable:!0}),n.get("rotate").set({enable:!0}),this.overrides)n.get(e).set(this.overrides[e]);return n},t}(),gc=function(t){function n(n,e,i,o){var l=t.call(this,n)||this;return l._config=e,l.console=i,l.loader=o,l}return o(n,t),n.prototype.supports=function(t){return!(!pc.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t)||!window.Hammer&&!this.loader&&(this.console.warn('The "'+t+'" event cannot be bound because Hammer.JS is not loaded and no custom loader has been specified.'),1))},n.prototype.addEventListener=function(t,n,e){var i=this,o=this.manager.getZone();if(n=n.toLowerCase(),!window.Hammer&&this.loader){var l=!1,r=function(){l=!0};return this.loader().then(function(){if(!window.Hammer)return i.console.warn("The custom HAMMER_LOADER completed, but Hammer.JS is not present."),void(r=function(){});l||(r=i.addEventListener(t,n,e))}).catch(function(){i.console.warn('The "'+n+'" event cannot be bound because the custom Hammer.JS loader failed.'),r=function(){}}),function(){r()}}return o.runOutsideAngular(function(){var l=i._config.buildHammer(t),r=function(t){o.runGuarded(function(){e(t)})};return l.on(n,r),function(){l.off(n,r),"function"==typeof l.destroy&&l.destroy()}})},n.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},n}(Fu),mc=["alt","control","meta","shift"],yc={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},vc=function(t){function n(n){return t.call(this,n)||this}var e;return o(n,t),e=n,n.prototype.supports=function(t){return null!=e.parseEventName(t)},n.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),l=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return xu().onAndCancel(t,o.domEventName,l)})},n.parseEventName=function(t){var n=t.toLowerCase().split("."),i=n.shift();if(0===n.length||"keydown"!==i&&"keyup"!==i)return null;var o=e._normalizeKey(n.pop()),l="";if(mc.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),l+=t+".")}),l+=o,0!=n.length||0===o.length)return null;var r={};return r.domEventName=i,r.fullKey=l,r},n.getEventFullKey=function(t){var n="",e=xu().getEventKey(t);return" "===(e=e.toLowerCase())?e="space":"."===e&&(e="dot"),mc.forEach(function(i){i!=e&&(0,yc[i])(t)&&(n+=i+".")}),n+=e},n.eventCallback=function(t,n,i){return function(o){e.getEventFullKey(o)===t&&i.runGuarded(function(){return n(o)})}},n._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},n}(Fu),bc=function(){return function(){}}(),_c=function(t){function n(n){var e=t.call(this)||this;return e._doc=n,e}return o(n,t),n.prototype.sanitize=function(t,n){if(null==n)return null;switch(t){case Di.NONE:return n;case Di.HTML:return n instanceof xc?n.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(n,"HTML"),function(t,n){var e=null;try{fi=fi||new si(t);var i=n?String(n):"";e=fi.getInertBodyElement(i);var o=5,l=i;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,i=l,l=e.innerHTML,e=fi.getInertBodyElement(i)}while(i!==l);var r=new Pi,a=r.sanitizeChildren(ki(e)||e);return se()&&r.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}finally{if(e)for(var s=ki(e)||e;s.firstChild;)s.removeChild(s.firstChild)}}(this._doc,String(n)));case Di.STYLE:return n instanceof Pc?n.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(n,"Style"),function(t){if(!(t=String(t).trim()))return"";var n=t.match(Ei);return n&&pi(n[1])===n[1]||t.match(Oi)&&function(t){for(var n=!0,e=!0,i=0;i<t.length;i++){var o=t.charAt(i);"'"===o&&e?n=!n:'"'===o&&n&&(e=!e)}return n&&e}(t)?t:(se()&&console.warn("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}(n));case Di.SCRIPT:if(n instanceof Cc)return n.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(n,"Script"),new Error("unsafe value used in a script context");case Di.URL:return n instanceof Ic||n instanceof Sc?n.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(n,"URL"),pi(String(n)));case Di.RESOURCE_URL:if(n instanceof Ic)return n.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(n,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},n.prototype.checkNotSafeValue=function(t,n){if(t instanceof wc)throw new Error("Required a safe "+n+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},n.prototype.bypassSecurityTrustHtml=function(t){return new xc(t)},n.prototype.bypassSecurityTrustStyle=function(t){return new Pc(t)},n.prototype.bypassSecurityTrustScript=function(t){return new Cc(t)},n.prototype.bypassSecurityTrustUrl=function(t){return new Sc(t)},n.prototype.bypassSecurityTrustResourceUrl=function(t){return new Ic(t)},n}(bc),wc=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),xc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getTypeName=function(){return"HTML"},n}(wc),Pc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getTypeName=function(){return"Style"},n}(wc),Cc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getTypeName=function(){return"Script"},n}(wc),Sc=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getTypeName=function(){return"URL"},n}(wc),Ic=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.getTypeName=function(){return"ResourceURL"},n}(wc),kc=ce(ei,"browser",[{provide:Cn,useValue:Ka},{provide:Pn,useValue:function(){Ou.makeCurrent(),Lu.init()},multi:!0},{provide:fa,useClass:Mu,deps:[Du]},{provide:Du,useFactory:function(){return document},deps:[]}]);function Oc(){return new fn}var Ec=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}var n;return n=t,t.withServerTransition=function(t){return{ngModule:n,providers:[{provide:_n,useValue:t.appId},{provide:Tu,useExisting:_n},Ru]}},t}();"undefined"!=typeof window&&window;var Dc=function(){return function(t,n){this.id=t,this.url=n}}(),Ac=function(t){function n(n,e,i,o){void 0===i&&(i="imperative"),void 0===o&&(o=null);var l=t.call(this,n,e)||this;return l.navigationTrigger=i,l.restoredState=o,l}return o(n,t),n.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},n}(Dc),Mc=function(t){function n(n,e,i){var o=t.call(this,n,e)||this;return o.urlAfterRedirects=i,o}return o(n,t),n.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},n}(Dc),Tc=function(t){function n(n,e,i){var o=t.call(this,n,e)||this;return o.reason=i,o}return o(n,t),n.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},n}(Dc),Rc=function(t){function n(n,e,i){var o=t.call(this,n,e)||this;return o.error=i,o}return o(n,t),n.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},n}(Dc),Lc=function(t){function n(n,e,i,o){var l=t.call(this,n,e)||this;return l.urlAfterRedirects=i,l.state=o,l}return o(n,t),n.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},n}(Dc),Nc=function(t){function n(n,e,i,o){var l=t.call(this,n,e)||this;return l.urlAfterRedirects=i,l.state=o,l}return o(n,t),n.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},n}(Dc),jc=function(t){function n(n,e,i,o,l){var r=t.call(this,n,e)||this;return r.urlAfterRedirects=i,r.state=o,r.shouldActivate=l,r}return o(n,t),n.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},n}(Dc),Vc=function(t){function n(n,e,i,o){var l=t.call(this,n,e)||this;return l.urlAfterRedirects=i,l.state=o,l}return o(n,t),n.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},n}(Dc),Bc=function(t){function n(n,e,i,o){var l=t.call(this,n,e)||this;return l.urlAfterRedirects=i,l.state=o,l}return o(n,t),n.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},n}(Dc),Uc=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Fc=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),zc=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Hc=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),qc=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),$c=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Gc=function(){function t(t,n,e){this.routerEvent=t,this.position=n,this.anchor=e}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Qc=function(){return function(){}}(),Wc="primary",Kc=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n[0]:n}return null},t.prototype.getAll=function(t){if(this.has(t)){var n=this.params[t];return Array.isArray(n)?n:[n]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Zc(t){return new Kc(t)}function Xc(t,n,e){var i=e.path.split("/");if(i.length>t.length)return null;if("full"===e.pathMatch&&(n.hasChildren()||i.length<t.length))return null;for(var o={},l=0;l<i.length;l++){var r=i[l],a=t[l];if(r.startsWith(":"))o[r.substring(1)]=a;else if(r!==a.path)return null}return{consumed:t.slice(0,i.length),posParams:o}}var Yc=function(){return function(t,n){this.routes=t,this.module=n}}();function Jc(t,n){void 0===n&&(n="");for(var e=0;e<t.length;e++){var i=t[e];tp(i,np(n,i))}}function tp(t,n){if(!t)throw new Error("\n Invalid configuration of route '"+n+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+n+"': Array cannot be specified");if(!t.component&&!t.children&&!t.loadChildren&&t.outlet&&t.outlet!==Wc)throw new Error("Invalid configuration of route '"+n+"': a componentless route without children or loadChildren cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+n+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+n+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+n+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+n+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+n+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+n+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+n+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+n+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch)throw new Error("Invalid configuration of route '{path: \""+n+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.");if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+n+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&Jc(t.children,n)}function np(t,n){return n?t||n.path?t&&!n.path?t+"/":!t&&n.path?n.path:t+"/"+n.path:"":t}function ep(t){var n=t.children&&t.children.map(ep),e=n?l({},t,{children:n}):l({},t);return!e.component&&(n||e.loadChildren)&&e.outlet&&e.outlet!==Wc&&(e.component=Qc),e}function ip(t,n){var e,i=Object.keys(t),o=Object.keys(n);if(i.length!=o.length)return!1;for(var l=0;l<i.length;l++)if(t[e=i[l]]!==n[e])return!1;return!0}function op(t){return Array.prototype.concat.apply([],t)}function lp(t){return t.length>0?t[t.length-1]:null}function rp(t,n){for(var e in t)t.hasOwnProperty(e)&&n(t[e],e)}function ap(t){return t.pipe(st(),pu(function(t){return!0===t}))}function sp(t){return yn(t)?t:mn(t)?it(Promise.resolve(t)):ia(t)}function up(t,n,e){return e?function(t,n){return ip(t,n)}(t.queryParams,n.queryParams)&&function t(n,e){if(!dp(n.segments,e.segments))return!1;if(n.numberOfChildren!==e.numberOfChildren)return!1;for(var i in e.children){if(!n.children[i])return!1;if(!t(n.children[i],e.children[i]))return!1}return!0}(t.root,n.root):function(t,n){return Object.keys(n).length<=Object.keys(t).length&&Object.keys(n).every(function(e){return n[e]===t[e]})}(t.queryParams,n.queryParams)&&function t(n,e){return function n(e,i,o){if(e.segments.length>o.length)return!!dp(r=e.segments.slice(0,o.length),o)&&!i.hasChildren();if(e.segments.length===o.length){if(!dp(e.segments,o))return!1;for(var l in i.children){if(!e.children[l])return!1;if(!t(e.children[l],i.children[l]))return!1}return!0}var r=o.slice(0,e.segments.length),a=o.slice(e.segments.length);return!!dp(e.segments,r)&&!!e.children[Wc]&&n(e.children[Wc],i,a)}(n,e,e.segments)}(t.root,n.root)}var cp=function(){function t(t,n,e){this.root=t,this.queryParams=n,this.fragment=e}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Zc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return yp.serialize(this)},t}(),pp=function(){function t(t,n){var e=this;this.segments=t,this.children=n,this.parent=null,rp(n,function(t,n){return t.parent=e})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return vp(this)},t}(),hp=function(){function t(t,n){this.path=t,this.parameters=n}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Zc(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Cp(this)},t}();function dp(t,n){return t.length===n.length&&t.every(function(t,e){return t.path===n[e].path})}function fp(t,n){var e=[];return rp(t.children,function(t,i){i===Wc&&(e=e.concat(n(t,i)))}),rp(t.children,function(t,i){i!==Wc&&(e=e.concat(n(t,i)))}),e}var gp=function(){return function(){}}(),mp=function(){function t(){}return t.prototype.parse=function(t){var n=new Ep(t);return new cp(n.parseRootSegment(),n.parseQueryParams(),n.parseFragment())},t.prototype.serialize=function(t){var n,e;return"/"+function t(n,e){if(!n.hasChildren())return vp(n);if(e){var i=n.children[Wc]?t(n.children[Wc],!1):"",o=[];return rp(n.children,function(n,e){e!==Wc&&o.push(e+":"+t(n,!1))}),o.length>0?i+"("+o.join("//")+")":i}var l=fp(n,function(e,i){return i===Wc?[t(n.children[Wc],!1)]:[i+":"+t(e,!1)]});return vp(n)+"/("+l.join("//")+")"}(t.root,!0)+(n=t.queryParams,(e=Object.keys(n).map(function(t){var e=n[t];return Array.isArray(e)?e.map(function(n){return _p(t)+"="+_p(n)}).join("&"):_p(t)+"="+_p(e)})).length?"?"+e.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),yp=new mp;function vp(t){return t.segments.map(function(t){return Cp(t)}).join("/")}function bp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function _p(t){return bp(t).replace(/%3B/gi,";")}function wp(t){return bp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function xp(t){return decodeURIComponent(t)}function Pp(t){return xp(t.replace(/\+/g,"%20"))}function Cp(t){return""+wp(t.path)+(n=t.parameters,Object.keys(n).map(function(t){return";"+wp(t)+"="+wp(n[t])}).join(""));var n}var Sp=/^[^\/()?;=#]+/;function Ip(t){var n=t.match(Sp);return n?n[0]:""}var kp=/^[^=?&#]+/,Op=/^[^?&#]+/,Ep=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new pp([],{}):new pp([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decodeURIComponent(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var n={};this.peekStartsWith("/(")&&(this.capture("/"),n=this.parseParens(!0));var e={};return this.peekStartsWith("(")&&(e=this.parseParens(!1)),(t.length>0||Object.keys(n).length>0)&&(e[Wc]=new pp(t,n)),e},t.prototype.parseSegment=function(){var t=Ip(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new hp(xp(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var n=Ip(this.remaining);if(n){this.capture(n);var e="";if(this.consumeOptional("=")){var i=Ip(this.remaining);i&&this.capture(e=i)}t[xp(n)]=xp(e)}},t.prototype.parseQueryParam=function(t){var n,e=(n=this.remaining.match(kp))?n[0]:"";if(e){this.capture(e);var i="";if(this.consumeOptional("=")){var o=function(t){var n=t.match(Op);return n?n[0]:""}(this.remaining);o&&this.capture(i=o)}var l=Pp(e),r=Pp(i);if(t.hasOwnProperty(l)){var a=t[l];Array.isArray(a)||(t[l]=a=[a]),a.push(r)}else t[l]=r}},t.prototype.parseParens=function(t){var n={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var e=Ip(this.remaining),i=this.remaining[e.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;e.indexOf(":")>-1?(o=e.substr(0,e.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=Wc);var l=this.parseChildren();n[o]=1===Object.keys(l).length?l[Wc]:new pp([],l),this.consumeOptional("//")}return n},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),Dp=function(){return function(t){this.segmentGroup=t||null}}(),Ap=function(){return function(t){this.urlTree=t}}();function Mp(t){return new M(function(n){return n.error(new Dp(t))})}function Tp(t){return new M(function(n){return n.error(new Ap(t))})}function Rp(t){return new M(function(n){return n.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var Lp=function(){function t(t,n,e,i,o){this.configLoader=n,this.urlSerializer=e,this.urlTree=i,this.config=o,this.allowRedirects=!0,this.ngModule=t.get(Un)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,Wc).pipe(J(function(n){return t.createUrlTree(n,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(aa(function(n){if(n instanceof Ap)return t.allowRedirects=!1,t.match(n.urlTree);if(n instanceof Dp)throw t.noMatchError(n);throw n}))},t.prototype.match=function(t){var n=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,Wc).pipe(J(function(e){return n.createUrlTree(e,t.queryParams,t.fragment)})).pipe(aa(function(t){if(t instanceof Dp)throw n.noMatchError(t);throw t}))},t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,n,e){var i,o=t.segments.length>0?new pp([],((i={})[Wc]=t,i)):t;return new cp(o,n,e)},t.prototype.expandSegmentGroup=function(t,n,e,i){return 0===e.segments.length&&e.hasChildren()?this.expandChildren(t,n,e).pipe(J(function(t){return new pp([],t)})):this.expandSegment(t,e,n,e.segments,i,!0)},t.prototype.expandChildren=function(t,n,e){var i=this;return function(e,o){if(0===Object.keys(e).length)return ia({});var l=[],r=[],a={};return rp(e,function(e,o){var s,u,c=(s=o,u=e,i.expandSegmentGroup(t,n,u,s)).pipe(J(function(t){return a[o]=t}));o===Wc?l.push(c):r.push(c)}),ia.apply(null,l.concat(r)).pipe(tu(),cu(),J(function(){return a}))}(e.children)},t.prototype.expandSegment=function(t,n,e,i,o,l){var r=this;return ia.apply(void 0,c(e)).pipe(J(function(a){return r.expandSegmentAgainstRoute(t,n,e,a,i,o,l).pipe(aa(function(t){if(t instanceof Dp)return ia(null);throw t}))}),tu(),yu(function(t){return!!t}),aa(function(t,e){if(t instanceof Ys||"EmptyError"===t.name){if(r.noLeftoversInUrl(n,i,o))return ia(new pp([],{}));throw new Dp(n)}throw t}))},t.prototype.noLeftoversInUrl=function(t,n,e){return 0===n.length&&!t.children[e]},t.prototype.expandSegmentAgainstRoute=function(t,n,e,i,o,l,r){return Bp(i)!==l?Mp(n):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,n,i,o):r&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,n,e,i,o,l):Mp(n)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,n,e,i,o,l){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,e,i,l):this.expandRegularSegmentAgainstRouteUsingRedirect(t,n,e,i,o,l)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,n,e,i){var o=this,l=this.applyRedirectCommands([],e.redirectTo,{});return e.redirectTo.startsWith("/")?Tp(l):this.lineralizeSegments(e,l).pipe(ot(function(e){var l=new pp(e,{});return o.expandSegment(t,l,n,e,i,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,n,e,i,o,l){var r=this,a=Np(n,i,o),s=a.consumedSegments,u=a.lastChild,c=a.positionalParamSegments;if(!a.matched)return Mp(n);var p=this.applyRedirectCommands(s,i.redirectTo,c);return i.redirectTo.startsWith("/")?Tp(p):this.lineralizeSegments(i,p).pipe(ot(function(i){return r.expandSegment(t,n,e,i.concat(o.slice(u)),l,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,n,e,i){var o=this;if("**"===e.path)return e.loadChildren?this.configLoader.load(t.injector,e).pipe(J(function(t){return e._loadedConfig=t,new pp(i,{})})):ia(new pp(i,{}));var r=Np(n,e,i),a=r.consumedSegments,u=r.lastChild;if(!r.matched)return Mp(n);var c=i.slice(u);return this.getChildConfig(t,e).pipe(ot(function(t){var e=t.module,i=t.routes,r=function(t,n,e,i){return e.length>0&&function(t,n,e){return i.some(function(e){return Vp(t,n,e)&&Bp(e)!==Wc})}(t,e)?{segmentGroup:jp(new pp(n,function(t,n){var e,i,o={};o[Wc]=n;try{for(var l=s(t),r=l.next();!r.done;r=l.next()){var a=r.value;""===a.path&&Bp(a)!==Wc&&(o[Bp(a)]=new pp([],{}))}}catch(u){e={error:u}}finally{try{r&&!r.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return o}(i,new pp(e,t.children)))),slicedSegments:[]}:0===e.length&&function(t,n,e){return i.some(function(e){return Vp(t,n,e)})}(t,e)?{segmentGroup:jp(new pp(t.segments,function(t,n,e,i){var o,r,a={};try{for(var u=s(e),c=u.next();!c.done;c=u.next()){var p=c.value;Vp(t,n,p)&&!i[Bp(p)]&&(a[Bp(p)]=new pp([],{}))}}catch(h){o={error:h}}finally{try{c&&!c.done&&(r=u.return)&&r.call(u)}finally{if(o)throw o.error}}return l({},i,a)}(t,e,i,t.children))),slicedSegments:e}:{segmentGroup:t,slicedSegments:e}}(n,a,c,i),u=r.segmentGroup,p=r.slicedSegments;return 0===p.length&&u.hasChildren()?o.expandChildren(e,i,u).pipe(J(function(t){return new pp(a,t)})):0===i.length&&0===p.length?ia(new pp(a,{})):o.expandSegment(e,u,i,p,Wc,!0).pipe(J(function(t){return new pp(a.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,n){var e=this;return n.children?ia(new Yc(n.children,t)):n.loadChildren?void 0!==n._loadedConfig?ia(n._loadedConfig):function(t,n){var e=n.canLoad;return e&&0!==e.length?ap(it(e).pipe(J(function(e){var i=t.get(e);return sp(i.canLoad?i.canLoad(n):i(n))}))):ia(!0)}(t.injector,n).pipe(ot(function(i){return i?e.configLoader.load(t.injector,n).pipe(J(function(t){return n._loadedConfig=t,t})):function(t){return new M(function(n){return n.error(((e=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,e));var e})}(n)})):ia(new Yc([],t))},t.prototype.lineralizeSegments=function(t,n){for(var e=[],i=n.root;;){if(e=e.concat(i.segments),0===i.numberOfChildren)return ia(e);if(i.numberOfChildren>1||!i.children[Wc])return Rp(t.redirectTo);i=i.children[Wc]}},t.prototype.applyRedirectCommands=function(t,n,e){return this.applyRedirectCreatreUrlTree(n,this.urlSerializer.parse(n),t,e)},t.prototype.applyRedirectCreatreUrlTree=function(t,n,e,i){var o=this.createSegmentGroup(t,n.root,e,i);return new cp(o,this.createQueryParams(n.queryParams,this.urlTree.queryParams),n.fragment)},t.prototype.createQueryParams=function(t,n){var e={};return rp(t,function(t,i){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);e[i]=n[o]}else e[i]=t}),e},t.prototype.createSegmentGroup=function(t,n,e,i){var o=this,l=this.createSegments(t,n.segments,e,i),r={};return rp(n.children,function(n,l){r[l]=o.createSegmentGroup(t,n,e,i)}),new pp(l,r)},t.prototype.createSegments=function(t,n,e,i){var o=this;return n.map(function(n){return n.path.startsWith(":")?o.findPosParam(t,n,i):o.findOrReturn(n,e)})},t.prototype.findPosParam=function(t,n,e){var i=e[n.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+n.path+"'.");return i},t.prototype.findOrReturn=function(t,n){var e,i,o=0;try{for(var l=s(n),r=l.next();!r.done;r=l.next()){var a=r.value;if(a.path===t.path)return n.splice(o),a;o++}}catch(u){e={error:u}}finally{try{r&&!r.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return t},t}();function Np(t,n,e){if(""===n.path)return"full"===n.pathMatch&&(t.hasChildren()||e.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var i=(n.matcher||Xc)(e,t,n);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function jp(t){if(1===t.numberOfChildren&&t.children[Wc]){var n=t.children[Wc];return new pp(t.segments.concat(n.segments),n.children)}return t}function Vp(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path&&void 0!==e.redirectTo}function Bp(t){return t.outlet||Wc}var Up=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var n=this.pathFromRoot(t);return n.length>1?n[n.length-2]:null},t.prototype.children=function(t){var n=Fp(t,this._root);return n?n.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var n=Fp(t,this._root);return n&&n.children.length>0?n.children[0].value:null},t.prototype.siblings=function(t){var n=zp(t,this._root);return n.length<2?[]:n[n.length-2].children.map(function(t){return t.value}).filter(function(n){return n!==t})},t.prototype.pathFromRoot=function(t){return zp(t,this._root).map(function(t){return t.value})},t}();function Fp(t,n){var e,i;if(t===n.value)return n;try{for(var o=s(n.children),l=o.next();!l.done;l=o.next()){var r=Fp(t,l.value);if(r)return r}}catch(a){e={error:a}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return null}function zp(t,n){var e,i;if(t===n.value)return[n];try{for(var o=s(n.children),l=o.next();!l.done;l=o.next()){var r=zp(t,l.value);if(r.length)return r.unshift(n),r}}catch(a){e={error:a}}finally{try{l&&!l.done&&(i=o.return)&&i.call(o)}finally{if(e)throw e.error}}return[]}var Hp=function(){function t(t,n){this.value=t,this.children=n}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function qp(t){var n={};return t&&t.children.forEach(function(t){return n[t.value.outlet]=t}),n}var $p=function(t){function n(n,e){var i=t.call(this,n)||this;return i.snapshot=e,Xp(i,n),i}return o(n,t),n.prototype.toString=function(){return this.snapshot.toString()},n}(Up);function Gp(t,n){var e=function(t,n){var e=new Kp([],{},{},"",{},Wc,n,null,t.root,-1,{});return new Zp("",new Hp(e,[]))}(t,n),i=new Js([new hp("",{})]),o=new Js({}),l=new Js({}),r=new Js({}),a=new Js(""),s=new Qp(i,o,r,a,l,Wc,n,e.root);return s.snapshot=e.root,new $p(new Hp(s,[]),e)}var Qp=function(){function t(t,n,e,i,o,l,r,a){this.url=t,this.params=n,this.queryParams=e,this.fragment=i,this.data=o,this.outlet=l,this.component=r,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(J(function(t){return Zc(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(J(function(t){return Zc(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Wp(t,n){void 0===n&&(n="emptyOnly");var e=t.pathFromRoot,i=0;if("always"!==n)for(i=e.length-1;i>=1;){var o=e[i],r=e[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(r.component)break;i--}}return function(t){return t.reduce(function(t,n){return{params:l({},t.params,n.params),data:l({},t.data,n.data),resolve:l({},t.resolve,n._resolvedData)}},{params:{},data:{},resolve:{}})}(e.slice(i))}var Kp=function(){function t(t,n,e,i,o,l,r,a,s,u,c){this.url=t,this.params=n,this.queryParams=e,this.fragment=i,this.data=o,this.outlet=l,this.component=r,this.routeConfig=a,this._urlSegment=s,this._lastPathIndex=u,this._resolve=c}return Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=Zc(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Zc(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this.routeConfig?this.routeConfig.path:"")+"')"},t}(),Zp=function(t){function n(n,e){var i=t.call(this,e)||this;return i.url=n,Xp(i,e),i}return o(n,t),n.prototype.toString=function(){return Yp(this._root)},n}(Up);function Xp(t,n){n.value._routerState=t,n.children.forEach(function(n){return Xp(t,n)})}function Yp(t){var n=t.children.length>0?" { "+t.children.map(Yp).join(", ")+" } ":"";return""+t.value+n}function Jp(t){if(t.snapshot){var n=t.snapshot,e=t._futureSnapshot;t.snapshot=e,ip(n.queryParams,e.queryParams)||t.queryParams.next(e.queryParams),n.fragment!==e.fragment&&t.fragment.next(e.fragment),ip(n.params,e.params)||t.params.next(e.params),function(t,n){if(t.length!==n.length)return!1;for(var e=0;e<t.length;++e)if(!ip(t[e],n[e]))return!1;return!0}(n.url,e.url)||t.url.next(e.url),ip(n.data,e.data)||t.data.next(e.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function th(t,n){var e,i;return ip(t.params,n.params)&&dp(e=t.url,i=n.url)&&e.every(function(t,n){return ip(t.parameters,i[n].parameters)})&&!(!t.parent!=!n.parent)&&(!t.parent||th(t.parent,n.parent))}function nh(t,n,e){if(e&&t.shouldReuseRoute(n.value,e.value.snapshot)){(a=e.value)._futureSnapshot=n.value;var i=function(t,n,e){return n.children.map(function(n){var i,o;try{for(var l=s(e.children),r=l.next();!r.done;r=l.next()){var a=r.value;if(t.shouldReuseRoute(a.value.snapshot,n.value))return nh(t,n,a)}}catch(u){i={error:u}}finally{try{r&&!r.done&&(o=l.return)&&o.call(l)}finally{if(i)throw i.error}}return nh(t,n)})}(t,n,e);return new Hp(a,i)}var o=t.retrieve(n.value);if(o){var l=o.route;return function t(n,e){if(n.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(n.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=n.value;for(var i=0;i<n.children.length;++i)t(n.children[i],e.children[i])}(n,l),l}var r,a=new Qp(new Js((r=n.value).url),new Js(r.params),new Js(r.queryParams),new Js(r.fragment),new Js(r.data),r.outlet,r.component,r);return i=n.children.map(function(n){return nh(t,n)}),new Hp(a,i)}function eh(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function ih(t,n,e,i,o){var l={};return i&&rp(i,function(t,n){l[n]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),new cp(e.root===t?n:function t(n,e,i){var o={};return rp(n.children,function(n,l){o[l]=n===e?i:t(n,e,i)}),new pp(n.segments,o)}(e.root,t,n),l,o)}var oh=function(){function t(t,n,e){if(this.isAbsolute=t,this.numberOfDoubleDots=n,this.commands=e,t&&e.length>0&&eh(e[0]))throw new Error("Root segment cannot have matrix parameters");var i=e.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(i&&i!==lp(e))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),lh=function(){return function(t,n,e){this.segmentGroup=t,this.processChildren=n,this.index=e}}();function rh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[Wc]:""+t}function ah(t,n,e){if(t||(t=new pp([],{})),0===t.segments.length&&t.hasChildren())return sh(t,n,e);var i=function(t,n,e){for(var i=0,o=n,l={match:!1,pathIndex:0,commandIndex:0};o<t.segments.length;){if(i>=e.length)return l;var r=t.segments[o],a=rh(e[i]),s=i<e.length-1?e[i+1]:null;if(o>0&&void 0===a)break;if(a&&s&&"object"==typeof s&&void 0===s.outlets){if(!hh(a,s,r))return l;i+=2}else{if(!hh(a,{},r))return l;i++}o++}return{match:!0,pathIndex:o,commandIndex:i}}(t,n,e),o=e.slice(i.commandIndex);if(i.match&&i.pathIndex<t.segments.length){var l=new pp(t.segments.slice(0,i.pathIndex),{});return l.children[Wc]=new pp(t.segments.slice(i.pathIndex),t.children),sh(l,0,o)}return i.match&&0===o.length?new pp(t.segments,{}):i.match&&!t.hasChildren()?uh(t,n,e):i.match?sh(t,0,o):uh(t,n,e)}function sh(t,n,e){if(0===e.length)return new pp(t.segments,{});var i=function(t){var n,e;return"object"!=typeof t[0]?((n={})[Wc]=t,n):void 0===t[0].outlets?((e={})[Wc]=t,e):t[0].outlets}(e),o={};return rp(i,function(e,i){null!==e&&(o[i]=ah(t.children[i],n,e))}),rp(t.children,function(t,n){void 0===i[n]&&(o[n]=t)}),new pp(t.segments,o)}function uh(t,n,e){for(var i=t.segments.slice(0,n),o=0;o<e.length;){if("object"==typeof e[o]&&void 0!==e[o].outlets){var l=ch(e[o].outlets);return new pp(i,l)}if(0===o&&eh(e[0]))i.push(new hp(t.segments[n].path,e[0])),o++;else{var r=rh(e[o]),a=o<e.length-1?e[o+1]:null;r&&a&&eh(a)?(i.push(new hp(r,ph(a))),o+=2):(i.push(new hp(r,{})),o++)}}return new pp(i,{})}function ch(t){var n={};return rp(t,function(t,e){null!==t&&(n[e]=uh(new pp([],{}),0,t))}),n}function ph(t){var n={};return rp(t,function(t,e){return n[e]=""+t}),n}function hh(t,n,e){return t==e.path&&ip(n,e.parameters)}var dh=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),fh=function(){return function(t,n){this.component=t,this.route=n}}(),gh=function(){function t(t,n,e,i){this.future=t,this.curr=n,this.moduleInjector=e,this.forwardEvent=i,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.initialize=function(t){var n=this.future._root;this.setupChildRouteGuards(n,this.curr?this.curr._root:null,t,[n.value])},t.prototype.checkGuards=function(){var t=this;return this.isDeactivating()||this.isActivating()?this.runCanDeactivateChecks().pipe(ot(function(n){return n?t.runCanActivateChecks():ia(!1)})):ia(!0)},t.prototype.resolveData=function(t){var n=this;return this.isActivating()?it(this.canActivateChecks).pipe(ca(function(e){return n.runResolve(e.route,t)}),function(t,n){return arguments.length>=2?function(n){return D(vu(t,void 0),eu(1),au(void 0))(n)}:function(n){return D(vu(function(n,e,i){return t(n)}),eu(1))(n)}}(function(t,n){return t})):ia(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,n,e,i){var o=this,l=qp(n);t.children.forEach(function(t){o.setupRouteGuards(t,l[t.value.outlet],e,i.concat([t.value])),delete l[t.value.outlet]}),rp(l,function(t,n){return o.deactivateRouteAndItsChildren(t,e.getContext(n))})},t.prototype.setupRouteGuards=function(t,n,e,i){var o=t.value,l=n?n.value:null,r=e?e.getContext(t.value.outlet):null;if(l&&o.routeConfig===l.routeConfig){var a=this.shouldRunGuardsAndResolvers(l,o,o.routeConfig.runGuardsAndResolvers);a?this.canActivateChecks.push(new dh(i)):(o.data=l.data,o._resolvedData=l._resolvedData),this.setupChildRouteGuards(t,n,o.component?r?r.children:null:e,i),a&&this.canDeactivateChecks.push(new fh(r.outlet.component,l))}else l&&this.deactivateRouteAndItsChildren(n,r),this.canActivateChecks.push(new dh(i)),this.setupChildRouteGuards(t,null,o.component?r?r.children:null:e,i)},t.prototype.shouldRunGuardsAndResolvers=function(t,n,e){switch(e){case"always":return!0;case"paramsOrQueryParamsChange":return!th(t,n)||!ip(t.queryParams,n.queryParams);case"paramsChange":default:return!th(t,n)}},t.prototype.deactivateRouteAndItsChildren=function(t,n){var e=this,i=qp(t),o=t.value;rp(i,function(t,i){e.deactivateRouteAndItsChildren(t,o.component?n?n.children.getContext(i):null:n)}),this.canDeactivateChecks.push(new fh(o.component&&n&&n.outlet&&n.outlet.isActivated?n.outlet.component:null,o))},t.prototype.runCanDeactivateChecks=function(){var t=this;return it(this.canDeactivateChecks).pipe(ot(function(n){return t.runCanDeactivate(n.component,n.route)}),pu(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return it(this.canActivateChecks).pipe(ca(function(n){return ap(it([t.fireChildActivationStart(n.route.parent),t.fireActivationStart(n.route),t.runCanActivateChild(n.path),t.runCanActivate(n.route)]))}),pu(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new qc(t)),ia(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new zc(t)),ia(!0)},t.prototype.runCanActivate=function(t){var n=this,e=t.routeConfig?t.routeConfig.canActivate:null;return e&&0!==e.length?ap(it(e).pipe(J(function(e){var i=n.getToken(e,t);return sp(i.canActivate?i.canActivate(t,n.future):i(t,n.future)).pipe(yu())}))):ia(!0)},t.prototype.runCanActivateChild=function(t){var n=this,e=t[t.length-1];return ap(it(t.slice(0,t.length-1).reverse().map(function(t){return n.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(J(function(t){return ap(it(t.guards).pipe(J(function(i){var o=n.getToken(i,t.node);return sp(o.canActivateChild?o.canActivateChild(e,n.future):o(e,n.future)).pipe(yu())})))})))},t.prototype.extractCanActivateChild=function(t){var n=t.routeConfig?t.routeConfig.canActivateChild:null;return n&&0!==n.length?{node:t,guards:n}:null},t.prototype.runCanDeactivate=function(t,n){var e=this,i=n&&n.routeConfig?n.routeConfig.canDeactivate:null;return i&&0!==i.length?it(i).pipe(ot(function(i){var o=e.getToken(i,n);return sp(o.canDeactivate?o.canDeactivate(t,n,e.curr,e.future):o(t,n,e.curr,e.future)).pipe(yu())})).pipe(pu(function(t){return!0===t})):ia(!0)},t.prototype.runResolve=function(t,n){return this.resolveNode(t._resolve,t).pipe(J(function(e){return t._resolvedData=e,t.data=l({},t.data,Wp(t,n).resolve),null}))},t.prototype.resolveNode=function(t,n){var e=this,i=Object.keys(t);if(0===i.length)return ia({});if(1===i.length){var o=i[0];return this.getResolver(t[o],n).pipe(J(function(t){var n;return(n={})[o]=t,n}))}var l={};return it(i).pipe(ot(function(i){return e.getResolver(t[i],n).pipe(J(function(t){return l[i]=t,t}))})).pipe(cu(),J(function(){return l}))},t.prototype.getResolver=function(t,n){var e=this.getToken(t,n);return sp(e.resolve?e.resolve(n,this.future):e(n,this.future))},t.prototype.getToken=function(t,n){var e=function(t){if(!t)return null;for(var n=t.parent;n;n=n.parent){var e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig}return null}(n);return(e?e.module.injector:this.moduleInjector).get(t)},t}(),mh=function(){return function(){}}(),yh=function(){function t(t,n,e,i,o,l){this.rootComponentType=t,this.config=n,this.urlTree=e,this.url=i,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=l}return t.prototype.recognize=function(){try{var t=_h(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,n=this.processSegmentGroup(this.config,t,Wc),e=new Kp([],Object.freeze({}),Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,{},Wc,this.rootComponentType,null,this.urlTree.root,-1,{}),i=new Hp(e,n),o=new Zp(this.url,i);return this.inheritParamsAndData(o._root),ia(o)}catch(r){return new M(function(t){return t.error(r)})}},t.prototype.inheritParamsAndData=function(t){var n=this,e=t.value,i=Wp(e,this.paramsInheritanceStrategy);e.params=Object.freeze(i.params),e.data=Object.freeze(i.data),t.children.forEach(function(t){return n.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,n,e){return 0===n.segments.length&&n.hasChildren()?this.processChildren(t,n):this.processSegment(t,n,n.segments,e)},t.prototype.processChildren=function(t,n){var e,i=this,o=fp(n,function(n,e){return i.processSegmentGroup(t,n,e)});return e={},o.forEach(function(t){var n=e[t.value.outlet];if(n){var i=n.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+o+"'.")}e[t.value.outlet]=t.value}),o.sort(function(t,n){return t.value.outlet===Wc?-1:n.value.outlet===Wc?1:t.value.outlet.localeCompare(n.value.outlet)}),o},t.prototype.processSegment=function(t,n,e,i){var o,l;try{for(var r=s(t),a=r.next();!a.done;a=r.next()){var u=a.value;try{return this.processSegmentAgainstRoute(u,n,e,i)}catch(c){if(!(c instanceof mh))throw c}}}catch(p){o={error:p}}finally{try{a&&!a.done&&(l=r.return)&&l.call(r)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(n,e,i))return[];throw new mh},t.prototype.noLeftoversInUrl=function(t,n,e){return 0===n.length&&!t.children[e]},t.prototype.processSegmentAgainstRoute=function(t,n,e,i){if(t.redirectTo)throw new mh;if((t.outlet||Wc)!==i)throw new mh;var o,r=[],a=[];if("**"===t.path){var s=e.length>0?lp(e).parameters:{};o=new Kp(e,s,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(t),i,t.component,t,vh(n),bh(n)+e.length,Ch(t))}else{var u=function(t,n,e){if(""===n.path){if("full"===n.pathMatch&&(t.hasChildren()||e.length>0))throw new mh;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(n.matcher||Xc)(e,t,n);if(!i)throw new mh;var o={};rp(i.posParams,function(t,n){o[n]=t.path});var r=i.consumed.length>0?l({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:r}}(n,t,e);r=u.consumedSegments,a=e.slice(u.lastChild),o=new Kp(r,u.parameters,Object.freeze(l({},this.urlTree.queryParams)),this.urlTree.fragment,Ph(t),i,t.component,t,vh(n),bh(n)+r.length,Ch(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=_h(n,r,a,c,this.relativeLinkResolution),h=p.segmentGroup,d=p.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new Hp(o,f)]}if(0===c.length&&0===d.length)return[new Hp(o,[])];var g=this.processSegment(c,h,d,Wc);return[new Hp(o,g)]},t}();function vh(t){for(var n=t;n._sourceSegment;)n=n._sourceSegment;return n}function bh(t){for(var n=t,e=n._segmentIndexShift?n._segmentIndexShift:0;n._sourceSegment;)e+=(n=n._sourceSegment)._segmentIndexShift?n._segmentIndexShift:0;return e-1}function _h(t,n,e,i,o){if(e.length>0&&function(t,n,e){return i.some(function(e){return wh(t,n,e)&&xh(e)!==Wc})}(t,e)){var r=new pp(n,function(t,n,e,i){var o,l,r={};r[Wc]=i,i._sourceSegment=t,i._segmentIndexShift=n.length;try{for(var a=s(e),u=a.next();!u.done;u=a.next()){var c=u.value;if(""===c.path&&xh(c)!==Wc){var p=new pp([],{});p._sourceSegment=t,p._segmentIndexShift=n.length,r[xh(c)]=p}}}catch(h){o={error:h}}finally{try{u&&!u.done&&(l=a.return)&&l.call(a)}finally{if(o)throw o.error}}return r}(t,n,i,new pp(e,t.children)));return r._sourceSegment=t,r._segmentIndexShift=n.length,{segmentGroup:r,slicedSegments:[]}}if(0===e.length&&function(t,n,e){return i.some(function(e){return wh(t,n,e)})}(t,e)){var a=new pp(t.segments,function(t,n,e,i,o,r){var a,u,c={};try{for(var p=s(i),h=p.next();!h.done;h=p.next()){var d=h.value;if(wh(t,e,d)&&!o[xh(d)]){var f=new pp([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===r?t.segments.length:n.length,c[xh(d)]=f}}}catch(g){a={error:g}}finally{try{h&&!h.done&&(u=p.return)&&u.call(p)}finally{if(a)throw a.error}}return l({},o,c)}(t,n,e,i,t.children,o));return a._sourceSegment=t,a._segmentIndexShift=n.length,{segmentGroup:a,slicedSegments:e}}var u=new pp(t.segments,t.children);return u._sourceSegment=t,u._segmentIndexShift=n.length,{segmentGroup:u,slicedSegments:e}}function wh(t,n,e){return(!(t.hasChildren()||n.length>0)||"full"!==e.pathMatch)&&""===e.path&&void 0===e.redirectTo}function xh(t){return t.outlet||Wc}function Ph(t){return t.data||{}}function Ch(t){return t.resolve||{}}var Sh=function(){return function(){}}(),Ih=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,n){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,n){return t.routeConfig===n.routeConfig},t}(),kh=new vt("ROUTES"),Oh=function(){function t(t,n,e,i){this.loader=t,this.compiler=n,this.onLoadStartListener=e,this.onLoadEndListener=i}return t.prototype.load=function(t,n){var e=this;return this.onLoadStartListener&&this.onLoadStartListener(n),this.loadModuleFactory(n.loadChildren).pipe(J(function(i){e.onLoadEndListener&&e.onLoadEndListener(n);var o=i.create(t);return new Yc(op(o.injector.get(kh)).map(ep),o)}))},t.prototype.loadModuleFactory=function(t){var n=this;return"string"==typeof t?it(this.loader.load(t)):sp(t()).pipe(ot(function(t){return t instanceof Fn?ia(t):it(n.compiler.compileModuleAsync(t))}))},t}(),Eh=function(){return function(){}}(),Dh=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,n){return t},t}();function Ah(t){throw t}function Mh(t,n,e){return n.parse("/")}function Th(t,n){return ia(null)}var Rh=function(){function t(t,n,e,i,o,l,r,a){var s=this;this.rootComponentType=t,this.urlSerializer=n,this.rootContexts=e,this.location=i,this.config=a,this.navigations=new Js(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new j,this.errorHandler=Ah,this.malformedUriErrorHandler=Mh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Th,afterPreactivation:Th},this.urlHandlingStrategy=new Dh,this.routeReuseStrategy=new Ih,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(Un),this.console=o.get(In);var u=o.get(Wn);this.isNgZoneEnabled=u instanceof Wn,this.resetConfig(a),this.currentUrlTree=new cp(new pp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Oh(l,r,function(t){return s.triggerEvent(new Uc(t))},function(t){return s.triggerEvent(new Fc(t))}),this.routerState=Gp(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.routerState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(function(n){var e=t.parseUrl(n.url),i="popstate"===n.type?"popstate":"hashchange",o=n.state&&n.state.navigationId?{navigationId:n.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(e,i,o,{replaceUrl:!0})},0)}))},Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.events.next(t)},t.prototype.resetConfig=function(t){Jc(t),this.config=t.map(ep),this.navigated=!1,this.lastSuccessfulId=-1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,n){void 0===n&&(n={});var e=n.relativeTo,i=n.queryParams,o=n.fragment,r=n.preserveQueryParams,a=n.queryParamsHandling,s=n.preserveFragment;se()&&r&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=e||this.routerState.root,p=s?this.currentUrlTree.fragment:o,h=null;if(a)switch(a){case"merge":h=l({},this.currentUrlTree.queryParams,i);break;case"preserve":h=this.currentUrlTree.queryParams;break;default:h=i||null}else h=r?this.currentUrlTree.queryParams:i||null;return null!==h&&(h=this.removeEmptyProps(h)),function(t,n,e,i,o){if(0===e.length)return ih(n.root,n.root,n,i,o);var l=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new oh(!0,0,t);var n=0,e=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var l={};return rp(i.outlets,function(t,n){l[n]="string"==typeof t?t.split("/"):t}),c(t,[{outlets:l}])}if(i.segmentPath)return c(t,[i.segmentPath])}return"string"!=typeof i?c(t,[i]):0===o?(i.split("/").forEach(function(i,o){0==o&&"."===i||(0==o&&""===i?e=!0:".."===i?n++:""!=i&&t.push(i))}),t):c(t,[i])},[]);return new oh(e,n,i)}(e);if(l.toRoot())return ih(n.root,new pp([],{}),n,i,o);var r=function(t,e,i){if(t.isAbsolute)return new lh(n.root,!0,0);if(-1===i.snapshot._lastPathIndex)return new lh(i.snapshot._urlSegment,!0,0);var o=eh(t.commands[0])?0:1;return function(n,e,l){for(var r=i.snapshot._urlSegment,a=i.snapshot._lastPathIndex+o,s=t.numberOfDoubleDots;s>a;){if(s-=a,!(r=r.parent))throw new Error("Invalid number of '../'");a=r.segments.length}return new lh(r,!1,a-s)}()}(l,0,t),a=r.processChildren?sh(r.segmentGroup,r.index,l.commands):ah(r.segmentGroup,r.index,l.commands);return ih(r.segmentGroup,a,n,i,o)}(u,this.currentUrlTree,t,h,p)},t.prototype.navigateByUrl=function(t,n){void 0===n&&(n={skipLocationChange:!1}),se()&&this.isNgZoneEnabled&&!Wn.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var e=t instanceof cp?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(e,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,n)},t.prototype.navigate=function(t,n){return void 0===n&&(n={skipLocationChange:!1}),function(t){for(var n=0;n<t.length;n++){var e=t[n];if(null==e)throw new Error("The requested path contains "+e+" segment at index "+n)}}(t),this.navigateByUrl(this.createUrlTree(t,n),n)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){var n;try{n=this.urlSerializer.parse(t)}catch(e){n=this.malformedUriErrorHandler(e,this.urlSerializer,t)}return n},t.prototype.isActive=function(t,n){if(t instanceof cp)return up(this.currentUrlTree,t,n);var e=this.parseUrl(t);return up(this.currentUrlTree,e,n)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(n,e){var i=t[e];return null!=i&&(n[e]=i),n},{})},t.prototype.processNavigations=function(){var t=this;this.navigations.pipe(ca(function(n){return n?(t.executeScheduledNavigation(n),n.promise.catch(function(){})):ia(null)})).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,n,e,i){var o=this.navigations.value;if(o&&"imperative"!==n&&"imperative"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"hashchange"==n&&"popstate"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(o&&"popstate"==n&&"hashchange"===o.source&&o.rawUrl.toString()===t.toString())return Promise.resolve(!0);var l=null,r=null,a=new Promise(function(t,n){l=t,r=n}),s=++this.navigationId;return this.navigations.next({id:s,source:n,state:e,rawUrl:t,extras:i,resolve:l,reject:r,promise:a}),a.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var n=this,e=t.id,i=t.rawUrl,o=t.extras,l=t.resolve,r=t.reject,a=t.source,s=t.state,u=this.urlHandlingStrategy.extract(i),c=!this.navigated||u.toString()!==this.currentUrlTree.toString();("reload"===this.onSameUrlNavigation||c)&&this.urlHandlingStrategy.shouldProcessUrl(i)?("eager"!==this.urlUpdateStrategy||o.skipLocationChange||this.setBrowserUrl(i,!!o.replaceUrl,e),this.events.next(new Ac(e,this.serializeUrl(u),a,s)),Promise.resolve().then(function(t){return n.runNavigate(u,i,!!o.skipLocationChange,!!o.replaceUrl,e,null)}).then(l,r)):c&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.events.next(new Ac(e,this.serializeUrl(u),a,s)),Promise.resolve().then(function(t){return n.runNavigate(u,i,!1,!1,e,Gp(u,n.rootComponentType).snapshot)}).then(l,r)):(this.rawUrlTree=i,l(null))},t.prototype.runNavigate=function(t,n,e,i,o,l){var r=this;return o!==this.navigationId?(this.events.next(new Tc(o,this.serializeUrl(t),"Navigation ID "+o+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(a,s){var u,c=(l?ia({appliedUrl:t,snapshot:l}):new Lp(r.ngModule.injector,r.configLoader,r.urlSerializer,t,r.config).apply().pipe(ot(function(n){return function(t,n,e,i,o,l){return void 0===o&&(o="emptyOnly"),void 0===l&&(l="legacy"),new yh(t,n,e,i,o,l).recognize()}(r.rootComponentType,r.config,n,r.serializeUrl(n),r.paramsInheritanceStrategy,r.relativeLinkResolution).pipe(J(function(e){return r.events.next(new Lc(o,r.serializeUrl(t),r.serializeUrl(n),e)),{appliedUrl:n,snapshot:e}}))}))).pipe(ot(function(l){return"boolean"==typeof l?ia(l):r.hooks.beforePreactivation(l.snapshot,{navigationId:o,appliedUrlTree:t,rawUrlTree:n,skipLocationChange:e,replaceUrl:i}).pipe(J(function(){return l}))})).pipe(J(function(t){if("boolean"==typeof t)return t;var n=t.appliedUrl,e=t.snapshot;return(u=new gh(e,r.routerState.snapshot,r.ngModule.injector,function(t){return r.triggerEvent(t)})).initialize(r.rootContexts),{appliedUrl:n,snapshot:e}})).pipe(ot(function(n){if("boolean"==typeof n||r.navigationId!==o)return ia(!1);var e=n.appliedUrl,i=n.snapshot;return r.triggerEvent(new Nc(o,r.serializeUrl(t),r.serializeUrl(e),i)),u.checkGuards().pipe(J(function(n){return r.triggerEvent(new jc(o,r.serializeUrl(t),r.serializeUrl(e),i,n)),{appliedUrl:e,snapshot:i,shouldActivate:n}}))})).pipe(ot(function(n){return"boolean"==typeof n||r.navigationId!==o?ia(!1):n.shouldActivate&&u.isActivating()?(r.triggerEvent(new Vc(o,r.serializeUrl(t),r.serializeUrl(n.appliedUrl),n.snapshot)),u.resolveData(r.paramsInheritanceStrategy).pipe(J(function(){return r.triggerEvent(new Bc(o,r.serializeUrl(t),r.serializeUrl(n.appliedUrl),n.snapshot)),n}))):ia(n)})).pipe(ot(function(l){return"boolean"==typeof l||r.navigationId!==o?ia(!1):r.hooks.afterPreactivation(l.snapshot,{navigationId:o,appliedUrlTree:t,rawUrlTree:n,skipLocationChange:e,replaceUrl:i}).pipe(J(function(){return l}))})).pipe(J(function(t){if("boolean"==typeof t||r.navigationId!==o)return!1;var n,e,i,l=t.appliedUrl,a=t.shouldActivate;return a?{appliedUrl:l,state:(i=nh(r.routeReuseStrategy,(n=t.snapshot)._root,(e=r.routerState)?e._root:void 0),new $p(i,n)),shouldActivate:a}:{appliedUrl:l,state:null,shouldActivate:a}}));r.activateRoutes(c,r.routerState,r.currentUrlTree,o,t,n,e,i,a,s)})},t.prototype.activateRoutes=function(t,n,e,i,o,l,r,a,s,u){var c,p=this;t.forEach(function(t){if("boolean"!=typeof t&&t.shouldActivate&&i===p.navigationId&&t.state){var e=t.state;p.currentUrlTree=t.appliedUrl,p.rawUrlTree=p.urlHandlingStrategy.merge(p.currentUrlTree,l),p.routerState=e,"deferred"!==p.urlUpdateStrategy||r||p.setBrowserUrl(p.rawUrlTree,a,i),new Lh(p.routeReuseStrategy,e,n,function(t){return p.triggerEvent(t)}).activate(p.rootContexts),c=!0}else c=!1}).then(function(){c?(p.navigated=!0,p.lastSuccessfulId=i,p.events.next(new Mc(i,p.serializeUrl(o),p.serializeUrl(p.currentUrlTree))),s(!0)):(p.resetUrlToCurrentUrlTree(),p.events.next(new Tc(i,p.serializeUrl(o),"")),s(!1))},function(t){if((r=t)&&r.ngNavigationCancelingError)p.navigated=!0,p.resetStateAndUrl(n,e,l),p.events.next(new Tc(i,p.serializeUrl(o),t.message)),s(!1);else{p.resetStateAndUrl(n,e,l),p.events.next(new Rc(i,p.serializeUrl(o),t));try{s(p.errorHandler(t))}catch(a){u(a)}}var r})},t.prototype.setBrowserUrl=function(t,n,e){var i=this.urlSerializer.serialize(t);this.location.isCurrentPathEqualTo(i)||n?this.location.replaceState(i,"",{navigationId:e}):this.location.go(i,"",{navigationId:e})},t.prototype.resetStateAndUrl=function(t,n,e){this.routerState=t,this.currentUrlTree=n,this.rawUrlTree=this.urlHandlingStrategy.merge(this.currentUrlTree,e),this.resetUrlToCurrentUrlTree()},t.prototype.resetUrlToCurrentUrlTree=function(){this.location.replaceState(this.urlSerializer.serialize(this.rawUrlTree),"",{navigationId:this.lastSuccessfulId})},t}(),Lh=function(){function t(t,n,e,i){this.routeReuseStrategy=t,this.futureState=n,this.currState=e,this.forwardEvent=i}return t.prototype.activate=function(t){var n=this.futureState._root,e=this.currState?this.currState._root:null;this.deactivateChildRoutes(n,e,t),Jp(this.futureState.root),this.activateChildRoutes(n,e,t)},t.prototype.deactivateChildRoutes=function(t,n,e){var i=this,o=qp(n);t.children.forEach(function(t){var n=t.value.outlet;i.deactivateRoutes(t,o[n],e),delete o[n]}),rp(o,function(t,n){i.deactivateRouteAndItsChildren(t,e)})},t.prototype.deactivateRoutes=function(t,n,e){var i=t.value,o=n?n.value:null;if(i===o)if(i.component){var l=e.getContext(i.outlet);l&&this.deactivateChildRoutes(t,n,l.children)}else this.deactivateChildRoutes(t,n,e);else o&&this.deactivateRouteAndItsChildren(n,e)},t.prototype.deactivateRouteAndItsChildren=function(t,n){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,n):this.deactivateRouteAndOutlet(t,n)},t.prototype.detachAndStoreRouteSubtree=function(t,n){var e=n.getContext(t.value.outlet);if(e&&e.outlet){var i=e.outlet.detach(),o=e.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:i,route:t,contexts:o})}},t.prototype.deactivateRouteAndOutlet=function(t,n){var e=this,i=n.getContext(t.value.outlet);if(i){var o=qp(t),l=t.value.component?i.children:n;rp(o,function(t,n){return e.deactivateRouteAndItsChildren(t,l)}),i.outlet&&(i.outlet.deactivate(),i.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,n,e){var i=this,o=qp(n);t.children.forEach(function(t){i.activateRoutes(t,o[t.value.outlet],e),i.forwardEvent(new $c(t.value.snapshot))}),t.children.length&&this.forwardEvent(new Hc(t.value.snapshot))},t.prototype.activateRoutes=function(t,n,e){var i=t.value,o=n?n.value:null;if(Jp(i),i===o)if(i.component){var l=e.getOrCreateContext(i.outlet);this.activateChildRoutes(t,n,l.children)}else this.activateChildRoutes(t,n,e);else if(i.component)if(l=e.getOrCreateContext(i.outlet),this.routeReuseStrategy.shouldAttach(i.snapshot)){var r=this.routeReuseStrategy.retrieve(i.snapshot);this.routeReuseStrategy.store(i.snapshot,null),l.children.onOutletReAttached(r.contexts),l.attachRef=r.componentRef,l.route=r.route.value,l.outlet&&l.outlet.attach(r.componentRef,r.route.value),Nh(r.route)}else{var a=function(t){for(var n=i.snapshot.parent;n;n=n.parent){var e=n.routeConfig;if(e&&e._loadedConfig)return e._loadedConfig;if(e&&e.component)return null}return null}(),s=a?a.module.componentFactoryResolver:null;l.attachRef=null,l.route=i,l.resolver=s,l.outlet&&l.outlet.activateWith(i,s),this.activateChildRoutes(t,null,l.children)}else this.activateChildRoutes(t,null,e)},t}();function Nh(t){Jp(t.value),t.children.forEach(Nh)}var jh=function(){return function(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Vh,this.attachRef=null}}(),Vh=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,n){var e=this.getOrCreateContext(t);e.outlet=n,this.contexts.set(t,e)},t.prototype.onChildOutletDestroyed=function(t){var n=this.getContext(t);n&&(n.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var n=this.getContext(t);return n||(n=new jh,this.contexts.set(t,n)),n},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Bh=function(){function t(t,n,e,i,o){this.parentContexts=t,this.location=n,this.resolver=e,this.changeDetector=o,this.activated=null,this._activatedRoute=null,this.activateEvents=new Qn,this.deactivateEvents=new Qn,this.name=i||Wc,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,n){this.activated=t,this._activatedRoute=n,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,n){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;var e=(n=n||this.resolver).resolveComponentFactory(t._futureSnapshot.routeConfig.component),i=this.parentContexts.getOrCreateContext(this.name).children,o=new Uh(t,i,this.location.injector);this.activated=this.location.createComponent(e,this.location.length,o),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}(),Uh=function(){function t(t,n,e){this.route=t,this.childContexts=n,this.parent=e}return t.prototype.get=function(t,n){return t===Qp?this.route:t===Vh?this.childContexts:this.parent.get(t,n)},t}(),Fh=function(){return function(){}}(),zh=function(){function t(){}return t.prototype.preload=function(t,n){return n().pipe(aa(function(){return ia(null)}))},t}(),Hh=function(){function t(){}return t.prototype.preload=function(t,n){return ia(null)},t}(),qh=function(){function t(t,n,e,i,o){this.router=t,this.injector=i,this.preloadingStrategy=o,this.loader=new Oh(n,e,function(n){return t.triggerEvent(new Uc(n))},function(n){return t.triggerEvent(new Fc(n))})}return t.prototype.setUpPreloading=function(){var t=this;this.subscription=this.router.events.pipe(pa(function(t){return t instanceof Mc}),ca(function(){return t.preload()})).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(Un);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,n){var e,i,o=[];try{for(var l=s(n),r=l.next();!r.done;r=l.next()){var a=r.value;if(a.loadChildren&&!a.canLoad&&a._loadedConfig){var u=a._loadedConfig;o.push(this.processRoutes(u.module,u.routes))}else a.loadChildren&&!a.canLoad?o.push(this.preloadConfig(t,a)):a.children&&o.push(this.processRoutes(t,a.children))}}catch(c){e={error:c}}finally{try{r&&!r.done&&(i=l.return)&&i.call(l)}finally{if(e)throw e.error}}return it(o).pipe(st(),J(function(t){}))},t.prototype.preloadConfig=function(t,n){var e=this;return this.preloadingStrategy.preload(n,function(){return e.loader.load(t.injector,n).pipe(ot(function(t){return n._loadedConfig=t,e.processRoutes(t.module,t.routes)}))})},t}(),$h=function(){function t(t,n,e){void 0===e&&(e={}),this.router=t,this.viewportScroller=n,this.options=e,this.lastId=0,this.lastSource="imperative",this.restoredId=0,this.store={},e.scrollPositionRestoration=e.scrollPositionRestoration||"disabled",e.anchorScrolling=e.anchorScrolling||"disabled"}return t.prototype.init=function(){"disabled"!==this.options.scrollPositionRestoration&&this.viewportScroller.setHistoryScrollRestoration("manual"),this.routerEventsSubscription=this.createScrollEvents(),this.scrollEventsSubscription=this.consumeScrollEvents()},t.prototype.createScrollEvents=function(){var t=this;return this.router.events.subscribe(function(n){n instanceof Ac?(t.store[t.lastId]=t.viewportScroller.getScrollPosition(),t.lastSource=n.navigationTrigger,t.restoredId=n.restoredState?n.restoredState.navigationId:0):n instanceof Mc&&(t.lastId=n.id,t.scheduleScrollEvent(n,t.router.parseUrl(n.urlAfterRedirects).fragment))})},t.prototype.consumeScrollEvents=function(){var t=this;return this.router.events.subscribe(function(n){n instanceof Gc&&(n.position?"top"===t.options.scrollPositionRestoration?t.viewportScroller.scrollToPosition([0,0]):"enabled"===t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition(n.position):n.anchor&&"enabled"===t.options.anchorScrolling?t.viewportScroller.scrollToAnchor(n.anchor):"disabled"!==t.options.scrollPositionRestoration&&t.viewportScroller.scrollToPosition([0,0]))})},t.prototype.scheduleScrollEvent=function(t,n){this.router.triggerEvent(new Gc(t,"popstate"===this.lastSource?this.store[this.restoredId]:null,n))},t.prototype.ngOnDestroy=function(){this.routerEventsSubscription&&this.routerEventsSubscription.unsubscribe(),this.scrollEventsSubscription&&this.scrollEventsSubscription.unsubscribe()},t}(),Gh=new vt("ROUTER_CONFIGURATION"),Qh=new vt("ROUTER_FORROOT_GUARD"),Wh=[va,{provide:gp,useClass:mp},{provide:Rh,useFactory:nd,deps:[fe,gp,Vh,va,Ft,we,On,kh,Gh,[Eh,new Rt],[Sh,new Rt]]},Vh,{provide:Qp,useFactory:ed,deps:[Rh]},{provide:we,useClass:Se},qh,Hh,zh,{provide:Gh,useValue:{enableTracing:!1}}];function Kh(){return new ue("Router",Rh)}var Zh=function(){function t(t,n){}var n;return n=t,t.forRoot=function(t,e){return{ngModule:n,providers:[Wh,td(t),{provide:Qh,useFactory:Jh,deps:[[Rh,new Rt,new Nt]]},{provide:Gh,useValue:e||{}},{provide:ma,useFactory:Yh,deps:[fa,[new Tt(ya),new Rt],Gh]},{provide:$h,useFactory:Xh,deps:[Rh,Ja,Gh]},{provide:Fh,useExisting:e&&e.preloadingStrategy?e.preloadingStrategy:Hh},{provide:ue,multi:!0,useFactory:Kh},[id,{provide:vn,multi:!0,useFactory:od,deps:[id]},{provide:rd,useFactory:ld,deps:[id]},{provide:Sn,multi:!0,useExisting:rd}]]}},t.forChild=function(t){return{ngModule:n,providers:[td(t)]}},t}();function Xh(t,n,e){return e.scrollOffset&&n.setOffset(e.scrollOffset),new $h(t,n,e)}function Yh(t,n,e){return void 0===e&&(e={}),e.useHash?new _a(t,n):new wa(t,n)}function Jh(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function td(t){return[{provide:wt,multi:!0,useValue:t},{provide:kh,multi:!0,useValue:t}]}function nd(t,n,e,i,o,l,r,a,s,u,c){void 0===s&&(s={});var p=new Rh(null,n,e,i,o,l,r,op(a));if(u&&(p.urlHandlingStrategy=u),c&&(p.routeReuseStrategy=c),s.errorHandler&&(p.errorHandler=s.errorHandler),s.malformedUriErrorHandler&&(p.malformedUriErrorHandler=s.malformedUriErrorHandler),s.enableTracing){var h=xu();p.events.subscribe(function(t){h.logGroup("Router Event: "+t.constructor.name),h.log(t.toString()),h.log(t),h.logGroupEnd()})}return s.onSameUrlNavigation&&(p.onSameUrlNavigation=s.onSameUrlNavigation),s.paramsInheritanceStrategy&&(p.paramsInheritanceStrategy=s.paramsInheritanceStrategy),s.urlUpdateStrategy&&(p.urlUpdateStrategy=s.urlUpdateStrategy),s.relativeLinkResolution&&(p.relativeLinkResolution=s.relativeLinkResolution),p}function ed(t){return t.routerState.root}var id=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new j}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(ga,Promise.resolve(null)).then(function(){var n=null,e=new Promise(function(t){return n=t}),i=t.injector.get(Rh),o=t.injector.get(Gh);if(t.isLegacyDisabled(o)||t.isLegacyEnabled(o))n(!0);else if("disabled"===o.initialNavigation)i.setUpLocationChangeListener(),n(!0);else{if("enabled"!==o.initialNavigation)throw new Error("Invalid initialNavigation options: '"+o.initialNavigation+"'");i.hooks.afterPreactivation=function(){return t.initNavigation?ia(null):(t.initNavigation=!0,n(!0),t.resultOfPreactivationDone)},i.initialNavigation()}return e})},t.prototype.bootstrapListener=function(t){var n=this.injector.get(Gh),e=this.injector.get(qh),i=this.injector.get($h),o=this.injector.get(Rh),l=this.injector.get(fe);t===l.components[0]&&(this.isLegacyEnabled(n)?o.initialNavigation():this.isLegacyDisabled(n)&&o.setUpLocationChangeListener(),e.setUpPreloading(),i.init(),o.resetRootComponentType(l.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();function od(t){return t.appInitializer.bind(t)}function ld(t){return t.bootstrapListener.bind(t)}var rd=new vt("Router Initializer"),ad=function(){function t(t){t.events.pipe(pa(function(t){return t instanceof Mc})).subscribe(function(t){gtag("config",Xr.gaTag,{page_path:t.urlAfterRedirects})});var n=document.createElement("script");n.async=!0,n.src="https://www.googletagmanager.com/gtag/js?id="+Xr.gaTag,document.head.appendChild(n)}return t.prototype.ngOnInit=function(){},t}(),sd=function(){return function(){}}(),ud=function(){return function(){}}(),cd="*";function pd(t,n){return void 0===n&&(n=null),{type:2,steps:t,options:n}}function hd(t){return{type:6,styles:t,offset:null}}function dd(t){Promise.resolve(null).then(t)}var fd=function(){function t(t,n){void 0===t&&(t=0),void 0===n&&(n=0),this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=t+n}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this._onStart(),this.triggerMicrotask()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;dd(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t.prototype.triggerCallback=function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(t){return t()}),n.length=0},t}(),gd=function(){function t(t){var n=this;this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0,this.players=t;var e=0,i=0,o=0,l=this.players.length;0==l?dd(function(){return n._onFinish()}):this.players.forEach(function(t){t.onDone(function(){++e==l&&n._onFinish()}),t.onDestroy(function(){++i==l&&n._onDestroy()}),t.onStart(function(){++o==l&&n._onStart()})}),this.totalTime=this.players.reduce(function(t,n){return Math.max(t,n.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this.players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._started=!0,this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[])},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this.players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this.players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this.players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this.players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this.players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this.players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var n=t*this.totalTime;this.players.forEach(function(t){var e=t.totalTime?Math.min(1,n/t.totalTime):1;t.setPosition(e)})},t.prototype.getPosition=function(){var t=0;return this.players.forEach(function(n){var e=n.getPosition();t=Math.min(e,t)}),t},t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t.prototype.triggerCallback=function(t){var n="start"==t?this._onStartFns:this._onDoneFns;n.forEach(function(t){return t()}),n.length=0},t}(),md="!";function yd(){throw Error("Host already has a portal attached")}var vd=function(){function t(){}return t.prototype.attach=function(t){return null==t&&function(){throw Error("Attempting to attach a portal to a null PortalOutlet")}(),t.hasAttached()&&yd(),this._attachedHost=t,t.attach(this)},t.prototype.detach=function(){var t=this._attachedHost;null==t?function(){throw Error("Attempting to detach a portal that is not attached to a host")}():(this._attachedHost=null,t.detach())},Object.defineProperty(t.prototype,"isAttached",{get:function(){return null!=this._attachedHost},enumerable:!0,configurable:!0}),t.prototype.setAttachedHost=function(t){this._attachedHost=t},t}(),bd=function(t){function n(n,e,i){var o=t.call(this)||this;return o.component=n,o.viewContainerRef=e,o.injector=i,o}return o(n,t),n}(vd),_d=function(t){function n(n,e,i){var o=t.call(this)||this;return o.templateRef=n,o.viewContainerRef=e,o.context=i,o}return o(n,t),Object.defineProperty(n.prototype,"origin",{get:function(){return this.templateRef.elementRef},enumerable:!0,configurable:!0}),n.prototype.attach=function(n,e){return void 0===e&&(e=this.context),this.context=e,t.prototype.attach.call(this,n)},n.prototype.detach=function(){return this.context=void 0,t.prototype.detach.call(this)},n}(vd),wd=function(){function t(){this._isDisposed=!1}return t.prototype.hasAttached=function(){return!!this._attachedPortal},t.prototype.attach=function(t){return t||function(){throw Error("Must provide a portal to attach")}(),this.hasAttached()&&yd(),this._isDisposed&&function(){throw Error("This PortalOutlet has already been disposed")}(),t instanceof bd?(this._attachedPortal=t,this.attachComponentPortal(t)):t instanceof _d?(this._attachedPortal=t,this.attachTemplatePortal(t)):void function(){throw Error("Attempting to attach an unknown Portal type. BasePortalOutlet accepts either a ComponentPortal or a TemplatePortal.")}()},t.prototype.detach=function(){this._attachedPortal&&(this._attachedPortal.setAttachedHost(null),this._attachedPortal=null),this._invokeDisposeFn()},t.prototype.dispose=function(){this.hasAttached()&&this.detach(),this._invokeDisposeFn(),this._isDisposed=!0},t.prototype.setDisposeFn=function(t){this._disposeFn=t},t.prototype._invokeDisposeFn=function(){this._disposeFn&&(this._disposeFn(),this._disposeFn=null)},t}(),xd=function(t){function n(n,e,i,o){var l=t.call(this)||this;return l.outletElement=n,l._componentFactoryResolver=e,l._appRef=i,l._defaultInjector=o,l}return o(n,t),n.prototype.attachComponentPortal=function(t){var n,e=this,i=this._componentFactoryResolver.resolveComponentFactory(t.component);return t.viewContainerRef?(n=t.viewContainerRef.createComponent(i,t.viewContainerRef.length,t.injector||t.viewContainerRef.parentInjector),this.setDisposeFn(function(){return n.destroy()})):(n=i.create(t.injector||this._defaultInjector),this._appRef.attachView(n.hostView),this.setDisposeFn(function(){e._appRef.detachView(n.hostView),n.destroy()})),this.outletElement.appendChild(this._getComponentRootNode(n)),n},n.prototype.attachTemplatePortal=function(t){var n=this,e=t.viewContainerRef,i=e.createEmbeddedView(t.templateRef,t.context);return i.detectChanges(),i.rootNodes.forEach(function(t){return n.outletElement.appendChild(t)}),this.setDisposeFn(function(){var t=e.indexOf(i);-1!==t&&e.remove(t)}),i},n.prototype.dispose=function(){t.prototype.dispose.call(this),null!=this.outletElement.parentNode&&this.outletElement.parentNode.removeChild(this.outletElement)},n.prototype._getComponentRootNode=function(t){return t.hostView.rootNodes[0]},n}(wd),Pd=function(t){function n(n,e){var i=t.call(this)||this;return i._componentFactoryResolver=n,i._viewContainerRef=e,i._isInitialized=!1,i.attached=new Qn,i}return o(n,t),Object.defineProperty(n.prototype,"portal",{get:function(){return this._attachedPortal},set:function(n){(!this.hasAttached()||n||this._isInitialized)&&(this.hasAttached()&&t.prototype.detach.call(this),n&&t.prototype.attach.call(this,n),this._attachedPortal=n)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"attachedRef",{get:function(){return this._attachedRef},enumerable:!0,configurable:!0}),n.prototype.ngOnInit=function(){this._isInitialized=!0},n.prototype.ngOnDestroy=function(){t.prototype.dispose.call(this),this._attachedPortal=null,this._attachedRef=null},n.prototype.attachComponentPortal=function(n){n.setAttachedHost(this);var e=null!=n.viewContainerRef?n.viewContainerRef:this._viewContainerRef,i=this._componentFactoryResolver.resolveComponentFactory(n.component),o=e.createComponent(i,e.length,n.injector||e.parentInjector);return t.prototype.setDisposeFn.call(this,function(){return o.destroy()}),this._attachedPortal=n,this._attachedRef=o,this.attached.emit(o),o},n.prototype.attachTemplatePortal=function(n){var e=this;n.setAttachedHost(this);var i=this._viewContainerRef.createEmbeddedView(n.templateRef,n.context);return t.prototype.setDisposeFn.call(this,function(){return e._viewContainerRef.clear()}),this._attachedPortal=n,this._attachedRef=i,this.attached.emit(i),i},n}(wd),Cd=function(){return function(){}}(),Sd=function(){function t(t,n){this._parentInjector=t,this._customTokens=n}return t.prototype.get=function(t,n){var e=this._customTokens.get(t);return void 0!==e?e:this._parentInjector.get(t,n)},t}(),Id=27;function kd(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return function(n){var e=t[t.length-1];B(e)?t.pop():e=null;var i=t.length;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return 1===t.length||2===t.length&&B(t[1])?it(t[0]):tu()(ia.apply(void 0,t))}(1!==i||e?i>0?et(t,e):Jr(e):ea(t[0]),n)}}var Od=new vt("cdk-dir-doc",{providedIn:"root",factory:function(){return ln(Wa)}}),Ed=function(){function t(t){this.value="ltr",this.change=new Qn,t&&(this.value=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null)||"ltr")}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=yt({factory:function(){return new t(ln(Od,8))},token:t,providedIn:"root"}),t}(),Dd=function(){return function(){}}();function Ad(t){return null!=t&&""+t!="false"}function Md(t){return Array.isArray(t)?t:[t]}function Td(t){return null==t?"":"string"==typeof t?t:t+"px"}var Rd,Ld="undefined"!=typeof Intl&&Intl.v8BreakIterator,Nd=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?Xa(this._platformId):"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!Ld)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream,this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=yt({factory:function(){return new t(ln(Cn,8))},token:t,providedIn:"root"}),t}();function jd(){if(null==Rd&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return Rd=!0}}))}finally{Rd=Rd||!1}return Rd}var Vd=function(){return function(){}}();function Bd(t,n,e,i){return d(e)&&(i=e,e=void 0),i?Bd(t,n,e).pipe(J(function(t){return p(t)?i.apply(void 0,t):i(t)})):new M(function(i){!function t(n,e,i,o,l){var r;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(n)){var a=n;n.addEventListener(e,i,l),r=function(){return a.removeEventListener(e,i,l)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(n)){var s=n;n.on(e,i),r=function(){return s.off(e,i)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(n)){var u=n;n.addListener(e,i),r=function(){return u.removeListener(e,i)}}else{if(!n||!n.length)throw new TypeError("Invalid event target");for(var c=0,p=n.length;c<p;c++)t(n[c],e,i,o,l)}o.add(r)}(t,n,function(t){i.next(arguments.length>1?Array.prototype.slice.call(arguments):t)},i,e)})}var Ud=function(t){function n(n,e){var i=t.call(this,n,e)||this;return i.scheduler=n,i.work=e,i.pending=!1,i}return o(n,t),n.prototype.schedule=function(t,n){if(void 0===n&&(n=0),this.closed)return this;this.state=t;var e=this.id,i=this.scheduler;return null!=e&&(this.id=this.recycleAsyncId(i,e,n)),this.pending=!0,this.delay=n,this.id=this.id||this.requestAsyncId(i,this.id,n),this},n.prototype.requestAsyncId=function(t,n,e){return void 0===e&&(e=0),setInterval(t.flush.bind(t,this),e)},n.prototype.recycleAsyncId=function(t,n,e){if(void 0===e&&(e=0),null!==e&&this.delay===e&&!1===this.pending)return n;clearInterval(n)},n.prototype.execute=function(t,n){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var e=this._execute(t,n);if(e)return e;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},n.prototype._execute=function(t,n){var e=!1,i=void 0;try{this.work(t)}catch(o){e=!0,i=!!o&&o||new Error(o)}if(e)return this.unsubscribe(),i},n.prototype._unsubscribe=function(){var t=this.id,n=this.scheduler,e=n.actions,i=e.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&e.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(n,t,null)),this.delay=null},n}(function(t){function n(n,e){return t.call(this)||this}return o(n,t),n.prototype.schedule=function(t,n){return void 0===n&&(n=0),this},n}(b)),Fd=function(){function t(n,e){void 0===e&&(e=t.now),this.SchedulerAction=n,this.now=e}return t.prototype.schedule=function(t,n,e){return void 0===n&&(n=0),new this.SchedulerAction(this,t).schedule(e,n)},t.now=function(){return Date.now()},t}(),zd=function(t){function n(e,i){void 0===i&&(i=Fd.now);var o=t.call(this,e,function(){return n.delegate&&n.delegate!==o?n.delegate.now():i()})||this;return o.actions=[],o.active=!1,o.scheduled=void 0,o}return o(n,t),n.prototype.schedule=function(e,i,o){return void 0===i&&(i=0),n.delegate&&n.delegate!==this?n.delegate.schedule(e,i,o):t.prototype.schedule.call(this,e,i,o)},n.prototype.flush=function(t){var n=this.actions;if(this.active)n.push(t);else{var e;this.active=!0;do{if(e=t.execute(t.state,t.delay))break}while(t=n.shift());if(this.active=!1,e){for(;t=n.shift();)t.unsubscribe();throw e}}},n}(Fd),Hd=new zd(Ud),qd=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new $d(t,this.durationSelector))},t}(),$d=function(t){function n(n,e){var i=t.call(this,n)||this;return i.durationSelector=e,i.hasValue=!1,i}return o(n,t),n.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var n=y(this.durationSelector)(t);if(n===g)this.destination.error(g.e);else{var e=X(this,n);!e||e.closed?this.clearThrottle():this.add(this.throttled=e)}}},n.prototype.clearThrottle=function(){var t=this.value,n=this.hasValue,e=this.throttled;e&&(this.remove(e),this.throttled=null,e.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(t))},n.prototype.notifyNext=function(t,n,e,i){this.clearThrottle()},n.prototype.notifyComplete=function(){this.clearThrottle()},n}(Y);function Gd(t){return!p(t)&&t-parseFloat(t)+1>=0}function Qd(t){var n=t.index,e=t.period,i=t.subscriber;if(i.next(n),!i.closed){if(-1===e)return i.complete();t.index=n+1,this.schedule(t,e)}}function Wd(t,n){return void 0===n&&(n=Hd),e=function(){return function(t,n,e){void 0===t&&(t=0);var i=-1;return Gd(n)?i=Number(n)<1?1:Number(n):B(n)&&(e=n),B(e)||(e=Hd),new M(function(n){var o=Gd(t)?t:+t-e.now();return e.schedule(Qd,o,{index:0,period:i,subscriber:n})})}(t,n)},function(t){return t.lift(new qd(e))};var e}var Kd=function(){function t(t,n){this._ngZone=t,this._platform=n,this._scrolled=new j,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var n=this,e=t.elementScrolled().subscribe(function(){return n._scrolled.next(t)});this.scrollContainers.set(t,e)},t.prototype.deregister=function(t){var n=this.scrollContainers.get(t);n&&(n.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var n=this;return void 0===t&&(t=20),this._platform.isBrowser?M.create(function(e){n._globalSubscription||n._addGlobalListener();var i=t>0?n._scrolled.pipe(Wd(t)).subscribe(e):n._scrolled.subscribe(e);return n._scrolledCount++,function(){i.unsubscribe(),n._scrolledCount--,n._scrolledCount||n._removeGlobalListener()}}):ia()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(n,e){return t.deregister(e)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,n){var e=this.getAncestorScrollContainers(t);return this.scrolled(n).pipe(pa(function(t){return!t||e.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var n=this,e=[];return this.scrollContainers.forEach(function(i,o){n._scrollableContainsElement(o,t)&&e.push(o)}),e},t.prototype._scrollableContainsElement=function(t,n){var e=n.nativeElement,i=t.getElementRef().nativeElement;do{if(e==i)return!0}while(e=e.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return Bd(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wn),ln(Nd))},token:t,providedIn:"root"}),t}(),Zd=function(){function t(t,n){var e=this;this._platform=t,this._change=t.isBrowser?n.runOutsideAngular(function(){return ut(Bd(window,"resize"),Bd(window,"orientationchange"))}):ia(),this._invalidateCache=this.change().subscribe(function(){return e._updateViewportSize()})}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),n=this.getViewportSize(),e=n.width,i=n.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+e,height:i,width:e}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement.getBoundingClientRect();return{top:-t.top||document.body.scrollTop||window.scrollY||document.documentElement.scrollTop||0,left:-t.left||document.body.scrollLeft||window.scrollX||document.documentElement.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(Wd(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=yt({factory:function(){return new t(ln(Nd),ln(Wn))},token:t,providedIn:"root"}),t}(),Xd=function(){return function(){}}(),Yd=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),Jd=function(){return function(t){var n=this;this.scrollStrategy=new Yd,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(n){return void 0!==t[n]}).forEach(function(e){return n[e]=t[e]})}}(),tf=function(){return function(t,n,e,i){this.offsetX=e,this.offsetY=i,this.originX=t.originX,this.originY=t.originY,this.overlayX=n.overlayX,this.overlayY=n.overlayY}}(),nf=function(){return function(t,n){this.connectionPair=t,this.scrollableViewProperties=n}}();function ef(t,n){if("top"!==n&&"bottom"!==n&&"center"!==n)throw Error("ConnectedPosition: Invalid "+t+' "'+n+'". Expected "top", "bottom" or "center".')}function of(t,n){if("start"!==n&&"end"!==n&&"center"!==n)throw Error("ConnectedPosition: Invalid "+t+' "'+n+'". Expected "start", "end" or "center".')}var lf=function(){function t(t,n){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=n}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Td(-this._previousScrollPosition.left),t.style.top=Td(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,n=this._document.body,e=t.style.scrollBehavior||"",i=n.style.scrollBehavior||"";this._isEnabled=!1,t.style.left=this._previousHTMLStyles.left,t.style.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),t.style.scrollBehavior=n.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=e,n.style.scrollBehavior=i}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,n=this._viewportRuler.getViewportSize();return t.scrollHeight>n.height||t.scrollWidth>n.width},t}();function rf(){return Error("Scroll strategy has already been attached.")}var af=function(){function t(t,n,e,i){var o=this;this._scrollDispatcher=t,this._ngZone=n,this._viewportRuler=e,this._config=i,this._scrollSubscription=null,this._detach=function(){o.disable(),o._overlayRef.hasAttached()&&o._ngZone.run(function(){return o._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw rf();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var n=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=n.subscribe(function(){var n=t._viewportRuler.getViewportScrollPosition().top;Math.abs(n-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=n.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function sf(t,n){return n.some(function(n){return t.bottom<n.top||t.top>n.bottom||t.right<n.left||t.left>n.right})}function uf(t,n){return n.some(function(n){return t.top<n.top||t.bottom>n.bottom||t.left<n.left||t.right>n.right})}var cf=function(){function t(t,n,e,i){this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=e,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw rf();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe(function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var n=t._overlayRef.overlayElement.getBoundingClientRect(),e=t._viewportRuler.getViewportSize(),i=e.width,o=e.height;sf(n,[{width:i,height:o,bottom:o,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run(function(){return t._overlayRef.detach()}))}}))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}(),pf=function(){function t(t,n,e,i){var o=this;this._scrollDispatcher=t,this._viewportRuler=n,this._ngZone=e,this.noop=function(){return new Yd},this.close=function(t){return new af(o._scrollDispatcher,o._ngZone,o._viewportRuler,t)},this.block=function(){return new lf(o._viewportRuler,o._document)},this.reposition=function(t){return new cf(o._scrollDispatcher,o._viewportRuler,o._ngZone,t)},this._document=i}return t.ngInjectableDef=yt({factory:function(){return new t(ln(Kd),ln(Zd),ln(Wn),ln(Wa))},token:t,providedIn:"root"}),t}(),hf=function(){function t(t){var n=this;this._attachedOverlays=[],this._keydownListener=function(t){n._attachedOverlays.length&&n._attachedOverlays[n._attachedOverlays.length-1]._keydownEvents.next(t)},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var n=this._attachedOverlays.indexOf(t);n>-1&&this._attachedOverlays.splice(n,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener,!0),this._isAttached=!1)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wa))},token:t,providedIn:"root"}),t}(),df=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){var t=this._document.createElement("div");t.classList.add("cdk-overlay-container"),this._document.body.appendChild(t),this._containerElement=t},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wa))},token:t,providedIn:"root"}),t}(),ff=function(){function t(t,n,e,i,o,l,r){this._portalOutlet=t,this._host=n,this._pane=e,this._config=i,this._ngZone=o,this._keyboardDispatcher=l,this._document=r,this._backdropElement=null,this._backdropClick=new j,this._attachments=new j,this._detachments=new j,this._keydownEvents=new j,i.scrollStrategy&&i.scrollStrategy.attach(this)}return Object.defineProperty(t.prototype,"overlayElement",{get:function(){return this._pane},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"backdropElement",{get:function(){return this._backdropElement},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hostElement",{get:function(){return this._host},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var n=this,e=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(fu(1)).subscribe(function(){n.hasAttached()&&n.updatePosition()}),this._togglePointerEvents(!0),this._config.hasBackdrop&&this._attachBackdrop(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!0),this._attachments.next(),this._keyboardDispatcher.add(this),e},t.prototype.detach=function(){if(this.hasAttached()){this.detachBackdrop(),this._togglePointerEvents(!1),this._config.positionStrategy&&this._config.positionStrategy.detach&&this._config.positionStrategy.detach(),this._config.scrollStrategy&&this._config.scrollStrategy.disable();var t=this._portalOutlet.detach();return this._detachments.next(),this._keyboardDispatcher.remove(this),t}},t.prototype.dispose=function(){var t=this.hasAttached();this._config.positionStrategy&&this._config.positionStrategy.dispose(),this._config.scrollStrategy&&this._config.scrollStrategy.disable(),this.detachBackdrop(),this._keyboardDispatcher.remove(this),this._portalOutlet.dispose(),this._attachments.complete(),this._backdropClick.complete(),this._keydownEvents.complete(),this._host&&this._host.parentNode&&(this._host.parentNode.removeChild(this._host),this._host=null),this._pane=null,t&&this._detachments.next(),this._detachments.complete()},t.prototype.hasAttached=function(){return this._portalOutlet.hasAttached()},t.prototype.backdropClick=function(){return this._backdropClick.asObservable()},t.prototype.attachments=function(){return this._attachments.asObservable()},t.prototype.detachments=function(){return this._detachments.asObservable()},t.prototype.keydownEvents=function(){return this._keydownEvents.asObservable()},t.prototype.getConfig=function(){return this._config},t.prototype.updatePosition=function(){this._config.positionStrategy&&this._config.positionStrategy.apply()},t.prototype.updateSize=function(t){this._config=l({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=l({},this._config,{direction:t}),this._updateElementDirection()},t.prototype._updateElementDirection=function(){this._pane.setAttribute("dir",this._config.direction)},t.prototype._updateElementSize=function(){(this._config.width||0===this._config.width)&&(this._pane.style.width=Td(this._config.width)),(this._config.height||0===this._config.height)&&(this._pane.style.height=Td(this._config.height)),(this._config.minWidth||0===this._config.minWidth)&&(this._pane.style.minWidth=Td(this._config.minWidth)),(this._config.minHeight||0===this._config.minHeight)&&(this._pane.style.minHeight=Td(this._config.minHeight)),(this._config.maxWidth||0===this._config.maxWidth)&&(this._pane.style.maxWidth=Td(this._config.maxWidth)),(this._config.maxHeight||0===this._config.maxHeight)&&(this._pane.style.maxHeight=Td(this._config.maxHeight))},t.prototype._togglePointerEvents=function(t){this._pane.style.pointerEvents=t?"auto":"none"},t.prototype._attachBackdrop=function(){var t=this;this._backdropElement=this._document.createElement("div"),this._backdropElement.classList.add("cdk-overlay-backdrop"),this._config.backdropClass&&this._toggleClasses(this._backdropElement,this._config.backdropClass,!0),this._host.parentElement.insertBefore(this._backdropElement,this._host),this._backdropElement.addEventListener("click",function(n){return t._backdropClick.next(n)}),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular(function(){requestAnimationFrame(function(){t._backdropElement&&t._backdropElement.classList.add("cdk-overlay-backdrop-showing")})}):this._backdropElement.classList.add("cdk-overlay-backdrop-showing")},t.prototype._updateStackingOrder=function(){this._host.nextSibling&&this._host.parentNode.appendChild(this._host)},t.prototype.detachBackdrop=function(){var t=this,n=this._backdropElement;if(n){var e=function(){n&&n.parentNode&&n.parentNode.removeChild(n),t._backdropElement==n&&(t._backdropElement=null)};n.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(n,this._config.backdropClass,!1),n.addEventListener("transitionend",e),n.style.pointerEvents="none",this._ngZone.runOutsideAngular(function(){return setTimeout(e,500)})}},t.prototype._toggleClasses=function(t,n,e){var i=t.classList;Md(n).forEach(function(t){e?i.add(t):i.remove(t)})},t}(),gf=function(){function t(t,n,e,i){this._viewportRuler=n,this._document=e,this._platform=i,this._isInitialRender=!0,this._lastBoundingBoxSize={width:0,height:0},this._isPushed=!1,this._canPush=!0,this._growAfterOpen=!1,this._hasFlexibleDimensions=!0,this._positionLocked=!1,this._viewportMargin=0,this.scrollables=[],this._preferredPositions=[],this._positionChanges=new j,this._resizeSubscription=b.EMPTY,this._offsetX=0,this._offsetY=0,this.positionChanges=this._positionChanges.asObservable(),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var n=this;if(this._overlayRef&&t!==this._overlayRef)throw Error("This position strategy is already attached to an overlay");this._validatePositions(),t.hostElement.classList.add("cdk-overlay-connected-position-bounding-box"),this._overlayRef=t,this._boundingBox=t.hostElement,this._pane=t.overlayElement,this._resizeSubscription.unsubscribe(),this._resizeSubscription=this._viewportRuler.change().subscribe(function(){return n.apply()})},t.prototype.apply=function(){if(!(this._isDisposed||this._platform&&!this._platform.isBrowser))if(!this._isInitialRender&&this._positionLocked&&this._lastPosition)this.reapplyLastPosition();else{this._resetOverlayElementStyles(),this._resetBoundingBoxStyles(),this._viewportRect=this._getNarrowedViewportRect(),this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect();for(var t,n=this._originRect,e=this._overlayRect,i=this._viewportRect,o=[],l=0,r=this._preferredPositions;l<r.length;l++){var a=r[l],s=this._getOriginPoint(n,a),u=this._getOverlayPoint(s,e,a),c=this._getOverlayFit(u,e,i,a);if(c.isCompletelyWithinViewport)return this._isPushed=!1,void this._applyPosition(a,s);this._canFitWithFlexibleDimensions(c,u,i)?o.push({position:a,origin:s,overlayRect:e,boundingBoxRect:this._calculateBoundingBoxRect(s,a)}):(!t||t.overlayFit.visibleArea<c.visibleArea)&&(t={overlayFit:c,overlayPoint:u,originPoint:s,position:a,overlayRect:e})}if(o.length){for(var p=null,h=-1,d=0,f=o;d<f.length;d++){var g=f[d],m=g.boundingBoxRect.width*g.boundingBoxRect.height*(g.position.weight||1);m>h&&(h=m,p=g)}return this._isPushed=!1,void this._applyPosition(p.position,p.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this.detach(),this._boundingBox=null,this._positionChanges.complete(),this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._origin.getBoundingClientRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],n=this._getOriginPoint(this._originRect,t);this._applyPosition(t,n)}},t.prototype.withScrollableContainers=function(t){this.scrollables=t},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t instanceof _e?t.nativeElement:t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,n){var e;if("center"==n.originX)e=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,o=this._isRtl()?t.left:t.right;e="start"==n.originX?i:o}return{x:e,y:"center"==n.originY?t.top+t.height/2:"top"==n.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,n,e){var i;return i="center"==e.overlayX?-n.width/2:"start"===e.overlayX?this._isRtl()?-n.width:0:this._isRtl()?0:-n.width,{x:t.x+i,y:t.y+("center"==e.overlayY?-n.height/2:"top"==e.overlayY?0:-n.height)}},t.prototype._getOverlayFit=function(t,n,e,i){var o=t.x,l=t.y,r=this._getOffset(i,"x"),a=this._getOffset(i,"y");r&&(o+=r),a&&(l+=a);var s=0-l,u=l+n.height-e.height,c=this._subtractOverflows(n.width,0-o,o+n.width-e.width),p=this._subtractOverflows(n.height,s,u),h=c*p;return{visibleArea:h,isCompletelyWithinViewport:n.width*n.height===h,fitsInViewportVertically:p===n.height,fitsInViewportHorizontally:c==n.width}},t.prototype._canFitWithFlexibleDimensions=function(t,n,e){if(this._hasFlexibleDimensions){var i=e.bottom-n.y,o=e.right-n.x,l=this._overlayRef.getConfig().minHeight,r=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=l&&l<=i)&&(t.fitsInViewportHorizontally||null!=r&&r<=o)}},t.prototype._pushOverlayOnScreen=function(t,n){var e=this._viewportRect,i=Math.max(t.x+n.width-e.right,0),o=Math.max(t.y+n.height-e.bottom,0),l=Math.max(e.top-t.y,0),r=Math.max(e.left-t.x,0);return{x:t.x+(n.width<=e.width?r||-i:e.left-t.x),y:t.y+(n.height<=e.height?l||-o:e.top-t.y)}},t.prototype._applyPosition=function(t,n){this._setTransformOrigin(t),this._setOverlayElementStyles(n,t),this._setBoundingBoxStyles(n,t),this._lastPosition=t;var e=this._getScrollVisibility(),i=new nf(t,e);this._positionChanges.next(i),this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var n,e=this._boundingBox.querySelectorAll(this._transformOriginSelector),i=t.overlayY;n="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var o=0;o<e.length;o++)e[o].style.transformOrigin=n+" "+i}},t.prototype._calculateBoundingBoxRect=function(t,n){var e,i,o,l,r,a,s=this._viewportRect,u=this._isRtl();if("top"===n.overlayY)i=t.y,e=s.bottom-t.y;else if("bottom"===n.overlayY)e=s.height-(o=s.height-t.y+2*this._viewportMargin)+this._viewportMargin;else{var c=Math.min(s.bottom-t.y,t.y-s.left),p=this._lastBoundingBoxSize.height;i=t.y-c,(e=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-p/2)}if("end"===n.overlayX&&!u||"start"===n.overlayX&&u)a=s.right-t.x+this._viewportMargin,l=t.x-s.left;else if("start"===n.overlayX&&!u||"end"===n.overlayX&&u)r=t.x,l=s.right-t.x;else{c=Math.min(s.right-t.x,t.x-s.top);var h=this._lastBoundingBoxSize.width;r=t.x-c,(l=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.x-h/2)}return{top:i,left:r,bottom:o,right:a,width:l,height:e}},t.prototype._setBoundingBoxStyles=function(t,n){var e=this._calculateBoundingBoxRect(t,n);this._isInitialRender||this._growAfterOpen||(e.height=Math.min(e.height,this._lastBoundingBoxSize.height),e.width=Math.min(e.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var o=this._overlayRef.getConfig().maxHeight,l=this._overlayRef.getConfig().maxWidth;i.height=Td(e.height),i.top=Td(e.top),i.bottom=Td(e.bottom),i.width=Td(e.width),i.left=Td(e.left),i.right=Td(e.right),i.alignItems="center"===n.overlayX?"center":this._isRtl()?"end"===n.overlayX?"flex-start":"flex-end":"end"===n.overlayX?"flex-end":"flex-start",i.justifyContent="center"===n.overlayY?"center":"bottom"===n.overlayY?"flex-end":"flex-start",o&&(i.maxHeight=Td(o)),l&&(i.maxWidth=Td(l))}this._lastBoundingBoxSize=e,mf(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){mf(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){mf(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,n){var e={};this._hasExactPosition()?(mf(e,this._getExactOverlayY(n,t)),mf(e,this._getExactOverlayX(n,t))):e.position="static";var i="",o=this._getOffset(n,"x"),l=this._getOffset(n,"y");o&&(i+="translateX("+o+"px) "),l&&(i+="translateY("+l+"px)"),e.transform=i.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(e.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(e.maxWidth=""),mf(this._pane.style,e)},t.prototype._getExactOverlayY=function(t,n){var e={top:null,bottom:null},i=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"bottom"===t.overlayY?e.bottom=this._document.documentElement.clientHeight-(i.y+this._overlayRect.height)+"px":e.top=Td(i.y),e},t.prototype._getExactOverlayX=function(t,n){var e={left:null,right:null},i=this._getOverlayPoint(n,this._overlayRect,t);return this._isPushed&&(i=this._pushOverlayOnScreen(i,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?e.right=this._document.documentElement.clientWidth-(i.x+this._overlayRect.width)+"px":e.left=Td(i.x),e},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),n=this._pane.getBoundingClientRect(),e=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:uf(t,e),isOriginOutsideView:sf(t,e),isOverlayClipped:uf(n,e),isOverlayOutsideView:sf(n,e)}},t.prototype._subtractOverflows=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return n.reduce(function(t,n){return t-Math.max(n,0)},t)},t.prototype._getNarrowedViewportRect=function(){var t=this._document.documentElement.clientWidth,n=this._document.documentElement.clientHeight,e=this._viewportRuler.getViewportScrollPosition();return{top:e.top+this._viewportMargin,left:e.left+this._viewportMargin,right:e.left+t-this._viewportMargin,bottom:e.top+n-this._viewportMargin,width:t-2*this._viewportMargin,height:n-2*this._viewportMargin}},t.prototype._isRtl=function(){return"rtl"===this._overlayRef.getConfig().direction},t.prototype._hasExactPosition=function(){return!this._hasFlexibleDimensions||this._isPushed},t.prototype._getOffset=function(t,n){return"x"===n?null==t.offsetX?this._offsetX:t.offsetX:null==t.offsetY?this._offsetY:t.offsetY},t.prototype._validatePositions=function(){if(!this._preferredPositions.length)throw Error("FlexibleConnectedPositionStrategy: At least one position is required.");this._preferredPositions.forEach(function(t){of("originX",t.originX),ef("originY",t.originY),of("overlayX",t.overlayX),ef("overlayY",t.overlayY)})},t}();function mf(t,n){for(var e in n)n.hasOwnProperty(e)&&(t[e]=n[e]);return t}var yf=function(){function t(t,n,e,i,o,l){this._preferredPositions=[],this._positionStrategy=new gf(e,i,o,l).withFlexibleDimensions(!1).withPush(!1).withViewportMargin(0),this.withFallbackPosition(t,n)}return Object.defineProperty(t.prototype,"_isRtl",{get:function(){return"rtl"===this._overlayRef.getConfig().direction},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"onPositionChange",{get:function(){return this._positionStrategy.positionChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){this._overlayRef=t,this._positionStrategy.attach(t),this._direction&&(t.setDirection(this._direction),this._direction=null)},t.prototype.dispose=function(){this._positionStrategy.dispose()},t.prototype.detach=function(){this._positionStrategy.detach()},t.prototype.apply=function(){this._positionStrategy.apply()},t.prototype.recalculateLastPosition=function(){this._positionStrategy.reapplyLastPosition()},t.prototype.withScrollableContainers=function(t){this._positionStrategy.withScrollableContainers(t)},t.prototype.withFallbackPosition=function(t,n,e,i){var o=new tf(t,n,e,i);return this._preferredPositions.push(o),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.withDirection=function(t){return this._overlayRef?this._overlayRef.setDirection(t):this._direction=t,this},t.prototype.withOffsetX=function(t){return this._positionStrategy.withDefaultOffsetX(t),this},t.prototype.withOffsetY=function(t){return this._positionStrategy.withDefaultOffsetY(t),this},t.prototype.withLockedPosition=function(t){return this._positionStrategy.withLockedPosition(t),this},t.prototype.withPositions=function(t){return this._preferredPositions=t.slice(),this._positionStrategy.withPositions(this._preferredPositions),this},t.prototype.setOrigin=function(t){return this._positionStrategy.setOrigin(t),this},t}(),vf=function(){function t(){this._cssPosition="static",this._topOffset="",this._bottomOffset="",this._leftOffset="",this._rightOffset="",this._alignItems="",this._justifyContent="",this._width="",this._height=""}return t.prototype.attach=function(t){var n=t.getConfig();this._overlayRef=t,this._width&&!n.width&&t.updateSize({width:this._width}),this._height&&!n.height&&t.updateSize({height:this._height}),t.hostElement.classList.add("cdk-global-overlay-wrapper")},t.prototype.top=function(t){return void 0===t&&(t=""),this._bottomOffset="",this._topOffset=t,this._alignItems="flex-start",this},t.prototype.left=function(t){return void 0===t&&(t=""),this._rightOffset="",this._leftOffset=t,this._justifyContent="flex-start",this},t.prototype.bottom=function(t){return void 0===t&&(t=""),this._topOffset="",this._bottomOffset=t,this._alignItems="flex-end",this},t.prototype.right=function(t){return void 0===t&&(t=""),this._leftOffset="",this._rightOffset=t,this._justifyContent="flex-end",this},t.prototype.width=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({width:t}):this._width=t,this},t.prototype.height=function(t){return void 0===t&&(t=""),this._overlayRef?this._overlayRef.updateSize({height:t}):this._height=t,this},t.prototype.centerHorizontally=function(t){return void 0===t&&(t=""),this.left(t),this._justifyContent="center",this},t.prototype.centerVertically=function(t){return void 0===t&&(t=""),this.top(t),this._alignItems="center",this},t.prototype.apply=function(){if(this._overlayRef.hasAttached()){var t=this._overlayRef.overlayElement.style,n=this._overlayRef.hostElement.style,e=this._overlayRef.getConfig();t.position=this._cssPosition,t.marginLeft="100%"===e.width?"0":this._leftOffset,t.marginTop="100%"===e.height?"0":this._topOffset,t.marginBottom=this._bottomOffset,t.marginRight=this._rightOffset,n.justifyContent="100%"===e.width?"flex-start":this._justifyContent,n.alignItems="100%"===e.height?"flex-start":this._alignItems}},t.prototype.dispose=function(){},t}(),bf=function(){function t(t,n,e){this._viewportRuler=t,this._document=n,this._platform=e}return t.prototype.global=function(){return new vf},t.prototype.connectedTo=function(t,n,e){return new yf(n,e,t,this._viewportRuler,this._document)},t.prototype.flexibleConnectedTo=function(t){return new gf(t,this._viewportRuler,this._document,this._platform)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Zd),ln(Wa),ln(Nd,8))},token:t,providedIn:"root"}),t}(),_f=0,wf=function(){function t(t,n,e,i,o,l,r,a,s){this.scrollStrategies=t,this._overlayContainer=n,this._componentFactoryResolver=e,this._positionBuilder=i,this._keyboardDispatcher=o,this._injector=l,this._ngZone=r,this._document=a,this._directionality=s}return t.prototype.create=function(t){var n=this._createHostElement(),e=this._createPaneElement(n),i=this._createPortalOutlet(e),o=new Jd(t);return o.direction=o.direction||this._directionality.value,new ff(i,n,e,o,this._ngZone,this._keyboardDispatcher,this._document)},t.prototype.position=function(){return this._positionBuilder},t.prototype._createPaneElement=function(t){var n=this._document.createElement("div");return n.id="cdk-overlay-"+_f++,n.classList.add("cdk-overlay-pane"),t.appendChild(n),n},t.prototype._createHostElement=function(){var t=this._document.createElement("div");return this._overlayContainer.getContainerElement().appendChild(t),t},t.prototype._createPortalOutlet=function(t){return this._appRef||(this._appRef=this._injector.get(fe)),new xd(t,this._componentFactoryResolver,this._appRef,this._injector)},t}(),xf=new vt("cdk-connected-overlay-scroll-strategy");function Pf(t){return function(){return t.scrollStrategies.reposition()}}var Cf=function(){return function(){}}(),Sf=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabel=null,this.autoFocus=!0,this.closeOnNavigation=!0}}();function If(){throw Error("Attempting to attach dialog content after content is already attached")}var kf=function(t){function n(n,e,i,o,l){var r=t.call(this)||this;return r._elementRef=n,r._focusTrapFactory=e,r._changeDetectorRef=i,r._document=o,r._config=l,r._elementFocusedBeforeDialogWasOpened=null,r._state="enter",r._animationStateChanged=new Qn,r._ariaLabelledBy=null,r}return o(n,t),n.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&If(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},n.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&If(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},n.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},n.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},n.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then(function(){return t._elementRef.nativeElement.focus()}))},n.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},n.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},n.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},n}(wd),Of=0,Ef=function(){function t(t,n,e,i){void 0===i&&(i="mat-dialog-"+Of++);var o=this;this._overlayRef=t,this._containerInstance=n,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new j,this._afterClosed=new j,this._beforeClose=new j,this._locationChanges=b.EMPTY,n._id=i,n._animationStateChanged.pipe(pa(function(t){return"done"===t.phaseName&&"enter"===t.toState}),fu(1)).subscribe(function(){o._afterOpen.next(),o._afterOpen.complete()}),n._animationStateChanged.pipe(pa(function(t){return"done"===t.phaseName&&"exit"===t.toState}),fu(1)).subscribe(function(){o._overlayRef.dispose(),o._locationChanges.unsubscribe(),o._afterClosed.next(o._result),o._afterClosed.complete(),o.componentInstance=null}),t.keydownEvents().pipe(pa(function(t){return t.keyCode===Id&&!o.disableClose})).subscribe(function(){return o.close()}),e&&(this._locationChanges=e.subscribe(function(){o._containerInstance._config.closeOnNavigation&&o.close()}))}return t.prototype.close=function(t){var n=this;this._result=t,this._containerInstance._animationStateChanged.pipe(pa(function(t){return"start"===t.phaseName}),fu(1)).subscribe(function(){n._beforeClose.next(t),n._beforeClose.complete(),n._overlayRef.detachBackdrop()}),this._containerInstance._startExitAnimation()},t.prototype.afterOpen=function(){return this._afterOpen.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClose=function(){return this._beforeClose.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var n=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?n.left(t.left):n.right(t.right):n.centerHorizontally(),t&&(t.top||t.bottom)?t.top?n.top(t.top):n.bottom(t.bottom):n.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,n){return void 0===t&&(t="auto"),void 0===n&&(n="auto"),this._getPositionStrategy().width(t).height(n),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),Df=new vt("MatDialogData"),Af=new vt("mat-dialog-default-options"),Mf=new vt("mat-dialog-scroll-strategy");function Tf(t){return function(){return t.scrollStrategies.block()}}var Rf=function(){function t(t,n,e,i,o,l,r){var a,s=this;this._overlay=t,this._injector=n,this._location=e,this._defaultOptions=i,this._scrollStrategy=o,this._parentDialog=l,this._overlayContainer=r,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new j,this._afterOpenAtThisLevel=new j,this._ariaHiddenElements=new Map,this.afterAllClosed=(a=function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(kd(void 0))},new M(function(t){var n;try{n=a()}catch(e){return void t.error(e)}return(n?it(n):Jr()).subscribe(t)}))}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this._parentDialog?this._parentDialog.afterOpen:this._afterOpenAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,n){var e=this;if((n=function(t,n){return l({},n,t)}(n,this._defaultOptions||new Sf)).id&&this.getDialogById(n.id))throw Error('Dialog with id "'+n.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(n),o=this._attachDialogContainer(i,n),r=this._attachDialogContent(t,o,i,n);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(r),r.afterClosed().subscribe(function(){return e._removeOpenDialog(r)}),this.afterOpen.next(r),r},t.prototype.closeAll=function(){for(var t=this.openDialogs.length;t--;)this.openDialogs[t].close()},t.prototype.getDialogById=function(t){return this.openDialogs.find(function(n){return n.id===t})},t.prototype._createOverlay=function(t){var n=this._getOverlayConfig(t);return this._overlay.create(n)},t.prototype._getOverlayConfig=function(t){var n=new Jd({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight});return t.backdropClass&&(n.backdropClass=t.backdropClass),n},t.prototype._attachDialogContainer=function(t,n){var e=new Sd(n&&n.viewContainerRef&&n.viewContainerRef.injector||this._injector,new WeakMap([[Sf,n]])),i=new bd(kf,n.viewContainerRef,e);return t.attach(i).instance},t.prototype._attachDialogContent=function(t,n,e,i){var o=new Ef(e,n,this._location,i.id);if(i.hasBackdrop&&e.backdropClick().subscribe(function(){o.disableClose||o.close()}),t instanceof ke)n.attachTemplatePortal(new _d(t,null,{$implicit:i.data,dialogRef:o}));else{var l=this._createInjector(i,o,n),r=n.attachComponentPortal(new bd(t,void 0,l));o.componentInstance=r.instance}return o.updateSize(i.width,i.height).updatePosition(i.position),o},t.prototype._createInjector=function(t,n,e){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,o=new WeakMap([[kf,e],[Df,t.data],[Ef,n]]);return!t.direction||i&&i.get(Ed,null)||o.set(Ed,{value:t.direction,change:ia()}),new Sd(i||this._injector,o)},t.prototype._removeOpenDialog=function(t){var n=this.openDialogs.indexOf(t);n>-1&&(this.openDialogs.splice(n,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,n){t?n.setAttribute("aria-hidden",t):n.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var n=t.parentElement.children,e=n.length-1;e>-1;e--){var i=n[e];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t}(),Lf=function(){return function(){}}(),Nf=function(){return function(){}}(),jf=function(){return function(){}}(),Vf=new vt("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Bf=function(){function t(t){this._sanityChecksEnabled=t,this._hasDoneGlobalChecks=!1,this._hasCheckedHammer=!1,this._document="object"==typeof document&&document?document:null,this._window="object"==typeof window&&window?window:null,this._areChecksEnabled()&&!this._hasDoneGlobalChecks&&(this._checkDoctypeIsDefined(),this._checkThemeIsPresent(),this._hasDoneGlobalChecks=!0)}return t.prototype._areChecksEnabled=function(){return this._sanityChecksEnabled&&se()&&!this._isTestEnv()},t.prototype._isTestEnv=function(){return this._window&&(this._window.__karma__||this._window.jasmine)},t.prototype._checkDoctypeIsDefined=function(){this._document&&!this._document.doctype&&console.warn("Current document does not have a doctype. This may cause some Angular Material components not to behave as expected.")},t.prototype._checkThemeIsPresent=function(){if(this._document&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var n=getComputedStyle(t);n&&"none"!==n.display&&console.warn("Could not find Angular Material core theme. Most Material components may not work as expected. For more info refer to the theming guide: https://material.angular.io/guide/theming"),this._document.body.removeChild(t)}},t.prototype._checkHammerIsAvailable=function(){!this._hasCheckedHammer&&this._window&&(this._areChecksEnabled()&&!this._window.Hammer&&console.warn("Could not find HammerJS. Certain Angular Material components may not work correctly."),this._hasCheckedHammer=!0)},t}();function Uf(t){return function(t){function n(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var i=t.apply(this,n)||this;return i._disabled=!1,i}return o(n,t),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ad(t)},enumerable:!0,configurable:!0}),n}(t)}function Ff(t,n){return function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=t.apply(this,e)||this;return o.color=n,o}return o(e,t),Object.defineProperty(e.prototype,"color",{get:function(){return this._color},set:function(t){var e=t||n;e!==this._color&&(this._color&&this._elementRef.nativeElement.classList.remove("mat-"+this._color),e&&this._elementRef.nativeElement.classList.add("mat-"+e),this._color=e)},enumerable:!0,configurable:!0}),e}(t)}function zf(t){return function(t){function n(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];var i=t.apply(this,n)||this;return i._disableRipple=!1,i}return o(n,t),Object.defineProperty(n.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Ad(t)},enumerable:!0,configurable:!0}),n}(t)}function Hf(t,n){return void 0===n&&(n=0),function(t){function e(){for(var e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];var o=t.apply(this,e)||this;return o._tabIndex=n,o}return o(e,t),Object.defineProperty(e.prototype,"tabIndex",{get:function(){return this.disabled?-1:this._tabIndex},set:function(t){this._tabIndex=null!=t?t:n},enumerable:!0,configurable:!0}),e}(t)}var qf=function(){var t={FADING_IN:0,VISIBLE:1,FADING_OUT:2,HIDDEN:3};return t[t.FADING_IN]="FADING_IN",t[t.VISIBLE]="VISIBLE",t[t.FADING_OUT]="FADING_OUT",t[t.HIDDEN]="HIDDEN",t}(),$f=function(){function t(t,n,e){this._renderer=t,this.element=n,this.config=e,this.state=qf.HIDDEN}return t.prototype.fadeOut=function(){this._renderer.fadeOutRipple(this)},t}(),Gf={enterDuration:450,exitDuration:400},Qf=800,Wf=function(){function t(t,n,e,i){var o=this;this._target=t,this._ngZone=n,this._isPointerDown=!1,this._triggerEvents=new Map,this._activeRipples=new Set,this._eventOptions=!!jd()&&{passive:!0},this.onMousedown=function(t){var n=o._lastTouchStartEvent&&Date.now()<o._lastTouchStartEvent+Qf;o._target.rippleDisabled||n||(o._isPointerDown=!0,o.fadeInRipple(t.clientX,t.clientY,o._target.rippleConfig))},this.onTouchStart=function(t){o._target.rippleDisabled||(o._lastTouchStartEvent=Date.now(),o._isPointerDown=!0,o.fadeInRipple(t.touches[0].clientX,t.touches[0].clientY,o._target.rippleConfig))},this.onPointerUp=function(){o._isPointerDown&&(o._isPointerDown=!1,o._activeRipples.forEach(function(t){!t.config.persistent&&(t.state===qf.VISIBLE||t.config.terminateOnPointerUp&&t.state===qf.FADING_IN)&&t.fadeOut()}))},i.isBrowser&&(this._containerElement=e.nativeElement,this._triggerEvents.set("mousedown",this.onMousedown),this._triggerEvents.set("mouseup",this.onPointerUp),this._triggerEvents.set("mouseleave",this.onPointerUp),this._triggerEvents.set("touchstart",this.onTouchStart),this._triggerEvents.set("touchend",this.onPointerUp))}return t.prototype.fadeInRipple=function(t,n,e){var i=this;void 0===e&&(e={});var o=this._containerRect=this._containerRect||this._containerElement.getBoundingClientRect(),r=l({},Gf,e.animation);e.centered&&(t=o.left+o.width/2,n=o.top+o.height/2);var a=e.radius||function(t,n,e){var i=Math.max(Math.abs(t-e.left),Math.abs(t-e.right)),o=Math.max(Math.abs(n-e.top),Math.abs(n-e.bottom));return Math.sqrt(i*i+o*o)}(t,n,o),s=t-o.left,u=n-o.top,c=r.enterDuration/(e.speedFactor||1),p=document.createElement("div");p.classList.add("mat-ripple-element"),p.style.left=s-a+"px",p.style.top=u-a+"px",p.style.height=2*a+"px",p.style.width=2*a+"px",p.style.backgroundColor=e.color||null,p.style.transitionDuration=c+"ms",this._containerElement.appendChild(p),window.getComputedStyle(p).getPropertyValue("opacity"),p.style.transform="scale(1)";var h=new $f(this,p,e);return h.state=qf.FADING_IN,this._activeRipples.add(h),e.persistent||(this._mostRecentTransientRipple=h),this.runTimeoutOutsideZone(function(){var t=h===i._mostRecentTransientRipple;h.state=qf.VISIBLE,e.persistent||t&&i._isPointerDown||h.fadeOut()},c),h},t.prototype.fadeOutRipple=function(t){var n=this._activeRipples.delete(t);if(t===this._mostRecentTransientRipple&&(this._mostRecentTransientRipple=null),this._activeRipples.size||(this._containerRect=null),n){var e=t.element,i=l({},Gf,t.config.animation);e.style.transitionDuration=i.exitDuration+"ms",e.style.opacity="0",t.state=qf.FADING_OUT,this.runTimeoutOutsideZone(function(){t.state=qf.HIDDEN,e.parentNode.removeChild(e)},i.exitDuration)}},t.prototype.fadeOutAll=function(){this._activeRipples.forEach(function(t){return t.fadeOut()})},t.prototype.setupTriggerEvents=function(t){var n=this;t&&t!==this._triggerElement&&(this._removeTriggerEvents(),this._ngZone.runOutsideAngular(function(){n._triggerEvents.forEach(function(e,i){return t.addEventListener(i,e,n._eventOptions)})}),this._triggerElement=t)},t.prototype.runTimeoutOutsideZone=function(t,n){void 0===n&&(n=0),this._ngZone.runOutsideAngular(function(){return setTimeout(t,n)})},t.prototype._removeTriggerEvents=function(){var t=this;this._triggerElement&&this._triggerEvents.forEach(function(n,e){t._triggerElement.removeEventListener(e,n,t._eventOptions)})},t}(),Kf=new vt("mat-ripple-global-options"),Zf=function(){function t(t,n,e,i,o){this._elementRef=t,this._animationMode=o,this.radius=0,this.speedFactor=1,this._disabled=!1,this._isInitialized=!1,this._globalOptions=i||{},this._rippleRenderer=new Wf(this,n,t,e)}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"trigger",{get:function(){return this._trigger||this._elementRef.nativeElement},set:function(t){this._trigger=t,this._setupTriggerEventsIfEnabled()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._isInitialized=!0,this._setupTriggerEventsIfEnabled()},t.prototype.ngOnDestroy=function(){this._rippleRenderer._removeTriggerEvents()},t.prototype.fadeOutAll=function(){this._rippleRenderer.fadeOutAll()},Object.defineProperty(t.prototype,"rippleConfig",{get:function(){return{centered:this.centered,radius:this.radius,color:this.color,animation:"NoopAnimations"===this._animationMode?{enterDuration:0,exitDuration:0}:l({},this._globalOptions.animation,this.animation),terminateOnPointerUp:this._globalOptions.terminateOnPointerUp,speedFactor:this.speedFactor*(this._globalOptions.baseSpeedFactor||1)}},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"rippleDisabled",{get:function(){return this.disabled||!!this._globalOptions.disabled},enumerable:!0,configurable:!0}),t.prototype._setupTriggerEventsIfEnabled=function(){!this.disabled&&this._isInitialized&&this._rippleRenderer.setupTriggerEvents(this.trigger)},t.prototype.launch=function(t,n,e){return void 0===n&&(n=0),"number"==typeof t?this._rippleRenderer.fadeInRipple(t,n,l({},this.rippleConfig,e)):this._rippleRenderer.fadeInRipple(0,0,l({},this.rippleConfig,t))},t}(),Xf=function(){return function(){}}();function Yf(t,n){return void 0===n&&(n=Hd),function(e){return e.lift(new Jf(t,n))}}var Jf=function(){function t(t,n){this.dueTime=t,this.scheduler=n}return t.prototype.call=function(t,n){return n.subscribe(new tg(t,this.dueTime,this.scheduler))},t}(),tg=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.dueTime=e,o.scheduler=i,o.debouncedSubscription=null,o.lastValue=null,o.hasValue=!1,o}return o(n,t),n.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(ng,this.dueTime,this))},n.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},n.prototype.debouncedNext=function(){if(this.clearDebounce(),this.hasValue){var t=this.lastValue;this.lastValue=null,this.hasValue=!1,this.destination.next(t)}},n.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},n}(I);function ng(t){t.debouncedNext()}var eg=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var n=function(t){try{return t.frameElement}catch(n){return null}}(t.ownerDocument.defaultView||window);if(n){var e=n&&n.nodeName.toLowerCase();if(-1===og(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===e)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var i=t.nodeName.toLowerCase(),o=og(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===i)return!1;if("audio"===i){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===i){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==i||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var n=t.nodeName.toLowerCase(),e="input"===n&&t.type;return"text"===e||"password"===e||"select"===n||"textarea"===n}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var n=t.nodeName.toLowerCase();return"input"===n||"select"===n||"button"===n||"textarea"===n}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||ig(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Nd))},token:t,providedIn:"root"}),t}();function ig(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var n=t.getAttribute("tabindex");return"-32768"!=n&&!(!n||isNaN(parseInt(n,10)))}function og(t){if(!ig(t))return null;var n=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(n)?-1:n}var lg=function(){function t(t,n,e,i,o){void 0===o&&(o=!1),this._element=t,this._checker=n,this._ngZone=e,this._document=i,this._enabled=!0,o||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._startAnchor.tabIndex=this._endAnchor.tabIndex=this._enabled?0:-1)},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._startAnchor&&this._startAnchor.parentNode&&this._startAnchor.parentNode.removeChild(this._startAnchor),this._endAnchor&&this._endAnchor.parentNode&&this._endAnchor.parentNode.removeChild(this._endAnchor),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;this._startAnchor||(this._startAnchor=this._createAnchor()),this._endAnchor||(this._endAnchor=this._createAnchor()),this._ngZone.runOutsideAngular(function(){t._startAnchor.addEventListener("focus",function(){t.focusLastTabbableElement()}),t._endAnchor.addEventListener("focus",function(){t.focusFirstTabbableElement()}),t._element.parentNode&&(t._element.parentNode.insertBefore(t._startAnchor,t._element),t._element.parentNode.insertBefore(t._endAnchor,t._element.nextSibling))})},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(n){t._executeOnStable(function(){return n(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var n=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),e=0;e<n.length;e++)n[e].hasAttribute("cdk-focus-"+t)?console.warn("Found use of deprecated attribute 'cdk-focus-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 7.0.0.",n[e]):n[e].hasAttribute("cdk-focus-region-"+t)&&console.warn("Found use of deprecated attribute 'cdk-focus-region-"+t+"', use 'cdkFocusRegion"+t+"' instead. The deprecated attribute will be removed in 7.0.0.",n[e]);return"start"==t?n.length?n[0]:this._getFirstTabbableElement(this._element):n.length?n[n.length-1]:this._getLastTabbableElement(this._element)},t.prototype.focusInitialElement=function(){var t=this._element.querySelector("[cdk-focus-initial], [cdkFocusInitial]");return t?(t.hasAttribute("cdk-focus-initial")&&console.warn("Found use of deprecated attribute 'cdk-focus-initial', use 'cdkFocusInitial' instead. The deprecated attribute will be removed in 7.0.0",t),t.focus(),!0):this.focusFirstTabbableElement()},t.prototype.focusFirstTabbableElement=function(){var t=this._getRegionBoundary("start");return t&&t.focus(),!!t},t.prototype.focusLastTabbableElement=function(){var t=this._getRegionBoundary("end");return t&&t.focus(),!!t},t.prototype._getFirstTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children||t.childNodes,e=0;e<n.length;e++){var i=n[e].nodeType===this._document.ELEMENT_NODE?this._getFirstTabbableElement(n[e]):null;if(i)return i}return null},t.prototype._getLastTabbableElement=function(t){if(this._checker.isFocusable(t)&&this._checker.isTabbable(t))return t;for(var n=t.children||t.childNodes,e=n.length-1;e>=0;e--){var i=n[e].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(n[e]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return t.tabIndex=this._enabled?0:-1,t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(fu(1)).subscribe(t)},t}(),rg=function(){function t(t,n,e){this._checker=t,this._ngZone=n,this._document=e}return t.prototype.create=function(t,n){return void 0===n&&(n=!1),new lg(t,this._checker,this._ngZone,this._document,n)},t.ngInjectableDef=yt({factory:function(){return new t(ln(eg),ln(Wn),ln(Wa))},token:t,providedIn:"root"}),t}(),ag=function(){function t(t,n){this._ngZone=t,this._platform=n,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,n){var e=this;if(void 0===n&&(n=!1),!this._platform.isBrowser)return ia(null);if(this._elementInfo.has(t)){var i=this._elementInfo.get(t);return i.checkChildren=n,i.subject.asObservable()}var o={unlisten:function(){},checkChildren:n,subject:new j};this._elementInfo.set(t,o),this._incrementMonitoredElementCount();var l=function(n){return e._onFocus(n,t)},r=function(n){return e._onBlur(n,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",l,!0),t.addEventListener("blur",r,!0)}),o.unlisten=function(){t.removeEventListener("focus",l,!0),t.removeEventListener("blur",r,!0)},o.subject.asObservable()},t.prototype.stopMonitoring=function(t){var n=this._elementInfo.get(t);n&&(n.unlisten(),n.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,n){this._setOriginForCurrentEventQueue(n),"function"==typeof t.focus&&t.focus()},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(n,e){return t.stopMonitoring(e)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var n=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},e=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},i=function(n){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=n.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},o=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",n,!0),document.addEventListener("mousedown",e,!0),document.addEventListener("touchstart",i,!jd()||{passive:!0,capture:!0}),window.addEventListener("focus",o)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",n,!0),document.removeEventListener("mousedown",e,!0),document.removeEventListener("touchstart",i,!jd()||{passive:!0,capture:!0}),window.removeEventListener("focus",o),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,n,e){e?t.classList.add(n):t.classList.remove(n)},t.prototype._setClasses=function(t,n){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!n),this._toggleClass(t,"cdk-touch-focused","touch"===n),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===n),this._toggleClass(t,"cdk-mouse-focused","mouse"===n),this._toggleClass(t,"cdk-program-focused","program"===n))},t.prototype._setOriginForCurrentEventQueue=function(t){var n=this;this._ngZone.runOutsideAngular(function(){n._origin=t,n._originTimeoutId=setTimeout(function(){return n._origin=null})})},t.prototype._wasCausedByTouch=function(t){var n=t.target;return this._lastTouchTarget instanceof Node&&n instanceof Node&&(n===this._lastTouchTarget||n.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,n){var e=this._elementInfo.get(n);if(e&&(e.checkChildren||n===t.target)){var i=this._origin;i||(i=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(n,i),this._emitOrigin(e.subject,i),this._lastFocusOrigin=i}},t.prototype._onBlur=function(t,n){var e=this._elementInfo.get(n);!e||e.checkChildren&&t.relatedTarget instanceof Node&&n.contains(t.relatedTarget)||(this._setClasses(n),this._emitOrigin(e.subject,null))},t.prototype._emitOrigin=function(t,n){this._ngZone.run(function(){return t.next(n)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wn),ln(Nd))},token:t,providedIn:"root"}),t}(),sg=Ki({encapsulation:2,styles:[".mat-dialog-container{box-shadow:0 11px 15px -7px rgba(0,0,0,.2),0 24px 38px 3px rgba(0,0,0,.14),0 9px 46px 8px rgba(0,0,0,.12);display:block;padding:24px;border-radius:2px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media screen and (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:12px 0;display:flex;flex-wrap:wrap;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button+.mat-button,.mat-dialog-actions .mat-button+.mat-raised-button,.mat-dialog-actions .mat-raised-button+.mat-button,.mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-button+.mat-raised-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-button,[dir=rtl] .mat-dialog-actions .mat-raised-button+.mat-raised-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"slideDialog",definitions:[{type:0,name:"enter",styles:{type:6,styles:{transform:"none",opacity:1},offset:null},options:void 0},{type:0,name:"void",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0) scale(0.9)",opacity:0},offset:null},options:void 0},{type:0,name:"exit",styles:{type:6,styles:{transform:"translate3d(0, 25%, 0)",opacity:0},offset:null},options:void 0},{type:1,expr:"* => *",animation:{type:4,styles:null,timings:"400ms cubic-bezier(0.25, 0.8, 0.25, 1)"},options:null}],options:{}}]}});function ug(t){return zl(0,[(t()(),So(0,null,null,0))],null,null)}function cg(t){return zl(0,[Al(402653184,1,{_portalOutlet:0}),(t()(),So(16777216,null,null,1,null,ug)),fl(2,212992,[[1,4]],0,Pd,[jn,Oe],{portal:[0,"portal"]},null)],function(t,n){t(n,2,0,"")},null)}function pg(t){return zl(0,[(t()(),Io(0,0,null,null,1,"mat-dialog-container",[["class","mat-dialog-container"],["tabindex","-1"]],[[1,"id",0],[1,"role",0],[1,"aria-labelledby",0],[1,"aria-label",0],[1,"aria-describedby",0],[40,"@slideDialog",0]],[["component","@slideDialog.start"],["component","@slideDialog.done"]],function(t,n,e){var i=!0;return"component:@slideDialog.start"===n&&(i=!1!==nl(t,1)._onAnimationStart(e)&&i),"component:@slideDialog.done"===n&&(i=!1!==nl(t,1)._onAnimationDone(e)&&i),i},cg,sg)),fl(1,49152,null,0,kf,[_e,rg,Ee,[2,Wa],Sf],null,null)],null,function(t,n){t(n,0,0,nl(n,1)._id,nl(n,1)._config.role,nl(n,1)._config.ariaLabel?null:nl(n,1)._ariaLabelledBy,nl(n,1)._config.ariaLabel,nl(n,1)._config.ariaDescribedBy||null,nl(n,1)._state)})}var hg,dg=qo("mat-dialog-container",kf,pg,{},{},[]),fg={},gg=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,n){return n.subscribe(new mg(t,this.resultSelector))},t}(),mg=function(t){function n(n,e){var i=t.call(this,n)||this;return i.resultSelector=e,i.active=0,i.values=[],i.observables=[],i}return o(n,t),n.prototype._next=function(t){this.values.push(fg),this.observables.push(t)},n.prototype._complete=function(){var t=this.observables,n=t.length;if(0===n)this.destination.complete();else{this.active=n,this.toRespond=n;for(var e=0;e<n;e++){var i=t[e];this.add(X(this,i,i,e))}}},n.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},n.prototype.notifyNext=function(t,n,e,i,o){var l=this.values,r=this.toRespond?l[e]===fg?--this.toRespond:this.toRespond:0;l[e]=n,0===r&&(this.resultSelector?this._tryResultSelector(l):this.destination.next(l.slice()))},n.prototype._tryResultSelector=function(t){var n;try{n=this.resultSelector.apply(this,t)}catch(e){return void this.destination.error(e)}this.destination.next(n)},n}(Y),yg=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,n){var e=new vg(t),i=X(e,this.notifier);return i&&!i.closed?(e.add(i),n.subscribe(e)):e},t}(),vg=function(t){function n(n){return t.call(this,n)||this}return o(n,t),n.prototype.notifyNext=function(t,n,e,i,o){this.complete()},n.prototype.notifyComplete=function(){},n}(Y),bg=new Set,_g=function(){function t(t){this.platform=t,this._matchMedia=this.platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):wg}return t.prototype.matchMedia=function(t){return this.platform.WEBKIT&&function(t){if(!bg.has(t))try{hg||((hg=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(hg)),hg.sheet&&(hg.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),bg.add(t))}catch(n){console.error(n)}}(t),this._matchMedia(t)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Nd))},token:t,providedIn:"root"}),t}();function wg(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var xg=function(){function t(t,n){this.mediaMatcher=t,this.zone=n,this._queries=new Map,this._destroySubject=new j}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var n=this;return Pg(Md(t)).some(function(t){return n._registerQuery(t).mql.matches})},t.prototype.observe=function(t){var n=this;return function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];var e=null,i=null;return B(t[t.length-1])&&(i=t.pop()),"function"==typeof t[t.length-1]&&(e=t.pop()),1===t.length&&p(t[0])&&(t=t[0]),et(t,i).lift(new gg(e))}(Pg(Md(t)).map(function(t){return n._registerQuery(t).observable})).pipe(J(function(t){return{matches:t.some(function(t){return t&&t.matches})}}))},t.prototype._registerQuery=function(t){var n=this;if(this._queries.has(t))return this._queries.get(t);var e,i=this.mediaMatcher.matchMedia(t),o={observable:function t(n,e,i){return i?t(n,e).pipe(J(function(t){return p(t)?i.apply(void 0,t):i(t)})):new M(function(t){var i,o=function(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return t.next(1===n.length?n[0]:n)};try{i=n(o)}catch(l){return void t.error(l)}if(d(e))return function(){return e(o,i)}})}(function(t){i.addListener(function(e){return n.zone.run(function(){return t(e)})})},function(t){i.removeListener(function(e){return n.zone.run(function(){return t(e)})})}).pipe((e=this._destroySubject,function(t){return t.lift(new yg(e))}),kd(i),J(function(t){return{matches:t.matches}})),mql:i};return this._queries.set(t,o),o},t.ngInjectableDef=yt({factory:function(){return new t(ln(_g),ln(Wn))},token:t,providedIn:"root"}),t}();function Pg(t){return t.map(function(t){return t.split(",")}).reduce(function(t,n){return t.concat(n)}).map(function(t){return t.trim()})}var Cg={XSmall:"(max-width: 599px)",Small:"(min-width: 600px) and (max-width: 959px)",Medium:"(min-width: 960px) and (max-width: 1279px)",Large:"(min-width: 1280px) and (max-width: 1919px)",XLarge:"(min-width: 1920px)",Handset:"(max-width: 599px) and (orientation: portrait), (max-width: 959px) and (orientation: landscape)",Tablet:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait), (min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",Web:"(min-width: 840px) and (orientation: portrait), (min-width: 1280px) and (orientation: landscape)",HandsetPortrait:"(max-width: 599px) and (orientation: portrait)",TabletPortrait:"(min-width: 600px) and (max-width: 839px) and (orientation: portrait)",WebPortrait:"(min-width: 840px) and (orientation: portrait)",HandsetLandscape:"(max-width: 959px) and (orientation: landscape)",TabletLandscape:"(min-width: 960px) and (max-width: 1279px) and (orientation: landscape)",WebLandscape:"(min-width: 1280px) and (orientation: landscape)"},Sg=20,Ig=new vt("mat-tooltip-scroll-strategy");function kg(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:Sg})}}var Og=function(){function t(t,n){this._changeDetectorRef=t,this._breakpointObserver=n,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new j,this._isHandset=this._breakpointObserver.observe(Cg.Handset)}return t.prototype.show=function(t){var n=this;this._hideTimeoutId&&clearTimeout(this._hideTimeoutId),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout(function(){n._visibility="visible",n._markForCheck()},t)},t.prototype.hide=function(t){var n=this;this._showTimeoutId&&clearTimeout(this._showTimeoutId),this._hideTimeoutId=setTimeout(function(){n._visibility="hidden",n._markForCheck()},t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var n=t.toState;"hidden"!==n||this.isVisible()||this._onHide.next(),"visible"!==n&&"hidden"!==n||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t}(),Eg=function(){return function(){}}(),Dg=Ki({encapsulation:2,styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:2px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px}@media screen and (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}"],data:{animation:[{type:7,name:"state",definitions:[{type:0,name:"initial, void, hidden",styles:{type:6,styles:{transform:"scale(0)"},offset:null},options:void 0},{type:0,name:"visible",styles:{type:6,styles:{transform:"scale(1)"},offset:null},options:void 0},{type:1,expr:"* => visible",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.0, 0.0, 0.2, 1)"},options:null},{type:1,expr:"* => hidden",animation:{type:4,styles:null,timings:"150ms cubic-bezier(0.4, 0.0, 1, 1)"},options:null}],options:{}}]}});function Ag(t){return zl(2,[(t()(),Io(0,0,null,null,3,"div",[["class","mat-tooltip"]],[[2,"mat-tooltip-handset",null],[24,"@state",0]],[[null,"@state.start"],[null,"@state.done"]],function(t,n,e){var i=!0,o=t.component;return"@state.start"===n&&(i=!1!==o._animationStart()&&i),"@state.done"===n&&(i=!1!==o._animationDone(e)&&i),i},null,null)),fl(1,278528,null,0,Da,[Xe,Ye,_e,be],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),gl(131072,$a,[Ee]),(t()(),Bl(3,null,["",""]))],function(t,n){t(n,1,0,"mat-tooltip",n.component.tooltipClass)},function(t,n){var e=n.component;t(n,0,0,Gi(n,0,0,nl(n,2).transform(e._isHandset)).matches,e._visibility),t(n,3,0,e.message)})}function Mg(t){return zl(0,[(t()(),Io(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(t,n,e){var i=!0;return"body:click"===n&&(i=!1!==nl(t,1)._handleBodyInteraction()&&i),i},Ag,Dg)),fl(1,49152,null,0,Og,[Ee,xg],null,null)],null,function(t,n){t(n,0,0,"visible"===nl(n,1)._visibility?1:null)})}var Tg=qo("mat-tooltip-component",Og,Mg,{},{},[]),Rg=Ki({encapsulation:2,styles:[],data:{}});function Lg(t){return zl(0,[(t()(),Io(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),fl(1,212992,null,0,Bh,[Vh,Oe,jn,[8,null],Ee],null,null)],function(t,n){t(n,1,0)},null)}function Ng(t){return zl(0,[(t()(),Io(0,0,null,null,1,"ng-component",[],null,null,null,Lg,Rg)),fl(1,49152,null,0,Qc,[],null,null)],null,null)}var jg=qo("ng-component",Qc,Ng,{},{},[]),Vg=new vt("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),Bg=[{alias:"xs",mediaQuery:"(min-width: 0px) and (max-width: 599px)"},{alias:"gt-xs",overlapping:!0,mediaQuery:"(min-width: 600px)"},{alias:"lt-sm",overlapping:!0,mediaQuery:"(max-width: 599px)"},{alias:"sm",mediaQuery:"(min-width: 600px) and (max-width: 959px)"},{alias:"gt-sm",overlapping:!0,mediaQuery:"(min-width: 960px)"},{alias:"lt-md",overlapping:!0,mediaQuery:"(max-width: 959px)"},{alias:"md",mediaQuery:"(min-width: 960px) and (max-width: 1279px)"},{alias:"gt-md",overlapping:!0,mediaQuery:"(min-width: 1280px)"},{alias:"lt-lg",overlapping:!0,mediaQuery:"(max-width: 1279px)"},{alias:"lg",mediaQuery:"(min-width: 1280px) and (max-width: 1919px)"},{alias:"gt-lg",overlapping:!0,mediaQuery:"(min-width: 1920px)"},{alias:"lt-xl",overlapping:!0,mediaQuery:"(max-width: 1919px)"},{alias:"xl",mediaQuery:"(min-width: 1920px) and (max-width: 5000px)"}],Ug="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",Fg="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",zg="(orientation: portrait) and (min-width: 840px)",Hg="(orientation: landscape) and (min-width: 1280px)",qg={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:Fg+" , "+Ug,WEB:zg+", "+Hg+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:Fg+" ",WEB_PORTRAIT:""+zg,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+Ug,WEB_LANDSCAPE:""+Hg},$g=[{alias:"handset",mediaQuery:qg.HANDSET},{alias:"handset.landscape",mediaQuery:qg.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:qg.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:qg.TABLET},{alias:"tablet.landscape",mediaQuery:qg.TABLET},{alias:"tablet.portrait",mediaQuery:qg.TABLET_PORTRAIT},{alias:"web",mediaQuery:qg.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:qg.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:qg.WEB_PORTRAIT,overlapping:!0}];function Gg(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var i=0,o=n;i<o.length;i++){var l=o[i];if(null!=l)for(var r in l)l.hasOwnProperty(r)&&(t[r]=l[r])}return t}var Qg=/(\.|-|_)/g;function Wg(t){var n=t.length>0?t.charAt(0):"",e=t.length>1?t.slice(1):"";return n.toUpperCase()+e}var Kg={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},Zg=new vt("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return Kg}}),Xg=new vt("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=ln(Vg),n=ln(Zg),e=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return function(t,n){void 0===n&&(n=[]);var e,i={};return t.forEach(function(t){i[t.alias]=t}),n.forEach(function(t){i[t.alias]?Gg(i[t.alias],t):i[t.alias]=t}),(e=Object.keys(i).map(function(t){return i[t]})).forEach(function(t){t.suffix||(t.suffix=t.alias.replace(Qg,"|").split("|").map(Wg).join(""),t.overlapping=!!t.overlapping)}),e}((n.disableDefaultBps?[]:Bg).concat(n.addOrientationBps?$g:[]),e)}}),Yg=function(){function t(t){this._registry=t}return Object.defineProperty(t.prototype,"items",{get:function(){return this._registry.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortedItems",{get:function(){var t=this._registry.filter(function(t){return!0===t.overlapping}),n=this._registry.filter(function(t){return!0!==t.overlapping});return t.concat(n)},enumerable:!0,configurable:!0}),t.prototype.findByAlias=function(t){return this._registry.find(function(n){return n.alias==t})||null},t.prototype.findByQuery=function(t){return this._registry.find(function(n){return n.mediaQuery==t})||null},Object.defineProperty(t.prototype,"overlappings",{get:function(){return this._registry.filter(function(t){return 1==t.overlapping})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"aliases",{get:function(){return this._registry.map(function(t){return t.alias})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"suffixes",{get:function(){return this._registry.map(function(t){return t.suffix?t.suffix:""})},enumerable:!0,configurable:!0}),t.ngInjectableDef=yt({factory:function(){return new t(ln(Xg))},token:t,providedIn:"root"}),t}(),Jg=function(){function t(t,n,e,i){void 0===t&&(t=!1),void 0===n&&(n="all"),void 0===e&&(e=""),void 0===i&&(i=""),this.matches=t,this.mediaQuery=n,this.mqAlias=e,this.suffix=i}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),tm=function(){function t(t,n,e){this._zone=t,this._platformId=n,this._document=e,this._registry=new Map,this._source=new Js(new Jg(!0)),this._observable$=this._source.asObservable()}return t.prototype.isActive=function(t){var n=this._registry.get(t);return!!n&&n.matches},t.prototype.observe=function(t){return t&&this.registerQuery(t),this._observable$.pipe(pa(function(n){return!t||n.mediaQuery===t}))},t.prototype.registerQuery=function(t){var n=this,e=function(t){return void 0===t?[]:"string"==typeof t?[t]:(n={},t.filter(function(t){return!n.hasOwnProperty(t)&&(n[t]=!0)}));var n}(t);e.length>0&&(this._prepareQueryCSS(e,this._document),e.forEach(function(t){var e=n._registry.get(t),i=function(e){n._zone.run(function(){var i=new Jg(e.matches,t);n._source.next(i)})};e||((e=n._buildMQL(t)).addListener(i),n._registry.set(t,e)),e.matches&&i(e)}))},t.prototype._buildMQL=function(t){return Xa(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}},t.prototype._prepareQueryCSS=function(t,n){var e=t.filter(function(t){return!nm[t]});if(e.length>0){var i=e.join(", ");try{var o=n.createElement("style");o.setAttribute("type","text/css"),o.styleSheet||o.appendChild(n.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+i+" {.fx-query-test{ }}\n")),n.head.appendChild(o),e.forEach(function(t){return nm[t]=o})}catch(l){console.error(l)}}},t.ngInjectableDef=yt({factory:function(){return new t(ln(Wn),ln(Cn),ln(Wa))},token:t,providedIn:"root"}),t}(),nm={};function em(t,n){return Gg(t,n?{mqAlias:n.alias,suffix:n.suffix}:{})}var im=function(){return function(){}}(),om=function(){function t(t,n){this.breakpoints=t,this.mediaWatcher=n,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return t.prototype.isActive=function(t){var n=this._toMediaQuery(t);return this.mediaWatcher.isActive(n)},t.prototype.subscribe=function(t,n,e){return t&&"object"==typeof t?this.observable$.subscribe(t.next,t.error,t.complete):this.observable$.subscribe(t,n,e)},t.prototype.asObservable=function(){return this.observable$},t.prototype._registerBreakPoints=function(){var t=this.breakpoints.sortedItems.map(function(t){return t.mediaQuery});this.mediaWatcher.registerQuery(t)},t.prototype._buildObservable=function(){var t=this,n=this;return this.mediaWatcher.observe().pipe(pa(function(t){return!0===t.matches}),pa(function(e){var i=t.breakpoints.findByQuery(e.mediaQuery);return!i||!(n.filterOverlaps&&i.overlapping)}),J(function(n){return em(n,t._findByQuery(n.mediaQuery))}))},t.prototype._findByAlias=function(t){return this.breakpoints.findByAlias(t)},t.prototype._findByQuery=function(t){return this.breakpoints.findByQuery(t)},t.prototype._toMediaQuery=function(t){var n=this._findByAlias(t)||this._findByQuery(t);return n?n.mediaQuery:t},t.ngInjectableDef=yt({factory:function(){return new t(ln(Yg),ln(tm))},token:t,providedIn:"root"}),t}(),lm=function(){return function(){}}(),rm=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,n,e){var i=this.stylesheet.get(t);i?i.set(n,e):this.stylesheet.set(t,new Map([[n,e]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,n){var e=this.stylesheet.get(t),i="";if(e){var o=e.get(n);"number"!=typeof o&&"string"!=typeof o||(i=o+"")}return i},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),am=new vt("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),sm=["row","column","row-reverse","column-reverse"];function um(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var cm=function(){return function(t,n,e){this.baseKey=t,this.defaultValue=n,this.inputKeys=e}}(),pm=function(){function t(t,n,e){this._options=t,this._mediaMonitor=n,this._onMediaChanges=e,this._subscribers=[],this._registryMap=this._buildRegistryMap(),this._subscribers=this._configureChangeObservers()}return Object.defineProperty(t.prototype,"registryFromLargest",{get:function(){return this._registryMap.slice().reverse()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"mediaMonitor",{get:function(){return this._mediaMonitor},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedInputKey",{get:function(){return this._activatedInputKey||this._options.baseKey},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedInput",{get:function(){var t=this.activatedInputKey;return this.hasKeyValue(t)?this._lookupKeyValue(t):this._options.defaultValue},enumerable:!0,configurable:!0}),t.prototype.hasKeyValue=function(t){return void 0!==this._options.inputKeys[t]},t.prototype.destroy=function(){this._subscribers.forEach(function(t){t.unsubscribe()}),this._subscribers=[]},t.prototype._configureChangeObservers=function(){var t=this,n=[];return this._registryMap.forEach(function(e){t._keyInUse(e.key)&&n.push(t.mediaMonitor.observe(e.alias).pipe(J(function(n){return(n=n.clone()).property=t._options.baseKey,n})).subscribe(function(n){t._onMonitorEvents(n)}))}),n},t.prototype._buildRegistryMap=function(){var t=this;return this.mediaMonitor.breakpoints.map(function(n){return Gg({},n,{baseKey:t._options.baseKey,key:t._options.baseKey+n.suffix})}).filter(function(n){return t._keyInUse(n.key)})},t.prototype._onMonitorEvents=function(t){t.property==this._options.baseKey&&(t.value=this._calculateActivatedValue(t),this._onMediaChanges(t))},t.prototype._keyInUse=function(t){return void 0!==this._lookupKeyValue(t)},t.prototype._calculateActivatedValue=function(t){var n=this._options.baseKey+t.suffix,e=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(e=t.matches?n:e==n?"":e),this.activatedInput},t.prototype._validateInputKey=function(t){var n=this,e=function(t){return!n._keyInUse(t)};return e(t)&&this.mediaMonitor.activeOverlaps.some(function(i){var o=n._options.baseKey+i.suffix;return!e(o)&&(t=o,!0)}),t},t.prototype._lookupKeyValue=function(t){return this._options.inputKeys[t]},t}(),hm=function(){function t(t,n,e){this._mediaMonitor=t,this._elementRef=n,this._styler=e,this._inputMap={},this._hasInitialized=!1}return Object.defineProperty(t.prototype,"hasMediaQueryListener",{get:function(){return!!this._mqActivation},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedValue",{get:function(){return this._mqActivation?this._mqActivation.activatedInput:void 0},set:function(t){var n,e,i="baseKey";this._mqActivation&&(e=this._inputMap[i=this._mqActivation.activatedInputKey],this._inputMap[i]=t);var o=new Ve(e,t,!1);this.ngOnChanges(((n={})[i]=o,n))},enumerable:!0,configurable:!0}),t.prototype.hasResponsiveAPI=function(t){return Object.keys(this._inputMap).length-(this._inputMap[t]?1:0)>0},t.prototype.ngOnInit=function(){this._hasInitialized=!0},t.prototype.ngOnChanges=function(t){throw new Error("BaseDirective::ngOnChanges should be overridden in subclass: "+t)},t.prototype.ngOnDestroy=function(){this._mqActivation&&this._mqActivation.destroy(),delete this._mediaMonitor},Object.defineProperty(t.prototype,"parentElement",{get:function(){return this._elementRef.nativeElement.parentNode},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"nativeElement",{get:function(){return this._elementRef.nativeElement},enumerable:!0,configurable:!0}),t.prototype._queryInput=function(t){return this._inputMap[t]},t.prototype._getDefaultVal=function(t,n){var e=this._queryInput(t);return null!=e&&""!==e?e:n},t.prototype._getDisplayStyle=function(t){return void 0===t&&(t=this.nativeElement),this._styler.lookupStyle(t,"display")},t.prototype._getAttributeValue=function(t,n){return void 0===n&&(n=this.nativeElement),this._styler.lookupAttributeValue(n,t)},t.prototype._getFlexFlowDirection=function(t,n){var e;void 0===n&&(n=!1);var i="row";if(t&&(i=(e=this._styler.getFlowDirection(t))[0],!e[1]&&n)){var o=function(t){var n,e,i=function(t){var n=(t=t?t.toLowerCase():"").split(" "),e=n[0],i=n[1],o=n[2];return sm.find(function(t){return t===e})||(e=sm[0]),"inline"===i&&(i="inline"!==o?o:"",o="inline"),[e,um(i),!!o]}(t);return void 0===(n=i[1])&&(n=null),void 0===(e=i[2])&&(e=!1),{display:e?"inline-flex":"flex","box-sizing":"border-box","flex-direction":i[0],"flex-wrap":n||null}}(i);this._styler.applyStyleToElements(o,[t])}return i.trim()||"row"},t.prototype._applyStyleToElement=function(t,n,e){void 0===e&&(e=this.nativeElement),this._styler.applyStyleToElement(e,t,n)},t.prototype._applyStyleToElements=function(t,n){this._styler.applyStyleToElements(t,n)},t.prototype._cacheInput=function(t,n){if("object"==typeof n)for(var e in n)this._inputMap[e]=n[e];else t&&(this._inputMap[t]=n)},t.prototype._listenForMediaQueryChanges=function(t,n,e){if(!this._mqActivation){var i=new cm(t,n,this._inputMap);this._mqActivation=new pm(i,this._mediaMonitor,function(t){return e(t)})}return this._mqActivation},Object.defineProperty(t.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,n=[],e=t.length;e--;)n[e]=t[e];return n},enumerable:!0,configurable:!0}),t.prototype.hasKeyValue=function(t){return this._mqActivation.hasKeyValue(t)},Object.defineProperty(t.prototype,"hasInitialized",{get:function(){return this._hasInitialized},enumerable:!0,configurable:!0}),t}(),dm=function(){function t(t,n){this._breakpoints=t,this._matchMedia=n,this._registerBreakpoints()}return Object.defineProperty(t.prototype,"breakpoints",{get:function(){return this._breakpoints.items.slice()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOverlaps",{get:function(){var t=this;return this._breakpoints.overlappings.reverse().filter(function(n){return t._matchMedia.isActive(n.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){var t=this,n=null;this.breakpoints.reverse().forEach(function(e){""!==e.alias&&!n&&t._matchMedia.isActive(e.mediaQuery)&&(n=e)});var e=this.breakpoints[0];return n||(this._matchMedia.isActive(e.mediaQuery)?e:null)},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var n=this._breakpoints.findByAlias(t)||this._breakpoints.findByQuery(t);return this._matchMedia.isActive(n?n.mediaQuery:t)},t.prototype.observe=function(t){var n=this._breakpoints.findByAlias(t||"")||this._breakpoints.findByQuery(t||"");return this._matchMedia.observe(n?n.mediaQuery:t).pipe(J(function(t){return em(t,n)}),pa(function(t){return!n||""!==t.mqAlias}))},t.prototype._registerBreakpoints=function(){var t=this._breakpoints.sortedItems.map(function(t){return t.mediaQuery});this._matchMedia.registerQuery(t)},t.ngInjectableDef=yt({factory:function(){return new t(ln(Yg),ln(tm))},token:t,providedIn:"root"}),t}();function fm(t){for(var n in t){var e=t[n]||"";switch(n){case"display":t.display="flex"===e?["-webkit-flex","flex"]:"inline-flex"===e?["-webkit-inline-flex","inline-flex"]:e;break;case"align-items":case"align-self":case"align-content":case"flex":case"flex-basis":case"flex-flow":case"flex-grow":case"flex-shrink":case"flex-wrap":case"justify-content":t["-webkit-"+n]=e;break;case"flex-direction":t["-webkit-flex-direction"]=e=e||"row",t["flex-direction"]=e;break;case"order":t.order=t["-webkit-"+n]=isNaN(e)?"0":e}}return t}var gm=function(){function t(t,n,e,i){this._serverStylesheet=t,this._serverModuleLoaded=n,this._platformId=e,this.layoutConfig=i}return t.prototype.applyStyleToElement=function(t,n,e){var i={};"string"==typeof n&&(i[n]=e,n=i),i=this.layoutConfig.disableVendorPrefixes?n:fm(n),this._applyMultiValueStyleToElement(i,t)},t.prototype.applyStyleToElements=function(t,n){var e=this;void 0===n&&(n=[]);var i=this.layoutConfig.disableVendorPrefixes?t:fm(t);n.forEach(function(t){e._applyMultiValueStyleToElement(i,t)})},t.prototype.getFlowDirection=function(t){var n=this.lookupStyle(t,"flex-direction");return n===mm&&(n=""),[n||"row",this.lookupInlineStyle(t,"flex-direction")||Ya(this._platformId)&&this._serverModuleLoaded?n:""]},t.prototype.lookupAttributeValue=function(t,n){return t.getAttribute(n)||""},t.prototype.lookupInlineStyle=function(t,n){return Xa(this._platformId)?t.style[n]:this._getServerStyle(t,n)},t.prototype.lookupStyle=function(t,n,e){void 0===e&&(e=!1);var i="";return t&&((i=this.lookupInlineStyle(t,n))||(Xa(this._platformId)?e||(i=getComputedStyle(t).getPropertyValue(n)):this._serverModuleLoaded&&(i=this._serverStylesheet.getStyleForElement(t,n)))),i?i.trim():mm},t.prototype._applyMultiValueStyleToElement=function(t,n){var e=this;Object.keys(t).sort().forEach(function(i){var o=Array.isArray(t[i])?t[i]:[t[i]];o.sort();for(var l=0,r=o;l<r.length;l++){var a=r[l];Xa(e._platformId)||!e._serverModuleLoaded?Xa(e._platformId)?n.style.setProperty(i,a):e._setServerStyle(n,i,a):e._serverStylesheet.addStyleToElement(n,i,a)}})},t.prototype._setServerStyle=function(t,n,e){n=n.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();var i=this._readStyleAttribute(t);i[n]=e||"",this._writeStyleAttribute(t,i)},t.prototype._getServerStyle=function(t,n){return this._readStyleAttribute(t)[n]||""},t.prototype._readStyleAttribute=function(t){var n={},e=t.getAttribute("style");if(e)for(var i=e.split(/;+/g),o=0;o<i.length;o++){var l=i[o].trim();if(l.length>0){var r=l.indexOf(":");if(-1===r)throw new Error("Invalid CSS style: "+l);n[l.substr(0,r).trim()]=l.substr(r+1).trim()}}return n},t.prototype._writeStyleAttribute=function(t,n){var e="";for(var i in n)n[i]&&(e+=i+":"+n[i]+";");t.setAttribute("style",e)},t.ngInjectableDef=yt({factory:function(){return new t(ln(rm,8),ln(am,8),ln(Cn),ln(Zg))},token:t,providedIn:"root"}),t}(),mm="block";function ym(t){return t.replace(/[\s]/g,"").replace(/[\/\*\+\-]/g," $& ")}var vm=function(t){function n(n,e){var i=t.call(this,n,e)||this;return i.scheduler=n,i.work=e,i}return o(n,t),n.prototype.schedule=function(n,e){return void 0===e&&(e=0),e>0?t.prototype.schedule.call(this,n,e):(this.delay=e,this.state=n,this.scheduler.flush(this),this)},n.prototype.execute=function(n,e){return e>0||this.closed?t.prototype.execute.call(this,n,e):this._execute(n,e)},n.prototype.requestAsyncId=function(n,e,i){return void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0?t.prototype.requestAsyncId.call(this,n,e,i):n.flush(this)},n}(Ud),bm=new(function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n}(zd))(vm);function _m(t,n){return new M(n?function(e){return n.schedule(wm,0,{error:t,subscriber:e})}:function(n){return n.error(t)})}function wm(t){t.subscriber.error(t.error)}var xm=function(){function t(t,n,e){this.kind=t,this.value=n,this.error=e,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,n,e){switch(this.kind){case"N":return t&&t(this.value);case"E":return n&&n(this.error);case"C":return e&&e()}},t.prototype.accept=function(t,n,e){return t&&"function"==typeof t.next?this.observe(t):this.do(t,n,e)},t.prototype.toObservable=function(){switch(this.kind){case"N":return ia(this.value);case"E":return _m(this.error);case"C":return Jr()}throw new Error("unexpected notification kind value")},t.createNext=function(n){return void 0!==n?new t("N",n):t.undefinedValueNotification},t.createError=function(n){return new t("E",void 0,n)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),Pm=function(t){function n(n,e,i){void 0===i&&(i=0);var o=t.call(this,n)||this;return o.scheduler=e,o.delay=i,o}return o(n,t),n.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},n.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(n.dispatch,this.delay,new Cm(t,this.destination)))},n.prototype._next=function(t){this.scheduleMessage(xm.createNext(t))},n.prototype._error=function(t){this.scheduleMessage(xm.createError(t))},n.prototype._complete=function(){this.scheduleMessage(xm.createComplete())},n}(I),Cm=function(){return function(t,n){this.notification=t,this.destination=n}}(),Sm=function(t){function n(n,e,i){void 0===n&&(n=Number.POSITIVE_INFINITY),void 0===e&&(e=Number.POSITIVE_INFINITY);var o=t.call(this)||this;return o.scheduler=i,o._events=[],o._infiniteTimeWindow=!1,o._bufferSize=n<1?1:n,o._windowTime=e<1?1:e,e===Number.POSITIVE_INFINITY?(o._infiniteTimeWindow=!0,o.next=o.nextInfiniteTimeWindow):o.next=o.nextTimeWindow,o}return o(n,t),n.prototype.nextInfiniteTimeWindow=function(n){var e=this._events;e.push(n),e.length>this._bufferSize&&e.shift(),t.prototype.next.call(this,n)},n.prototype.nextTimeWindow=function(n){this._events.push(new Im(this._getNow(),n)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,n)},n.prototype._subscribe=function(t){var n,e=this._infiniteTimeWindow,i=e?this._events:this._trimBufferThenGetEvents(),o=this.scheduler,l=i.length;if(this.closed)throw new R;if(this.isStopped||this.hasError?n=b.EMPTY:(this.observers.push(t),n=new L(this,t)),o&&t.add(t=new Pm(t,o)),e)for(var r=0;r<l&&!t.closed;r++)t.next(i[r]);else for(r=0;r<l&&!t.closed;r++)t.next(i[r].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),n},n.prototype._getNow=function(){return(this.scheduler||bm).now()},n.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),n=this._bufferSize,e=this._windowTime,i=this._events,o=i.length,l=0;l<o&&!(t-i[l].time<e);)l++;return o>n&&(l=Math.max(l,o-n)),l>0&&i.splice(0,l),i},n}(j),Im=function(){return function(t,n){this.time=t,this.value=n}}(),km="inline",Om=["row","column","row-reverse","column-reverse"];function Em(t){var n=(t=t?t.toLowerCase():"").split(" "),e=n[0],i=n[1],o=n[2];return Om.find(function(t){return t===e})||(e=Om[0]),i===km&&(i=o!==km?o:"",o=km),[e,Am(i),!!o]}function Dm(t){return Em(t)[0].indexOf("row")>-1}function Am(t){if(t)switch(t.toLowerCase()){case"reverse":case"wrap-reverse":case"reverse-wrap":t="wrap-reverse";break;case"no":case"none":case"nowrap":t="nowrap";break;default:t="wrap"}return t}var Mm=function(t){function n(n,e,i){var o=t.call(this,n,e,i)||this;return o._announcer=new Sm(1),o.layout$=o._announcer.asObservable(),o}return o(n,t),Object.defineProperty(n.prototype,"layout",{set:function(t){this._cacheInput("layout",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutXs",{set:function(t){this._cacheInput("layoutXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutSm",{set:function(t){this._cacheInput("layoutSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutMd",{set:function(t){this._cacheInput("layoutMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutLg",{set:function(t){this._cacheInput("layoutLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutXl",{set:function(t){this._cacheInput("layoutXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutGtXs",{set:function(t){this._cacheInput("layoutGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutGtSm",{set:function(t){this._cacheInput("layoutGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutGtMd",{set:function(t){this._cacheInput("layoutGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutGtLg",{set:function(t){this._cacheInput("layoutGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutLtSm",{set:function(t){this._cacheInput("layoutLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutLtMd",{set:function(t){this._cacheInput("layoutLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutLtLg",{set:function(t){this._cacheInput("layoutLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"layoutLtXl",{set:function(t){this._cacheInput("layoutLtXl",t)},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){(null!=t.layout||this._mqActivation)&&this._updateWithDirection()},n.prototype.ngOnInit=function(){var n=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(t){n._updateWithDirection(t.value)})},n.prototype._updateWithDirection=function(t){t=t||this._queryInput("layout")||"row",this._mqActivation&&(t=this._mqActivation.activatedInput);var n=function(t){var n=Em(t);return function(t,e,i){return void 0===e&&(e=null),void 0===i&&(i=!1),{display:i?"inline-flex":"flex","box-sizing":"border-box","flex-direction":n[0],"flex-wrap":e||null}}(0,n[1],n[2])}(t||"");this._applyStyleToElement(n),this._announcer.next({direction:n["flex-direction"],wrap:!!n["flex-wrap"]&&"nowrap"!==n["flex-wrap"]})},n}(hm);function Tm(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];if(null==t)throw TypeError("Cannot convert undefined or null to object");for(var i=0,o=n;i<o.length;i++){var l=o[i];if(null!=l)for(var r in l)l.hasOwnProperty(r)&&(t[r]=l[r])}return t}var Rm=function(t){function n(n,e,i,o,l){var r=t.call(this,n,e,o)||this;return r._container=i,r.styleUtils=o,r.layoutConfig=l,r._cacheInput("flex",""),r._cacheInput("shrink",1),r._cacheInput("grow",1),r}return o(n,t),Object.defineProperty(n.prototype,"shrink",{set:function(t){this._cacheInput("shrink",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"grow",{set:function(t){this._cacheInput("grow",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flex",{set:function(t){this._cacheInput("flex",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexXs",{set:function(t){this._cacheInput("flexXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexSm",{set:function(t){this._cacheInput("flexSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexMd",{set:function(t){this._cacheInput("flexMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexLg",{set:function(t){this._cacheInput("flexLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexXl",{set:function(t){this._cacheInput("flexXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexGtXs",{set:function(t){this._cacheInput("flexGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexGtSm",{set:function(t){this._cacheInput("flexGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexGtMd",{set:function(t){this._cacheInput("flexGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexGtLg",{set:function(t){this._cacheInput("flexGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexLtSm",{set:function(t){this._cacheInput("flexLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexLtMd",{set:function(t){this._cacheInput("flexLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexLtLg",{set:function(t){this._cacheInput("flexLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"flexLtXl",{set:function(t){this._cacheInput("flexLtXl",t)},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){(null!=t.flex||this._mqActivation)&&this._updateStyle()},n.prototype.ngOnInit=function(){var n=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("flex","",function(t){n._updateStyle(t.value)}),this._container&&(this._layoutWatcher=this._container.layout$.subscribe(function(t){n._onLayoutChange(t)}))},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},n.prototype._onLayoutChange=function(t){this._layout=t||this._layout||{direction:"row",wrap:!1},this._updateStyle()},n.prototype._updateStyle=function(t){var n=t||this._queryInput("flex")||"";this._mqActivation&&(n=this._mqActivation.activatedInput);var e=function(t,n,e){void 0===n&&(n="1"),void 0===e&&(e="1");var i=[n,e,t],o=t.indexOf("calc");if(o>0)i[2]=ym(t.substring(o).trim()),2==(l=t.substr(0,o).trim().split(" ")).length&&(i[0]=l[0],i[1]=l[1]);else if(0==o)i[2]=ym(t.trim());else{var l;i=3===(l=t.split(" ")).length?l:[n,e,t]}return i}(String(n).replace(";",""),this._queryInput("grow"),this._queryInput("shrink"));this._applyStyleToElement(this._validateValue.apply(this,e))},n.prototype._validateValue=function(t,n,e){var i=this._getFlexFlowDirection(this.parentElement,!1!==this.layoutConfig.addFlexToParent).indexOf("column")>-1?"column":"row",o=Dm(i)?"max-width":"max-height",l=Dm(i)?"min-width":"min-height",r=String(e).indexOf("calc")>-1,a=r||"auto"==e,s=String(e).indexOf("%")>-1&&!r,u=String(e).indexOf("px")>-1||String(e).indexOf("em")>-1||String(e).indexOf("vw")>-1||String(e).indexOf("vh")>-1,c=String(e).indexOf("px")>-1||a,p=r||u;n="0"==n?0:n;var h=!(t="0"==t?0:t)&&!n,d={},f={"max-width":null,"max-height":null,"min-width":null,"min-height":null};switch(e||""){case"":e="row"===i?"0%":!1!==this.layoutConfig.useColumnBasisZero?"0.000000001px":"auto";break;case"initial":case"nogrow":t=0,e="auto";break;case"grow":e="100%";break;case"noshrink":n=0,e="auto";break;case"auto":break;case"none":t=0,n=0,e="auto";break;default:p||s||isNaN(e)||(e+="%"),"0%"===e&&(p=!0),"0px"===e&&(e="0%"),d=Tm(f,r?{"flex-grow":t,"flex-shrink":n,"flex-basis":p?e:"100%"}:{flex:t+" "+n+" "+(p?e:"100%")})}return d.flex||d["flex-grow"]||(d=Tm(f,r?{"flex-grow":t,"flex-shrink":n,"flex-basis":e}:{flex:t+" "+n+" "+e})),"0%"!==e&&"0px"!==e&&"0.000000001px"!==e&&"auto"!==e&&(d[l]=h||c&&t?e:null,d[o]=h||!a&&n?e:null),d[l]||d[o]?this._layout&&this._layout.wrap&&(d[r?"flex-basis":"flex"]=d[o]?r?d[o]:t+" "+n+" "+d[o]:r?d[l]:t+" "+n+" "+d[l]):d=Tm(f,r?{"flex-grow":t,"flex-shrink":n,"flex-basis":e}:{flex:t+" "+n+" "+e}),Tm(d,{"box-sizing":"border-box"})},n}(hm),Lm=function(t){function n(n,e,i,o){var l=t.call(this,n,e,o)||this;return l._layout="row",i&&(l._layoutWatcher=i.layout$.subscribe(l._onLayoutChange.bind(l))),l}return o(n,t),Object.defineProperty(n.prototype,"align",{set:function(t){this._cacheInput("align",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignXs",{set:function(t){this._cacheInput("alignXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignSm",{set:function(t){this._cacheInput("alignSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignMd",{set:function(t){this._cacheInput("alignMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignLg",{set:function(t){this._cacheInput("alignLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignXl",{set:function(t){this._cacheInput("alignXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignGtXs",{set:function(t){this._cacheInput("alignGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignGtSm",{set:function(t){this._cacheInput("alignGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignGtMd",{set:function(t){this._cacheInput("alignGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignGtLg",{set:function(t){this._cacheInput("alignGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignLtSm",{set:function(t){this._cacheInput("alignLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignLtMd",{set:function(t){this._cacheInput("alignLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignLtLg",{set:function(t){this._cacheInput("alignLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"alignLtXl",{set:function(t){this._cacheInput("alignLtXl",t)},enumerable:!0,configurable:!0}),n.prototype.ngOnChanges=function(t){(null!=t.align||this._mqActivation)&&this._updateWithValue()},n.prototype.ngOnInit=function(){var n=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("align","start stretch",function(t){n._updateWithValue(t.value)})},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},n.prototype._updateWithValue=function(t){t=t||this._queryInput("align")||"start stretch",this._mqActivation&&(t=this._mqActivation.activatedInput),this._applyStyleToElement(this._buildCSS(t)),this._allowStretching(t,this._layout?this._layout:"row")},n.prototype._onLayoutChange=function(t){var n=this;this._layout=(t.direction||"").toLowerCase(),Om.find(function(t){return t===n._layout})||(this._layout="row");var e=this._queryInput("align")||"start stretch";this._mqActivation&&(e=this._mqActivation.activatedInput),this._allowStretching(e,this._layout||"row")},n.prototype._buildCSS=function(t){var n={},e=t.split(" "),i=e[1];switch(e[0]){case"center":n["justify-content"]="center";break;case"space-around":n["justify-content"]="space-around";break;case"space-between":n["justify-content"]="space-between";break;case"space-evenly":n["justify-content"]="space-evenly";break;case"end":case"flex-end":n["justify-content"]="flex-end";break;case"start":case"flex-start":default:n["justify-content"]="flex-start"}switch(i){case"start":case"flex-start":n["align-items"]=n["align-content"]="flex-start";break;case"baseline":n["align-items"]="baseline";break;case"center":n["align-items"]=n["align-content"]="center";break;case"end":case"flex-end":n["align-items"]=n["align-content"]="flex-end";break;case"stretch":default:n["align-items"]=n["align-content"]="stretch"}return Tm(n,{display:"flex","flex-direction":this._layout||"row","box-sizing":"border-box"})},n.prototype._allowStretching=function(t,n){"stretch"==t.split(" ")[1]&&this._applyStyleToElement({"box-sizing":"border-box","max-width":Dm(n)?null:"100%","max-height":Dm(n)?"100%":null})},n}(hm),Nm=function(){return function(){}}(),jm=["false",!1,0];function Vm(t){return""!==t&&("false"===t||0===t||!t)}var Bm=function(t){function n(n,e,i,o,l,r){var a=t.call(this,n,i,o)||this;return a.layout=e,a.elRef=i,a.styleUtils=o,a.platformId=l,a.serverModuleLoaded=r,e&&(a._layoutWatcher=e.layout$.subscribe(function(){return a._updateWithValue()})),a}return o(n,t),Object.defineProperty(n.prototype,"show",{set:function(t){this._cacheInput("show",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showXs",{set:function(t){this._cacheInput("showXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showSm",{set:function(t){this._cacheInput("showSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showMd",{set:function(t){this._cacheInput("showMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLg",{set:function(t){this._cacheInput("showLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showXl",{set:function(t){this._cacheInput("showXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLtSm",{set:function(t){this._cacheInput("showLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLtMd",{set:function(t){this._cacheInput("showLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLtLg",{set:function(t){this._cacheInput("showLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showLtXl",{set:function(t){this._cacheInput("showLtXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGtXs",{set:function(t){this._cacheInput("showGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGtSm",{set:function(t){this._cacheInput("showGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGtMd",{set:function(t){this._cacheInput("showGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"showGtLg",{set:function(t){this._cacheInput("showGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hide",{set:function(t){this._cacheInput("show",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideXs",{set:function(t){this._cacheInput("showXs",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideSm",{set:function(t){this._cacheInput("showSm",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideMd",{set:function(t){this._cacheInput("showMd",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideLg",{set:function(t){this._cacheInput("showLg",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideXl",{set:function(t){this._cacheInput("showXl",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideLtSm",{set:function(t){this._cacheInput("showLtSm",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideLtMd",{set:function(t){this._cacheInput("showLtMd",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideLtLg",{set:function(t){this._cacheInput("showLtLg",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideLtXl",{set:function(t){this._cacheInput("showLtXl",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideGtXs",{set:function(t){this._cacheInput("showGtXs",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideGtSm",{set:function(t){this._cacheInput("showGtSm",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideGtMd",{set:function(t){this._cacheInput("showGtMd",Vm(t))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"hideGtLg",{set:function(t){this._cacheInput("showGtLg",Vm(t))},enumerable:!0,configurable:!0}),n.prototype._getDisplayStyle=function(){return this.layout?"flex":t.prototype._getDisplayStyle.call(this)},n.prototype.ngOnChanges=function(t){this.hasInitialized&&(null!=t.show||this._mqActivation)&&this._updateWithValue()},n.prototype.ngOnInit=function(){var n=this;t.prototype.ngOnInit.call(this),this._display=this._getDisplayStyle();var e=this._getDefaultVal("show",!0);this._listenForMediaQueryChanges("show",e,function(t){n._updateWithValue(t.value)}),this._updateWithValue()},n.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},n.prototype._updateWithValue=function(t){t=t||this._getDefaultVal("show",!0),this._mqActivation&&(t=this._mqActivation.activatedInput);var n=this._validateTruthy(t);this._applyStyleToElement(this._buildCSS(n)),Ya(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display","")},n.prototype._buildCSS=function(t){return{display:t?this._display:"none"}},n.prototype._validateTruthy=function(t){return-1==jm.indexOf(t)},n}(hm),Um=function(){return function(){}}(),Fm=function(){function t(){}return Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this.control?this.control.status:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,n){return!!this.control&&this.control.hasError(t,n)},t.prototype.getError=function(t,n){return this.control?this.control.getError(t,n):null},t}(),zm=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),Object.defineProperty(n.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),n}(Fm);function Hm(t){return null==t||0===t.length}var qm=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,$m=function(){function t(){}return t.min=function(t){return function(n){if(Hm(n.value)||Hm(t))return null;var e=parseFloat(n.value);return!isNaN(e)&&e<t?{min:{min:t,actual:n.value}}:null}},t.max=function(t){return function(n){if(Hm(n.value)||Hm(t))return null;var e=parseFloat(n.value);return!isNaN(e)&&e>t?{max:{max:t,actual:n.value}}:null}},t.required=function(t){return Hm(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Hm(t.value)?null:qm.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(n){if(Hm(n.value))return null;var e=n.value?n.value.length:0;return e<t?{minlength:{requiredLength:t,actualLength:e}}:null}},t.maxLength=function(t){return function(n){var e=n.value?n.value.length:0;return e>t?{maxlength:{requiredLength:t,actualLength:e}}:null}},t.pattern=function(n){return n?("string"==typeof n?(i="","^"!==n.charAt(0)&&(i+="^"),i+=n,"$"!==n.charAt(n.length-1)&&(i+="$"),e=new RegExp(i)):(i=n.toString(),e=n),function(t){if(Hm(t.value))return null;var n=t.value;return e.test(n)?null:{pattern:{requiredPattern:i,actualValue:n}}}):t.nullValidator;var e,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var n=t.filter(Gm);return 0==n.length?null:function(t){return Wm(function(t,e){return n.map(function(n){return n(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var n=t.filter(Gm);return 0==n.length?null:function(t){return ta(function(t,e){return n.map(function(n){return n(t)})}(t).map(Qm)).pipe(J(Wm))}},t}();function Gm(t){return null!=t}function Qm(t){var n=mn(t)?it(t):t;if(!yn(n))throw new Error("Expected validator to return Promise or Observable.");return n}function Wm(t){var n=t.reduce(function(t,n){return null!=n?l({},t,n):t},{});return 0===Object.keys(n).length?null:n}var Km=new vt("NgValueAccessor"),Zm=function(){function t(t,n){this._renderer=t,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),Xm=new vt("CompositionEventMode"),Ym=function(){function t(t,n,e){var i;this._renderer=t,this._elementRef=n,this._compositionMode=e,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=(i=xu()?xu().getUserAgent():"",!/android (\d+)/.test(i.toLowerCase())))}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)},t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();function Jm(t){return t.validate?function(n){return t.validate(n)}:t}function ty(t){return t.validate?function(n){return t.validate(n)}:t}var ny=function(){function t(t,n){this._renderer=t,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",null==t?"":t)},t.prototype.registerOnChange=function(t){this.onChange=function(n){t(""==n?null:parseFloat(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();function ey(){throw new Error("unimplemented")}var iy=function(t){function n(){var n=null!==t&&t.apply(this,arguments)||this;return n._parent=null,n.name=null,n.valueAccessor=null,n._rawValidators=[],n._rawAsyncValidators=[],n}return o(n,t),Object.defineProperty(n.prototype,"validator",{get:function(){return ey()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return ey()},enumerable:!0,configurable:!0}),n}(Fm),oy=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,n){this._accessors.push([t,n])},t.prototype.remove=function(t){for(var n=this._accessors.length-1;n>=0;--n)if(this._accessors[n][1]===t)return void this._accessors.splice(n,1)},t.prototype.select=function(t){var n=this;this._accessors.forEach(function(e){n._isSameGroup(e,t)&&e[1]!==t&&e[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,n){return!!t[0].control&&t[0]._parent===n._control._parent&&t[1].name===n.name},t}(),ly=function(){function t(t,n,e,i){this._renderer=t,this._elementRef=n,this._registry=e,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(iy),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var n=this;this._fn=t,this.onChange=function(){t(n.value),n._registry.select(n)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}(),ry=function(){function t(t,n){this._renderer=t,this._elementRef=n,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(n){t(""==n?null:parseFloat(n))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}(),ay='\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',sy='\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>';function uy(t,n){return null==t?""+n:(n&&"object"==typeof n&&(n="Object"),(t+": "+n).slice(0,50))}var cy=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var n=this._getOptionId(t);null==n&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var e=uy(n,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){var n=this;this.onChange=function(e){n.value=n._getOptionValue(e),t(n.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var n,e;try{for(var i=s(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var l=o.value;if(this._compareWith(this._optionMap.get(l),t))return l}}catch(r){n={error:r}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return null},t.prototype._getOptionValue=function(t){var n=function(t){return t.split(":")[0]}(t);return this._optionMap.has(n)?this._optionMap.get(n):t},t}(),py=function(){function t(t,n,e){this._element=t,this._renderer=n,this._select=e,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(uy(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function hy(t,n){return null==t?""+n:("string"==typeof n&&(n="'"+n+"'"),n&&"object"==typeof n&&(n="Object"),(t+": "+n).slice(0,50))}var dy=function(){function t(t,n){this._renderer=t,this._elementRef=n,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=Et}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var n,e=this;if(this.value=t,Array.isArray(t)){var i=t.map(function(t){return e._getOptionId(t)});n=function(t,n){t._setSelected(i.indexOf(n.toString())>-1)}}else n=function(t,n){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var n=this;this.onChange=function(e){var i=[];if(e.hasOwnProperty("selectedOptions"))for(var o=e.selectedOptions,l=0;l<o.length;l++){var r=o.item(l),a=n._getOptionValue(r.value);i.push(a)}else for(o=e.options,l=0;l<o.length;l++)(r=o.item(l)).selected&&(a=n._getOptionValue(r.value),i.push(a));n.value=i,t(i)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var n=(this._idCounter++).toString();return this._optionMap.set(n,t),n},t.prototype._getOptionId=function(t){var n,e;try{for(var i=s(Array.from(this._optionMap.keys())),o=i.next();!o.done;o=i.next()){var l=o.value;if(this._compareWith(this._optionMap.get(l)._value,t))return l}}catch(r){n={error:r}}finally{try{o&&!o.done&&(e=i.return)&&e.call(i)}finally{if(n)throw n.error}}return null},t.prototype._getOptionValue=function(t){var n=function(t){return t.split(":")[0]}(t);return this._optionMap.has(n)?this._optionMap.get(n)._value:t},t}(),fy=function(){function t(t,n,e){this._element=t,this._renderer=n,this._select=e,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(hy(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(hy(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();function gy(t,n){return c(n.path,[t])}function my(t,n){t||vy(n,"Cannot find control with"),n.valueAccessor||vy(n,"No value accessor for form control with"),t.validator=$m.compose([t.validator,n.validator]),t.asyncValidator=$m.composeAsync([t.asyncValidator,n.asyncValidator]),n.valueAccessor.writeValue(t.value),function(t,n){n.valueAccessor.registerOnChange(function(e){t._pendingValue=e,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&yy(t,n)})}(t,n),function(t,n){t.registerOnChange(function(t,e){n.valueAccessor.writeValue(t),e&&n.viewToModelUpdate(t)})}(t,n),function(t,n){n.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&yy(t,n),"submit"!==t.updateOn&&t.markAsTouched()})}(t,n),n.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){n.valueAccessor.setDisabledState(t)}),n._rawValidators.forEach(function(n){n.registerOnValidatorChange&&n.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),n._rawAsyncValidators.forEach(function(n){n.registerOnValidatorChange&&n.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function yy(t,n){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),n.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function vy(t,n){var e;throw e=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(n+" "+e)}function by(t){return null!=t?$m.compose(t.map(Jm)):null}function _y(t){return null!=t?$m.composeAsync(t.map(ty)):null}var wy=[Zm,ry,ny,cy,dy,ly],xy=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(n.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return gy(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return by(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return _y(this._asyncValidators)},enumerable:!0,configurable:!0}),n.prototype._checkParentType=function(){},n}(zm),Py=function(t){function n(n){return t.call(this,n)||this}return o(n,t),n}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function Cy(t){var n=Iy(t)?t.validators:t;return Array.isArray(n)?by(n):n||null}function Sy(t,n){var e=Iy(n)?n.asyncValidators:t;return Array.isArray(e)?_y(e):e||null}function Iy(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ky=function(){function t(t,n){this.validator=t,this.asyncValidator=n,this._onCollectionChange=function(){},this.pristine=!0,this.touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this.status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"updateOn",{get:function(){return this._updateOn?this._updateOn:this.parent?this.parent.updateOn:"change"},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=Cy(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=Sy(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this.touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}),this.touched=!1,this._pendingTouched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this.pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this.pristine=!0,this._pendingDirty=!1,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this.status="PENDING",!1!==t.emitEvent&&this.statusChanges.emit(this.status),this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this.status="DISABLED",this.errors=null,this._forEachChild(function(n){n.disable(l({},t,{onlySelf:!0}))}),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this.status="VALID",this._forEachChild(function(n){n.enable(l({},t,{onlySelf:!0}))}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(t),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this.errors=this._runValidator(),this.status=this._calculateStatus(),"VALID"!==this.status&&"PENDING"!==this.status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(n){return n._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this.status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var n=this;if(this.asyncValidator){this.status="PENDING";var e=Qm(this.asyncValidator(this));this._asyncValidationSubscription=e.subscribe(function(e){return n.setErrors(e,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,n){void 0===n&&(n={}),this.errors=t,this._updateControlsErrors(!1!==n.emitEvent)},t.prototype.get=function(t){return function(t,n,e){return null==n?null:(n instanceof Array||(n=n.split(".")),n instanceof Array&&0===n.length?null:n.reduce(function(t,n){return t instanceof Ey?t.controls.hasOwnProperty(n)?t.controls[n]:null:t instanceof Dy&&t.at(n)||null},t))}(this,t)},t.prototype.getError=function(t,n){var e=n?this.get(n):this;return e&&e.errors?e.errors[t]:null},t.prototype.hasError=function(t,n){return!!this.getError(t,n)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this.status=this._calculateStatus(),t&&this.statusChanges.emit(this.status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this.valueChanges=new Qn,this.statusChanges=new Qn},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this.errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(n){return n.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this.pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this.touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t.prototype._setUpdateStrategy=function(t){Iy(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),Oy=function(t){function n(n,e,i){void 0===n&&(n=null);var o=t.call(this,Cy(e),Sy(i,e))||this;return o._onChange=[],o._applyFormState(n),o._setUpdateStrategy(e),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return o(n,t),n.prototype.setValue=function(t,n){var e=this;void 0===n&&(n={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==n.emitModelToViewChange&&this._onChange.forEach(function(t){return t(e.value,!1!==n.emitViewToModelChange)}),this.updateValueAndValidity(n)},n.prototype.patchValue=function(t,n){void 0===n&&(n={}),this.setValue(t,n)},n.prototype.reset=function(t,n){void 0===t&&(t=null),void 0===n&&(n={}),this._applyFormState(t),this.markAsPristine(n),this.markAsUntouched(n),this.setValue(this.value,n),this._pendingChange=!1},n.prototype._updateValue=function(){},n.prototype._anyControls=function(t){return!1},n.prototype._allControlsDisabled=function(){return this.disabled},n.prototype.registerOnChange=function(t){this._onChange.push(t)},n.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},n.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},n.prototype._forEachChild=function(t){},n.prototype._syncPendingControls=function(){return!("submit"!==this.updateOn||(this._pendingDirty&&this.markAsDirty(),this._pendingTouched&&this.markAsTouched(),!this._pendingChange)||(this.setValue(this._pendingValue,{onlySelf:!0,emitModelToViewChange:!1}),0))},n.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this.value=this._pendingValue=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this.value=this._pendingValue=t},n}(ky),Ey=function(t){function n(n,e,i){var o=t.call(this,Cy(e),Sy(i,e))||this;return o.controls=n,o._initObservables(),o._setUpdateStrategy(e),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(n,t),n.prototype.registerControl=function(t,n){return this.controls[t]?this.controls[t]:(this.controls[t]=n,n.setParent(this),n._registerOnCollectionChange(this._onCollectionChange),n)},n.prototype.addControl=function(t,n){this.registerControl(t,n),this.updateValueAndValidity(),this._onCollectionChange()},n.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},n.prototype.setControl=function(t,n){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],n&&this.registerControl(t,n),this.updateValueAndValidity(),this._onCollectionChange()},n.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},n.prototype.setValue=function(t,n){var e=this;void 0===n&&(n={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(i){e._throwIfControlMissing(i),e.controls[i].setValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)},n.prototype.patchValue=function(t,n){var e=this;void 0===n&&(n={}),Object.keys(t).forEach(function(i){e.controls[i]&&e.controls[i].patchValue(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)},n.prototype.reset=function(t,n){void 0===t&&(t={}),void 0===n&&(n={}),this._forEachChild(function(e,i){e.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n),this._updatePristine(n),this._updateTouched(n)},n.prototype.getRawValue=function(){return this._reduceChildren({},function(t,n,e){return t[e]=n instanceof Oy?n.value:n.getRawValue(),t})},n.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,n){return!!n._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},n.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},n.prototype._forEachChild=function(t){var n=this;Object.keys(this.controls).forEach(function(e){return t(n.controls[e],e)})},n.prototype._setUpControls=function(){var t=this;this._forEachChild(function(n){n.setParent(t),n._registerOnCollectionChange(t._onCollectionChange)})},n.prototype._updateValue=function(){this.value=this._reduceValue()},n.prototype._anyControls=function(t){var n=this,e=!1;return this._forEachChild(function(i,o){e=e||n.contains(o)&&t(i)}),e},n.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(n,e,i){return(e.enabled||t.disabled)&&(n[i]=e.value),n})},n.prototype._reduceChildren=function(t,n){var e=t;return this._forEachChild(function(t,i){e=n(e,t,i)}),e},n.prototype._allControlsDisabled=function(){var t,n;try{for(var e=s(Object.keys(this.controls)),i=e.next();!i.done;i=e.next())if(this.controls[i.value].enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},n.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(n,e){if(void 0===t[e])throw new Error("Must supply a value for form control with name: '"+e+"'.")})},n}(ky),Dy=function(t){function n(n,e,i){var o=t.call(this,Cy(e),Sy(i,e))||this;return o.controls=n,o._initObservables(),o._setUpdateStrategy(e),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(n,t),n.prototype.at=function(t){return this.controls[t]},n.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},n.prototype.insert=function(t,n){this.controls.splice(t,0,n),this._registerControl(n),this.updateValueAndValidity()},n.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},n.prototype.setControl=function(t,n){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),n&&(this.controls.splice(t,0,n),this._registerControl(n)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(n.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),n.prototype.setValue=function(t,n){var e=this;void 0===n&&(n={}),this._checkAllValuesPresent(t),t.forEach(function(t,i){e._throwIfControlMissing(i),e.at(i).setValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)},n.prototype.patchValue=function(t,n){var e=this;void 0===n&&(n={}),t.forEach(function(t,i){e.at(i)&&e.at(i).patchValue(t,{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n)},n.prototype.reset=function(t,n){void 0===t&&(t=[]),void 0===n&&(n={}),this._forEachChild(function(e,i){e.reset(t[i],{onlySelf:!0,emitEvent:n.emitEvent})}),this.updateValueAndValidity(n),this._updatePristine(n),this._updateTouched(n)},n.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof Oy?t.value:t.getRawValue()})},n.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,n){return!!n._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},n.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},n.prototype._forEachChild=function(t){this.controls.forEach(function(n,e){t(n,e)})},n.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(n){return n.enabled||t.disabled}).map(function(t){return t.value})},n.prototype._anyControls=function(t){return this.controls.some(function(n){return n.enabled&&t(n)})},n.prototype._setUpControls=function(){var t=this;this._forEachChild(function(n){return t._registerControl(n)})},n.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(n,e){if(void 0===t[e])throw new Error("Must supply a value for form control at index: "+e+".")})},n.prototype._allControlsDisabled=function(){var t,n;try{for(var e=s(this.controls),i=e.next();!i.done;i=e.next())if(i.value.enabled)return!1}catch(o){t={error:o}}finally{try{i&&!i.done&&(n=e.return)&&n.call(e)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},n.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},n}(ky),Ay=Promise.resolve(null),My=function(t){function n(n,e){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new Qn,i.form=new Ey({},by(n),_y(e)),i}return o(n,t),n.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(n.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),n.prototype.addControl=function(t){var n=this;Ay.then(function(){var e=n._findContainer(t.path);t.control=e.registerControl(t.name,t.control),my(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),n._directives.push(t)})},n.prototype.getControl=function(t){return this.form.get(t.path)},n.prototype.removeControl=function(t){var n=this;Ay.then(function(){var e,i,o=n._findContainer(t.path);o&&o.removeControl(t.name),(i=(e=n._directives).indexOf(t))>-1&&e.splice(i,1)})},n.prototype.addFormGroup=function(t){var n=this;Ay.then(function(){var e=n._findContainer(t.path),i=new Ey({});(function(t,n){null==t&&vy(n,"Cannot find control with"),t.validator=$m.compose([t.validator,n.validator]),t.asyncValidator=$m.composeAsync([t.asyncValidator,n.asyncValidator])})(i,t),e.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})})},n.prototype.removeFormGroup=function(t){var n=this;Ay.then(function(){var e=n._findContainer(t.path);e&&e.removeControl(t.name)})},n.prototype.getFormGroup=function(t){return this.form.get(t.path)},n.prototype.updateModel=function(t,n){var e=this;Ay.then(function(){e.form.get(t.path).setValue(n)})},n.prototype.setValue=function(t){this.control.setValue(t)},n.prototype.onSubmit=function(t){return this.submitted=!0,n=this._directives,this.form._syncPendingControls(),n.forEach(function(t){var n=t.control;"submit"===n.updateOn&&n._pendingChange&&(t.viewToModelUpdate(n._pendingValue),n._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var n},n.prototype.onReset=function(){this.resetForm()},n.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},n.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},n.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},n}(zm),Ty=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+ay+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+sy)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+ay+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+sy)},t}(),Ry=function(t){function n(n,e,i){var o=t.call(this)||this;return o._parent=n,o._validators=e,o._asyncValidators=i,o}var e;return o(n,t),e=n,n.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof My||Ty.modelGroupParentException()},n}(xy),Ly=Promise.resolve(null),Ny=function(t){function n(n,e,i,o){var l=t.call(this)||this;return l.control=new Oy,l._registered=!1,l.update=new Qn,l._parent=n,l._rawValidators=e||[],l._rawAsyncValidators=i||[],l.valueAccessor=function(t,n){if(!n)return null;Array.isArray(n)||vy(t,"Value accessor was not provided as an array for form control with");var e=void 0,i=void 0,o=void 0;return n.forEach(function(n){var l;n.constructor===Ym?e=n:(l=n,wy.some(function(t){return l.constructor===t})?(i&&vy(t,"More than one built-in value accessor matches form control with"),i=n):(o&&vy(t,"More than one custom value accessor matches form control with"),o=n))}),o||i||e||(vy(t,"No valid value accessor for form control with"),null)}(l,o),l}return o(n,t),n.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),function(t,n){if(!t.hasOwnProperty("model"))return!1;var e=t.model;return!!e.isFirstChange()||!Et(n,e.currentValue)}(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},n.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(n.prototype,"path",{get:function(){return this._parent?gy(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"validator",{get:function(){return by(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"asyncValidator",{get:function(){return _y(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),n.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},n.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},n.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},n.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},n.prototype._setUpStandalone=function(){my(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},n.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},n.prototype._checkParentType=function(){!(this._parent instanceof Ry)&&this._parent instanceof xy?Ty.formGroupNameException():this._parent instanceof Ry||this._parent instanceof My||Ty.modelParentException()},n.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Ty.missingNameException()},n.prototype._updateValue=function(t){var n=this;Ly.then(function(){n.control.setValue(t,{emitViewToModelChange:!1})})},n.prototype._updateDisabled=function(t){var n=this,e=t.isDisabled.currentValue,i=""===e||e&&"false"!==e;Ly.then(function(){i&&!n.control.disabled?n.control.disable():!i&&n.control.disabled&&n.control.enable()})},n}(iy),jy=new vt("NgModelWithFormControlWarning"),Vy=function(){function t(){}return t.prototype.group=function(t,n){void 0===n&&(n=null);var e=this._reduceControls(t);return new Ey(e,null!=n?n.validator:null,null!=n?n.asyncValidator:null)},t.prototype.control=function(t,n,e){return new Oy(t,n,e)},t.prototype.array=function(t,n,e){var i=this,o=t.map(function(t){return i._createControl(t)});return new Dy(o,n,e)},t.prototype._reduceControls=function(t){var n=this,e={};return Object.keys(t).forEach(function(i){e[i]=n._createControl(t[i])}),e},t.prototype._createControl=function(t){return t instanceof Oy||t instanceof Ey||t instanceof Dy?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t}(),By=function(){return function(){}}(),Uy=function(){return function(){}}(),Fy=function(){function t(){}var n;return n=t,t.withConfig=function(t){return{ngModule:n,providers:[{provide:jy,useValue:t.warnOnNgModelWithFormControl}]}},t}(),zy=function(){function t(t){this.http=t}return t.prototype.search=function(t,n){var e=n.searchUrl+"?"+n.additionalParams+"&"+n.group+"&fl="+n.fields+"&sort="+n.sort+"&group.limit="+n.groupLimit+"&q=value:"+t+"*~10";return this.http.get(e).pipe(J(function(t){return t.grouped.category.groups}),aa(this.handleError(e))).toPromise()},t.prototype.searchMore=function(t,n,e){var i=e.searchUrl+"?"+e.additionalParams+"&"+e.group+"&fl="+e.fields+"&sort="+e.sort+"&group.limit=-1&q=value:"+t+"*~10&fq=var_name:"+n;return this.http.get(i).pipe(J(function(t){return t.grouped.category.groups}),aa(this.handleError(i))).toPromise()},t.prototype.handleError=function(t){return void 0===t&&(t="API request"),function(t){return ia([])}},t}();function Hy(t,n){return function(e){return e.lift(new qy(t,n))}}M.prototype.debounceTime=function(t,n){return void 0===n&&(n=Hd),Yf(t,n)(this)};var qy=function(){function t(t,n){this.compare=t,this.keySelector=n}return t.prototype.call=function(t,n){return n.subscribe(new $y(t,this.compare,this.keySelector))},t}(),$y=function(t){function n(n,e,i){var o=t.call(this,n)||this;return o.keySelector=i,o.hasKey=!1,"function"==typeof e&&(o.compare=e),o}return o(n,t),n.prototype.compare=function(t,n){return t===n},n.prototype._next=function(t){var n=t;if(this.keySelector&&(n=y(this.keySelector)(t))===g)return this.destination.error(g.e);var e=!1;if(this.hasKey){if((e=y(this.compare)(this.key,n))===g)return this.destination.error(g.e)}else this.hasKey=!0;!1===Boolean(e)&&(this.key=n,this.destination.next(t))},n}(I);M.prototype.distinctUntilChanged=function(t,n){return Hy(t,n)(this)};var Gy=function(){function t(t,n,e){this.pdbSolrService=t,this.changeDetectorRef=n,this.el=e,this.itemSelected=new Qn,this.searchInputValChange=new Qn,this.defaultConfig={resultBoxAlign:"right",redirectOnClick:!0,searchUrl:Xr.pdbeAutocompleteUrl,fields:"value,num_pdb_entries,var_name",group:"group=true&group.field=category",groupLimit:"25",sort:"category+asc,num_pdb_entries+desc",additionalParams:"rows=20000&json.nl=map&wt=json"},this.resultPanelStyle={"max-height":"100%"},this.layoutAlign="start start",this.resultPanelOpen=!1,this.primaryResultPanel=!1,this.secondaryResultPanel=!1,this.processMessage="Loading..",this.searchTermStream=new j,this.showClearIcon=!1,this.events=this.createNewEvent(["PDBe.autocomplete.click"])}return t.prototype.createNewEvent=function(t){for(var n={},e=0,i=t.length;e<i;e++){var o;"function"==typeof MouseEvent?o=new MouseEvent(t[e],{view:window,bubbles:!0,cancelable:!0}):"function"==typeof document.createEvent&&(o=document.createEvent("MouseEvents")).initEvent(t[e],!0,!0),n[t[e]]=o}return n},t.prototype.dispatchEvent=function(t,n){var e=this.el.nativeElement;void 0!==n&&(this.events[t].eventData=n),e.dispatchEvent(this.events[t])},t.prototype.extend=function(t){var n={},e=!1,i=0,o=t.length;"[object Boolean]"===Object.prototype.toString.call(t[0])&&(e=t[0],i++);for(var l=function(t){for(var i in t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e&&"[object Object]"===Object.prototype.toString.call(t[i])?this.extend(!0,n[i],t[i]):t[i])};i<o;i++)l(t[i]);return n},t.prototype.onClick=function(t){this.el.nativeElement.contains(t.target)||"result-card-item-count-heading"==t.target.className||"show-more-link"==t.target.className||(this.hideAllPanels(),this.showClearIcon=!1)},t.prototype.onKeypress=function(t){"Escape"===t.key&&(this.showClearIcon=!1,this.searchInputVal="",this.el.nativeElement.querySelector(".pdbeAutoCompleteSearchBox").focus(),this.hideAllPanels())},t.prototype.search=function(t){this.searchInputValChange.emit(t),this.changeDetectorRef.detectChanges(),this.searchTermStream.next(t)},t.prototype.searchMore=function(t,n){var e=this;return this.pdbSolrService.searchMore(this.escapeValue(t),n,this.defaultConfig).then(function(t){e.moreResultGroups=t,e.showSecondayPanel()}),!1},t.prototype.showLess=function(){return this.secondaryResultPanel=!1,this.primaryResultPanel=!0,this.moreResultGroups=[],!1},t.prototype.togglePageScroll=function(t){this.el.nativeElement.ownerDocument.body.style.overflow="auto","hide"==t&&(this.el.nativeElement.ownerDocument.body.style.overflow="hidden")},t.prototype.hideAllPanels=function(){this.resultPanelOpen=!1,this.primaryResultPanel=!1,this.secondaryResultPanel=!1,this.togglePageScroll("show")},t.prototype.showSecondayPanel=function(){this.primaryResultPanel=!1,this.secondaryResultPanel=!0,this.togglePageScroll("hide")},t.prototype.showPrimaryPanel=function(){this.resultPanelOpen=!0,this.primaryResultPanel=!0,this.secondaryResultPanel=!1,this.togglePageScroll("hide")},t.prototype.escapeValue=function(t){if(window.location.href.indexOf("text:")<0){if(t.match(/[ :\/"]/)&&!t.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!t.match(/^["\(].*["\)]$/))return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"'}else if(t.match(/[:\/"]/)&&!t.match(/[\[\{]\S+ TO \S+[\]\}]/)&&!t.match(/^["\(].*["\)]$/))return'"'+t.replace(/\\/g,"\\\\").replace(/"/g,'\\"')+'"';return t},t.prototype.resultItemClick=function(t,n){return"pdb_id"==t.var_name||"uniprot"==t.var_name&&1==n||!!this.defaultConfig.redirectOnClick||(this.searchInputVal="",this.searchTermStream.next(""),this.hideAllPanels(),this.dispatchEvent("PDBe.autocomplete.click",t),this.itemSelected.emit(t),!1)},t.prototype.clearSearch=function(){this.showClearIcon=!1,this.searchInputVal="",this.searchTermStream.next(""),this.el.nativeElement.querySelector(".pdbeAutoCompleteSearchBox").focus()},t.prototype.resultItemLink=function(t,n){return"pdb_id"==t.var_name?Xr.pdbeEntryUrl+t.value:"uniprot"==t.var_name&&1==n?Xr.kbEntryUrl+t.value.split(" : ")[0]:Xr.pdbeEntrySearchUrl+"index?view=macromolecules&"+t.var_name+":"+this.escapeValue(t.value)},t.prototype.getLoopCount=function(t){return new Array(Math.ceil(t/10))},t.prototype.resultPanelHeight=function(){var t;t="right"==this.defaultConfig.resultBoxAlign?"right":"left";var n=this.el.nativeElement.querySelector(".pdbeAutoCompleteSearchBox").getBoundingClientRect();return"right"==t?this.resultPanelStyle["max-height"]=window.innerHeight-n.bottom-30+"px":(this.resultPanelStyle["max-height"]=window.innerHeight-n.bottom-30+"px",this.resultPanelStyle["margin-right"]="20px"),this.resultPanelStyle},t.prototype.ngOnInit=function(){var t=this;void 0!==this.config&&(this.defaultConfig=this.extend([this.defaultConfig,this.config])),this.searchTermStream.debounceTime(300).distinctUntilChanged().subscribe(function(n){return t.showClearIcon=n.length>0,t.processMessage="Loading...",n?t.showPrimaryPanel():t.hideAllPanels(),n?t.pdbSolrService.search(t.escapeValue(n),t.defaultConfig).then(function(n){t.processMessage="No autocomplete suggestions!",t.resultGroups=n,t.resultPanelOpen=!0},function(n){t.processMessage="No autocomplete suggestions!",t.resultGroups=[]}):t.resultGroups=[]},function(n){return t.processMessage="No autocomplete suggestions!",t.resultGroups=[]})},t.prototype.fixedEncodeURIComponent=function(t){return encodeURIComponent(t).replace(/[!'()*]/g,function(t){return"%"+t.charCodeAt(0).toString(16)})},t.prototype.openSearch=function(t){""!==t.trim()&&(window.location.href="https://www.ebi.ac.uk/pdbe/entry/search?text:"+this.fixedEncodeURIComponent(t))},t}(),Qy=Ki({encapsulation:0,styles:[[".search-clear-icon[_ngcontent-%COMP%]{position:absolute;margin:32px 0 0 -32px;cursor:pointer}.vf-form__item[_ngcontent-%COMP%]{float:left;position:relative;width:100%;max-width:90%}#searchitem[_ngcontent-%COMP%]{width:100%;height:44px;float:left;margin-top:20px;font-size:19px;border:2px solid #707372;padding-right:45px}#searchitem[_ngcontent-%COMP%]:hover{border-color:#54585a;box-shadow:0 0 0 .0625rem #54585a;color:#000;outline:0}button[_ngcontent-%COMP%]{padding:8px 16px;font-size:18px;height:39px;margin-top:20px;margin-left:16px;margin-right:0;border-width:2px}a[_ngcontent-%COMP%] *[_ngcontent-%COMP%], a[_ngcontent-%COMP%] [_ngcontent-%COMP%]:after, a[_ngcontent-%COMP%] [_ngcontent-%COMP%]:before{box-sizing:content-box!important}.search-ex-links[_ngcontent-%COMP%]{color:#fff;max-width:90.5%!important}.search-ex-link[_ngcontent-%COMP%]{display:inline-block;color:#fff!important;text-decoration:none;padding:0 10px;border-bottom:none;margin-top:10px;margin-right:5px}.search-ex-link[_ngcontent-%COMP%]:hover{text-decoration:underline}.result-container[_ngcontent-%COMP%]{font-family:'helvetica neue',arial,sans-serif;width:99.98%;position:absolute;display:inline-block;background:#fff;z-index:999;border:2px solid #707372;margin-top:62px;margin-bottom:20px;overflow-y:auto}.result-card[_ngcontent-%COMP%]{margin:5px;padding:5px;border:1px solid rgba(115,179,96,5)!important;width:250px;max-height:370px;overflow:hidden;box-sizing:content-box!important}.secondary-result-card-warpper[_ngcontent-%COMP%]{margin:5px;padding:5px;border:1px solid rgba(115,179,96,5)!important;box-sizing:content-box!important}.result-card-heading[_ngcontent-%COMP%]{box-sizing:content-box!important;border:1px solid #73b360!important;background:rgba(115,179,96,1);color:#fff;height:20px;padding:5px 10px;line-height:20px;white-space:nowrap;text-overflow:ellipsis;text-align:left;flex-basis:auto!important}.secondary-result-card-warpper[_ngcontent-%COMP%] .result-card-body[_ngcontent-%COMP%], .secondary-result-card-warpper[_ngcontent-%COMP%] .result-card-heading[_ngcontent-%COMP%]{flex-basis:auto!important}.result-card-footer[_ngcontent-%COMP%]{height:20px;padding:5px 10px;line-height:20px;white-space:nowrap;text-overflow:ellipsis;border-top:1px dotted #999;text-align:right;font-size:12px;font-weight:700}.secondar-result-card-item[_ngcontent-%COMP%], .secondar-result-card-item[_ngcontent-%COMP%]:visited{width:250px;font-size:11.5px;margin:5px;border:1px solid rgba(115,179,96,5)!important;cursor:pointer;text-decoration:none!important;color:#232323!important}.secondar-result-card-item[_ngcontent-%COMP%]:hover{text-decoration:none!important;background:rgba(115,179,96,.2)!important}.result-card-item[_ngcontent-%COMP%], .result-card-item[_ngcontent-%COMP%]:visited{font-size:11.5px;border-bottom:1px dotted #999!important;cursor:pointer;text-decoration:none!important;color:#232323!important}.result-card-item[_ngcontent-%COMP%]:hover{text-decoration:none!important;background:rgba(115,179,96,.2)!important}.result-card-item[_ngcontent-%COMP%]:last-child{border-bottom:none!important}.result-card-item[_ngcontent-%COMP%]:first-child{margin-top:5px!important}.result-card-item-label[_ngcontent-%COMP%]{float:left;width:75%;text-align:left;height:20px;line-height:20px;padding:5px 0 5px 10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.result-card-item-count[_ngcontent-%COMP%]{width:25%;text-align:right;height:20px;line-height:20px;padding:5px 5px 5px 0}.show-more-link[_ngcontent-%COMP%], .show-more-link[_ngcontent-%COMP%]:visited{text-decoration:none!important;color:#000!important}.show-more-link[_ngcontent-%COMP%]:hover{text-decoration:none!important;color:rgba(115,179,96,1)!important}.result-card-item-count-heading[_ngcontent-%COMP%]{font-size:12px;display:inline-block;float:right}a.result-card-item-count-heading[_ngcontent-%COMP%], a.result-card-item-count-heading[_ngcontent-%COMP%]:active, a.result-card-item-count-heading[_ngcontent-%COMP%]:hover, a.result-card-item-count-heading[_ngcontent-%COMP%]:visited{color:#fff;cursor:pointer;text-decoration:none!important;font-size:14px;border-bottom:none!important}.norecords-result-card[_ngcontent-%COMP%]{margin:0 5px;padding:5px;font-size:14px;color:#666;width:250px}.scrollbar-element[_ngcontent-%COMP%]{max-height:inherit}.vf-search__button[_ngcontent-%COMP%]{margin-bottom:6px!important}@media screen and (max-width:39.9375em){.vf-form__item[_ngcontent-%COMP%], .vf-form__item.inside-home[_ngcontent-%COMP%]{max-width:80%}#searchitem[_ngcontent-%COMP%]{font-size:14px;font-weight:400}.vf-search__button[_ngcontent-%COMP%]{border-width:1px;padding:10px 12px}.search-ex-links[_ngcontent-%COMP%]{font-size:13px!important;max-width:80%!important}.search-ex-link[_ngcontent-%COMP%]{font-size:11.5px!important;margin-right:9px}}@media screen and (min-width:40em) and (max-width:57em){.vf-form__item[_ngcontent-%COMP%]{max-width:82%}.vf-form__item.inside-home[_ngcontent-%COMP%]{max-width:81%}.search-ex-links[_ngcontent-%COMP%]{max-width:75%!important}}@media screen and (min-width:57em) and (max-width:73.2em){.vf-form__item[_ngcontent-%COMP%]{max-width:87%}.vf-form__item.inside-home[_ngcontent-%COMP%]{max-width:86%}.search-ex-links[_ngcontent-%COMP%]{max-width:87%!important}}"]],data:{}});function Wy(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[["class","search-clear-icon"],["title","Clear search"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.clearSearch()&&i),i},null,null)),(t()(),Io(1,0,null,null,1,":svg:svg",[["style","width:20px;height:20px;"],["viewBox","0 0 24 24"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,0,":svg:path",[["d","M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"],["fill","#000"]],null,null,null,null,null))],null,null)}function Ky(t){return zl(0,[(t()(),Io(0,0,null,null,6,"a",[["class","result-card-item"],["fxLayout","row"],["fxLayoutAlign","space-between center"],["onclick","gtag('event', 'search-suggestion')"],["target","_blank"]],[[8,"title",0],[8,"href",4]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.resultItemClick(t.context.$implicit,t.parent.context.$implicit.doclist.numFound)&&i),i},null,null)),fl(1,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),fl(2,737280,null,0,Lm,[dm,_e,[6,Mm],gm],{align:[0,"align"]},null),(t()(),Io(3,0,null,null,1,"div",[["class","result-card-item-label"]],null,null,null,null,null)),(t()(),Bl(4,null,["",""])),(t()(),Io(5,0,null,null,1,"div",[["class","result-card-item-count"]],null,null,null,null,null)),(t()(),Bl(6,null,["(",")"]))],function(t,n){t(n,1,0,"row"),t(n,2,0,"space-between center")},function(t,n){var e=n.component;t(n,0,0,Po(1,"",n.context.$implicit.value,""),e.resultItemLink(n.context.$implicit,n.parent.context.$implicit.doclist.numFound)),t(n,4,0,n.context.$implicit.value),t(n,6,0,n.context.$implicit.num_pdb_entries)})}function Zy(t){return zl(0,[(t()(),Io(0,0,null,null,13,"div",[["class","result-card"],["fxLayout","column"]],null,null,null,null,null)),fl(1,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),fl(2,737280,null,0,Bm,[dm,[6,Mm],_e,gm,Cn,[2,am]],{show:[0,"show"]},null),(t()(),Io(3,0,null,null,3,"div",[["class","result-card-heading"]],null,null,null,null,null)),(t()(),Bl(4,null,[""," "])),(t()(),Io(5,0,null,null,1,"span",[["class","result-card-item-count-heading"]],null,null,null,null,null)),(t()(),Bl(6,null,["(",")"])),(t()(),Io(7,0,null,null,3,"div",[["class","result-card-body"]],null,null,null,null,null)),(t()(),So(16777216,null,null,2,null,Ky)),fl(9,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),gl(0,Ga,[]),(t()(),Io(11,0,null,null,2,"div",[["class","result-card-footer"]],[[8,"hidden",0]],null,null,null,null)),(t()(),Io(12,0,null,null,1,"a",[["class","show-more-link"],["href","#"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.searchMore(nl(t.parent,4).value,t.context.$implicit.doclist.docs[0].var_name)&&i),i},null,null)),(t()(),Bl(-1,null,["More..."]))],function(t,n){var e=n.component;t(n,1,0,"column"),t(n,2,0,e.primaryResultPanel),t(n,9,0,Gi(n,9,0,nl(n,10).transform(n.context.$implicit.doclist.docs,0,10)))},function(t,n){t(n,4,0,n.context.$implicit.groupValue),t(n,6,0,n.context.$implicit.doclist.numFound),t(n,11,0,n.context.$implicit.doclist.docs.length<11)})}function Xy(t){return zl(0,[(t()(),Io(0,0,null,null,5,"a",[["class","secondar-result-card-item"],["fxLayout","row"],["onclick","gtag('event', 'search-suggestion')"],["target","_blank"]],[[8,"title",0],[8,"href",4]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.resultItemClick(t.context.$implicit,t.parent.parent.context.$implicit.doclist.numFound)&&i),i},null,null)),fl(1,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),(t()(),Io(2,0,null,null,1,"div",[["class","result-card-item-label"]],null,null,null,null,null)),(t()(),Bl(3,null,["",""])),(t()(),Io(4,0,null,null,1,"div",[["class","result-card-item-count"]],null,null,null,null,null)),(t()(),Bl(5,null,["(",")"]))],function(t,n){t(n,1,0,"row")},function(t,n){var e=n.component;t(n,0,0,Po(1,"",n.context.$implicit.value,""),e.resultItemLink(n.context.$implicit,n.parent.parent.context.$implicit.doclist.numFound)),t(n,3,0,n.context.$implicit.value),t(n,5,0,n.context.$implicit.num_pdb_entries)})}function Yy(t){return zl(0,[(t()(),Io(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,2,null,Xy)),fl(2,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),gl(0,Ga,[])],function(t,n){t(n,2,0,Gi(n,2,0,nl(n,3).transform(n.parent.context.$implicit.doclist.docs,10*n.context.index,10*n.context.index+10)))},null)}function Jy(t){return zl(0,[(t()(),Io(0,0,null,null,15,"div",[["class","secondary-result-card-warpper"],["fxLayout","column"],["style","overflow-y: auto;width:100%"]],null,null,null,null,null)),fl(1,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),fl(2,737280,null,0,Bm,[dm,[6,Mm],_e,gm,Cn,[2,am]],{show:[0,"show"]},null),(t()(),Io(3,0,null,null,4,"div",[["class","result-card-heading"],["fxFlex","100%"],["style","box-sizing: content-box;"]],null,null,null,null,null)),fl(4,737280,null,0,Rm,[dm,_e,[3,Mm],gm,Zg],{flex:[0,"flex"]},null),(t()(),Bl(5,null,[" "," (",") "])),(t()(),Io(6,0,null,null,1,"a",[["class","result-card-item-count-heading"],["href","#"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showLess()&&i),i},null,null)),(t()(),Bl(-1,null,["Less..."])),(t()(),Io(8,0,null,null,4,"div",[["class","result-card-body"],["fxFlex","100%"],["fxLayout","row wrap"]],null,null,null,null,null)),fl(9,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),fl(10,737280,null,0,Rm,[dm,_e,[3,Mm],gm,Zg],{flex:[0,"flex"]},null),(t()(),So(16777216,null,null,1,null,Yy)),fl(12,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(13,0,null,null,2,"div",[["class","result-card-footer"]],null,null,null,null,null)),(t()(),Io(14,0,null,null,1,"a",[["class","show-more-link"],["href","#"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showLess()&&i),i},null,null)),(t()(),Bl(-1,null,["Less..."]))],function(t,n){var e=n.component;t(n,1,0,"column"),t(n,2,0,e.secondaryResultPanel),t(n,4,0,"100%"),t(n,9,0,"row wrap"),t(n,10,0,"100%"),t(n,12,0,e.getLoopCount(n.context.$implicit.doclist.numFound))},function(t,n){t(n,5,0,n.context.$implicit.groupValue,n.context.$implicit.doclist.numFound)})}function tv(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","norecords-result-card"]],null,null,null,null,null)),(t()(),Bl(1,null,["",""]))],null,function(t,n){t(n,1,0,n.component.processMessage)})}function nv(t){return zl(0,[(t()(),Io(0,0,null,null,29,"div",[["style","padding-bottom: 10px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,22,"div",[["class","vf-form__item"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"label",[["class","vf-form__label vf-u-sr-only | vf-search__label"],["for","searchitem"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Search"])),(t()(),Io(4,0,[["searchBox",1]],null,5,"input",[["autocomplete","off"],["class","vf-form__input pdbeAutoCompleteSearchBox"],["id","searchitem"],["onclick","gtag('event', 'search-box')"],["placeholder","Search in PDBe"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"],[null,"keyup"],[null,"input"],[null,"blur"],[null,"compositionstart"],[null,"compositionend"]],function(t,n,e){var i=!0,o=t.component;return"input"===n&&(i=!1!==nl(t,5)._handleInput(e.target.value)&&i),"blur"===n&&(i=!1!==nl(t,5).onTouched()&&i),"compositionstart"===n&&(i=!1!==nl(t,5)._compositionStart()&&i),"compositionend"===n&&(i=!1!==nl(t,5)._compositionEnd(e.target.value)&&i),"ngModelChange"===n&&(i=!1!==(o.searchInputVal=e)&&i),"keyup"===n&&(i=!1!==o.search(nl(t,4).value)&&i),i},null,null)),fl(5,16384,null,0,Ym,[be,_e,[2,Xm]],null,null),ml(1024,null,Km,function(t){return[t]},[Ym]),fl(7,671744,null,0,Ny,[[8,null],[8,null],[8,null],[6,Km]],{model:[0,"model"]},{update:"ngModelChange"}),ml(2048,null,iy,null,[Ny]),fl(9,16384,null,0,Py,[[4,iy]],null,null),(t()(),So(16777216,null,null,1,null,Wy)),fl(11,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(12,0,null,null,11,"div",[["class","result-container"]],null,null,null,null,null)),fl(13,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),fl(14,737280,null,0,Bm,[dm,[8,null],_e,gm,Cn,[2,am]],{show:[0,"show"]},null),(t()(),Io(15,0,null,null,8,"div",[["fxLayout","row wrap"]],null,null,null,null,null)),fl(16,737280,null,0,Mm,[dm,_e,gm],{layout:[0,"layout"]},null),fl(17,737280,null,0,Lm,[dm,_e,[6,Mm],gm],{align:[0,"align"]},null),(t()(),So(16777216,null,null,1,null,Zy)),fl(19,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),So(16777216,null,null,1,null,Jy)),fl(21,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),So(16777216,null,null,1,null,tv)),fl(23,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(24,0,null,null,5,"button",[["class","vf-search__button | vf-button vf-button--secondary"],["onclick","gtag('event', 'search-submit')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openSearch(nl(t,4).value)&&i),i},null,null)),(t()(),Io(25,0,null,null,1,"span",[["class","hide-for-small-only vf-button__text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Search"])),(t()(),Io(27,0,null,null,2,":svg:svg",[[":xmlns:svgjs","http://svgjs.com/svgjs"],[":xmlns:xlink","http://www.w3.org/1999/xlink"],["aria-hidden","true"],["class","show-for-small-only vf-icon vf-icon--search-btn | vf-button__icon"],["height","16"],["version","1.1"],["viewBox","0 0 140 140"],["width","16"],["xmlns","http://www.w3.org/2000/svg"]],null,null,null,null,null)),(t()(),Io(28,0,null,null,1,":svg:g",[["transform","matrix(5.833333333333333,0,0,5.833333333333333,0,0)"]],null,null,null,null,null)),(t()(),Io(29,0,null,null,0,":svg:path",[["d","M23.414,20.591l-4.645-4.645a10.256,10.256,0,1,0-2.828,2.829l4.645,4.644a2.025,2.025,0,0,0,2.828,0A2,2,0,0,0,23.414,20.591ZM10.25,3.005A7.25,7.25,0,1,1,3,10.255,7.258,7.258,0,0,1,10.25,3.005Z"],["fill","#3B6FB6"],["stroke","none"],["stroke-linecap","round"],["stroke-linejoin","round"],["stroke-width","0"]],null,null,null,null,null))],function(t,n){var e=n.component;t(n,7,0,e.searchInputVal),t(n,11,0,e.showClearIcon),t(n,13,0,e.resultPanelHeight()),t(n,14,0,e.resultPanelOpen),t(n,16,0,"row wrap"),t(n,17,0,e.layoutAlign),t(n,19,0,e.resultGroups),t(n,21,0,e.moreResultGroups),t(n,23,0,0==(null==e.resultGroups?null:e.resultGroups.length))},function(t,n){t(n,4,0,nl(n,9).ngClassUntouched,nl(n,9).ngClassTouched,nl(n,9).ngClassPristine,nl(n,9).ngClassDirty,nl(n,9).ngClassValid,nl(n,9).ngClassInvalid,nl(n,9).ngClassPending)})}var ev=function(){function t(){}return t.prototype.ngOnInit=function(){this.activePage||(this.activePage="summary")},t.prototype.toggleMenu=function(){this.menuOpen=!this.menuOpen},t}(),iv=Ki({encapsulation:0,styles:[['.header-logo-section[_ngcontent-%COMP%]{background-repeat:no-repeat;background-position:100% 82%;background-size:cover;background-color:#085f5c;background-image:url(\'data:image/svg+xml;charset=UTF-8,<svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="147 248 60 248" xml:space="preserve"><polygon class="st0" fill="%23000" fill-opacity="0.05" points="147,363.6 259.3,363.6 259.3,428.4 203.2,460.9 147,428.4 "/></svg>\');padding:28px 0 18px}.mobile-menu-icon[_ngcontent-%COMP%]{width:32px;height:32px;position:absolute;right:22px;margin-top:5px;display:none;color:#fff}.local-top-nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%]{border-right:none;margin-top:15px}.local-top-nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{font-size:19px;color:#fff;border-bottom:none}.local-top-nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active, .local-top-nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{background-color:#085a57;text-decoration:underline}.header-search-section[_ngcontent-%COMP%]{background-color:#217976;padding:10px .9375rem}.header-nav-section[_ngcontent-%COMP%]{background-color:#c0dcdb}.masthead-inner[_ngcontent-%COMP%]{padding:0 .9375rem}.masthead-inner[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%]{clear:right;float:left}.masthead-inner[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]{color:#0a0a0a}.masthead-inner[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:hover{color:#fff;background-color:#085a57}.masthead-inner[_ngcontent-%COMP%] > nav[_ngcontent-%COMP%] > ul[_ngcontent-%COMP%] > li[_ngcontent-%COMP%] > a[_ngcontent-%COMP%]:active{background-color:#fff}@media screen and (max-width:39.9375em){#local-title[_ngcontent-%COMP%], #local-title[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{width:85%;float:left;margin-bottom:10px;line-height:24px}.mobile-menu[_ngcontent-%COMP%], .mobile-menu-icon[_ngcontent-%COMP%]{display:block}.local-top-nav[_ngcontent-%COMP%]{float:left;width:100%}.local-top-nav[_ngcontent-%COMP%] ul.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%]{border-right:none;display:block;float:none}.local-top-nav[_ngcontent-%COMP%] ul.menu[_ngcontent-%COMP%] li[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-left:0;display:block;font-size:20px;height:52px;line-height:52px}.header-search-section[_ngcontent-%COMP%]{padding:7px .625rem}.masthead-inner[_ngcontent-%COMP%]{padding:0 .625rem}}']],data:{}});function ov(t){return zl(0,[(t()(),Io(0,0,null,null,1,":svg:svg",[["class","mobile-menu-icon"],["viewBox","0 0 24 24"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.toggleMenu()&&i),i},null,null)),(t()(),Io(1,0,null,null,0,":svg:path",[["d","M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z"],["fill","currentColor"]],null,null,null,null,null))],null,null)}function lv(t){return zl(0,[(t()(),Io(0,0,null,null,1,":svg:svg",[["class","mobile-menu-icon"],["viewBox","0 0 24 24"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.toggleMenu()&&i),i},null,null)),(t()(),Io(1,0,null,null,0,":svg:path",[["d","M19,6.41L17.59,5L12,10.59L6.41,5L5,6.41L10.59,12L5,17.59L6.41,19L12,13.41L17.59,19L19,17.59L13.41,12L19,6.41Z"],["fill","currentColor"]],null,null,null,null,null))],null,null)}function rv(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","columns small-12 mobile-menu"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,7,"nav",[["class","local-top-nav"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,6,"ul",[["class","dropdown menu"],["data-description","navigational"],["id","local-nav"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Io(4,0,null,null,1,"a",[["href","https://www.ebi.ac.uk/pdbe/pdbe-kb"],["onclick","gtag('event', 'app-header-go-to-home')"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Home"])),(t()(),Io(6,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"a",[["class","exit-link"],["href","https://github.com/PDBe-KB/pdbe-kb-manual/wiki"],["onclick","gtag('event', 'app-header-go-to-docs')"],["target","_blank"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Documentation"]))],null,null)}function av(t){return zl(0,[(t()(),Io(0,0,null,null,72,"div",[["data-sticky-container",""]],null,null,null,null,null)),(t()(),Io(1,0,null,null,71,"header",[],null,null,null,null,null)),(t()(),Io(2,0,null,null,22,"div",[["class","header-logo-section"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,21,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,9,"div",[["class","columns small-12 medium-7"],["id","local-title"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,4,"h1",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,1,"a",[["href","https://www.ebi.ac.uk/pdbe/pdbe-kb"],["title","Back to PDBe-KB homepage"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,0,"img",[["src","https://www.ebi.ac.uk/pdbe/pdbe-kb/static/img/PDBe-KB-logo-white.png"],["style","max-height: 60px"]],null,null,null,null,null)),(t()(),Io(8,0,null,null,1,"span",[["style","color: #ecf1ee; font-size: 0.5em;padding-left: 15px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Aggregated Views of Proteins"])),(t()(),So(16777216,null,null,1,null,ov)),fl(11,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,lv)),fl(13,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(14,0,null,null,8,"div",[["class","columns medium-5 hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(15,0,null,null,7,"nav",[["class","local-top-nav"]],null,null,null,null,null)),(t()(),Io(16,0,null,null,6,"ul",[["class","dropdown menu float-right"],["data-description","navigational"]],null,null,null,null,null)),(t()(),Io(17,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Io(18,0,null,null,1,"a",[["href","https://www.ebi.ac.uk/pdbe/pdbe-kb"],["onclick","gtag('event', 'app-header-go-to-home')"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Home"])),(t()(),Io(20,0,null,null,2,"li",[],null,null,null,null,null)),(t()(),Io(21,0,null,null,1,"a",[["class","exit-link"],["href","https://github.com/PDBe-KB/pdbe-kb-manual/wiki"],["onclick","gtag('event', 'app-header-go-to-docs')"],["target","_blank"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Documentation"])),(t()(),So(16777216,null,null,1,null,rv)),fl(24,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(25,0,null,null,5,"div",[["class","header-search-section"],["id","header-search-section"]],null,null,null,null,null)),(t()(),Io(26,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(27,0,null,null,3,"div",[["class","columns small-12"]],null,null,null,null,null)),(t()(),Io(28,0,null,null,2,"search-autocomplete",[],null,[["document","click"],["document","keydown"]],function(t,n,e){var i=!0;return"document:click"===n&&(i=!1!==nl(t,30).onClick(e)&&i),"document:keydown"===n&&(i=!1!==nl(t,30).onKeypress(e)&&i),i},nv,Qy)),ml(512,null,zy,zy,[ys]),fl(30,114688,null,0,Gy,[zy,Ee,_e],null,null),(t()(),Io(31,0,null,null,41,"div",[["class","masthead header-nav-section"],["data-btm-anchor","content:bottom"],["data-sticky",""],["data-sticky-on","large"],["data-top-anchor","header-search-section:bottom"],["id","masthead"]],null,null,null,null,null)),(t()(),Io(32,0,null,null,40,"div",[["class","row masthead-inner"]],null,null,null,null,null)),(t()(),Io(33,0,null,null,39,"nav",[["style","width:100%"]],null,null,null,null,null)),(t()(),Io(34,0,null,null,38,"ul",[["class","dropdown menu float-left"],["data-description","navigational"],["data-dropdown-menu","1xnjtv-dropdown-menu"],["id","local-nav"],["role","menubar"],["style","width:100%"]],null,null,null,null,null)),(t()(),Io(35,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(36,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(37,{active:0}),(t()(),Io(38,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-summary')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Summary"])),(t()(),Io(40,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(41,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(42,{active:0}),(t()(),Io(43,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-structures')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Structures"])),(t()(),Io(45,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(46,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(47,{active:0}),(t()(),Io(48,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-ligands')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Ligands"])),(t()(),Io(50,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(51,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(52,{active:0}),(t()(),Io(53,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-interactions')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Interactions"])),(t()(),Io(55,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(56,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(57,{active:0}),(t()(),Io(58,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-annotations')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Annotations"])),(t()(),Io(60,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(61,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(62,{active:0}),(t()(),Io(63,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-similarity')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Similarity"])),(t()(),Io(65,0,null,null,4,"li",[["role","menuitem"]],null,null,null,null,null)),fl(66,278528,null,0,Da,[Xe,Ye,_e,be],{ngClass:[0,"ngClass"]},null),Vl(67,{active:0}),(t()(),Io(68,0,null,null,1,"a",[["onclick","gtag('event', 'app-header-go-to-publications')"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Publications"])),(t()(),Io(70,0,null,null,2,"li",[["role","menuitem"]],null,null,null,null,null)),(t()(),Io(71,0,null,null,1,"a",[["class","exit-link"],["href","https://www.ebi.ac.uk/support/PDBe"],["style","border-bottom: none !important;"],["target","_blank"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Feedback"]))],function(t,n){var e=n.component;t(n,11,0,!e.menuOpen),t(n,13,0,e.menuOpen),t(n,24,0,e.menuOpen),t(n,30,0);var i=t(n,37,0,"summary"===e.activePage);t(n,36,0,i);var o=t(n,42,0,"structures"===e.activePage);t(n,41,0,o);var l=t(n,47,0,"ligands"===e.activePage);t(n,46,0,l);var r=t(n,52,0,"interactions"===e.activePage);t(n,51,0,r);var a=t(n,57,0,"annotations"===e.activePage);t(n,56,0,a);var s=t(n,62,0,"similarity"===e.activePage);t(n,61,0,s);var u=t(n,67,0,"publications"===e.activePage);t(n,66,0,u)},function(t,n){var e=n.component;t(n,38,0,Po(1,"./",e.accession,"")),t(n,43,0,Po(1,"./",e.accession,"/structures")),t(n,48,0,Po(1,"./",e.accession,"/ligands")),t(n,53,0,Po(1,"./",e.accession,"/interactions")),t(n,58,0,Po(1,"./",e.accession,"/annotations")),t(n,63,0,Po(1,"./",e.accession,"/similarity")),t(n,68,0,Po(1,"./",e.accession,"/publications"))})}var sv=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),uv=Ki({encapsulation:0,styles:[[""]],data:{}});function cv(t){return zl(0,[(t()(),Io(0,0,null,null,14,"div",[["class","row"],["style","margin-top:40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,13,"div",[["class","small-11 small-offset-1 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h1",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Error: 404"])),(t()(),Io(4,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(-1,null,["We\u2019re sorry - we can\u2019t find the page or file you requested."])),(t()(),Io(6,0,null,null,8,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["We\u2019re sorry - we can\u2019t find the page or file you requested."])),(t()(),Io(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" It may have been removed, had its name changed, or be temporarily unavailable."])),(t()(),Io(10,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" You might try searching for it or go "])),(t()(),Io(12,0,null,null,1,"a",[["href","/pdbe/pdbe-kb"]],null,null,null,null,null)),(t()(),Bl(-1,null,["back to homepage"])),(t()(),Bl(-1,null,["."]))],null,null)}var pv=function(){function t(t,n){this.dialogRef=t,this.dialogData=n}return t.prototype.ngOnInit=function(){this.loadView()},t.prototype.loadView=function(t){var n=!1,e=!0;window.screen.width<=480&&(n=!0,e=!1);var i=this.dialogData.entryList[this.dialogData.current],o={pdbeUrl:Xr.pdbeUrl,loadMaps:!0,validationAnnotation:!0,domainAnnotation:!0,expanded:n,landscape:e,hideExpandIcon:!0,subscribeEvents:!1,bgColor:{r:255,g:255,b:255},hideCanvasControls:[]};if(i.superposition?(o.moleculeId=i.accession,o.superposition=!0,i.superpositionParams&&(o.superpositionParams=i.superpositionParams),o.hideCanvasControls.push("animation","trajectory")):o.moleculeId=i.pdbId,i.assemblyId&&(o.assemblyId=i.assemblyId.toString()),i.ligandId&&(o.ligandView={label_comp_id:i.ligandId},o.selectInteraction=!1,o.validationAnnotation=!1,o.domainAnnotation=!1),t){var l={loadMaps:!0,bgColor:{r:255,g:255,b:255}};o.moleculeId&&(l.moleculeId=o.moleculeId),o.assemblyId&&(l.assemblyId=o.assemblyId),o.ligandView&&(l.ligandView=o.ligandView,l.selectInteraction=!1,l.validationAnnotation=!1,l.domainAnnotation=!1),this.pdbeMolstar.visual.update(l,!0)}else{var r=document.getElementById("app");r&&(this.pdbeMolstar=new PDBeMolstarPlugin,this.pdbeMolstar.render(r,o))}if(i.chainId&&i.chainColor){var a=this;this.pdbeMolstar.events.loadComplete.subscribe(function(t){var n=i.chainColor;void 0!==a.pdbeMolstar.visual.select&&a.pdbeMolstar.visual.select({data:[{struct_asym_id:i.chainId,color:{r:n[0],g:n[1],b:n[2]}}],nonSelectedColor:{r:231,g:200,b:200}})})}else if(i.entityId&&i.entityColor&&!i.ligandId){var s=this;this.pdbeMolstar.events.loadComplete.subscribe(function(t){var n=i.entityColor;void 0!==s.pdbeMolstar.visual.select&&s.pdbeMolstar.visual.select({data:[{entity_id:i.entityId,color:{r:n[0],g:n[1],b:n[2]}}],nonSelectedColor:{r:231,g:200,b:200}})})}},t.prototype.updateView=function(t){this.dialogData.current=t,this.loadView(!0)},t.prototype.getlabel=function(t){var n=this.dialogData.entryList[t],e="PDB "+n.pdbId;return n.chainId&&(e+=" chain "+n.chainId),n.assemblyId&&"preferred"!=n.assemblyId&&(e+=" assembly "+n.assemblyId),e},t.prototype.closeDialog=function(){this.dialogRef.close("Close")},t.prototype.ngOnDestroy=function(){void 0!==this.pdbeMolstar.plugin&&this.pdbeMolstar.plugin.clear()},t}(),hv=function(){function t(t){this.dialog=t}return t.prototype.openMolstarDialog=function(){var t={entryList:[this.superposeModalData],current:0};return this.dialog.open(pv,{disableClose:!1,panelClass:"molstarDialog",data:t}),t},t}(),dv=Ki({encapsulation:0,styles:[['.superpose-btn[_ngcontent-%COMP%]{width:100%}.padding-small[_ngcontent-%COMP%]{padding:.5em 1em;font-size:.8rem;margin-bottom:5px}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:150px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:110%;left:50%;margin-left:-60px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:-5px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function fv(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-button vf-button--primary superpose-btn"],["onclick","gtag('event', 'superpose')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openMolstarDialog(0)&&i),i},null,null)),(t()(),Bl(1,null,[" "," "]))],null,function(t,n){t(n,1,0,n.component.label)})}function gv(t){return zl(0,[(t()(),Io(0,0,null,null,4,"span",[["class","label-tooltip"],["style","width: 100%;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,fv)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(3,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(4,null,["",""]))],function(t,n){t(n,2,0,n.component.superposeModalData)},function(t,n){t(n,4,0,n.component.tooltip)})}function mv(t){return zl(0,[(t()(),So(16777216,null,null,1,null,gv)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,1,0,n.component.superposeModalData)},null)}var yv=function(){function t(t){this.dialog=t,this.molstarRendered=!1}return t.prototype.ngAfterViewChecked=function(){this.molstarRendered||this.loadMolstarView()},t.prototype.loadMolstarView=function(t){if(t){var n=this.getCustomParams();this.pdbeMolstar.visual.update(n,!0)}else{var e=document.getElementById("molstarBox");if(e){this.molstarRendered=!0;var i=this.getCustomParams();this.pdbeMolstar=new PDBeMolstarPlugin,this.pdbeMolstar.render(e,i)}}},t.prototype.getCustomParams=function(){var t=this.data.gallery_items[this.data.start_index];return{moleculeId:t.main_id,selection:{data:[{entity_id:""+t.entity_id,struct_asym_id:""+t.sub_id,color:{r:50,g:130,b:255}}],nonSelectedColor:{r:231,g:200,b:200}},pdbeUrl:Xr.pdbeUrl,hideExpandIcon:!0,subscribeEvents:!1,bgColor:{r:255,g:255,b:255},selectInteraction:!1,hideCanvasControls:["selection","animation","controlToggle","controlInfo"],hideControls:!0,pdbeLink:!1}},t.prototype.getSuperposeData=function(t){var n={accession:this.data.accession,superposition:!0,superpositionParams:{segment:t.segment_id}};return this.parentAccession&&(n.superpositionParams.matrixAccession=this.parentAccession),n},t.prototype.getStyle=function(t){var n={width:(this.data.gallery_items[t].end-this.data.gallery_items[t].start)/this.data.length*100+"%","margin-left":this.data.gallery_items[t].start/this.data.length*100+"%","background-color":this.data.inactive_color+"70","text-align":"center"};return t===this.data.start_index&&(n["background-color"]=this.data.active_color+"70",n.height="15px"),n},t.prototype.getObservedStyle=function(t,n){var e={width:(this.data.gallery_items[t].observed[n].unp_end-this.data.gallery_items[t].observed[n].unp_start)/this.data.length*100+"%","margin-left":this.data.gallery_items[t].observed[n].unp_start/this.data.length*100+"%","text-align":"center","background-color":this.data.inactive_color};return t===this.data.start_index&&(e["background-color"]=this.data.active_color,e.height="20px"),e},t.prototype.getMarkerStyle=function(t){var n={position:"relative",top:"-25px",color:"white","font-size":"large"};return t===this.data.start_index&&(n.color=this.data.active_color),this.data.gallery_items[t].end-this.data.gallery_items[t].start<25&&(n.left="-"+((this.data.gallery_items[t].end-this.data.gallery_items[t].start)/4+5.5)+"px"),n},t.prototype.showCoverage=function(t){return t.coverage?"Coverage: "+Math.ceil(100*t.coverage)+"%":"Coverage: unavailable"},t.prototype.nextItem=function(){this.data.start_index+1===this.data.gallery_items.length?this.data.start_index=0:this.data.start_index++,this.loadMolstarView(!0)},t.prototype.previousItem=function(){this.data.start_index-1<0?this.data.start_index=this.data.gallery_items.length-1:this.data.start_index--,this.loadMolstarView(!0)},t.prototype.setCurrentItem=function(t){this.data.start_index=t,this.loadMolstarView(!0)},t.prototype.openMolstarDialog=function(t){var n=[];this.data.gallery_items.forEach(function(t){n.push({pdbId:t.main_id,chainId:t.sub_id,chainColor:[50,130,255],assemblyId:t.opt_id})});var e={entryList:n,current:t};return this.dialog.open(pv,{disableClose:!1,panelClass:"molstarDialog",data:e}),e},t.prototype.ngOnDestroy=function(){void 0!==this.pdbeMolstar&&void 0!==this.pdbeMolstar.plugin&&this.pdbeMolstar.plugin.clear()},t}(),vv=Ki({encapsulation:0,styles:[['.padding-small[_ngcontent-%COMP%]{padding:.5em 1em;font-size:.7rem}.bottom-text[_ngcontent-%COMP%]{font-size:18px;color:#0a0a0a;padding-top:5px;margin-bottom:0}#representative-structure[_ngcontent-%COMP%]{margin:0 auto;max-width:500px}.exit-link[_ngcontent-%COMP%]:hover{border-bottom-style:solid}p[_ngcontent-%COMP%]{text-align:center;font-size:15px}.section-label[_ngcontent-%COMP%]{font-size:18px;font-weight:500}.columns[_ngcontent-%COMP%]{padding:0}#representative-img[_ngcontent-%COMP%]{height:auto}.carousel-arrow[_ngcontent-%COMP%]{height:315px;line-height:315px;font-size:x-large;cursor:pointer;text-align:center}#uniprot-sequence-div[_ngcontent-%COMP%]{width:100%;background-color:#d3d3d3;height:5px;position:absolute;margin-top:10px}#coverage-track-div[_ngcontent-%COMP%]{height:30px;position:relative;padding-right:10px}.segment[_ngcontent-%COMP%]{height:15px;font-size:xx-small;position:absolute;margin-top:5px}.segment[_ngcontent-%COMP%]:hover{opacity:.5;cursor:pointer}#item-labels[_ngcontent-%COMP%]{text-align:center;font-size:small}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:active, a[_ngcontent-%COMP%]:focus, a[_ngcontent-%COMP%]:hover{border-bottom-style:none;box-shadow:none!important}#sub-label[_ngcontent-%COMP%]{font-size:smaller}.disabled-btn[_ngcontent-%COMP%]{width:100%;background-color:#b9b9b9;border-color:#b9b9b9;cursor:not-allowed}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;border-bottom:1px dotted #000}.label-tooltip[_ngcontent-%COMP%]:hover{cursor:help;border-bottom:1px solid}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip-alt[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:300px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:150%;left:50%;margin-left:-150px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:-5px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip-alt[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function bv(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","small-1 columns"]],null,null,null,null,null)),(t()(),Bl(-1,null,["\xa0"]))],null,null)}function _v(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-1 columns carousel-arrow"],["onclick","gtag('event', 'best-structures-navigation')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.previousItem()&&i),i},null,null)),(t()(),Io(1,0,null,null,1,"a",[],null,null,null,null,null)),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","<"]],null,null,null,null,null))],null,null)}function wv(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","small-1 columns"]],null,null,null,null,null)),(t()(),Bl(-1,null,["\xa0"]))],null,null)}function xv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-1 columns carousel-arrow"],["onclick","gtag('event', 'best-structures-navigation')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.nextItem()&&i),i},null,null)),(t()(),Io(1,0,null,null,1,"a",[],null,null,null,null,null)),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon",">"]],null,null,null,null,null))],null,null)}function Pv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),fl(1,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","["]],null,null,null,null,null))],function(t,n){t(n,1,0,n.component.getMarkerStyle(n.parent.context.index))},null)}function Cv(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","label-tooltip-alt"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["class","segment"],["onclick","gtag('event', 'best-structures-select')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.setCurrentItem(t.parent.context.index)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(3,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(4,null,["PDB "," chain "," (observed residues)"]))],function(t,n){t(n,2,0,n.component.getObservedStyle(n.parent.context.index,n.context.index))},function(t,n){var e=n.component;t(n,4,0,e.data.gallery_items[n.parent.context.index].main_id,e.data.gallery_items[n.parent.context.index].sub_id)})}function Sv(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","segment"],["onclick","gtag('event', 'best-structures-select')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.setCurrentItem(t.context.index)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),So(16777216,null,null,1,null,Pv)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Cv)),fl(6,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){var e=n.component;t(n,2,0,e.getStyle(n.context.index)),t(n,4,0,e.data.gallery_items.length>1),t(n,6,0,n.context.$implicit.observed)},null)}function Iv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-10 medium-offset-1"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-superpose",[["onclick","gtag('event', 'best-structures-superpose')"],["tooltip","View all the superposed structural clusters of this protein region"]],null,null,null,mv,dv)),fl(2,49152,null,0,hv,[Rf],{superposeModalData:[0,"superposeModalData"],label:[1,"label"],tooltip:[2,"tooltip"]},null)],function(t,n){var e=n.component;t(n,2,0,e.getSuperposeData(e.data.gallery_items[e.data.start_index]),Po(1,"3D view of superposed structures for region ",e.data.gallery_items[e.data.start_index].segment_id,""),"View all the superposed structural clusters of this protein region")},null)}function kv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-10 medium-offset-1"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"button",[["class","vf-button vf-button--primary disabled-btn"],["disabled","disabled"],["style","font-size: 14px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["No superposed structures for this region"]))],null,null)}function Ov(t){return zl(0,[(t()(),Io(0,0,null,null,52,"div",[["class","row"],["id","representative-structure"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,21,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,20,"p",[["class","top-text"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"span",[["class","section-label"]],null,null,null,null,null)),(t()(),Bl(4,null,["",""])),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,16,"span",[["id","sub-label"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,15,"div",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Bl(8,null,[" "," "])),(t()(),Io(9,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","i"]],null,null,null,null,null)),(t()(),Io(10,0,null,null,12,"span",[["class","label-tooltip-text"],["style","z-index: 3;"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" This viewer shows non-overlapping chains from PDB entries with the highest number of observed residues for various regions of the UniProt protein sequence. "])),(t()(),Io(12,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(13,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" Use the arrows or click on the blue segments at the bottom to navigate between representative chains from different PDB entries for different regions of the sequence. "])),(t()(),Io(15,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(16,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" Observed regions are darker shades, while unobserved regions are slightly transparent. "])),(t()(),Io(18,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(19,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(20,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Note:"])),(t()(),Bl(-1,null,[" There is a reported problem with Safari 15.1 that breaks the 3D viewer, Mol*. If Mol* is not displayed for you, please try a different browser, or update your Safari browser. "])),(t()(),Io(23,0,null,null,9,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,bv)),fl(25,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,_v)),fl(27,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(28,0,null,null,0,"div",[["class","small-10 columns"],["id","molstarBox"],["style","text-align: center; position: relative; height: 315px; z-index: 2;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,wv)),fl(30,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,xv)),fl(32,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(33,0,null,null,19,"div",[["class","small-12 columns"],["style","clear: both; margin-top:30px;"]],null,null,null,null,null)),(t()(),Io(34,0,null,null,3,"div",[["id","coverage-track-div"]],null,null,null,null,null)),(t()(),Io(35,0,null,null,0,"div",[["id","uniprot-sequence-div"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Sv)),fl(37,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(38,0,null,null,14,"div",[["id","item-labels"]],null,null,null,null,null)),(t()(),Io(39,0,null,null,4,"p",[["class","bottom-text"],["style","margin-bottom: 5px"]],null,null,null,null,null)),(t()(),Bl(40,null,[" "," "])),(t()(),Io(41,0,null,null,2,"a",[["class","exit-link"],["onclick","gtag('event', 'best-structures-go-to-pdbe')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(42,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(-1,null,["go to PDBe"])),(t()(),Io(44,0,null,null,1,"p",[["style","margin-bottom: 5px"]],null,null,null,null,null)),(t()(),Bl(45,null,[" UniProt residues "," - "," "])),(t()(),Io(46,0,null,null,1,"p",[["style","margin-bottom: 10px"]],null,null,null,null,null)),(t()(),Bl(47,null,["",""])),(t()(),Io(48,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Iv)),fl(50,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,kv)),fl(52,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,25,0,e.data.gallery_items.length<2),t(n,27,0,e.data.gallery_items.length>1),t(n,30,0,e.data.gallery_items.length<2),t(n,32,0,e.data.gallery_items.length>1),t(n,37,0,e.data.gallery_items),t(n,50,0,e.data.gallery_items[e.data.start_index].segment_id),t(n,52,0,!e.data.gallery_items[e.data.start_index].segment_id)},function(t,n){var e=n.component;t(n,4,0,e.data.main_label),t(n,8,0,e.data.sub_label),t(n,40,0,e.data.gallery_items[e.data.start_index].label),t(n,41,0,Po(2,"http://www.ebi.ac.uk/pdbe/entry/pdb/",e.data.gallery_items[e.data.start_index].main_id,"/protein/",e.data.gallery_items[e.data.start_index].entity_id,"")),t(n,45,0,e.data.gallery_items[e.data.start_index].start,e.data.gallery_items[e.data.start_index].end),t(n,47,0,e.showCoverage(e.data.gallery_items[e.data.start_index]))})}function Ev(t){return zl(0,[(t()(),So(16777216,null,null,1,null,Ov)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.data&&e.data.length&&e.data.gallery_items.length>0)},null)}var Dv=function(){function t(t){this.dialog=t,this.tutorial={title:"How to use the summary section",text:"This short video gives an overview of how to use the summary section.",url:"https://www.youtube.com/embed/Hz1ixiRLcgE?autoplay=1"}}return t.prototype.get_shortened_text=function(t){var n=t.split(" ");return n.length<=this.data.text_limit?t:n.slice(0,this.data.text_limit).join(" ")+" ..."},t.prototype.swich_text=function(t){t.show_long=!t.show_long},t.prototype.check_if_has_to_show_more=function(t){var n=t.text.split(" ");return!t.show_long&&n.length>=this.data.text_limit},t.prototype.getStyle=function(t){return{"background-color":t.color}},t.prototype.openDialog=function(){this.dialog.open(Ls,{disableClose:!1,panelClass:"tutorial",data:this.tutorial})},t.prototype.ngOnInit=function(){},t}(),Av=Ki({encapsulation:0,styles:[['h2[_ngcontent-%COMP%]{margin-bottom:0;font-size:22px;font-weight:700}.help-icon[_ngcontent-%COMP%]{float:right}.whats-new[_ngcontent-%COMP%]{color:#74b360;font-size:.8em}.show-more[_ngcontent-%COMP%]{font-size:.7em;font-weight:700;margin-left:5px;color:#085f5c;border-bottom-style:none}.show-more[_ngcontent-%COMP%]:hover{border-bottom-style:solid}.text-section[_ngcontent-%COMP%]{padding-right:10px}.italic_text[_ngcontent-%COMP%]{font-style:italic}.entry-flag[_ngcontent-%COMP%]{font-size:small;color:#fff;font-weight:700;padding:2px 5px;border-radius:25px;margin-left:5px;border:1px solid #456e37}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;border-bottom:1px dotted #000}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;min-width:400px;max-width:600px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:3;top:-45px;left:135%}.label-tooltip-text.summary-tt[_ngcontent-%COMP%]{top:-35px!important;left:110%!important}a[_ngcontent-%COMP%]:hover{opacity:1}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent #000 transparent transparent}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function Mv(t){return zl(0,[(t()(),Io(0,0,null,null,4,"a",[["class","label-tooltip"],["onclick","gtag('event', 'click', {'event_category': 'summary-text', 'event_label': 'summary-text-flag', 'value': undefined})"],["style","border-bottom: none;"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(1,null,[" ","\xa0"])),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","x"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"span",[["class","label-tooltip-text summary-tt"]],null,null,null,null,null)),(t()(),Bl(4,null,["",""]))],null,function(t,n){t(n,0,0,Po(1,"",n.parent.context.$implicit.url,"")),t(n,1,0,n.parent.context.$implicit.name),t(n,4,0,n.parent.context.$implicit.tooltip)})}function Tv(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[["class","label-tooltip-text summary-tt"]],null,null,null,null,null)),(t()(),Bl(1,null,["",""]))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.tooltip)})}function Rv(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[["class","label-tooltip"],["style","border-bottom: none;"]],null,null,null,null,null)),(t()(),Bl(1,null,[" "," "])),(t()(),So(16777216,null,null,1,null,Tv)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,3,0,n.parent.context.$implicit.tooltip)},function(t,n){t(n,1,0,n.parent.context.$implicit.name)})}function Lv(t){return zl(0,[(t()(),Io(0,0,null,null,6,"span",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"span",[["class","entry-flag"]],null,null,null,null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),So(16777216,null,null,1,null,Mv)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Rv)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.component.getStyle(n.context.$implicit)),t(n,4,0,n.context.$implicit.url),t(n,6,0,!n.context.$implicit.url)},null)}function Nv(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["class","small-12 medium-4 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(3,null,["",": "])),(t()(),Io(4,0,null,null,4,"div",[["class","small-12 medium-8 columns"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,3,"p",[],null,null,null,null,null)),(t()(),Bl(6,null,[" "," "])),(t()(),So(16777216,null,null,1,null,Lv)),fl(8,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,8,0,n.component.data.flags)},function(t,n){var e=n.component;t(n,3,0,e.data.subtitle.label),t(n,6,0,e.data.subtitle.value)})}function jv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"a",[["class","show-more"],["onclick","gtag('event', 'click', {'event_category': 'summary-text', 'event_label': 'summary-text-show-less', 'value': undefined})"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.swich_text(t.parent.parent.parent.context.$implicit)&&i),i},null,null)),(t()(),Io(1,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","-"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" [show less]"]))],null,null)}function Vv(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[["style","text-align: left"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(t()(),So(16777216,null,null,1,null,jv)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,3,0,n.component.get_shortened_text(n.parent.parent.context.$implicit.text)!=n.parent.parent.context.$implicit.text)},function(t,n){t(n,1,0,n.parent.parent.context.$implicit.text)})}function Bv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"a",[["class","show-more"],["onclick","gtag('event', 'click', {'event_category': 'summary-text', 'event_label': 'summary-text-show-more', 'value': undefined})"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.swich_text(t.parent.parent.parent.context.$implicit)&&i),i},null,null)),(t()(),Io(1,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","+"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" [show more]"]))],null,null)}function Uv(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[["style","text-align: left"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"span",[],[[8,"innerHTML",1]],null,null,null,null)),(t()(),So(16777216,null,null,1,null,Bv)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,3,0,n.component.check_if_has_to_show_more(n.parent.parent.context.$implicit))},function(t,n){t(n,1,0,n.component.get_shortened_text(n.parent.parent.context.$implicit.text))})}function Fv(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"a",[["class","exit-link"],["onclick","gtag('event', 'click', {'event_category': 'summary-text', 'event_label': 'summary-text-source-link', 'value': undefined})"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(2,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(3,null,["go to ",""]))],null,function(t,n){t(n,1,0,Po(1,"",n.parent.parent.context.$implicit.source_url,"")),t(n,3,0,n.parent.parent.context.$implicit.source)})}function zv(t){return zl(0,[(t()(),Io(0,0,null,null,12,"div",[["class","row text-section"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["class","small-12 medium-4 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(3,null,["",": "])),(t()(),Io(4,0,null,null,8,"div",[["class","small-12 medium-8 columns"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,7,"p",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,4,"span",[],[[2,"italic_text",null]],null,null,null,null)),(t()(),So(16777216,null,null,1,null,Vv)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Uv)),fl(10,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Fv)),fl(12,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,8,0,n.parent.context.$implicit.show_long),t(n,10,0,!n.parent.context.$implicit.show_long),t(n,12,0,n.parent.context.$implicit.source)},function(t,n){t(n,3,0,n.parent.context.$implicit.label),t(n,6,0,n.parent.context.$implicit.italic)})}function Hv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,zv)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.context.$implicit.text)},null)}function qv(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(2,null,["",""])),(t()(),Io(3,0,null,null,4,"div",[["class","small-12 columns"],["style","margin-top:20px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Nv)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Hv)),fl(7,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.data.subtitle),t(n,7,0,e.data.texts)},function(t,n){t(n,2,0,n.component.data.title)})}var $v=function(){function t(t){this.http=t,this.fileDownloadUrl=Xr.fileDownloadUrl,this.httpOptions={headers:new is({"Content-Type":"application/json"}),responseType:"json"},this.httpBlobOptions={headers:new is({"Content-Type":"application/json"}),responseType:"blob"}}return t.prototype.postFileDownloadServer=function(t,n){return this.http.post(""+this.fileDownloadUrl+t,n,this.httpOptions).pipe(oa(function(t){return t}),aa(this.handleError()))},t.prototype.getFileDownloadServer=function(t){return this.http.get(t,{observe:"response",responseType:"blob"}).pipe(oa(function(t){return t}),aa(this.handleError()))},t.prototype.handleError=function(){return function(t){return _m("Error: "+t.status+", "+t.statusText)}},t.ngInjectableDef=yt({factory:function(){return new t(ln(ys))},token:t,providedIn:"root"}),t}(),Gv=function(){function t(t){this.dialog=t}return t.prototype.ngOnInit=function(){this.buttonLabel=this.label?this.label:"Download"},t.prototype.openDialog=function(){this.getFdsConfig(),this.dialog.open(Qv,{width:"500px",data:{accession:this.downloadModalData.accession,pdbIds:this.downloadModalData.listPdbIds,fdsConfig:this.fdsConfig,relationship:this.getRelationship(this.downloadModalData.relationship,this.downloadModalData.count)}}).afterClosed().subscribe(function(t){})},t.prototype.getRelationship=function(t,n){var e=n>1?"s":"",i={protvistaProtein:"mapped to",similarProtein:"mapped to "+n+" protein"+e+" similar to",ligandsProtein:"containing "+n+" ligand"+e+" for",interactionsProtein:"mapped to "+n+" protein"+e+" that interact with",ligands:"bound to",interactions:"with instances of"};return t in i?i[t]:":"},t.prototype.getMsConfig=function(){var t=[];for(var n in this.downloadModalData.listPdbIds)t.push({entryId:this.downloadModalData.listPdbIds[n],query:"full"});this.msConfig={queries:t,encoding:"cif",asTarGz:!0}},t.prototype.getFdsConfig=function(){this.fdsConfig={ids:this.downloadModalData.listPdbIds}},t}(),Qv=function(){function t(t,n,e){this.dialogRef=t,this.data=n,this.downloadService=e,this.formats=["PDBx/mmCIF","PDB"],this.noPdbId=!1,this.chosenformat="updated"}return t.prototype.onNoClick=function(){this.dialogRef.close()},t.prototype.onClick=function(){this.checkPdbIds(),this.setCorrectDownloadParams(),this.isLoading=!0,this.postFile()},t.prototype.checkPdbIds=function(){this.data.pdbIds.length<1&&(this.noPdbId=!0,console.log("There is no pdbId in the data given."))},t.prototype.setCorrectDownloadParams=function(){"archive-mmCIF"===this.chosenformat?(this.data.fdsConfig.data_format="cif",this.fdstype="archive"):"archive-PDB"===this.chosenformat?(this.data.fdsConfig.data_format="pdb",this.fdstype="archive"):"updated"===this.chosenformat?this.fdstype="updated":"fasta-combined"===this.chosenformat?(this.fdstype="sequences",this.data.fdsConfig.combined=!0):"fasta-individual"===this.chosenformat?(this.fdstype="sequences",this.data.fdsConfig.combined=!1):"validation"===this.chosenformat&&(this.data.fdsConfig.data_format="xml",this.fdstype="validation-data")},t.prototype.postFile=function(){var t=this;this.downloadService.postFileDownloadServer(this.fdstype,this.data.fdsConfig).subscribe(function(n){t.hashedurl=n.url.replace("http:","https:"),t.getFile()},function(n){t.isLoading=!1,t.errorText=n})},t.prototype.getFile=function(){var t=this;this.downloadService.getFileDownloadServer(this.hashedurl).subscribe(function(n){"200"==n.status?setTimeout(function(){t.downloadFile(n.body,t.data.accession+"_"+t.chosenformat+".tar.gz","application/tar+gzip"),t.isLoading=!1},1e3):"202"==n.status?setTimeout(function(){t.getFile()},500):(t.isLoading=!1,t.errorText="Error: The download server returns non 200/202 status: "+n.status)},function(n){t.isLoading=!1,t.errorText=n})},t.prototype.downloadFile=function(t,n,e){var i=document.createElement("a");e=e||"application/octet-stream",navigator.msSaveBlob?navigator.msSaveBlob(new Blob([t],{type:e}),n):URL&&"download"in i?(i.href=URL.createObjectURL(new Blob([t],{type:e})),i.setAttribute("download",n),document.body.appendChild(i),i.click(),document.body.removeChild(i)):location.href="data:application/octet-stream,"+encodeURIComponent(t)},t}(),Wv=0,Kv=function(){return function(t,n){this.source=t,this.value=n}}(),Zv=function(t){function n(n){var e=t.call(this)||this;return e._changeDetector=n,e._value=null,e._name="mat-radio-group-"+Wv++,e._selected=null,e._isInitialized=!1,e._labelPosition="after",e._disabled=!1,e._required=!1,e._controlValueAccessorChangeFn=function(){},e.onTouched=function(){},e.change=new Qn,e}return o(n,t),Object.defineProperty(n.prototype,"name",{get:function(){return this._name},set:function(t){this._name=t,this._updateRadioButtonNames()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition},set:function(t){this._labelPosition="before"===t?"before":"after",this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,this._updateSelectedRadioFromValue(),this._checkSelectedRadioButton())},enumerable:!0,configurable:!0}),n.prototype._checkSelectedRadioButton=function(){this._selected&&!this._selected.checked&&(this._selected.checked=!0)},Object.defineProperty(n.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=t,this.value=t?t.value:null,this._checkSelectedRadioButton()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ad(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ad(t),this._markRadiosForCheck()},enumerable:!0,configurable:!0}),n.prototype.ngAfterContentInit=function(){this._isInitialized=!0},n.prototype._touch=function(){this.onTouched&&this.onTouched()},n.prototype._updateRadioButtonNames=function(){var t=this;this._radios&&this._radios.forEach(function(n){n.name=t.name})},n.prototype._updateSelectedRadioFromValue=function(){var t=this;this._radios&&(null===this._selected||this._selected.value!==this._value)&&(this._selected=null,this._radios.forEach(function(n){n.checked=t.value===n.value,n.checked&&(t._selected=n)}))},n.prototype._emitChangeEvent=function(){this._isInitialized&&this.change.emit(new Kv(this._selected,this._value))},n.prototype._markRadiosForCheck=function(){this._radios&&this._radios.forEach(function(t){return t._markForCheck()})},n.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},n.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},n.prototype.registerOnTouched=function(t){this.onTouched=t},n.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetector.markForCheck()},n}(Uf(function(){return function(){}}())),Xv=function(t){function n(n,e,i,o,l,r){var a=t.call(this,e)||this;return a._changeDetector=i,a._focusMonitor=o,a._radioDispatcher=l,a._animationMode=r,a._uniqueId="mat-radio-"+ ++Wv,a.id=a._uniqueId,a.change=new Qn,a._checked=!1,a._value=null,a._removeUniqueSelectionListener=function(){},a.radioGroup=n,a._removeUniqueSelectionListener=l.listen(function(t,n){t!==a.id&&n===a.name&&(a.checked=!1)}),a}return o(n,t),Object.defineProperty(n.prototype,"checked",{get:function(){return this._checked},set:function(t){var n=Ad(t);this._checked!==n&&(this._checked=n,n&&this.radioGroup&&this.radioGroup.value!==this.value?this.radioGroup.selected=this:!n&&this.radioGroup&&this.radioGroup.value===this.value&&(this.radioGroup.selected=null),n&&this._radioDispatcher.notify(this.id,this.name),this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"value",{get:function(){return this._value},set:function(t){this._value!==t&&(this._value=t,null!==this.radioGroup&&(this.checked||(this.checked=this.radioGroup.value===t),this.checked&&(this.radioGroup.selected=this)))},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"labelPosition",{get:function(){return this._labelPosition||this.radioGroup&&this.radioGroup.labelPosition||"after"},set:function(t){this._labelPosition=t},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"disabled",{get:function(){return this._disabled||null!==this.radioGroup&&this.radioGroup.disabled},set:function(t){var n=Ad(t);this._disabled!==n&&(this._disabled=n,this._changeDetector.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"required",{get:function(){return this._required||this.radioGroup&&this.radioGroup.required},set:function(t){this._required=Ad(t)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),n.prototype.focus=function(){this._focusMonitor.focusVia(this._inputElement.nativeElement,"keyboard")},n.prototype._markForCheck=function(){this._changeDetector.markForCheck()},n.prototype.ngOnInit=function(){this.radioGroup&&(this.checked=this.radioGroup.value===this._value,this.name=this.radioGroup.name)},n.prototype.ngAfterViewInit=function(){var t=this;this._focusMonitor.monitor(this._inputElement.nativeElement).subscribe(function(n){return t._onInputFocusChange(n)})},n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._inputElement.nativeElement),this._removeUniqueSelectionListener()},n.prototype._emitChangeEvent=function(){this.change.emit(new Kv(this,this._value))},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._onInputClick=function(t){t.stopPropagation()},n.prototype._onInputChange=function(t){t.stopPropagation();var n=this.radioGroup&&this.value!==this.radioGroup.value;this.checked=!0,this._emitChangeEvent(),this.radioGroup&&(this.radioGroup._controlValueAccessorChangeFn(this.value),this.radioGroup._touch(),n&&this.radioGroup._emitChangeEvent())},n.prototype._onInputFocusChange=function(t){this._focusRipple||"keyboard"!==t?t||(this.radioGroup&&this.radioGroup._touch(),this._focusRipple&&(this._focusRipple.fadeOut(),this._focusRipple=null)):this._focusRipple=this._ripple.launch(0,0,{persistent:!0})},n}(Ff(zf(Hf(function(){return function(t){this._elementRef=t}}())),"accent")),Yv=function(){return function(){}}();function Jv(){return"undefined"!=typeof process}function tb(t){switch(t.length){case 0:return new fd;case 1:return t[0];default:return new gd(t)}}function nb(t,n,e,i,o,l){void 0===o&&(o={}),void 0===l&&(l={});var r=[],a=[],s=-1,u=null;if(i.forEach(function(t){var e=t.offset,i=e==s,c=i&&u||{};Object.keys(t).forEach(function(e){var i=e,a=t[e];if("offset"!==e)switch(i=n.normalizePropertyName(i,r),a){case md:a=o[e];break;case cd:a=l[e];break;default:a=n.normalizeStyleValue(e,i,a,r)}c[i]=a}),i||a.push(c),u=c,s=e}),r.length)throw new Error("Unable to animate due to the following errors:\n - "+r.join("\n - "));return a}function eb(t,n,e,i){switch(n){case"start":t.onStart(function(){return i(e&&ib(e,"start",t))});break;case"done":t.onDone(function(){return i(e&&ib(e,"done",t))});break;case"destroy":t.onDestroy(function(){return i(e&&ib(e,"destroy",t))})}}function ib(t,n,e){var i=e.totalTime,o=ob(t.element,t.triggerName,t.fromState,t.toState,n||t.phaseName,null==i?t.totalTime:i,!!e.disabled),l=t._data;return null!=l&&(o._data=l),o}function ob(t,n,e,i,o,l,r){return void 0===o&&(o=""),void 0===l&&(l=0),{element:t,triggerName:n,fromState:e,toState:i,phaseName:o,totalTime:l,disabled:!!r}}function lb(t,n,e){var i;return t instanceof Map?(i=t.get(n))||t.set(n,i=e):(i=t[n])||(i=t[n]=e),i}function rb(t){var n=t.indexOf(":");return[t.substring(1,n),t.substr(n+1)]}var ab=function(t,n){return!1},sb=function(t,n){return!1},ub=function(t,n,e){return[]},cb=Jv();if(cb||"undefined"!=typeof Element){if(ab=function(t,n){return t.contains(n)},cb||Element.prototype.matches)sb=function(t,n){return t.matches(n)};else{var pb=Element.prototype,hb=pb.matchesSelector||pb.mozMatchesSelector||pb.msMatchesSelector||pb.oMatchesSelector||pb.webkitMatchesSelector;hb&&(sb=function(t,n){return hb.apply(t,[n])})}ub=function(t,n,e){var i=[];if(e)i.push.apply(i,c(t.querySelectorAll(n)));else{var o=t.querySelector(n);o&&i.push(o)}return i}}var db=null,fb=!1,gb=sb,mb=ab,yb=ub,vb=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return function(t){db||(db=("undefined"!=typeof document?document.body:null)||{},fb=!!db.style&&"WebkitAppearance"in db.style);var n=!0;return db.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(n=t in db.style)&&fb&&(n="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in db.style),n}(t)},t.prototype.matchesElement=function(t,n){return gb(t,n)},t.prototype.containsElement=function(t,n){return mb(t,n)},t.prototype.query=function(t,n,e){return yb(t,n,e)},t.prototype.computeStyle=function(t,n,e){return e||""},t.prototype.animate=function(t,n,e,i,o,l,r){return void 0===l&&(l=[]),new fd(e,i)},t}(),bb=function(){function t(){}return t.NOOP=new vb,t}(),_b=1e3;function wb(t){if("number"==typeof t)return t;var n=t.match(/^(-?[\.\d]+)(m?s)/);return!n||n.length<2?0:xb(parseFloat(n[1]),n[2])}function xb(t,n){switch(n){case"s":return t*_b;default:return t}}function Pb(t,n,e){return t.hasOwnProperty("duration")?t:function(t,n,e){var i,o=0,l="";if("string"==typeof t){var r=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===r)return n.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};i=xb(parseFloat(r[1]),r[2]);var a=r[3];null!=a&&(o=xb(Math.floor(parseFloat(a)),r[4]));var s=r[5];s&&(l=s)}else i=t;if(!e){var u=!1,c=n.length;i<0&&(n.push("Duration values below 0 are not allowed for this animation step."),u=!0),o<0&&(n.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&n.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:i,delay:o,easing:l}}(t,n,e)}function Cb(t,n){return void 0===n&&(n={}),Object.keys(t).forEach(function(e){n[e]=t[e]}),n}function Sb(t,n,e){if(void 0===e&&(e={}),n)for(var i in t)e[i]=t[i];else Cb(t,e);return e}function Ib(t,n,e){return e?n+":"+e+";":""}function kb(t){for(var n="",e=0;e<t.style.length;e++)n+=Ib(0,i=t.style.item(e),t.style.getPropertyValue(i));for(var i in t.style)t.style.hasOwnProperty(i)&&!i.startsWith("_")&&(n+=Ib(0,i.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),t.style[i]));t.setAttribute("style",n)}function Ob(t,n){t.style&&(Object.keys(n).forEach(function(e){var i=Nb(e);t.style[i]=n[e]}),Jv()&&kb(t))}function Eb(t,n){t.style&&(Object.keys(n).forEach(function(n){var e=Nb(n);t.style[e]=""}),Jv()&&kb(t))}function Db(t){return Array.isArray(t)?1==t.length?t[0]:pd(t):t}var Ab=new RegExp("{{\\s*(.+?)\\s*}}","g");function Mb(t){var n=[];if("string"==typeof t){for(var e=t.toString(),i=void 0;i=Ab.exec(e);)n.push(i[1]);Ab.lastIndex=0}return n}function Tb(t,n,e){var i=t.toString(),o=i.replace(Ab,function(t,i){var o=n[i];return n.hasOwnProperty(i)||(e.push("Please provide a value for the animation param "+i),o=""),o.toString()});return o==i?t:o}function Rb(t){for(var n=[],e=t.next();!e.done;)n.push(e.value),e=t.next();return n}var Lb=/-+([a-z0-9])/g;function Nb(t){return t.replace(Lb,function(){for(var t=[],n=0;n<arguments.length;n++)t[n]=arguments[n];return t[1].toUpperCase()})}function jb(t,n,e){switch(n.type){case 7:return t.visitTrigger(n,e);case 0:return t.visitState(n,e);case 1:return t.visitTransition(n,e);case 2:return t.visitSequence(n,e);case 3:return t.visitGroup(n,e);case 4:return t.visitAnimate(n,e);case 5:return t.visitKeyframes(n,e);case 6:return t.visitStyle(n,e);case 8:return t.visitReference(n,e);case 9:return t.visitAnimateChild(n,e);case 10:return t.visitAnimateRef(n,e);case 11:return t.visitQuery(n,e);case 12:return t.visitStagger(n,e);default:throw new Error("Unable to resolve animation metadata node #"+n.type)}}var Vb="*",Bb=new Set(["true","1"]),Ub=new Set(["false","0"]);function Fb(t,n){var e=Bb.has(t)||Ub.has(t),i=Bb.has(n)||Ub.has(n);return function(o,l){var r=t==Vb||t==o,a=n==Vb||n==l;return!r&&e&&"boolean"==typeof o&&(r=o?Bb.has(t):Ub.has(t)),!a&&i&&"boolean"==typeof l&&(a=l?Bb.has(n):Ub.has(n)),r&&a}}var zb=new RegExp("s*:selfs*,?","g");function Hb(t,n,e){return new qb(t).build(n,e)}var qb=function(){function t(t){this._driver=t}return t.prototype.build=function(t,n){var e=new $b(n);return this._resetContextStyleTimingState(e),jb(this,Db(t),e)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,n){var e=this,i=n.queryCount=0,o=n.depCount=0,l=[],r=[];return"@"==t.name.charAt(0)&&n.errors.push("animation triggers cannot be prefixed with an `@` sign (e.g. trigger('@foo', [...]))"),t.definitions.forEach(function(t){if(e._resetContextStyleTimingState(n),0==t.type){var a=t,s=a.name;s.toString().split(/\s*,\s*/).forEach(function(t){a.name=t,l.push(e.visitState(a,n))}),a.name=s}else if(1==t.type){var u=e.visitTransition(t,n);i+=u.queryCount,o+=u.depCount,r.push(u)}else n.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:l,transitions:r,queryCount:i,depCount:o,options:null}},t.prototype.visitState=function(t,n){var e=this.visitStyle(t.styles,n),i=t.options&&t.options.params||null;if(e.containsDynamicStyles){var o=new Set,l=i||{};if(e.styles.forEach(function(t){if(Gb(t)){var n=t;Object.keys(n).forEach(function(t){Mb(n[t]).forEach(function(t){l.hasOwnProperty(t)||o.add(t)})})}}),o.size){var r=Rb(o.values());n.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+r.join(", "))}}return{type:0,name:t.name,style:e,options:i?{params:i}:null}},t.prototype.visitTransition=function(t,n){n.queryCount=0,n.depCount=0;var e,i,o,l=jb(this,Db(t.animation),n);return{type:1,matchers:(e=t.expr,i=n.errors,o=[],"string"==typeof e?e.split(/\s*,\s*/).forEach(function(t){return function(t,n,e){if(":"==t[0]){var i=function(t,n){switch(t){case":enter":return"void => *";case":leave":return"* => void";case":increment":return function(t,n){return parseFloat(n)>parseFloat(t)};case":decrement":return function(t,n){return parseFloat(n)<parseFloat(t)};default:return n.push('The transition alias value "'+t+'" is not supported'),"* => *"}}(t,e);if("function"==typeof i)return void n.push(i);t=i}var o=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==o||o.length<4)return e.push('The provided transition expression "'+t+'" is not supported'),n;var l=o[1],r=o[2],a=o[3];n.push(Fb(l,a)),"<"!=r[0]||l==Vb&&a==Vb||n.push(Fb(a,l))}(t,o,i)}):o.push(e),o),animation:l,queryCount:n.queryCount,depCount:n.depCount,options:Qb(t.options)}},t.prototype.visitSequence=function(t,n){var e=this;return{type:2,steps:t.steps.map(function(t){return jb(e,t,n)}),options:Qb(t.options)}},t.prototype.visitGroup=function(t,n){var e=this,i=n.currentTime,o=0,l=t.steps.map(function(t){n.currentTime=i;var l=jb(e,t,n);return o=Math.max(o,n.currentTime),l});return n.currentTime=o,{type:3,steps:l,options:Qb(t.options)}},t.prototype.visitAnimate=function(t,n){var e,i=function(t,n){var e=null;if(t.hasOwnProperty("duration"))e=t;else if("number"==typeof t)return Wb(Pb(t,n).duration,0,"");var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=Wb(0,0,"");return o.dynamic=!0,o.strValue=i,o}return Wb((e=e||Pb(i,n)).duration,e.delay,e.easing)}(t.timings,n.errors);n.currentAnimateTimings=i;var o=t.styles?t.styles:hd({});if(5==o.type)e=this.visitKeyframes(o,n);else{var l=t.styles,r=!1;if(!l){r=!0;var a={};i.easing&&(a.easing=i.easing),l=hd(a)}n.currentTime+=i.duration+i.delay;var s=this.visitStyle(l,n);s.isEmptyStep=r,e=s}return n.currentAnimateTimings=null,{type:4,timings:i,style:e,options:null}},t.prototype.visitStyle=function(t,n){var e=this._makeStyleAst(t,n);return this._validateStyleAst(e,n),e},t.prototype._makeStyleAst=function(t,n){var e=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==cd?e.push(t):n.errors.push("The provided style string value "+t+" is not allowed."):e.push(t)}):e.push(t.styles);var i=!1,o=null;return e.forEach(function(t){if(Gb(t)){var n=t,e=n.easing;if(e&&(o=e,delete n.easing),!i)for(var l in n)if(n[l].toString().indexOf("{{")>=0){i=!0;break}}}),{type:6,styles:e,easing:o,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,n){var e=this,i=n.currentAnimateTimings,o=n.currentTime,l=n.currentTime;i&&l>0&&(l-=i.duration+i.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(i){if(e._driver.validateStyleProperty(i)){var r,a,s,u=n.collectedStyles[n.currentQuerySelector],c=u[i],p=!0;c&&(l!=o&&l>=c.startTime&&o<=c.endTime&&(n.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+l+'ms" and "'+o+'ms"'),p=!1),l=c.startTime),p&&(u[i]={startTime:l,endTime:o}),n.options&&(r=n.errors,a=n.options.params||{},(s=Mb(t[i])).length&&s.forEach(function(t){a.hasOwnProperty(t)||r.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else n.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,n){var e=this,i={type:5,styles:[],options:null};if(!n.currentAnimateTimings)return n.errors.push("keyframes() must be placed inside of a call to animate()"),i;var o=0,l=[],r=!1,a=!1,s=0,u=t.steps.map(function(t){var i=e._makeStyleAst(t,n),u=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var n=null;if(Array.isArray(t))t.forEach(function(t){if(Gb(t)&&t.hasOwnProperty("offset")){var e=t;n=parseFloat(e.offset),delete e.offset}});else if(Gb(t)&&t.hasOwnProperty("offset")){var e=t;n=parseFloat(e.offset),delete e.offset}return n}(i.styles),c=0;return null!=u&&(o++,c=i.offset=u),a=a||c<0||c>1,r=r||c<s,s=c,l.push(c),i});a&&n.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),r&&n.errors.push("Please ensure that all keyframe offsets are in order");var c=t.steps.length,p=0;o>0&&o<c?n.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==o&&(p=1/(c-1));var h=c-1,d=n.currentTime,f=n.currentAnimateTimings,g=f.duration;return u.forEach(function(t,o){var r=p>0?o==h?1:p*o:l[o],a=r*g;n.currentTime=d+f.delay+a,f.duration=a,e._validateStyleAst(t,n),t.offset=r,i.styles.push(t)}),i},t.prototype.visitReference=function(t,n){return{type:8,animation:jb(this,Db(t.animation),n),options:Qb(t.options)}},t.prototype.visitAnimateChild=function(t,n){return n.depCount++,{type:9,options:Qb(t.options)}},t.prototype.visitAnimateRef=function(t,n){return{type:10,animation:this.visitReference(t.animation,n),options:Qb(t.options)}},t.prototype.visitQuery=function(t,n){var e=n.currentQuerySelector,i=t.options||{};n.queryCount++,n.currentQuery=t;var o=u(function(t){var n=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return n&&(t=t.replace(zb,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),n]}(t.selector),2),l=o[0],r=o[1];n.currentQuerySelector=e.length?e+" "+l:l,lb(n.collectedStyles,n.currentQuerySelector,{});var a=jb(this,Db(t.animation),n);return n.currentQuery=null,n.currentQuerySelector=e,{type:11,selector:l,limit:i.limit||0,optional:!!i.optional,includeSelf:r,animation:a,originalSelector:t.selector,options:Qb(t.options)}},t.prototype.visitStagger=function(t,n){n.currentQuery||n.errors.push("stagger() can only be used inside of query()");var e="full"===t.timings?{duration:0,delay:0,easing:"full"}:Pb(t.timings,n.errors,!0);return{type:12,animation:jb(this,Db(t.animation),n),timings:e,options:null}},t}(),$b=function(){return function(t){this.errors=t,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 Gb(t){return!Array.isArray(t)&&"object"==typeof t}function Qb(t){var n;return t?(t=Cb(t)).params&&(t.params=(n=t.params)?Cb(n):null):t={},t}function Wb(t,n,e){return{duration:t,delay:n,easing:e}}function Kb(t,n,e,i,o,l,r,a){return void 0===r&&(r=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:n,preStyleProps:e,postStyleProps:i,duration:o,delay:l,totalTime:o+l,easing:r,subTimeline:a}}var Zb=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var n=this._map.get(t);return n?this._map.delete(t):n=[],n},t.prototype.append=function(t,n){var e=this._map.get(t);e||this._map.set(t,e=[]),e.push.apply(e,c(n))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),Xb=new RegExp(":enter","g"),Yb=new RegExp(":leave","g");function Jb(t,n,e,i,o,l,r,a,s,u){return void 0===l&&(l={}),void 0===r&&(r={}),void 0===u&&(u=[]),(new t_).buildKeyframes(t,n,e,i,o,l,r,a,s,u)}var t_=function(){function t(){}return t.prototype.buildKeyframes=function(t,n,e,i,o,l,r,a,s,u){void 0===u&&(u=[]),s=s||new Zb;var c=new e_(t,n,s,i,o,u,[]);c.options=a,c.currentTimeline.setStyles([l],null,c.errors,a),jb(this,e,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(r).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([r],null,c.errors,a)}return p.length?p.map(function(t){return t.buildKeyframes()}):[Kb(n,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,n){},t.prototype.visitState=function(t,n){},t.prototype.visitTransition=function(t,n){},t.prototype.visitAnimateChild=function(t,n){var e=n.subInstructions.consume(n.element);if(e){var i=n.createSubContext(t.options),o=n.currentTimeline.currentTime,l=this._visitSubInstructions(e,i,i.options);o!=l&&n.transformIntoNewTimeline(l)}n.previousNode=t},t.prototype.visitAnimateRef=function(t,n){var e=n.createSubContext(t.options);e.transformIntoNewTimeline(),this.visitReference(t.animation,e),n.transformIntoNewTimeline(e.currentTimeline.currentTime),n.previousNode=t},t.prototype._visitSubInstructions=function(t,n,e){var i=n.currentTimeline.currentTime,o=null!=e.duration?wb(e.duration):null,l=null!=e.delay?wb(e.delay):null;return 0!==o&&t.forEach(function(t){var e=n.appendInstructionToTimeline(t,o,l);i=Math.max(i,e.duration+e.delay)}),i},t.prototype.visitReference=function(t,n){n.updateOptions(t.options,!0),jb(this,t.animation,n),n.previousNode=t},t.prototype.visitSequence=function(t,n){var e=this,i=n.subContextCount,o=n,l=t.options;if(l&&(l.params||l.delay)&&((o=n.createSubContext(l)).transformIntoNewTimeline(),null!=l.delay)){6==o.previousNode.type&&(o.currentTimeline.snapshotCurrentStyles(),o.previousNode=n_);var r=wb(l.delay);o.delayNextStep(r)}t.steps.length&&(t.steps.forEach(function(t){return jb(e,t,o)}),o.currentTimeline.applyStylesToKeyframe(),o.subContextCount>i&&o.transformIntoNewTimeline()),n.previousNode=t},t.prototype.visitGroup=function(t,n){var e=this,i=[],o=n.currentTimeline.currentTime,l=t.options&&t.options.delay?wb(t.options.delay):0;t.steps.forEach(function(r){var a=n.createSubContext(t.options);l&&a.delayNextStep(l),jb(e,r,a),o=Math.max(o,a.currentTimeline.currentTime),i.push(a.currentTimeline)}),i.forEach(function(t){return n.currentTimeline.mergeTimelineCollectedStyles(t)}),n.transformIntoNewTimeline(o),n.previousNode=t},t.prototype._visitTiming=function(t,n){if(t.dynamic){var e=t.strValue;return Pb(n.params?Tb(e,n.params,n.errors):e,n.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,n){var e=n.currentAnimateTimings=this._visitTiming(t.timings,n),i=n.currentTimeline;e.delay&&(n.incrementTime(e.delay),i.snapshotCurrentStyles());var o=t.style;5==o.type?this.visitKeyframes(o,n):(n.incrementTime(e.duration),this.visitStyle(o,n),i.applyStylesToKeyframe()),n.currentAnimateTimings=null,n.previousNode=t},t.prototype.visitStyle=function(t,n){var e=n.currentTimeline,i=n.currentAnimateTimings;!i&&e.getCurrentStyleProperties().length&&e.forwardFrame();var o=i&&i.easing||t.easing;t.isEmptyStep?e.applyEmptyStep(o):e.setStyles(t.styles,o,n.errors,n.options),n.previousNode=t},t.prototype.visitKeyframes=function(t,n){var e=n.currentAnimateTimings,i=n.currentTimeline.duration,o=e.duration,l=n.createSubContext().currentTimeline;l.easing=e.easing,t.styles.forEach(function(t){l.forwardTime((t.offset||0)*o),l.setStyles(t.styles,t.easing,n.errors,n.options),l.applyStylesToKeyframe()}),n.currentTimeline.mergeTimelineCollectedStyles(l),n.transformIntoNewTimeline(i+o),n.previousNode=t},t.prototype.visitQuery=function(t,n){var e=this,i=n.currentTimeline.currentTime,o=t.options||{},l=o.delay?wb(o.delay):0;l&&(6===n.previousNode.type||0==i&&n.currentTimeline.getCurrentStyleProperties().length)&&(n.currentTimeline.snapshotCurrentStyles(),n.previousNode=n_);var r=i,a=n.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!o.optional,n.errors);n.currentQueryTotal=a.length;var s=null;a.forEach(function(i,o){n.currentQueryIndex=o;var a=n.createSubContext(t.options,i);l&&a.delayNextStep(l),i===n.element&&(s=a.currentTimeline),jb(e,t.animation,a),a.currentTimeline.applyStylesToKeyframe(),r=Math.max(r,a.currentTimeline.currentTime)}),n.currentQueryIndex=0,n.currentQueryTotal=0,n.transformIntoNewTimeline(r),s&&(n.currentTimeline.mergeTimelineCollectedStyles(s),n.currentTimeline.snapshotCurrentStyles()),n.previousNode=t},t.prototype.visitStagger=function(t,n){var e=n.parentContext,i=n.currentTimeline,o=t.timings,l=Math.abs(o.duration),r=l*(n.currentQueryTotal-1),a=l*n.currentQueryIndex;switch(o.duration<0?"reverse":o.easing){case"reverse":a=r-a;break;case"full":a=e.currentStaggerTime}var s=n.currentTimeline;a&&s.delayNextStep(a);var u=s.currentTime;jb(this,t.animation,n),n.previousNode=t,e.currentStaggerTime=i.currentTime-u+(i.startTime-e.currentTimeline.startTime)},t}(),n_={},e_=function(){function t(t,n,e,i,o,l,r,a){this._driver=t,this.element=n,this.subInstructions=e,this._enterClassName=i,this._leaveClassName=o,this.errors=l,this.timelines=r,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=n_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=a||new i_(this._driver,n,0),r.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,n){var e=this;if(t){var i=t,o=this.options;null!=i.duration&&(o.duration=wb(i.duration)),null!=i.delay&&(o.delay=wb(i.delay));var l=i.params;if(l){var r=o.params;r||(r=this.options.params={}),Object.keys(l).forEach(function(t){n&&r.hasOwnProperty(t)||(r[t]=Tb(l[t],r,e.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var n=this.options.params;if(n){var e=t.params={};Object.keys(n).forEach(function(t){e[t]=n[t]})}}return t},t.prototype.createSubContext=function(n,e,i){void 0===n&&(n=null);var o=e||this.element,l=new t(this._driver,o,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(o,i||0));return l.previousNode=this.previousNode,l.currentAnimateTimings=this.currentAnimateTimings,l.options=this._copyOptions(),l.updateOptions(n),l.currentQueryIndex=this.currentQueryIndex,l.currentQueryTotal=this.currentQueryTotal,l.parentContext=this,this.subContextCount++,l},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=n_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,n,e){var i={duration:null!=n?n:t.duration,delay:this.currentTimeline.currentTime+(null!=e?e:0)+t.delay,easing:""},o=new o_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(o),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,n,e,i,o,l){var r=[];if(i&&r.push(this.element),t.length>0){t=(t=t.replace(Xb,"."+this._enterClassName)).replace(Yb,"."+this._leaveClassName);var a=this._driver.query(this.element,t,1!=e);0!==e&&(a=e<0?a.slice(a.length+e,a.length):a.slice(0,e)),r.push.apply(r,c(a))}return o||0!=r.length||l.push('`query("'+n+'")` returned zero elements. (Use `query("'+n+'", { optional: true })` if you wish to allow this.)'),r},t}(),i_=function(){function t(t,n,e,i){this._driver=t,this.element=n,this.startTime=e,this._elementTimelineStylesLookup=i,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(n),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(n,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var n=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||n?(this.forwardTime(this.currentTime+t),n&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(n,e){return this.applyStylesToKeyframe(),new t(this._driver,n,e||this.currentTime,this._elementTimelineStylesLookup)},t.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))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,n){this._localTimelineStyles[t]=n,this._globalTimelineStyles[t]=n,this._styleSummary[t]={time:this.currentTime,value:n}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var n=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){n._backFill[t]=n._globalTimelineStyles[t]||cd,n._currentKeyframe[t]=cd}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,n,e,i){var o=this;n&&(this._previousKeyframe.easing=n);var l=i&&i.params||{},r=function(t,n){var e,i={};return t.forEach(function(t){"*"===t?(e=e||Object.keys(n)).forEach(function(t){i[t]=cd}):Sb(t,!1,i)}),i}(t,this._globalTimelineStyles);Object.keys(r).forEach(function(t){var n=Tb(r[t],l,e);o._pendingStyles[t]=n,o._localTimelineStyles.hasOwnProperty(t)||(o._backFill[t]=o._globalTimelineStyles.hasOwnProperty(t)?o._globalTimelineStyles[t]:cd),o._updateStyle(t,n)})},t.prototype.applyStylesToKeyframe=function(){var t=this,n=this._pendingStyles,e=Object.keys(n);0!=e.length&&(this._pendingStyles={},e.forEach(function(e){t._currentKeyframe[e]=n[e]}),Object.keys(this._localTimelineStyles).forEach(function(n){t._currentKeyframe.hasOwnProperty(n)||(t._currentKeyframe[n]=t._localTimelineStyles[n])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(n){var e=t._localTimelineStyles[n];t._pendingStyles[n]=e,t._updateStyle(n,e)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var n in this._currentKeyframe)t.push(n);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var n=this;Object.keys(t._styleSummary).forEach(function(e){var i=n._styleSummary[e],o=t._styleSummary[e];(!i||o.time>i.time)&&n._updateStyle(e,o.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var n=new Set,e=new Set,i=1===this._keyframes.size&&0===this.duration,o=[];this._keyframes.forEach(function(l,r){var a=Sb(l,!0);Object.keys(a).forEach(function(t){var i=a[t];i==md?n.add(t):i==cd&&e.add(t)}),i||(a.offset=r/t.duration),o.push(a)});var l=n.size?Rb(n.values()):[],r=e.size?Rb(e.values()):[];if(i){var a=o[0],s=Cb(a);a.offset=0,s.offset=1,o=[a,s]}return Kb(this.element,o,l,r,this.duration,this.startTime,this.easing,!1)},t}(),o_=function(t){function n(n,e,i,o,l,r,a){void 0===a&&(a=!1);var s=t.call(this,n,e,r.delay)||this;return s.element=e,s.keyframes=i,s.preStyleProps=o,s.postStyleProps=l,s._stretchStartingKeyframe=a,s.timings={duration:r.duration,delay:r.delay,easing:r.easing},s}return o(n,t),n.prototype.containsAnimation=function(){return this.keyframes.length>1},n.prototype.buildKeyframes=function(){var t=this.keyframes,n=this.timings,e=n.delay,i=n.duration,o=n.easing;if(this._stretchStartingKeyframe&&e){var l=[],r=i+e,a=e/r,s=Sb(t[0],!1);s.offset=0,l.push(s);var u=Sb(t[0],!1);u.offset=l_(a),l.push(u);for(var c=t.length-1,p=1;p<=c;p++){var h=Sb(t[p],!1);h.offset=l_((e+h.offset*i)/r),l.push(h)}i=r,e=0,o="",t=l}return Kb(this.element,t,this.preStyleProps,this.postStyleProps,i,e,o,!0)},n}(i_);function l_(t,n){void 0===n&&(n=3);var e=Math.pow(10,n-1);return Math.round(t*e)/e}var r_=function(){return function(){}}(),a_=function(t){function n(){return null!==t&&t.apply(this,arguments)||this}return o(n,t),n.prototype.normalizePropertyName=function(t,n){return Nb(t)},n.prototype.normalizeStyleValue=function(t,n,e,i){var o="",l=e.toString().trim();if(s_[n]&&0!==e&&"0"!==e)if("number"==typeof e)o="px";else{var r=e.match(/^[+-]?[\d\.]+([a-z]*)$/);r&&0==r[1].length&&i.push("Please provide a CSS unit value for "+t+":"+e)}return l+o},n}(r_),s_=u_("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(","));function u_(t){var n={};return t.forEach(function(t){return n[t]=!0}),n}function c_(t,n,e,i,o,l,r,a,s,u,c,p,h){return{type:0,element:t,triggerName:n,isRemovalTransition:o,fromState:e,fromStyles:l,toState:i,toStyles:r,timelines:a,queriedElements:s,preStyleProps:u,postStyleProps:c,totalTime:p,errors:h}}var p_={},h_=function(){function t(t,n,e){this._triggerName=t,this.ast=n,this._stateStyles=e}return t.prototype.match=function(t,n,e,i){return function(t,n,e,i,o){return t.some(function(t){return t(n,e,i,o)})}(this.ast.matchers,t,n,e,i)},t.prototype.buildStyles=function(t,n,e){var i=this._stateStyles["*"],o=this._stateStyles[t],l=i?i.buildStyles(n,e):{};return o?o.buildStyles(n,e):l},t.prototype.build=function(t,n,e,i,o,r,a,s,u,c){var p=[],h=this.ast.options&&this.ast.options.params||p_,d=this.buildStyles(e,a&&a.params||p_,p),f=s&&s.params||p_,g=this.buildStyles(i,f,p),m=new Set,y=new Map,v=new Map,b="void"===i,_={params:l({},h,f)},w=c?[]:Jb(t,n,this.ast.animation,o,r,d,g,_,u,p),x=0;if(w.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),p.length)return c_(n,this._triggerName,e,i,b,d,g,[],[],y,v,x,p);w.forEach(function(t){var e=t.element,i=lb(y,e,{});t.preStyleProps.forEach(function(t){return i[t]=!0});var o=lb(v,e,{});t.postStyleProps.forEach(function(t){return o[t]=!0}),e!==n&&m.add(e)});var P=Rb(m.values());return c_(n,this._triggerName,e,i,b,d,g,w,P,y,v,x)},t}(),d_=function(){function t(t,n){this.styles=t,this.defaultParams=n}return t.prototype.buildStyles=function(t,n){var e={},i=Cb(this.defaultParams);return Object.keys(t).forEach(function(n){var e=t[n];null!=e&&(i[n]=e)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var o=t;Object.keys(o).forEach(function(t){var l=o[t];l.length>1&&(l=Tb(l,i,n)),e[t]=l})}}),e},t}(),f_=function(){function t(t,n){var e=this;this.name=t,this.ast=n,this.transitionFactories=[],this.states={},n.states.forEach(function(t){e.states[t.name]=new d_(t.style,t.options&&t.options.params||{})}),g_(this.states,"true","1"),g_(this.states,"false","0"),n.transitions.forEach(function(n){e.transitionFactories.push(new h_(t,n,e.states))}),this.fallbackTransition=new h_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,n){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,n,e,i){return this.transitionFactories.find(function(o){return o.match(t,n,e,i)})||null},t.prototype.matchStyles=function(t,n,e){return this.fallbackTransition.buildStyles(t,n,e)},t}();function g_(t,n,e){t.hasOwnProperty(n)?t.hasOwnProperty(e)||(t[e]=t[n]):t.hasOwnProperty(e)&&(t[n]=t[e])}var m_=new Zb,y_=function(){function t(t,n,e){this.bodyNode=t,this._driver=n,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,n){var e=[],i=Hb(this._driver,n,e);if(e.length)throw new Error("Unable to build the animation due to the following errors: "+e.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,n,e){var i=t.element,o=nb(0,this._normalizer,0,t.keyframes,n,e);return this._driver.animate(i,o,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,n,e){var i=this;void 0===e&&(e={});var o,l=[],r=this._animations[t],a=new Map;if(r?(o=Jb(this._driver,n,r,"ng-enter","ng-leave",{},{},e,m_,l)).forEach(function(t){var n=lb(a,t.element,{});t.postStyleProps.forEach(function(t){return n[t]=null})}):(l.push("The requested animation doesn't exist or has already been destroyed"),o=[]),l.length)throw new Error("Unable to create the animation due to the following errors: "+l.join("\n"));a.forEach(function(t,n){Object.keys(t).forEach(function(e){t[e]=i._driver.computeStyle(n,e,cd)})});var s=tb(o.map(function(t){var n=a.get(t.element);return i._buildPlayer(t,{},n)}));return this._playersById[t]=s,s.onDestroy(function(){return i.destroy(t)}),this.players.push(s),s},t.prototype.destroy=function(t){var n=this._getPlayer(t);n.destroy(),delete this._playersById[t];var e=this.players.indexOf(n);e>=0&&this.players.splice(e,1)},t.prototype._getPlayer=function(t){var n=this._playersById[t];if(!n)throw new Error("Unable to find the timeline player referenced by "+t);return n},t.prototype.listen=function(t,n,e,i){var o=ob(n,"","","");return eb(this._getPlayer(t),e,o,i),function(){}},t.prototype.command=function(t,n,e,i){if("register"!=e)if("create"!=e){var o=this._getPlayer(t);switch(e){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(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,n,i[0]||{});else this.register(t,i[0])},t}(),v_=[],b_={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},__={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},w_="__ng_removed",x_=function(){function t(t,n){void 0===n&&(n=""),this.namespaceId=n;var e=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(e?t.value:t),e){var i=Cb(t);delete i.value,this.options=i}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var n=t.params;if(n){var e=this.options.params;Object.keys(n).forEach(function(t){null==e[t]&&(e[t]=n[t])})}},t}(),P_=new x_("void"),C_=function(){function t(t,n,e){this.id=t,this.hostElement=n,this._engine=e,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,M_(n,this._hostClassName)}return t.prototype.listen=function(t,n,e,i){var o,l=this;if(!this._triggers.hasOwnProperty(n))throw new Error('Unable to listen on the animation trigger event "'+e+'" because the animation trigger "'+n+"\" doesn't exist!");if(null==e||0==e.length)throw new Error('Unable to listen on the animation trigger "'+n+'" because the provided event is undefined!');if("start"!=(o=e)&&"done"!=o)throw new Error('The provided animation trigger event "'+e+'" for the animation trigger "'+n+'" is not supported!');var r=lb(this._elementListeners,t,[]),a={name:n,phase:e,callback:i};r.push(a);var s=lb(this._engine.statesByElement,t,{});return s.hasOwnProperty(n)||(M_(t,"ng-trigger"),M_(t,"ng-trigger-"+n),s[n]=P_),function(){l._engine.afterFlush(function(){var t=r.indexOf(a);t>=0&&r.splice(t,1),l._triggers[n]||delete s[n]})}},t.prototype.register=function(t,n){return!this._triggers[t]&&(this._triggers[t]=n,!0)},t.prototype._getTrigger=function(t){var n=this._triggers[t];if(!n)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return n},t.prototype.trigger=function(t,n,e,i){var o=this;void 0===i&&(i=!0);var l=this._getTrigger(n),r=new I_(this.id,n,t),a=this._engine.statesByElement.get(t);a||(M_(t,"ng-trigger"),M_(t,"ng-trigger-"+n),this._engine.statesByElement.set(t,a={}));var s=a[n],u=new x_(e,this.id);if(!(e&&e.hasOwnProperty("value"))&&s&&u.absorbOptions(s.options),a[n]=u,s||(s=P_),"void"===u.value||s.value!==u.value){var c=lb(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==o.id&&t.triggerName==n&&t.queued&&t.destroy()});var p=l.matchTransition(s.value,u.value,t,u.params),h=!1;if(!p){if(!i)return;p=l.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:n,transition:p,fromState:s,toState:u,player:r,isFallbackTransition:h}),h||(M_(t,"ng-animate-queued"),r.onStart(function(){T_(t,"ng-animate-queued")})),r.onDone(function(){var n=o.players.indexOf(r);n>=0&&o.players.splice(n,1);var e=o._engine.playersByElement.get(t);if(e){var i=e.indexOf(r);i>=0&&e.splice(i,1)}}),this.players.push(r),c.push(r),r}if(!function(t,n){var e=Object.keys(t),i=Object.keys(n);if(e.length!=i.length)return!1;for(var o=0;o<e.length;o++){var l=e[o];if(!n.hasOwnProperty(l)||t[l]!==n[l])return!1}return!0}(s.params,u.params)){var d=[],f=l.matchStyles(s.value,s.params,d),g=l.matchStyles(u.value,u.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){Eb(t,f),Ob(t,g)})}},t.prototype.deregister=function(t){var n=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(n,e){delete n[t]}),this._elementListeners.forEach(function(e,i){n._elementListeners.set(i,e.filter(function(n){return n.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var n=this._engine.playersByElement.get(t);n&&(n.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._signalRemovalForInnerTriggers=function(t,n,e){var i=this;void 0===e&&(e=!1),this._engine.driver.query(t,".ng-trigger",!0).forEach(function(t){if(!t[w_]){var e=i._engine.fetchNamespacesByElement(t);e.size?e.forEach(function(e){return e.triggerLeaveAnimation(t,n,!1,!0)}):i.clearElementCache(t)}})},t.prototype.triggerLeaveAnimation=function(t,n,e,i){var o=this,l=this._engine.statesByElement.get(t);if(l){var r=[];if(Object.keys(l).forEach(function(n){if(o._triggers[n]){var e=o.trigger(t,n,"void",i);e&&r.push(e)}}),r.length)return this._engine.markElementAsRemoved(this.id,t,!0,n),e&&tb(r).onDone(function(){return o._engine.processLeaveNode(t)}),!0}return!1},t.prototype.prepareLeaveAnimationListeners=function(t){var n=this,e=this._elementListeners.get(t);if(e){var i=new Set;e.forEach(function(e){var o=e.name;if(!i.has(o)){i.add(o);var l=n._triggers[o].fallbackTransition,r=n._engine.statesByElement.get(t)[o]||P_,a=new x_("void"),s=new I_(n.id,o,t);n._engine.totalQueuedPlayers++,n._queue.push({element:t,triggerName:o,transition:l,fromState:r,toState:a,player:s,isFallbackTransition:!0})}})}},t.prototype.removeNode=function(t,n){var e=this,i=this._engine;if(t.childElementCount&&this._signalRemovalForInnerTriggers(t,n,!0),!this.triggerLeaveAnimation(t,n,!0)){var o=!1;if(i.totalAnimations){var l=i.players.length?i.playersByQueriedElement.get(t):[];if(l&&l.length)o=!0;else for(var r=t;r=r.parentNode;)if(i.statesByElement.get(r)){o=!0;break}}this.prepareLeaveAnimationListeners(t),o?i.markElementAsRemoved(this.id,t,!1,n):(i.afterFlush(function(){return e.clearElementCache(t)}),i.destroyInnerAnimations(t),i._onRemovalComplete(t,n))}},t.prototype.insertNode=function(t,n){M_(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var n=this,e=[];return this._queue.forEach(function(i){var o=i.player;if(!o.destroyed){var l=i.element,r=n._elementListeners.get(l);r&&r.forEach(function(n){if(n.name==i.triggerName){var e=ob(l,i.triggerName,i.fromState.value,i.toState.value);e._data=t,eb(i.player,n.phase,e,n.callback)}}),o.markedForDestroy?n._engine.afterFlush(function(){o.destroy()}):e.push(i)}}),this._queue=[],e.sort(function(t,e){var i=t.transition.ast.depCount,o=e.transition.ast.depCount;return 0==i||0==o?i-o:n._engine.driver.containsElement(t.element,e.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._signalRemovalForInnerTriggers(this.hostElement,t)},t.prototype.elementContainsData=function(t){var n=!1;return this._elementListeners.has(t)&&(n=!0),!!this._queue.find(function(n){return n.element===t})||n},t}(),S_=function(){function t(t,n,e){this.bodyNode=t,this.driver=n,this._normalizer=e,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(t,n){}}return t.prototype._onRemovalComplete=function(t,n){this.onRemovalComplete(t,n)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(n){n.players.forEach(function(n){n.queued&&t.push(n)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,n){var e=new C_(t,n,this);return n.parentNode?this._balanceNamespaceList(e,n):(this.newHostElements.set(n,e),this.collectEnterElement(n)),this._namespaceLookup[t]=e},t.prototype._balanceNamespaceList=function(t,n){var e=this._namespaceList.length-1;if(e>=0){for(var i=!1,o=e;o>=0;o--)if(this.driver.containsElement(this._namespaceList[o].hostElement,n)){this._namespaceList.splice(o+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(n,t),t},t.prototype.register=function(t,n){var e=this._namespaceLookup[t];return e||(e=this.createNamespace(t,n)),e},t.prototype.registerTrigger=function(t,n,e){var i=this._namespaceLookup[t];i&&i.register(n,e)&&this.totalAnimations++},t.prototype.destroy=function(t,n){var e=this;if(t){var i=this._fetchNamespace(t);this.afterFlush(function(){e.namespacesByHostElement.delete(i.hostElement),delete e._namespaceLookup[t];var n=e._namespaceList.indexOf(i);n>=0&&e._namespaceList.splice(n,1)}),this.afterFlushAnimationsDone(function(){return i.destroy(n)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var n=new Set,e=this.statesByElement.get(t);if(e)for(var i=Object.keys(e),o=0;o<i.length;o++){var l=e[i[o]].namespaceId;if(l){var r=this._fetchNamespace(l);r&&n.add(r)}}return n},t.prototype.trigger=function(t,n,e,i){if(k_(n)){var o=this._fetchNamespace(t);if(o)return o.trigger(n,e,i),!0}return!1},t.prototype.insertNode=function(t,n,e,i){if(k_(n)){var o=n[w_];if(o&&o.setForRemoval){o.setForRemoval=!1,o.setForMove=!0;var l=this.collectedLeaveElements.indexOf(n);l>=0&&this.collectedLeaveElements.splice(l,1)}if(t){var r=this._fetchNamespace(t);r&&r.insertNode(n,e)}i&&this.collectEnterElement(n)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,n){n?this.disabledNodes.has(t)||(this.disabledNodes.add(t),M_(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),T_(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,n,e){if(k_(n)){var i=t?this._fetchNamespace(t):null;i?i.removeNode(n,e):this.markElementAsRemoved(t,n,!1,e)}else this._onRemovalComplete(n,e)},t.prototype.markElementAsRemoved=function(t,n,e,i){this.collectedLeaveElements.push(n),n[w_]={namespaceId:t,setForRemoval:i,hasAnimation:e,removedBeforeQueried:!1}},t.prototype.listen=function(t,n,e,i,o){return k_(n)?this._fetchNamespace(t).listen(n,e,i,o):function(){}},t.prototype._buildInstruction=function(t,n,e,i,o){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,e,i,t.fromState.options,t.toState.options,n,o)},t.prototype.destroyInnerAnimations=function(t){var n=this,e=this.driver.query(t,".ng-trigger",!0);e.forEach(function(t){return n.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(e=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return n.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var n=this.playersByElement.get(t);n&&n.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var n=this.playersByQueriedElement.get(t);n&&n.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(n){if(t.players.length)return tb(t.players).onDone(function(){return n()});n()})},t.prototype.processLeaveNode=function(t){var n=this,e=t[w_];if(e&&e.setForRemoval){if(t[w_]=b_,e.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(e.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,e.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(e){n.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var n=this;void 0===t&&(t=-1);var e=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,e){return n._balanceNamespaceList(t,e)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i<this.collectedEnterElements.length;i++)M_(this.collectedEnterElements[i],"ng-star-inserted");if(this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var o=[];try{e=this._flushAnimations(o,t)}finally{for(i=0;i<o.length;i++)o[i]()}}else for(i=0;i<this.collectedLeaveElements.length;i++)this.processLeaveNode(this.collectedLeaveElements[i]);if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var l=this._whenQuietFns;this._whenQuietFns=[],e.length?tb(e).onDone(function(){l.forEach(function(t){return t()})}):l.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,n){var e=this,i=new Zb,o=[],r=new Map,a=[],s=new Map,u=new Map,p=new Map,h=new Set;this.disabledNodes.forEach(function(t){h.add(t);for(var n=e.driver.query(t,".ng-animate-queued",!0),i=0;i<n.length;i++)h.add(n[i])});var d=this.bodyNode,f=Array.from(this.statesByElement.keys()),g=D_(f,this.collectedEnterElements),m=new Map,y=0;g.forEach(function(t,n){var e="ng-enter"+y++;m.set(n,e),t.forEach(function(t){return M_(t,e)})});for(var v=[],b=new Set,_=new Set,w=0;w<this.collectedLeaveElements.length;w++)(V=(j=this.collectedLeaveElements[w])[w_])&&V.setForRemoval&&(v.push(j),b.add(j),V.hasAnimation?this.driver.query(j,".ng-star-inserted",!0).forEach(function(t){return b.add(t)}):_.add(j));var x=new Map,P=D_(f,Array.from(b));P.forEach(function(t,n){var e="ng-leave"+y++;x.set(n,e),t.forEach(function(t){return M_(t,e)})}),t.push(function(){g.forEach(function(t,n){var e=m.get(n);t.forEach(function(t){return T_(t,e)})}),P.forEach(function(t,n){var e=x.get(n);t.forEach(function(t){return T_(t,e)})}),v.forEach(function(t){e.processLeaveNode(t)})});for(var C=[],S=[],I=this._namespaceList.length-1;I>=0;I--)this._namespaceList[I].drainQueuedTransitions(n).forEach(function(t){var n=t.player,l=t.element;if(C.push(n),e.collectedEnterElements.length){var r=l[w_];if(r&&r.setForMove)return void n.destroy()}var c=!d||!e.driver.containsElement(d,l),h=x.get(l),f=m.get(l),g=e._buildInstruction(t,i,f,h,c);if(g.errors&&g.errors.length)S.push(g);else{if(c)return n.onStart(function(){return Eb(l,g.fromStyles)}),n.onDestroy(function(){return Ob(l,g.toStyles)}),void o.push(n);if(t.isFallbackTransition)return n.onStart(function(){return Eb(l,g.fromStyles)}),n.onDestroy(function(){return Ob(l,g.toStyles)}),void o.push(n);g.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(l,g.timelines),a.push({instruction:g,player:n,element:l}),g.queriedElements.forEach(function(t){return lb(s,t,[]).push(n)}),g.preStyleProps.forEach(function(t,n){var e=Object.keys(t);if(e.length){var i=u.get(n);i||u.set(n,i=new Set),e.forEach(function(t){return i.add(t)})}}),g.postStyleProps.forEach(function(t,n){var e=Object.keys(t),i=p.get(n);i||p.set(n,i=new Set),e.forEach(function(t){return i.add(t)})})}});if(S.length){var k=[];S.forEach(function(t){k.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return k.push("- "+t+"\n")})}),C.forEach(function(t){return t.destroy()}),this.reportError(k)}var O=new Map,E=new Map;a.forEach(function(t){var n=t.element;i.has(n)&&(E.set(n,n),e._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),o.forEach(function(t){var n=t.element;e._getPreviousPlayers(n,!1,t.namespaceId,t.triggerName,null).forEach(function(t){lb(O,n,[]).push(t),t.destroy()})});var D=v.filter(function(t){return L_(t,u,p)}),A=new Map;E_(A,this.driver,_,p,cd).forEach(function(t){L_(t,u,p)&&D.push(t)});var M=new Map;g.forEach(function(t,n){E_(M,e.driver,new Set(t),u,md)}),D.forEach(function(t){var n=A.get(t),e=M.get(t);A.set(t,l({},n,e))});var T=[],R=[],L={};a.forEach(function(t){var n=t.element,l=t.player,a=t.instruction;if(i.has(n)){if(h.has(n))return l.onDestroy(function(){return Ob(n,a.toStyles)}),l.disabled=!0,l.overrideTotalTime(a.totalTime),void o.push(l);var s=L;if(E.size>1){for(var u=n,c=[];u=u.parentNode;){var p=E.get(u);if(p){s=p;break}c.push(u)}c.forEach(function(t){return E.set(t,s)})}var d=e._buildAnimation(l.namespaceId,a,O,r,M,A);if(l.setRealPlayer(d),s===L)T.push(l);else{var f=e.playersByElement.get(s);f&&f.length&&(l.parentPlayer=tb(f)),o.push(l)}}else Eb(n,a.fromStyles),l.onDestroy(function(){return Ob(n,a.toStyles)}),R.push(l),h.has(n)&&o.push(l)}),R.forEach(function(t){var n=r.get(t.element);if(n&&n.length){var e=tb(n);t.setRealPlayer(e)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var N=0;N<v.length;N++){var j,V=(j=v[N])[w_];if(T_(j,"ng-leave"),!V||!V.hasAnimation){var B=[];if(s.size){var U=s.get(j);U&&U.length&&B.push.apply(B,c(U));for(var F=this.driver.query(j,".ng-animating",!0),z=0;z<F.length;z++){var H=s.get(F[z]);H&&H.length&&B.push.apply(B,c(H))}}var q=B.filter(function(t){return!t.destroyed});q.length?R_(this,j,q):this.processLeaveNode(j)}}return v.length=0,T.forEach(function(t){e.players.push(t),t.onDone(function(){t.destroy();var n=e.players.indexOf(t);e.players.splice(n,1)}),t.play()}),T},t.prototype.elementContainsData=function(t,n){var e=!1,i=n[w_];return i&&i.setForRemoval&&(e=!0),this.playersByElement.has(n)&&(e=!0),this.playersByQueriedElement.has(n)&&(e=!0),this.statesByElement.has(n)&&(e=!0),this._fetchNamespace(t).elementContainsData(n)||e},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,n,e,i,o){var l=[];if(n){var r=this.playersByQueriedElement.get(t);r&&(l=r)}else{var a=this.playersByElement.get(t);if(a){var s=!o||"void"==o;a.forEach(function(t){t.queued||(s||t.triggerName==i)&&l.push(t)})}}return(e||i)&&(l=l.filter(function(t){return!(e&&e!=t.namespaceId||i&&i!=t.triggerName)})),l},t.prototype._beforeAnimationBuild=function(t,n,e){var i,o,l=n.element,r=n.isRemovalTransition?void 0:t,a=n.isRemovalTransition?void 0:n.triggerName,u=function(t){var i=t.element,o=i!==l,s=lb(e,i,[]);c._getPreviousPlayers(i,o,r,a,n.toState).forEach(function(t){var n=t.getRealPlayer();n.beforeDestroy&&n.beforeDestroy(),t.destroy(),s.push(t)})},c=this;try{for(var p=s(n.timelines),h=p.next();!h.done;h=p.next())u(h.value)}catch(d){i={error:d}}finally{try{h&&!h.done&&(o=p.return)&&o.call(p)}finally{if(i)throw i.error}}Eb(l,n.fromStyles)},t.prototype._buildAnimation=function(t,n,e,i,o,l){var r=this,a=n.triggerName,s=n.element,u=[],c=new Set,p=new Set,h=n.timelines.map(function(n){var h=n.element;c.add(h);var d=h[w_];if(d&&d.removedBeforeQueried)return new fd(n.duration,n.delay);var f,g,m=h!==s,y=(f=(e.get(h)||v_).map(function(t){return t.getRealPlayer()}),g=[],function t(n,e){for(var i=0;i<n.length;i++){var o=n[i];o instanceof gd?t(o.players,e):e.push(o)}}(f,g),g).filter(function(t){return!!t.element&&t.element===h}),v=o.get(h),b=l.get(h),_=nb(0,r._normalizer,0,n.keyframes,v,b),w=r._buildPlayer(n,_,y);if(n.subTimeline&&i&&p.add(h),m){var x=new I_(t,a,h);x.setRealPlayer(w),u.push(x)}return w});u.forEach(function(t){lb(r.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return function(t,n,e){var i;if(t instanceof Map){if(i=t.get(n)){if(i.length){var o=i.indexOf(e);i.splice(o,1)}0==i.length&&t.delete(n)}}else(i=t[n])&&(i.length&&(o=i.indexOf(e),i.splice(o,1)),0==i.length&&delete t[n]);return i}(r.playersByQueriedElement,t.element,t)})}),c.forEach(function(t){return M_(t,"ng-animating")});var d=tb(h);return d.onDestroy(function(){c.forEach(function(t){return T_(t,"ng-animating")}),Ob(s,n.toStyles)}),p.forEach(function(t){lb(i,t,[]).push(d)}),d},t.prototype._buildPlayer=function(t,n,e){return n.length>0?this.driver.animate(t.element,n,t.duration,t.delay,t.easing,e):new fd(t.duration,t.delay)},t}(),I_=function(){function t(t,n,e){this.namespaceId=t,this.triggerName=n,this.element=e,this._player=new fd,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var n=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(e){n._queuedCallbacks[e].forEach(function(n){return eb(t,e,void 0,n)})}),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var n=this,e=this._player;e.triggerCallback&&t.onStart(function(){return e.triggerCallback("start")}),t.onDone(function(){return n.finish()}),t.onDestroy(function(){return n.destroy()})},t.prototype._queueEvent=function(t,n){lb(this._queuedCallbacks,t,[]).push(n)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var n=this._player;n.triggerCallback&&n.triggerCallback(t)},t}();function k_(t){return t&&1===t.nodeType}function O_(t,n){var e=t.style.display;return t.style.display=null!=n?n:"none",e}function E_(t,n,e,i,o){var l=[];e.forEach(function(t){return l.push(O_(t))});var r=[];i.forEach(function(e,i){var l={};e.forEach(function(t){var e=l[t]=n.computeStyle(i,t,o);e&&0!=e.length||(i[w_]=__,r.push(i))}),t.set(i,l)});var a=0;return e.forEach(function(t){return O_(t,l[a++])}),r}function D_(t,n){var e=new Map;if(t.forEach(function(t){return e.set(t,[])}),0==n.length)return e;var i=new Set(n),o=new Map;return n.forEach(function(t){var n=function t(n){if(!n)return 1;var l=o.get(n);if(l)return l;var r=n.parentNode;return l=e.has(r)?r:i.has(r)?1:t(r),o.set(n,l),l}(t);1!==n&&e.get(n).push(t)}),e}var A_="$$classes";function M_(t,n){if(t.classList)t.classList.add(n);else{var e=t[A_];e||(e=t[A_]={}),e[n]=!0}}function T_(t,n){if(t.classList)t.classList.remove(n);else{var e=t[A_];e&&delete e[n]}}function R_(t,n,e){tb(e).onDone(function(){return t.processLeaveNode(n)})}function L_(t,n,e){var i=e.get(t);if(!i)return!1;var o=n.get(t);return o?i.forEach(function(t){return o.add(t)}):n.set(t,i),e.delete(t),!0}var N_=function(){function t(t,n,e){var i=this;this.bodyNode=t,this._driver=n,this._triggerCache={},this.onRemovalComplete=function(t,n){},this._transitionEngine=new S_(t,n,e),this._timelineEngine=new y_(t,n,e),this._transitionEngine.onRemovalComplete=function(t,n){return i.onRemovalComplete(t,n)}}return t.prototype.registerTrigger=function(t,n,e,i,o){var l=t+"-"+i,r=this._triggerCache[l];if(!r){var a=[],s=Hb(this._driver,o,a);if(a.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+a.join("\n - "));r=function(t,n){return new f_(t,n)}(i,s),this._triggerCache[l]=r}this._transitionEngine.registerTrigger(n,i,r)},t.prototype.register=function(t,n){this._transitionEngine.register(t,n)},t.prototype.destroy=function(t,n){this._transitionEngine.destroy(t,n)},t.prototype.onInsert=function(t,n,e,i){this._transitionEngine.insertNode(t,n,e,i)},t.prototype.onRemove=function(t,n,e){this._transitionEngine.removeNode(t,n,e)},t.prototype.disableAnimations=function(t,n){this._transitionEngine.markElementAsDisabled(t,n)},t.prototype.process=function(t,n,e,i){if("@"==e.charAt(0)){var o=u(rb(e),2);this._timelineEngine.command(o[0],n,o[1],i)}else this._transitionEngine.trigger(t,n,e,i)},t.prototype.listen=function(t,n,e,i,o){if("@"==e.charAt(0)){var l=u(rb(e),2);return this._timelineEngine.listen(l[0],n,l[1],o)}return this._transitionEngine.listen(t,n,e,i,o)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),j_=function(t){function n(n,e){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=n.createRenderer(e.body,{id:"0",encapsulation:rn.None,styles:[],data:{animation:[]}}),i}return o(n,t),n.prototype.build=function(t){var n=this._nextAnimationId.toString();this._nextAnimationId++;var e=Array.isArray(t)?pd(t):t;return U_(this._renderer,null,n,"register",[e]),new V_(n,this._renderer)},n}(sd),V_=function(t){function n(n,e){var i=t.call(this)||this;return i._id=n,i._renderer=e,i}return o(n,t),n.prototype.create=function(t,n){return new B_(this._id,t,n||{},this._renderer)},n}(ud),B_=function(){function t(t,n,e,i){this.id=t,this.element=n,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",e)}return t.prototype._listen=function(t,n){return this._renderer.listen(this.element,"@@"+this.id+":"+t,n)},t.prototype._command=function(t){for(var n=[],e=1;e<arguments.length;e++)n[e-1]=arguments[e];return U_(this._renderer,this.element,this.id,t,n)},t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}();function U_(t,n,e,i,o){return t.setProperty(n,"@@"+e+":"+i,o)}var F_=function(){function t(t,n,e){this.delegate=t,this.engine=n,this._zone=e,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,this.promise=Promise.resolve(0),n.onRemovalComplete=function(t,n){n&&n.parentNode(t)&&n.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,n){var e=this,i=this.delegate.createRenderer(t,n);if(!(t&&n&&n.data&&n.data.animation)){var o=this._rendererCache.get(i);return o||(o=new z_("",i,this.engine),this._rendererCache.set(i,o)),o}var l=n.id,r=n.id+"-"+this._currentId;return this._currentId++,this.engine.register(r,t),n.data.animation.forEach(function(n){return e.engine.registerTrigger(l,r,t,n.name,n)}),new H_(this,r,i,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;this.promise.then(function(){t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,n,e){var i=this;t>=0&&t<this._microtaskId?this._zone.run(function(){return n(e)}):(0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){i._zone.run(function(){i._animationCallbacksBuffer.forEach(function(t){var n=u(t,2);(0,n[0])(n[1])}),i._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([n,e]))},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}(),z_=function(){function t(t,n,e){this.namespaceId=t,this.delegate=n,this.engine=e,this.destroyNode=this.delegate.destroyNode?function(t){return n.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,n){return this.delegate.createElement(t,n)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,n){this.delegate.appendChild(t,n),this.engine.onInsert(this.namespaceId,n,t,!1)},t.prototype.insertBefore=function(t,n,e){this.delegate.insertBefore(t,n,e),this.engine.onInsert(this.namespaceId,n,t,!0)},t.prototype.removeChild=function(t,n){this.engine.onRemove(this.namespaceId,n,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,n,e,i){this.delegate.setAttribute(t,n,e,i)},t.prototype.removeAttribute=function(t,n,e){this.delegate.removeAttribute(t,n,e)},t.prototype.addClass=function(t,n){this.delegate.addClass(t,n)},t.prototype.removeClass=function(t,n){this.delegate.removeClass(t,n)},t.prototype.setStyle=function(t,n,e,i){this.delegate.setStyle(t,n,e,i)},t.prototype.removeStyle=function(t,n,e){this.delegate.removeStyle(t,n,e)},t.prototype.setProperty=function(t,n,e){"@"==n.charAt(0)&&"@.disabled"==n?this.disableAnimations(t,!!e):this.delegate.setProperty(t,n,e)},t.prototype.setValue=function(t,n){this.delegate.setValue(t,n)},t.prototype.listen=function(t,n,e){return this.delegate.listen(t,n,e)},t.prototype.disableAnimations=function(t,n){this.engine.disableAnimations(t,n)},t}(),H_=function(t){function n(n,e,i,o){var l=t.call(this,e,i,o)||this;return l.factory=n,l.namespaceId=e,l}return o(n,t),n.prototype.setProperty=function(t,n,e){"@"==n.charAt(0)?"."==n.charAt(1)&&"@.disabled"==n?this.disableAnimations(t,e=void 0===e||!!e):this.engine.process(this.namespaceId,t,n.substr(1),e):this.delegate.setProperty(t,n,e)},n.prototype.listen=function(t,n,e){var i,o,l,r=this;if("@"==n.charAt(0)){var a=function(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}(t),s=n.substr(1),c="";return"@"!=s.charAt(0)&&(s=(i=u((o=s,l=o.indexOf("."),[o.substring(0,l),o.substr(l+1)]),2))[0],c=i[1]),this.engine.listen(this.namespaceId,a,s,c,function(t){r.factory.scheduleListenerCallback(t._data||-1,e,t)})}return this.delegate.listen(t,n,e)},n}(z_),q_=function(t){function n(n,e,i){return t.call(this,n.body,e,i)||this}return o(n,t),n}(N_);function $_(){return new a_}function G_(t,n,e){return new F_(t,n,e)}var Q_=new vt("AnimationModuleType"),W_=function(){return function(){}}(),K_=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,n){for(var e=0,i=this._listeners;e<i.length;e++)(0,i[e])(t,n)},t.prototype.listen=function(t){var n=this;return this._listeners.push(t),function(){n._listeners=n._listeners.filter(function(n){return t!==n})}},t.prototype.ngOnDestroy=function(){this._listeners=[]},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),Z_=Ki({encapsulation:2,styles:[".mat-radio-button{display:inline-block}.mat-radio-label{cursor:pointer;display:inline-flex;align-items:center;white-space:nowrap;vertical-align:middle}.mat-radio-container{box-sizing:border-box;display:inline-block;position:relative;width:20px;height:20px;flex-shrink:0}.mat-radio-outer-circle{box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:border-color ease 280ms;width:20px;border-width:2px;border-style:solid;border-radius:50%}._mat-animation-noopable .mat-radio-outer-circle{transition:none}.mat-radio-inner-circle{border-radius:50%;box-sizing:border-box;height:20px;left:0;position:absolute;top:0;transition:transform ease 280ms,background-color ease 280ms;width:20px;transform:scale(.001)}._mat-animation-noopable .mat-radio-inner-circle{transition:none}.mat-radio-checked .mat-radio-inner-circle{transform:scale(.5)}@media screen and (-ms-high-contrast:active){.mat-radio-checked .mat-radio-inner-circle{border:solid 10px}}.mat-radio-label-content{display:inline-block;order:0;line-height:inherit;padding-left:8px;padding-right:0}[dir=rtl] .mat-radio-label-content{padding-right:8px;padding-left:0}.mat-radio-label-content.mat-radio-label-before{order:-1;padding-left:0;padding-right:8px}[dir=rtl] .mat-radio-label-content.mat-radio-label-before{padding-right:0;padding-left:8px}.mat-radio-disabled,.mat-radio-disabled .mat-radio-label{cursor:default}.mat-radio-ripple{position:absolute;left:calc(50% - 25px);top:calc(50% - 25px);height:50px;width:50px;z-index:1;pointer-events:none}"],data:{}});function X_(t){return zl(2,[Al(402653184,1,{_ripple:0}),Al(402653184,2,{_inputElement:0}),(t()(),Io(2,0,[["label",1]],null,11,"label",[["class","mat-radio-label"]],[[1,"for",0]],null,null,null,null)),(t()(),Io(3,0,null,null,5,"div",[["class","mat-radio-container"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,0,"div",[["class","mat-radio-outer-circle"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,0,"div",[["class","mat-radio-inner-circle"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,2,"div",[["class","mat-radio-ripple mat-ripple"],["mat-ripple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),fl(7,212992,[[1,4]],0,Zf,[_e,Wn,Nd,[2,Kf],[2,Q_]],{centered:[0,"centered"],radius:[1,"radius"],animation:[2,"animation"],disabled:[3,"disabled"],trigger:[4,"trigger"]},null),Vl(8,{enterDuration:0}),(t()(),Io(9,0,[[2,0],["input",1]],null,0,"input",[["class","mat-radio-input cdk-visually-hidden"],["type","radio"]],[[8,"id",0],[8,"checked",0],[8,"disabled",0],[8,"tabIndex",0],[1,"name",0],[8,"required",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-describedby",0]],[[null,"change"],[null,"click"]],function(t,n,e){var i=!0,o=t.component;return"change"===n&&(i=!1!==o._onInputChange(e)&&i),"click"===n&&(i=!1!==o._onInputClick(e)&&i),i},null,null)),(t()(),Io(10,0,null,null,3,"div",[["class","mat-radio-label-content"]],[[2,"mat-radio-label-before",null]],null,null,null,null)),(t()(),Io(11,0,null,null,1,"span",[["style","display:none"]],null,null,null,null,null)),(t()(),Bl(-1,null,["\xa0"])),Nl(null,0)],function(t,n){var e=n.component,i=t(n,8,0,150);t(n,7,0,!0,23,i,e._isRippleDisabled(),nl(n,2))},function(t,n){var e=n.component;t(n,2,0,e.inputId),t(n,6,0,nl(n,7).unbounded),t(n,9,0,e.inputId,e.checked,e.disabled,e.tabIndex,e.name,e.required,e.ariaLabel,e.ariaLabelledby,e.ariaDescribedby),t(n,10,0,"before"==e.labelPosition)})}var Y_=Ki({encapsulation:0,styles:[['.padding-small[_ngcontent-%COMP%]{padding:.5em 1em;font-size:.8rem}.download-btn[_ngcontent-%COMP%]{width:100%}.label-tooltip[_ngcontent-%COMP%]{position:relative}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:200px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:15%;left:110%}.label-tooltip-gallery[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{left:150%;top:5%}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent #000 transparent transparent}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function J_(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"div",[["class","label-tooltip"],["style","width:100%"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"button",[["class","vf-button vf-button--secondary download-btn"],["onclick","gtag('event', 'download-advanced')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openDialog()&&i),i},null,null)),(t()(),Bl(3,null,[" "," "])),(t()(),Io(4,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click to download files "]))],null,function(t,n){t(n,3,0,n.component.buttonLabel)})}function tw(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"div",[],null,null,null,null,null)),(t()(),Io(2,0,null,null,4,"div",[["class","label-tooltip label-tooltip-gallery"],["style","display: inline-block;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"button",[["onclick","gtag('event', 'download-advanced')"],["style","color:green; cursor: pointer"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openDialog()&&i),i},null,null)),(t()(),Io(4,0,null,null,0,"i",[["class","icon icon-functional download-icon"],["data-icon","="]],null,null,null,null,null)),(t()(),Io(5,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click to download files "]))],null,null)}function nw(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[],null,null,null,null,null)),fl(1,16384,null,0,Va,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),So(16777216,null,null,1,null,J_)),fl(3,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),So(16777216,null,null,1,null,tw)),fl(5,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,n){t(n,1,0,n.component.type),t(n,3,0,"summary"),t(n,5,0,"gallery")},null)}var ew=Ki({encapsulation:0,styles:[[".vf-button--primary[_ngcontent-%COMP%]{border-width:2px;box-shadow:6px 6px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-5px -5px transparent}.mb[_ngcontent-%COMP%]{padding-bottom:35px}.loading[_ngcontent-%COMP%]{font-size:13px}.fieldfont[_ngcontent-%COMP%]{font-size:.875rem}.cancel[_ngcontent-%COMP%]{background-color:#7f7f7f}.mat-radio-label-content[_ngcontent-%COMP%]{padding-right:10px!important}.mat-dialog-actions[_ngcontent-%COMP%]{margin-bottom:0}.margin-right-05[_ngcontent-%COMP%]{margin-right:30px}.errorStyle[_ngcontent-%COMP%]{white-space:normal;width:450px;color:red}.loadingBox[_ngcontent-%COMP%]{font-weight:700;font-size:12px;background-color:#e7f3fe;padding:15px;margin-bottom:10px}.loadingUrl[_ngcontent-%COMP%]{font-weight:400;font-size:12px}"]],data:{}});function iw(t){return zl(0,[(t()(),Io(0,0,null,null,40,"div",[["class","mat-dialog-content"],["mat-dialog-content",""]],null,null,null,null,null)),fl(1,16384,null,0,Lf,[],null,null),(t()(),Io(2,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(3,null,["Download data of "," PDB entr"," "," ",""])),(t()(),Io(4,0,null,null,36,"mat-radio-group",[["class","mat-radio-group"],["role","radiogroup"]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"ngModelChange"]],function(t,n,e){var i=!0;return"ngModelChange"===n&&(i=!1!==(t.component.chosenformat=e)&&i),i},null,null)),fl(5,1064960,null,1,Zv,[Ee],null,null),Al(603979776,1,{_radios:1}),ml(1024,null,Km,function(t){return[t]},[Zv]),fl(8,671744,null,0,Ny,[[8,null],[8,null],[8,null],[6,Km]],{model:[0,"model"]},{update:"ngModelChange"}),ml(2048,null,iy,null,[Ny]),fl(10,16384,null,0,Py,[[4,iy]],null,null),(t()(),Io(11,0,null,null,13,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Structure: "])),(t()(),Io(13,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(14,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-updated-mmCIF')"],["value","updated"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,15)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(15,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" Updated mmCIF file"])),(t()(),Io(17,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(18,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-archive-mmCIF')"],["value","archive-mmCIF"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,19)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(19,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" Archive mmCIF file"])),(t()(),Io(21,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(22,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-archive-PDB')"],["value","archive-PDB"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,23)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(23,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" PDB file"])),(t()(),Io(25,0,null,null,9,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Sequence: "])),(t()(),Io(27,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(28,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-fasta-combined')"],["value","fasta-combined"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,29)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(29,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" Combined FASTA"])),(t()(),Io(31,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(32,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-fasta-individual')"],["value","fasta-individual"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,33)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(33,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" Individual FASTA files"])),(t()(),Io(35,0,null,null,5,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Other: "])),(t()(),Io(37,0,null,null,3,"span",[["class","row"]],null,null,null,null,null)),(t()(),Io(38,0,null,null,2,"mat-radio-button",[["class","mat-radio-button"],["onclick","gtag('event', 'download-validation')"],["value","validation"]],[[2,"mat-radio-checked",null],[2,"mat-radio-disabled",null],[2,"_mat-animation-noopable",null],[1,"id",0]],[[null,"focus"]],function(t,n,e){var i=!0;return"focus"===n&&(i=!1!==nl(t,39)._inputElement.nativeElement.focus()&&i),i},X_,Z_)),fl(39,4440064,[[1,4]],0,Xv,[[2,Zv],_e,Ee,ag,K_,[2,Q_]],{value:[0,"value"]},null),(t()(),Bl(-1,0,[" Validation data"]))],function(t,n){t(n,8,0,n.component.chosenformat),t(n,15,0,"updated"),t(n,19,0,"archive-mmCIF"),t(n,23,0,"archive-PDB"),t(n,29,0,"fasta-combined"),t(n,33,0,"fasta-individual"),t(n,39,0,"validation")},function(t,n){var e=n.component;t(n,3,0,e.data.pdbIds.length,e.data.pdbIds.length>1?"ies":"y",e.data.relationship,e.data.accession),t(n,4,0,nl(n,10).ngClassUntouched,nl(n,10).ngClassTouched,nl(n,10).ngClassPristine,nl(n,10).ngClassDirty,nl(n,10).ngClassValid,nl(n,10).ngClassInvalid,nl(n,10).ngClassPending),t(n,14,0,nl(n,15).checked,nl(n,15).disabled,"NoopAnimations"===nl(n,15)._animationMode,nl(n,15).id),t(n,18,0,nl(n,19).checked,nl(n,19).disabled,"NoopAnimations"===nl(n,19)._animationMode,nl(n,19).id),t(n,22,0,nl(n,23).checked,nl(n,23).disabled,"NoopAnimations"===nl(n,23)._animationMode,nl(n,23).id),t(n,28,0,nl(n,29).checked,nl(n,29).disabled,"NoopAnimations"===nl(n,29)._animationMode,nl(n,29).id),t(n,32,0,nl(n,33).checked,nl(n,33).disabled,"NoopAnimations"===nl(n,33)._animationMode,nl(n,33).id),t(n,38,0,nl(n,39).checked,nl(n,39).disabled,"NoopAnimations"===nl(n,39)._animationMode,nl(n,39).id)})}function ow(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","label limited-width errorStyle"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(2,null,["",""]))],null,function(t,n){t(n,2,0,n.component.errorText)})}function lw(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","loadingBox"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" You can wait for this to load, or retrieve the result from this link:"])),(t()(),Io(2,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"a",[["class","loadingUrl"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(4,null,["",""]))],null,function(t,n){var e=n.component;t(n,3,0,Po(1,"",e.hashedurl,"")),t(n,4,0,e.hashedurl)})}function rw(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,lw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(3,0,null,null,1,"div",[["class","label loading"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Loading... "]))],function(t,n){t(n,2,0,n.component.hashedurl)},null)}function aw(t){return zl(0,[(t()(),So(16777216,null,null,1,null,iw)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(2,0,null,null,7,"div",[["class","mat-dialog-actions"],["mat-dialog-actions",""]],null,null,null,null,null)),fl(3,16384,null,0,Nf,[],null,null),(t()(),Io(4,0,null,null,2,"button",[["class","vf-button vf-button--primary margin-right-05"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.onClick()&&i),i},null,null)),(t()(),Bl(-1,null,[" Download "])),(t()(),Io(6,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","="]],null,null,null,null,null)),(t()(),Io(7,0,null,null,2,"button",[["class","vf-button vf-button--secondary right"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.onNoClick()&&i),i},null,null)),(t()(),Bl(-1,null,[" Cancel "])),(t()(),Io(9,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","x"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,ow)),fl(11,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,rw)),fl(13,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.data),t(n,11,0,e.errorText),t(n,13,0,e.isLoading)},null)}function sw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"download-dialog",[],null,null,null,aw,ew)),fl(1,49152,null,0,Qv,[Ef,Df,$v],null,null)],null,null)}var uw=qo("download-dialog",Qv,sw,{},{},[]),cw=function(){function t(){}return t.prototype.trackThis=function(t){gtag("event",t)},t.prototype.getSuperposeData=function(t){var n={accession:this.accession,superposition:!0,superpositionParams:{segment:1}};return t&&(n.superpositionParams.ligandView=!0,n.superpositionParams.superposeAll=!0),this.parentAccession&&(n.superpositionParams.matrixAccession=this.parentAccession),n},t}(),pw=Ki({encapsulation:0,styles:[['.summary-icon[_ngcontent-%COMP%]{font-size:60px}.summary-icon-zero[_ngcontent-%COMP%]{color:#cacaca}.summary-icon-div[_ngcontent-%COMP%]{text-align:center;height:425px}.label-tooltip[_ngcontent-%COMP%]{position:relative}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:400px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:25px;left:110%}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent #000 transparent transparent}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text-last[_ngcontent-%COMP%]{left:-217%}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text-last[_ngcontent-%COMP%]::after{right:-12px;border-color:transparent transparent transparent #000}.vf-button--tertiary[_ngcontent-%COMP%]{--vf-button-background-color:#ffffff;--vf-button-border-color:#545754;--vf-button-text-color:#373a36;--vf-button-shadow-border-color:#707070;--vf-button-shadow-background-color:#707070;font-size:16px;border-width:2px;box-shadow:6px 6px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-5px -5px transparent}']],data:{}});function hw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[["style","font-weight: bold"]],null,null,null,null,null)),(t()(),Bl(1,null,["",""]))],null,function(t,n){t(n,1,0,n.parent.parent.parent.context.$implicit.counts)})}function dw(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),fl(1,278528,null,0,Da,[Xe,Ye,_e,be],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Vl(2,{"label-tooltip-text-last":0}),(t()(),Bl(3,null,["",""]))],function(t,n){var e=n.component,i=t(n,2,0,n.parent.parent.parent.context.index===e.data.length-1||n.parent.parent.parent.context.index===e.data.length-2);t(n,1,0,"label-tooltip-text",i)},function(t,n){t(n,3,0,n.parent.parent.parent.context.$implicit.description)})}function fw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-download",[],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-download-structures")&&i),i},nw,Y_)),fl(1,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"]},null)],function(t,n){t(n,1,0,n.component.downloadModalData.protvistaProtein,"summary")},null)}function gw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-superpose",[["label","3D view of superposed structures"],["tooltip","View all the structural clusters of this protein"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-superpose-structures")&&i),i},mv,dv)),fl(1,49152,null,0,hv,[Rf],{superposeModalData:[0,"superposeModalData"],label:[1,"label"],tooltip:[2,"tooltip"]},null)],function(t,n){t(n,1,0,n.component.getSuperposeData(),"3D view of superposed structures","View all the structural clusters of this protein")},null)}function mw(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,gw)),fl(2,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,n){t(n,2,0,"Structures")},null)}function yw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-download",[],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-download-ligands")&&i),i},nw,Y_)),fl(1,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"]},null)],function(t,n){t(n,1,0,n.component.downloadModalData.ligandsProtein,"summary")},null)}function vw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-superpose",[["label","3D view of superposed ligands"],["tooltip","View all the ligands superposed on this protein"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-superpose-ligands")&&i),i},mv,dv)),fl(1,49152,null,0,hv,[Rf],{superposeModalData:[0,"superposeModalData"],label:[1,"label"],tooltip:[2,"tooltip"]},null)],function(t,n){t(n,1,0,n.component.getSuperposeData(!0),"3D view of superposed ligands","View all the ligands superposed on this protein")},null)}function bw(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,vw)),fl(2,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,n){t(n,2,0,"Ligands")},null)}function _w(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-download",[],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-download-interactions")&&i),i},nw,Y_)),fl(1,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"]},null)],function(t,n){t(n,1,0,n.component.downloadModalData.interactionsProtein,"summary")},null)}function ww(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-download",[],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-download-similarity")&&i),i},nw,Y_)),fl(1,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"]},null)],function(t,n){t(n,1,0,n.component.downloadModalData.similarProtein,"summary")},null)}function xw(t){return zl(0,[(t()(),Io(0,0,null,null,25,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,10,"div",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,7,"a",[["class","vf-search__button | vf-button vf-button--tertiary"],["style","width: 100%;"]],[[8,"href",4]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.trackThis("summary-icon-go-to-"+t.parent.parent.context.$implicit.section_div_id)&&i),i},null,null)),(t()(),Io(3,0,null,null,6,"p",[["style","height: 130px"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,0,"i",[],[[8,"className",0],[1,"data-icon",0]],null,null,null,null)),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,hw)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(9,null,[" "," "])),(t()(),So(16777216,null,null,1,null,dw)),fl(11,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(12,0,null,null,13,"div",[],null,null,null,null,null)),fl(13,16384,null,0,Va,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),So(16777216,null,null,1,null,fw)),fl(15,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),So(16777216,null,null,1,null,mw)),fl(17,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,yw)),fl(19,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),So(16777216,null,null,1,null,bw)),fl(21,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,_w)),fl(23,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),So(16777216,null,null,1,null,ww)),fl(25,278528,null,0,Ba,[Oe,ke,Va],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,n){var e=n.component;t(n,7,0,"Annotations"!=n.parent.parent.context.$implicit.label),t(n,11,0,n.parent.parent.context.$implicit.description),t(n,13,0,n.parent.parent.context.$implicit.label),t(n,15,0,"Structures"),t(n,17,0,e.hasSuperposition),t(n,19,0,"Ligands"),t(n,21,0,e.hasSuperposition),t(n,23,0,"Interactions"),t(n,25,0,"Similar proteins")},function(t,n){t(n,2,0,Po(2,"./",n.component.accession,"/",n.parent.parent.context.$implicit.section_div_id,"")),t(n,4,0,Po(1,"icon ",n.parent.parent.context.$implicit.icon_class," summary-icon"),n.parent.parent.context.$implicit.icon_data_icon),t(n,9,0,n.parent.parent.context.$implicit.label)})}function Pw(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","summary-icon-zero"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["style","margin:60px 0 20px 0;"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(4,null,[" "," "]))],null,function(t,n){t(n,4,0,n.parent.parent.context.$implicit.label)})}function Cw(t){return zl(0,[(t()(),Io(0,0,null,null,7,"div",[["class","summary-icon-zero"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"p",[["style","text-align: center"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,0,"i",[],[[8,"className",0],[1,"data-icon",0]],null,null,null,null)),(t()(),Io(3,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(4,0,null,null,1,"span",[["style","font-weight: bold"]],null,null,null,null,null)),(t()(),Bl(5,null,["",""])),(t()(),Io(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(7,null,[" "," "]))],null,function(t,n){t(n,2,0,Po(1,"icon ",n.parent.parent.context.$implicit.icon_class," summary-icon"),n.parent.parent.context.$implicit.icon_data_icon),t(n,5,0,n.parent.parent.context.$implicit.counts),t(n,7,0,n.parent.parent.context.$implicit.label)})}function Sw(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[["class","small-6 medium-4 large-2 columns summary-icon-div"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,xw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Pw)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Cw)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.parent.context.$implicit.counts>0),t(n,4,0,-1==n.parent.context.$implicit.counts),t(n,6,0,0==n.parent.context.$implicit.counts)},null)}function Iw(t){return zl(0,[(t()(),Io(0,0,null,null,2,null,null,null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Sw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(0,null,null,0))],function(t,n){t(n,2,0,n.context.$implicit.counts||0==n.context.$implicit.counts)},null)}function kw(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["style","margin: 0 0 20px 0;"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Click on the icons below to view the relevant page:"])),(t()(),Io(4,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Iw)),fl(6,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,6,0,n.component.data)},null)}var Ow=function(){function t(t){this.dialog=t,this.defaultShowLimit=4,this.showLimit=4}return t.prototype.setShowLimit=function(t){this.showLimit=t>0?t<this.processedProteins.length?t:this.processedProteins.length:1},t.prototype.showMore=function(){this.setShowLimit(this.processedProteins.length)},t.prototype.showLess=function(){this.setShowLimit(this.defaultShowLimit)},t.prototype.checkItem=function(t){return t.unp_end-t.unp_start+1<t.unp_length&&t.name!==this.parentProtein},t.prototype.getCount=function(){for(var t=0,n=0;n<this.processedProteins.length;n++)this.checkItem(this.processedProteins[n])&&t++;return t},t.prototype.getSectionStyle=function(t){var n={};return t.representative_pdb?n["background-color"]="#74b360":(n["background-color"]="#c3c0c0",n.cursor="default"),n.width=Math.ceil((t.unp_end-t.unp_start+1)/t.unp_length*100)+"%",n.left=Math.floor(t.unp_start/t.unp_length*100)+"%",n},t.prototype.getIconStyle=function(t){var n={"border-bottom":"none"};return 0===t&&(n.color="#808080"),n},t.prototype.openMolstarDialog=function(t){if(t){var n=[];n.push({pdbId:t.pdb_id,chainId:t.best_chain,chainColor:[50,130,255]});var e={entryList:n,current:0};return this.dialog.open(pv,{disableClose:!1,panelClass:"molstarDialog",data:e}),e}},t}(),Ew=Ki({encapsulation:0,styles:[['#processed-protein-list[_ngcontent-%COMP%]{font-size:.8em}.segment[_ngcontent-%COMP%]{height:15px;top:-13px;position:absolute}.segment[_ngcontent-%COMP%]:hover{cursor:pointer}.padding-small[_ngcontent-%COMP%]{padding:.5em 1em;font-size:.8rem;margin-bottom:5px}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip-alt[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:400px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:150%;left:50%;margin-left:-150px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:-15%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip-alt[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}@media screen and (max-width:39.9375em){.vf-button--secondary[_ngcontent-%COMP%]{border-width:1px;box-shadow:3px 3px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-2px -2px transparent;padding:4px 10px}.small-sr-hook[_ngcontent-%COMP%]{display:none}}']],data:{}});function Dw(t){return zl(0,[(t()(),Io(0,0,null,null,3,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(1,null,[" UniProt range of the processed protein: "," - ",""])),(t()(),Io(2,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(3,null,[" UniProt range of representative PDB "," chain ",": "," - ",""]))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.unp_start,n.parent.parent.context.$implicit.unp_end),t(n,3,0,n.parent.parent.context.$implicit.representative_pdb.pdb_id,n.parent.parent.context.$implicit.representative_pdb.best_chain,n.parent.parent.context.$implicit.representative_pdb.unp_start,n.parent.parent.context.$implicit.representative_pdb.unp_end)})}function Aw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"a",[["class","vf-button vf-button--secondary"],["onclick","gtag('event', 'polyprotein-go-to-page')"],["style","font-size: smaller"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["View Page"]))],null,function(t,n){t(n,0,0,Po(1,"/pdbe/pdbe-kb/proteins/",n.parent.parent.context.$implicit.id,""))})}function Mw(t){return zl(0,[(t()(),Io(0,0,null,null,31,"div",[["id","processed-protein-list"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["class","small-8 medium-3 large-3 columns"]],null,null,null,null,null)),(t()(),Bl(2,null,["",""])),(t()(),Io(3,0,null,null,6,"div",[["class","medium-3 large-3 columns small-sr-hook"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,5,"div",[["style","width: 100%; height: 30px; position:relative; margin-top: 12px;"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,0,"div",[["style","width: 100%; background-color: #8c8c8c; height: 4px; position:relative; top:-4px"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,3,"div",[["class","segment label-tooltip"],["onclick","gtag('event', 'polyprotein-view-3d')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openMolstarDialog(t.parent.context.$implicit.representative_pdb)&&i),i},null,null)),fl(7,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),So(16777216,null,null,1,null,Dw)),fl(9,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(10,0,null,null,18,"div",[["class","medium-4 large-4 columns small-sr-hook"],["style","font-weight: bold; font-size: 1.2em; text-align: center"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(12,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(13,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","s"]],null,null,null,null,null)),(t()(),Bl(14,null,["\xa0"," "])),(t()(),Io(15,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of PDB structures"])),(t()(),Io(17,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(18,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(19,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","b"]],null,null,null,null,null)),(t()(),Bl(20,null,["\xa0"," "])),(t()(),Io(21,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of ligands"])),(t()(),Io(23,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(24,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(25,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","y"]],null,null,null,null,null)),(t()(),Bl(26,null,["\xa0"," "])),(t()(),Io(27,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of interaction partners"])),(t()(),Io(29,0,null,null,2,"div",[["class","small-4 medium-2 large-2 columns"],["style","text-align: center"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Aw)),fl(31,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,7,0,e.getSectionStyle(n.parent.context.$implicit)),t(n,9,0,n.parent.context.$implicit.representative_pdb),t(n,12,0,e.getIconStyle(n.parent.context.$implicit.summary_counts.pdbs)),t(n,18,0,e.getIconStyle(n.parent.context.$implicit.summary_counts.ligands)),t(n,24,0,e.getIconStyle(n.parent.context.$implicit.summary_counts.interactions)),t(n,31,0,n.parent.context.$implicit.representative_pdb)},function(t,n){t(n,2,0,n.parent.context.$implicit.name),t(n,14,0,n.parent.context.$implicit.summary_counts.pdbs),t(n,20,0,n.parent.context.$implicit.summary_counts.ligands),t(n,26,0,n.parent.context.$implicit.summary_counts.interactions)})}function Tw(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","row"],["style","text-align: left"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Mw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,n.context.index<e.showLimit&&e.checkItem(n.context.$implicit))},null)}function Rw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-search__button | vf-button vf-button--secondary"],["onclick","gtag('event', 'polyprotein-show-all')"],["style","width: 100%"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showMore()&&i),i},null,null)),(t()(),Bl(-1,null,[" Show more "]))],null,null)}function Lw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-search__button | vf-button vf-button--secondary"],["onclick","gtag('event', 'polyprotein-show-less')"],["style","width: 100%"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showLess()&&i),i},null,null)),(t()(),Bl(-1,null,[" Show less "]))],null,null)}function Nw(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"div",[["class","small-12 medium-3 columns"],["style","text-align: center"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Rw)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Lw)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,e.showLimit<e.processedProteins.length),t(n,5,0,e.showLimit==e.processedProteins.length&&e.defaultShowLimit<e.processedProteins.length)},null)}function jw(t){return zl(0,[(t()(),Io(0,0,null,null,20,"div",[["style","margin-top: 40px"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,19,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(3,null,["Processed Proteins (","):"])),(t()(),Io(4,0,null,null,12,"div",[["class","row"],["style","text-align: center; margin-bottom: 10px; font-weight: bold"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,1,"div",[["class","small-8 medium-3 large-3 columns header"],["style","text-align: left;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein Name"])),(t()(),Io(7,0,null,null,5,"div",[["class","medium-3 large-3 columns header small-sr-hook"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Representative Structures"])),(t()(),Io(9,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(10,0,null,null,2,"span",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","4"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click on a box for 3D view"])),(t()(),Io(13,0,null,null,1,"div",[["class","medium-4 large-4 columns header small-sr-hook"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Available Structural Data"])),(t()(),Io(15,0,null,null,1,"div",[["class","small-4 medium-2 large-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Navigate"])),(t()(),So(16777216,null,null,1,null,Tw)),fl(18,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),So(16777216,null,null,1,null,Nw)),fl(20,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,18,0,e.processedProteins),t(n,20,0,e.processedProteins.length>=e.showLimit)},function(t,n){t(n,3,0,n.component.getCount())})}function Vw(t){return zl(0,[(t()(),So(16777216,null,null,1,null,jw)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.processedProteins&&e.processedProteins.length>1)},null)}var Bw=function(){function t(){}return t.prototype.getCanonicalUniProt=function(){for(var t=[],n=0;n<this.data.length;n++)-1===this.data[n].accession.indexOf("-")&&t.push(this.data[n]);return t},t}(),Uw=Ki({encapsulation:0,styles:[[".add-padding[_ngcontent-%COMP%]{padding:0 .9375rem}@media screen and (max-width:39.9375em){.add-padding[_ngcontent-%COMP%]{padding:0 .625rem}}"]],data:{}});function Fw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"td",[["style","font-weight: bold"]],null,null,null,null,null)),(t()(),Bl(1,null,[" "," (",") "]))],null,function(t,n){t(n,1,0,n.parent.context.$implicit.description,n.parent.context.$implicit.accession)})}function zw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"td",[["style","font-weight: bold"]],null,null,null,null,null)),(t()(),Bl(1,null,[" "," (",") "]))],null,function(t,n){t(n,1,0,n.parent.context.$implicit.name,n.parent.context.$implicit.accession)})}function Hw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Bl(1,null,[" UniProt residues in chain ",": "," - "," "]))],null,function(t,n){t(n,1,0,n.context.$implicit.chain_id,n.context.$implicit.unp_start,n.context.$implicit.unp_end)})}function qw(t){return zl(0,[(t()(),Io(0,0,null,null,2,"ul",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Hw)),fl(2,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,2,0,n.parent.context.$implicit.mappings)},null)}function $w(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(1,null,[" UniProt residues in chain ",": "," - "," "]))],null,function(t,n){t(n,1,0,n.parent.context.$implicit.mappings[0].chain_id,n.parent.context.$implicit.mappings[0].unp_start,n.parent.context.$implicit.mappings[0].unp_end)})}function Gw(t){return zl(0,[(t()(),Io(0,0,null,null,13,"tr",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Fw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,zw)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(5,0,null,null,4,"td",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,qw)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,$w)),fl(9,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(10,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Io(11,0,null,null,2,"a",[["class","vf-search__button | vf-button vf-button--secondary"],["onclick","gtag('event', 'multi-view-go-to-page')"],["style","font-size: smaller"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["View details "])),(t()(),Io(13,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon",";"]],null,null,null,null,null))],function(t,n){t(n,2,0,n.context.$implicit.description),t(n,4,0,!n.context.$implicit.description),t(n,7,0,n.context.$implicit.mappings.length>1),t(n,9,0,1==n.context.$implicit.mappings.length)},function(t,n){t(n,11,0,Po(1,"",n.context.$implicit.accession,""))})}function Qw(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,9,"div",[["class","row"],["style","padding: 50px 15px 15px 15px"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,8,"div",[["class","small-12 add-padding"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"h3",[],null,null,null,null,null)),(t()(),Bl(4,null,["PDB entry "," contains the proteins listed below."])),(t()(),Io(5,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Click on any of the buttons to view the detailed protein view."])),(t()(),Io(7,0,null,null,3,"table",[],null,null,null,null,null)),(t()(),Io(8,0,null,null,2,"tbody",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Gw)),fl(10,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,10,0,n.component.getCanonicalUniProt())},function(t,n){t(n,4,0,n.component.pdbId)})}function Ww(t){return zl(0,[(t()(),So(16777216,null,null,1,null,Qw)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,1,0,n.component.data)},null)}var Kw=Ki({encapsulation:0,styles:[['.whats-new-section[_ngcontent-%COMP%]{height:45px;line-height:45px;text-align:right}.whats-new[_ngcontent-%COMP%]{border-bottom:1px dotted}.whats-new[_ngcontent-%COMP%]:hover{border-bottom-style:solid;cursor:help}.entry-flag[_ngcontent-%COMP%]{font-size:small;color:#fff;font-weight:700;padding:2px 5px;border-radius:25px;margin-left:5px;border:1px solid #456e37}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:275px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:110%;left:-50%;margin-left:-60px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:-5px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}@media screen and (max-width:57em){.summary-page-icons-row[_ngcontent-%COMP%], .summary-page-row[_ngcontent-%COMP%]{width:98%;padding-right:.9375rem;padding-left:.9375rem}}']],data:{}});function Zw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","summary"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"summary",e.accession)},null)}function Xw(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[["class","row whats-new-section"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,9,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,8,"span",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"span",[["class","whats-new"]],null,null,null,null,null)),(t()(),Bl(-1,null,["What's new?"])),(t()(),Io(5,0,null,null,5,"span",[["class","label-tooltip-text"],["style","text-align: left; z-index: 3;"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Latest updates - 06 Oct 2022"])),(t()(),Io(8,0,null,null,2,"ul",[],null,null,null,null,null)),(t()(),Io(9,0,null,null,1,"li",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Display observed secondary structure variance per amino acid residue"]))],null,null)}function Yw(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function Jw(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","loader-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function tx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-representative-structures",[],[[8,"superpositionSegments",0]],null,null,Ev,vv)),fl(1,8568832,null,0,yv,[Rf],{data:[0,"data"],parentAccession:[1,"parentAccession"]},null)],function(t,n){var e=n.component;t(n,1,0,e.gallery,e.parentAccession)},function(t,n){t(n,0,0,n.component.superpositionSegmentRange)})}function nx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h4",[],null,null,null,null,null)),(t()(),Bl(-1,null,["No PDB data available for this entry"]))],null,null)}function ex(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["class","small-12 medium-7 columns summary-page-row"],["id","summary"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"app-summary-text",[],null,null,null,qv,Av)),fl(3,114688,null,0,Dv,[Rf],{data:[0,"data"]},null),(t()(),Io(4,0,null,null,4,"div",[["class","small-12 medium-5 columns summary-page-row"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,tx)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,nx)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,e.summaryData),t(n,6,0,!e.noPDB&&""!==e.gallery.accession),t(n,8,0,e.noPDB)},null)}function ix(t){return zl(0,[(t()(),Io(0,0,null,null,12,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Jw)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,ex)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(5,0,null,null,3,"div",[["class","row summary-page-icons-row"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,2,"div",[["class","small-12 columns"],["style","float: left"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"app-summary-icon",[],null,null,null,kw,pw)),fl(8,49152,null,0,cw,[],{data:[0,"data"],downloadModalData:[1,"downloadModalData"],accession:[2,"accession"],hasSuperposition:[3,"hasSuperposition"],parentAccession:[4,"parentAccession"]},null),(t()(),Io(9,0,null,null,3,"div",[["class","row summary-page-pp-row"]],null,null,null,null,null)),(t()(),Io(10,0,null,null,2,"div",[["class","small-12 columns"],["style","float: left"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,1,"app-polyprotein-section",[],null,null,null,Vw,Ew)),fl(12,49152,null,0,Ow,[Rf],{processedProteins:[0,"processedProteins"],parentProtein:[1,"parentProtein"]},null)],function(t,n){var e=n.component;t(n,2,0,e.summaryDataLoading),t(n,4,0,!e.summaryDataLoading),t(n,8,0,e.summaryIcons,e.downloadModalData,e.accession,e.hasSuperpositionData,e.parentAccession),t(n,12,0,e.processedProteins,e.proteinName)},null)}function ox(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,ix)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,!n.component.noUniProt)},null)}function lx(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function rx(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,ox)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,lx)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function ax(t){return zl(0,[(t()(),So(16777216,null,null,1,null,Zw)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Xw)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Yw)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,rx)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,0===e.accessionList.length),t(n,5,0,e.noPDB),t(n,7,0,!e.noPDB)},null)}function sx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-summary-page",[],null,null,null,ax,Kw)),fl(1,4308992,null,0,Ns,[Rf,Qp,Ts,Rs],null,null)],function(t,n){t(n,1,0)},null)}var ux=qo("app-summary-page",Ns,sx,{},{},[]),cx=function(){function t(){this.csvData=[],this.bibData=[]}return t.prototype.ngOnInit=function(){this.buttonLabel=this.label?this.label:"Download",this.defaultDowloadType&&this.setDownloadType(this.defaultDowloadType)},t.prototype.getSectionId=function(){return this.section.split(" ").join("_").toLowerCase()},t.prototype.setDownloadType=function(t){this.downloadType=t,this.createOrSave(this.category),"publication"===this.category&&this.createBibTeX()},t.prototype.createOrSave=function(t){var n;switch(t){case"csv":n=this.saveCsvFile();break;case"json":n=this.saveAsJson();break;case"bibtex":n=this.saveBibTeXFile();break;case"protvista":n=this.createProtVistaCsv();break;case"publication":n=this.createPublicationCsv();break;case"similar":n=this.createSimilarProteinsCsv()}return n},t.prototype.saveAsJson=function(){var t=this.accession+"-"+this.section+".json",n=JSON.stringify(this.data),e=document.createElement("a");return e.setAttribute("href","data:text/plain;charset=utf-8,"+encodeURIComponent(n)),e.setAttribute("download",t),e.style.display="none",document.body.appendChild(e),e.click(),document.body.removeChild(e),t},t.prototype.createSimilarProteinsCsv=function(){if(this.data&&this.optionalData){var t=[];t.push(["protein-name","uniprot-id","species","representative-pdbs","coverage","number-of-pdbs","number-of-ligands","number-of-complexes","mapped-to-pdb"]);for(var n=this.optionalData,e=0;e<this.data.length;e++){var i=this.data[e],o=[];o.push(i.description?i.description:"-"),o.push(i.uniprot_id?i.uniprot_id:"-"),o.push(i.species?i.species:"-"),(o=this.pushItem(i.representative_pdbs,o)).push(i.coverage?i.coverage:"-"),o.push(n[i.uniprot_id]?n[i.uniprot_id].pdbs:"-"),o.push(n[i.uniprot_id]?n[i.uniprot_id].ligands:"-"),o.push(n[i.uniprot_id]?n[i.uniprot_id].interaction_partners:"-"),o=this.pushItem(i.mapped_segment,o),t.push(o)}this.csvData=t}},t.prototype.pushItem=function(t,n){if(t&&t.length>0){var e=[];t.forEach(function(t){e.push(t.pdb_id+"_"+t.best_chain)}),n.push(e.join(";"))}else n.push("-");return n},t.prototype.createProtVistaCsv=function(){if(this.data){var t=[];t.push(["accession","type","label","start","end","notes"]);for(var n=this.data.tracks,e=0;e<n.length;e++)for(var i=0;i<n[e].data.length;i++)for(var o=n[e].data[i].accession,l=n[e].label,r=0;r<n[e].data[i].locations.length;r++)for(var a=0;a<n[e].data[i].locations[r].fragments.length;a++){var s=[];s.push(this.accession),s.push(l),s.push(o),s.push(n[e].data[i].locations[r].fragments[a].start),s.push(n[e].data[i].locations[r].fragments[a].end),s.push(this.sanitizeTooltip(n[e].data[i].locations[r].fragments[a].tooltipContent)),t.push(s)}this.csvData=t}},t.prototype.createPublicationCsv=function(){if(this.data){var t=[];t.push(this.data.publications[0].associated_pdbs.length>0?["PubMed ID","Title","Related PDB entries"]:["PubMed ID","Title"]),this.data.publications.forEach(function(n){var e=[];e.push(n.pubmed_id),e.push(n.title.replace(/,/g," ")),n.associated_pdbs.length>0&&e.push(n.associated_pdbs.join(";")),t.push(e)}),this.csvData=t}},t.prototype.createBibTeX=function(){if(this.data&&this.data.publications){var t=[];this.data.publications.forEach(function(n){t.push("@article {"+n.pubmed_id+","),t.push("\tTitle = {"+n.title+"},"),n.doi&&t.push("\tDOI = {"+n.doi+"},"),t.push("}\n")}),this.bibData=t}},t.prototype.sanitizeTooltip=function(t){return t&&(t=(t=(t=(t=(t=(t=(t=t.replace(/<br>/g," ")).replace(/,/g,";")).replace(/<a.*?>/,"")).replace(/<a.*?>/,"")).replace(/<\/a>/g,";")).replace(/\n\s+/g,"")).replace(/<i.*<\/i>/g,"")),t},t.prototype.saveBibTeXFile=function(){var t="",n=this.bibData;return n.forEach(function(e,i){t+=i<n.length?e+"\n":e}),this.downloadFile(t,this.accession+"-"+this.section+".bib","text/csv;encoding:utf-8"),t},t.prototype.saveCsvFile=function(){var t="",n=this.csvData;return n.forEach(function(e,i){var o=e.join(",");t+=i<n.length?o+"\n":o}),this.downloadFile(t,this.accession+"-"+this.section+".csv","text/csv;encoding:utf-8"),t},t.prototype.downloadFile=function(t,n,e){var i=document.createElement("a");e=e||"application/octet-stream",navigator.msSaveBlob?navigator.msSaveBlob(new Blob([t],{type:e}),n):URL&&"download"in i?(i.href=URL.createObjectURL(new Blob([t],{type:e})),i.setAttribute("download",n),document.body.appendChild(i),i.click(),document.body.removeChild(i)):location.href="data:application/octet-stream,"+encodeURIComponent(t)},t}(),px=Ki({encapsulation:0,styles:[['.download-btn[_ngcontent-%COMP%]{width:100%}.label-tooltip[_ngcontent-%COMP%]{position:relative}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:200px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:0;left:110%}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent #000 transparent transparent}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function hx(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"button",[["class","vf-button vf-button--secondary download-btn"]],null,[[null,"click"]],function(t,n,e){var i=!0,o=t.component;return"click"===n&&(i=!1!==o.createOrSave(o.downloadType)&&i),i},null,null)),(t()(),Bl(2,null,[" "," "])),(t()(),Io(3,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(4,null,[" Click to download annotations in ."," format "]))],null,function(t,n){var e=n.component;t(n,2,0,e.buttonLabel),t(n,4,0,e.defaultDowloadType)})}var dx=function(){function t(){this.defaultViewLimit=6,this.itemSelected=new Qn,this.viewLimit=this.defaultViewLimit}return t.prototype.showAll=function(){this.viewLimit=this.data.tracks[0].data.length},t.prototype.showLess=function(){this.viewLimit=this.defaultViewLimit},t.prototype.viewIn3d=function(t){this.itemSelected.emit({id:t})},t}(),fx=Ki({encapsulation:0,styles:[["table[_ngcontent-%COMP%] tbody[_ngcontent-%COMP%]{background-color:#61616140}button[_ngcontent-%COMP%]{width:90%}"]],data:{}});function gx(t){return zl(0,[(t()(),Io(0,0,null,null,8,"td",[["class","small-7 columns"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"span",[["class","small-3 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"a",[["onclick","gtag('event', 'coverage-table-go-to-pdbe')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(4,null,["",""])),(t()(),Bl(5,null,[" ","\xc5 "])),(t()(),Io(6,0,null,null,2,"span",[["class","small-9 columns"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"button",[["class","vf-button vf-button--secondary"],["onclick","gtag('event', 'coverage-table-view-3d')"],["style","font-size: smaller"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.viewIn3d(t.parent.context.$implicit.accession)&&i),i},null,null)),(t()(),Bl(-1,null,["View in 3D"]))],null,function(t,n){t(n,2,0,Po(1,"https://www.ebi.ac.uk/pdbe/entry/pdb/",n.parent.context.$implicit.accession,"")),t(n,4,0,n.parent.context.$implicit.accession),t(n,5,0,n.parent.context.$implicit.label.resolution)})}function mx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"td",[["class","small-5 columns"],["style","text-align: center"]],null,null,null,null,null)),(t()(),Bl(1,null,[" "," - "," "]))],null,function(t,n){t(n,1,0,n.parent.context.$implicit.locations[0].fragments[0].start,n.parent.context.$implicit.locations[0].fragments[n.parent.context.$implicit.locations[0].fragments.length-1].end)})}function yx(t){return zl(0,[(t()(),Io(0,0,null,null,4,"tr",[["class","row"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,gx)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,mx)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,n.context.index<e.viewLimit),t(n,4,0,n.context.index<e.viewLimit)},null)}function vx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-button vf-button--primary"],["onclick","gtag('event', 'coverage-table-show-all')"],["style","font-size: smaller;"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showAll()&&i),i},null,null)),(t()(),Bl(1,null,["Show all items (",") "]))],null,function(t,n){t(n,1,0,n.component.data.tracks[0].data.length)})}function bx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-button vf-button--primary"],["onclick","gtag('event', 'coverage-table-show-less')"],["style","font-size: smaller;"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showLess()&&i),i},null,null)),(t()(),Bl(-1,null,["Show less items "]))],null,null)}function _x(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,9,"div",[["class","small-12 columns"],["style","max-height: 510px; overflow-y: auto;"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,8,"table",[],null,null,null,null,null)),(t()(),Io(3,0,null,null,7,"tbody",[],null,null,null,null,null)),(t()(),Io(4,0,null,null,4,"tr",[["class","row"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,1,"th",[["class","small-7 columns"]],null,null,null,null,null)),(t()(),Bl(-1,null,["PDB ID"])),(t()(),Io(7,0,null,null,1,"th",[["class","small-5 columns"]],null,null,null,null,null)),(t()(),Bl(-1,null,["UniProt Range"])),(t()(),So(16777216,null,null,1,null,yx)),fl(10,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(11,0,null,null,3,"div",[["class","row"],["style","margin-top: 5px;"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,2,"div",[["class","small-12 columns"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,vx)),fl(14,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(15,0,null,null,3,"div",[["class","row"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Io(16,0,null,null,2,"div",[["class","small-12 columns"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,bx)),fl(18,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,10,0,e.data.tracks[0].data),t(n,14,0,e.viewLimit<e.data.tracks[0].data.length),t(n,18,0,e.viewLimit>e.defaultViewLimit)},null)}var wx=Ki({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}"]],data:{}});function xx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","structures"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"structures",e.accession)},null)}function Px(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function Cx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function Sx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","protvista"],["onclick","gtag('event', 'structures-download-annotations')"],["section","coverage"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.structureProtvistaData,e.accession,"coverage","protvista","csv","Annotations")},null)}function Ix(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-superpose",[["label","3D view of superposed structures"],["onclick","gtag('event', 'structures-superpose-structures')"],["tooltip","View all the superposed structural clusters of this protein"]],null,null,null,mv,dv)),fl(2,49152,null,0,hv,[Rf],{superposeModalData:[0,"superposeModalData"],label:[1,"label"],tooltip:[2,"tooltip"]},null)],function(t,n){t(n,2,0,n.component.getSuperposeData(),"3D view of superposed structures","View all the superposed structural clusters of this protein")},null)}function kx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function Ox(t){return zl(0,[(t()(),Io(0,0,null,null,4,"p",[["style","margin-top:10px;"]],null,null,null,null,null)),(t()(),Bl(1,null,[" PDB Chain shown: "," "," "])),(t()(),Io(2,0,null,null,2,"a",[["class","exit-link"],["onclick","gtag('event', 'structures-go-to-pdbe')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(3,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(4,null,["go to ",""]))],null,function(t,n){var e=n.component;t(n,1,0,e.pdbIdIn3d.id,e.pdbIdIn3d.chainId),t(n,2,0,Po(1,"",e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.pageUrl:"http://www.ebi.ac.uk/pdbe/entry/pdb/"+e.pdbIdIn3d.id,"")),t(n,4,0,e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.id:"PDBe")})}function Ex(t){return zl(0,[(t()(),Io(0,0,null,null,1,"p",[["class","show-for-small-only"],["style","font-size: 12px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Tap any buttons in the table below to display a different structures."]))],null,null)}function Dx(t){return zl(0,[(t()(),Io(0,0,null,null,4,"p",[["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Bl(1,null,[" PDB Chain shown: "," "," "])),(t()(),Io(2,0,null,null,2,"a",[["class","exit-link"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(3,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(4,null,["go to ",""]))],null,function(t,n){var e=n.component;t(n,1,0,e.pdbIdIn3d.id,e.pdbIdIn3d.chainId),t(n,2,0,Po(1,"",e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.pageUrl:"http://www.ebi.ac.uk/pdbe/entry/pdb/"+e.pdbIdIn3d.id,"")),t(n,4,0,e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.id:"PDBe")})}function Ax(t){return zl(0,[(t()(),Io(0,0,null,null,3,"p",[["style","font-size: 16px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Help: "])),(t()(),Bl(-1,null,[" Click on any PDB and Other Structures segment (i.e. coloured box) on the ProtVista sequence feature viewer below to display a different structure. The visualisation is using UniProt numbering for residues, not PDB numbering. "]))],null,null)}function Mx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-coverage-table",[],null,[[null,"itemSelected"]],function(t,n,e){var i=!0;return"itemSelected"===n&&(i=!1!==t.component.onView3dSelect(e)&&i),i},_x,fx)),fl(1,49152,null,0,dx,[],{data:[0,"data"]},{itemSelected:"itemSelected"})],function(t,n){t(n,1,0,n.component.structureProtvistaData)},null)}function Tx(t){return zl(0,[(t()(),Io(0,0,null,null,50,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,49,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,21,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,6,"div",[["class","small-12 medium-7 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Cx)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(6,0,null,null,1,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Structures and Domains"])),(t()(),Io(8,0,null,null,1,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["The visualisation below shows information on protein structures covering various regions of the sequence, domains (Pfam, CATH, SCOP and InterPro), known secondary structural elements content and predicted intrinsic flexibility of the protein. It also shows all the theoretical structures available for this protein."])),(t()(),Io(10,0,null,null,13,"div",[["class","small-12 medium-5 columns hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,12,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,6,"div",[["class","small-12 medium-6 columns stretch-column"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(13,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Download"])),(t()(),Io(15,0,null,null,1,"app-download",[["onclick","gtag('event', 'structures-download-structures')"]],null,null,null,nw,Y_)),fl(16,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"],label:[2,"label"]},null),(t()(),So(16777216,null,null,1,null,Sx)),fl(18,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(19,0,null,null,4,"div",[["class","small-12 medium-6 columns stretch-column view-btn-col"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(20,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["View"])),(t()(),So(16777216,null,null,1,null,Ix)),fl(23,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,kx)),fl(25,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(26,0,null,null,8,"div",[["class","row show-for-small-only"],["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Io(27,0,null,null,7,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(28,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),Io(29,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","l"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Rotate your device or view on a larger screen to see additional information "])),(t()(),So(16777216,null,null,1,null,Ox)),fl(32,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Ex)),fl(34,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(35,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(36,0,null,null,1,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(37,0,null,null,0,"div",[["id","molstarBox"],["style","position:relative;height:358px;cursor:grab;z-index:2;"]],null,null,null,null,null)),(t()(),Io(38,0,null,null,5,"div",[["class","row hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(39,0,null,null,4,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Dx)),fl(41,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Ax)),fl(43,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(44,0,null,null,2,"div",[["class","row hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(45,0,null,null,1,"div",[["class","medium-12 columns"]],null,null,null,null,null)),(t()(),Io(46,0,null,null,0,"div",[["class","structureProtvistaCl"]],null,null,null,null,null)),(t()(),Io(47,0,null,null,3,"div",[["class","row show-for-small-only"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Io(48,0,null,null,2,"div",[["class","columns small-12"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Mx)),fl(50,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.title),t(n,16,0,e.downloadModalData.protvistaProtein,"summary","Structures"),t(n,18,0,e.structureProtvistaData),t(n,23,0,e.hasSuperpositionData),t(n,25,0,e.dataLoading),t(n,32,0,e.pdbIdIn3d),t(n,34,0,e.pdbIdIn3d),t(n,41,0,e.pdbIdIn3d),t(n,43,0,e.pdbIdIn3d),t(n,50,0,e.structureProtvistaData)},null)}function Rx(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function Lx(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Tx)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Rx)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function Nx(t){return zl(0,[(t()(),So(16777216,null,null,1,null,xx)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Px)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Lx)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB)},null)}function jx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-structures-page",[],null,null,null,Nx,wx)),fl(1,4308992,null,0,js,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var Vx=qo("app-structures-page",js,jx,{},{},[]),Bx=function(){function t(t){this.dialog=t,this.filterTextChanged=new j,this.showLimit=6,this.searchTerm="",this.showFlaggedOnly=!0,this.hasFlags=!1,this.downloadModalData={}}return t.prototype.ngOnInit=function(){var t=this;this.checkHasFlag(),this.filterGalleryData(),this.filterTextChanged.pipe(Yf(500),Hy()).subscribe(function(n){return t.filterGalleryData()})},t.prototype.showAll=function(){this.showLimit=this.data.gallery_items.length},t.prototype.showLess=function(){this.showLimit=6},t.prototype.triggerFlag=function(){this.showFlaggedOnly=!this.showFlaggedOnly,this.filterGalleryData(),this.showAll()},t.prototype.checkHasFlag=function(){for(var t=0;t<this.data.gallery_items.length;t++)if(this.data.gallery_items[t].flag){this.hasFlags=!0;break}return this.hasFlags},t.prototype.getPlaceholder=function(t){return t.split(" ")[1]?t.split(" ")[0]+" "+t.split(" ")[1]:t.split(" ")[0]},t.prototype.checkShowLimit=function(t){return t<this.showLimit},t.prototype.setSearchTerm=function(t){this.filterTextChanged.next(t.srcElement.value),this.searchTerm=t.srcElement.value},t.prototype.filterGalleryData=function(){for(var t=[],n=0;n<this.data.gallery_items.length;n++)this.data.gallery_items[n].div_id=this.data.div_id,this.getDownloadModalData(this.data.div_id,this.data.gallery_items[n].id_code,this.data.gallery_items[n].related_entries),this.filterByFlag(this.data.gallery_items[n])&&this.filterBySearchTerm(this.data.gallery_items[n])&&"UNL"!==this.data.gallery_items[n].id_code&&t.push(this.data.gallery_items[n]);this.filteredData=t.slice()},t.prototype.getDownloadModalData=function(t,n,e){for(var i=[],o=0,l=e;o<l.length;o++){var r=l[o].substr(0,4);-1===i.indexOf(r)&&i.push(r)}this.downloadModalData[n]={accession:n,listPdbIds:i,relationship:t}},t.prototype.interactingCount=function(){var t=0;if(this.hasFlags)for(var n=0;n<this.data.gallery_items.length;n++)this.data.gallery_items[n].flag&&t++;return t>0?"Directly Interacting Ligands ("+t+") - ":""},t.prototype.filterByFlag=function(t){return!this.hasFlags||!this.showFlaggedOnly||t.flag},t.prototype.filterBySearchTerm=function(t){return!(this.searchTerm&&""!==this.searchTerm&&(-1!==t.label.toLowerCase().indexOf(this.searchTerm.toLowerCase())||-1!==t.id_code.toLowerCase().indexOf(this.searchTerm.toLowerCase())?(this.showLimit=this.data.gallery_items.length,0):this.checkPdb(t)?(this.showLimit=this.data.gallery_items.length,0):(this.showLimit=6,1)))},t.prototype.checkPdb=function(t){for(var n=0;n<t.related_entries.length;n++)if(-1!==t.related_entries[n].indexOf(this.searchTerm))return!0;return!1},t.prototype.checkIfSelf=function(t){return t.id_code.indexOf("(self)")<=-1},t.prototype.openMolstarDialog=function(t){var n=this,e=[],i=!1;this.data.ligandGallery&&(i=!0),this.filteredData[t].related_entries.forEach(function(o){var l=o.split("_"),r={pdbId:l[0],assemblyId:"preferred",entityId:l[1],entityColor:[50,130,255]};i&&(r.ligandId=n.filteredData[t].id_code),e.push(r)});var o={entryList:e,current:0};return this.dialog.open(pv,{disableClose:!1,panelClass:"molstarDialog",data:o}),o},t.prototype.ngOnDestroy=function(){this.filterTextChanged.unsubscribe()},t}(),Ux=Ki({encapsulation:0,styles:[[".gallery-images[_ngcontent-%COMP%]{text-align:center}#gallery-filter-checkbox[_ngcontent-%COMP%]{margin-bottom:0;display:none}.label-tooltip[_ngcontent-%COMP%]:hover{cursor:help;border-bottom:1px solid}.gallery-link-to-search[_ngcontent-%COMP%]{margin-left:0;font-size:.9em!important}input[id=gallery-filter-checkbox][_ngcontent-%COMP%] + label[_ngcontent-%COMP%]{display:inline-block;width:20px;height:20px;border:2px solid #217976;border-radius:2px;cursor:pointer}input[id=gallery-filter-checkbox][_ngcontent-%COMP%]:checked + label[_ngcontent-%COMP%]:after{position:relative;top:-4px;left:2px;content:'\\2714';font-size:15px}.gallery-filter[_ngcontent-%COMP%]{width:200px;display:inline-block;padding:.1rem .5rem}.gallery-filter[_ngcontent-%COMP%]:hover{border-color:#217976}.columns[_ngcontent-%COMP%]:last-child:not(:first-child){float:left}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;border-bottom:1px dotted #000;cursor:help;font-size:14px;font-weight:700}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{font-weight:400;visibility:hidden;width:250px;background-color:#fff;border:2px solid #0a0a0a;color:#0a0a0a;text-align:left;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:150%;left:50%;margin-left:-60px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:\"\";position:absolute;top:-5px;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text-img[_ngcontent-%COMP%]{width:150px;top:99%;left:39%;margin-left:-60px;text-align:center}p[_ngcontent-%COMP%]{margin-bottom:5px}.legend-box[_ngcontent-%COMP%]{margin-top:15px;margin-bottom:25px;font-size:14px}.box[_ngcontent-%COMP%]{display:inline-block;width:15px;height:15px;margin-top:10px;margin-right:5px}.box-default[_ngcontent-%COMP%]{background-color:#e8e8e8;margin-left:71px}.box-annotated[_ngcontent-%COMP%]{background-color:#74b360;margin-left:10px}.box-other[_ngcontent-%COMP%]{background-color:#000;margin-left:71px}.item-description[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:#73b360}.item-link[_ngcontent-%COMP%]{font-size:18px}.vf-button--tertiary[_ngcontent-%COMP%]{--vf-button-background-color:#ffffff;--vf-button-border-color:#545754;--vf-button-text-color:#373a36;--vf-button-shadow-border-color:#707070;--vf-button-shadow-background-color:#707070;font-size:16px;border-width:2px;box-shadow:6px 6px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-5px -5px transparent}.vf-button--tertiary.annotated-item[_ngcontent-%COMP%]{--vf-button-background-color:#ffffff;--vf-button-border-color:rgb(116,179,96);--vf-button-text-color:rgb(116,179,96);--vf-button-shadow-border-color:rgb(67, 119, 51);--vf-button-shadow-background-color:rgb(67, 119, 51);font-size:16px;border-width:3px;box-shadow:6px 6px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-5px -5px transparent}.vf-button--tertiary.ni-item[_ngcontent-%COMP%]{--vf-button-background-color:#ffffff;--vf-button-border-color:#E8E8E8;--vf-button-text-color:#E8E8E8;--vf-button-shadow-border-color:#b6b5b5;--vf-button-shadow-background-color:#b6b5b5;font-size:16px;border-width:3px;box-shadow:6px 6px 0 var(--vf-button-shadow-background-color,var(--vf-button__color__background--default-dark)),-5px -5px transparent}.show-data-buttons[_ngcontent-%COMP%]{width:125px}.gallery-column-ligands[_ngcontent-%COMP%]{margin-bottom:15px;min-height:130px}.gallery-column-interactions[_ngcontent-%COMP%]{margin-bottom:15px;min-height:150px}"]],data:{}});function Fx(t){return zl(0,[(t()(),Io(0,0,null,null,9,"div",[["class","small-12 medium-7 columns stretch-column"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Show all ligands from PDB entries containing this protein: "])),(t()(),Io(3,0,null,null,0,"input",[["id","gallery-filter-checkbox"],["onclick","gtag('event', 'gallery-checkbox')"],["type","checkbox"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.triggerFlag()&&i),i},null,null)),(t()(),Io(4,0,null,null,0,"label",[["for","gallery-filter-checkbox"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,3,"small",[],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Help: "])),(t()(),Bl(-1,null,["Checking this box will show ligands which may not directly interact with the protein."]))],null,null)}function zx(t){return zl(0,[(t()(),Io(0,0,null,null,20,"div",[["class","row legend-box"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,19,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Legends: "])),(t()(),Io(4,0,null,null,0,"span",[["class","box box-annotated"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,3,"span",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Annotated small molecules "])),(t()(),Io(7,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Ligands with green-bordered boxes have annotations such as cofactor-like, reactant-like or drug-like."])),(t()(),Io(9,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(10,0,null,null,0,"span",[["class","box box-other"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,3,"span",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Other small molecules "])),(t()(),Io(13,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Ligands with black-bordered boxes have no additional annotations."])),(t()(),Io(15,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(16,0,null,null,0,"span",[["class","box box-default"]],null,null,null,null,null)),(t()(),Io(17,0,null,null,3,"span",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Not interacting small molecules "])),(t()(),Io(19,0,null,null,1,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Ligands with grey-bordered boxes do not directly interact with the protein of interest."]))],null,null)}function Hx(t){return zl(0,[(t()(),Io(0,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["class","small-12 medium-9 columns"],["style","margin-bottom: 15px"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" In the gallery below, the structure of the protein of interest (i.e. the protein this page focuses on) is colored grey, while the interaction partner (i.e. the macromolecule the gallery item focuses on) is colored blue. "]))],null,null)}function qx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"p",[["class","item-description"]],null,null,null,null,null)),(t()(),Bl(1,null,[" ","-like "]))],null,function(t,n){var e=n.parent.parent.context.$implicit.categories.join("/");t(n,1,0,e)})}function $x(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(-1,null,["entries"]))],null,null)}function Gx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(-1,null,["entry"]))],null,null)}function Qx(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"a",[["class","vf-button vf-button--secondary"],["onclick","gtag('event', 'gallery-go-to-page')"],["style","min-width: 120px; font-size: smaller"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["View protein page "]))],null,function(t,n){t(n,1,0,Po(1,"",n.parent.context.$implicit.target_url,""))})}function Wx(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Qx)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.component.checkIfSelf(n.parent.parent.context.$implicit))},null)}function Kx(t){return zl(0,[(t()(),Io(0,0,null,null,38,"div",[],[[8,"className",0]],null,null,null,null)),(t()(),Io(1,0,null,null,37,"div",[["class","row"]],[[8,"id",0]],null,null,null,null)),(t()(),Io(2,0,null,null,8,"div",[["class","small-4 columns"],["style","padding-right: 0 !important"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,7,"div",[["class","label-tooltip"],["style","border-bottom: none"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,3,"button",[["class","vf-button vf-button--tertiary"],["onclick","gtag('event', 'gallery-open-molstar')"],["style","padding: 0; margin: 5px"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.openMolstarDialog(t.parent.context.index)&&i),i},null,null)),fl(5,278528,null,0,Da,[Xe,Ye,_e,be],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Vl(6,{"annotated-item":0,"ni-item":1}),(t()(),Io(7,0,null,null,0,"img",[["class","image"]],[[8,"src",4]],null,null,null,null)),(t()(),Io(8,0,null,null,2,"span",[["class","label-tooltip-text label-tooltip-text-img"]],null,null,null,null,null)),(t()(),Io(9,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","4"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" 3D views"])),(t()(),Io(11,0,null,null,27,"div",[["class","small-8 columns"],["style","text-align: left; padding-left: 25px"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,5,"p",[["class","label-tooltip"],["style","font-size: inherit; display: inline-block"]],null,null,null,null,null)),(t()(),Bl(13,null,[" "," "])),(t()(),Io(14,0,null,null,3,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Io(15,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Name: "])),(t()(),Bl(17,null,["",""])),(t()(),Io(18,0,null,null,1,"app-download",[["onclick","gtag('event', 'gallery-download-structures')"],["style","display: inline-block; margin-left: 10px"]],null,null,null,nw,Y_)),fl(19,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"]},null),(t()(),So(16777216,null,null,1,null,qx)),fl(21,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(22,0,null,null,10,"p",[],null,null,null,null,null)),(t()(),Io(23,0,null,null,9,"a",[["class","item-link exit-link gallery-link-to-search"],["onclick","gtag('event', 'gallery-go-to-filter')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(24,0,null,null,4,"span",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Found in "])),(t()(),Io(26,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(27,null,["",""])),(t()(),Bl(-1,null,[" PDB "])),(t()(),So(16777216,null,null,1,null,$x)),fl(30,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Gx)),fl(32,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(33,0,null,null,3,"p",[],null,null,null,null,null)),(t()(),Io(34,0,null,null,2,"a",[["class","item-link exit-link gallery-link-to-search"],["onclick","gtag('event', 'gallery-go-to-ligand-page')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(35,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(-1,null,["More about this ligand "])),(t()(),So(16777216,null,null,1,null,Wx)),fl(38,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){var e=n.component,i=t(n,6,0,e.data.ligandGallery&&n.parent.context.$implicit.categories.length>0,e.data.ligandGallery&&0===n.parent.context.$implicit.categories.length&&!n.parent.context.$implicit.flag);t(n,5,0,"vf-button vf-button--tertiary",i),t(n,19,0,e.downloadModalData[n.parent.context.$implicit.id_code],"gallery"),t(n,21,0,n.parent.context.$implicit.categories.length>0),t(n,30,0,n.parent.context.$implicit.sub_label>1),t(n,32,0,1===n.parent.context.$implicit.sub_label),t(n,38,0,n.parent.context.$implicit.buttons)},function(t,n){t(n,0,0,Po(1,"gallery-column-",n.component.data.ligandGallery?"ligands":"interactions","")),t(n,1,0,Po(1,"item-",n.parent.context.index,"")),t(n,7,0,Po(1,"",n.parent.context.$implicit.url,"")),t(n,13,0,n.parent.context.$implicit.id_code),t(n,17,0,n.parent.context.$implicit.label),t(n,23,0,Po(1,"",n.parent.context.$implicit.target_url,"")),t(n,27,0,n.parent.context.$implicit.sub_label),t(n,34,0,"/pdbe-srv/pdbechem/chemicalCompound/show/"+n.parent.context.$implicit.id_code)})}function Zx(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-4 columns gallery-images"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Kx)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.component.checkShowLimit(n.context.index))},null)}function Xx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-button vf-button--primary show-data-buttons"],["onclick","gtag('event', 'gallery-show-all')"]],null,[[null,"click"]],function(t,n,e){var i=!0,o=t.component;return"click"===n&&(i=!1!==o.showAll(o.i)&&i),i},null,null)),(t()(),Bl(-1,null,[" Show all "]))],null,null)}function Yx(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["class","vf-button vf-button--primary show-data-buttons"],["onclick","gtag('event', 'gallery-show-less')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showLess()&&i),i},null,null)),(t()(),Bl(-1,null,[" Show less "]))],null,null)}function Jx(t){return zl(0,[(t()(),Io(0,0,null,null,27,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,13,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,10,"div",[["class","small-12 medium-5 columns stretch-column"]],null,null,null,null,null)),fl(3,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),Vl(4,{"margin-bottom":0}),(t()(),Io(5,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(6,null,["Filter the ",": \xa0\xa0"])),(t()(),Io(7,0,null,null,0,"input",[["class","vf-form__input gallery-filter"],["onclick","gtag('event', 'gallery-filter')"]],[[8,"placeholder",0]],[[null,"keyup"]],function(t,n,e){var i=!0;return"keyup"===n&&(i=!1!==t.component.setSearchTerm(e)&&i),i},null,null)),(t()(),Io(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(9,0,null,null,1,"small",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Filter by molecule name, code or PDB id."])),(t()(),Io(11,0,null,null,0,"br",[["class","show-for-small-only show-for-ipad"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,0,"br",[["class","show-for-small-only show-for-ipad"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Fx)),fl(14,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,zx)),fl(16,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Hx)),fl(18,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(19,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Zx)),fl(21,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(22,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(23,0,null,null,4,"div",[["class","small-12 medium-3 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,Xx)),fl(25,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,Yx)),fl(27,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component,i=t(n,4,0,e.data.ligandGallery?"0px":"30px");t(n,3,0,i),t(n,14,0,e.checkHasFlag()),t(n,16,0,e.data.ligandGallery),t(n,18,0,!e.data.ligandGallery),t(n,21,0,e.filteredData),t(n,25,0,!e.searchTerm&&e.filteredData.length>e.showLimit),t(n,27,0,!e.searchTerm&&e.filteredData.length>6&&e.showLimit>6)},function(t,n){var e=n.component;t(n,6,0,e.data.ligandGallery?"ligands":"molecules"),t(n,7,0,Po(1,"e.g. ",e.getPlaceholder(e.data.gallery_items[0].label),""))})}function tP(t){return zl(0,[(t()(),So(16777216,null,null,1,null,Jx)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.data&&e.data.gallery_items&&e.data.gallery_items.length>0)},null)}var nP=Ki({encapsulation:0,styles:[['h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.sub-heading[_ngcontent-%COMP%]{margin-top:20px;color:#545454}.has-tooltip[_ngcontent-%COMP%]{border-bottom:1px dotted #000}.has-tooltip[_ngcontent-%COMP%]:hover{border-bottom:1px solid #000;cursor:help}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:400px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;left:110%}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:50%;right:100%;margin-top:-5px;border-width:5px;border-style:solid;border-color:transparent #000 transparent transparent}.label-tooltip-alt[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function eP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","ligands"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"ligands",e.accession)},null)}function iP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function oP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function lP(t){return zl(0,[(t()(),Io(0,0,null,null,11,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"div",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h5",[["class","sub-heading has-tooltip"]],null,null,null,null,null)),(t()(),Bl(3,null,["",""])),(t()(),Io(4,0,null,null,1,"span",[["class","label-tooltip-text hide-for-mobile"]],null,null,null,null,null)),(t()(),Bl(-1,null,["This is the count of unique ligands observed to directly interact with the protein of interest in any PDB entries."])),(t()(),Io(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(7,0,null,null,4,"div",[["class","label-tooltip"]],null,null,null,null,null)),(t()(),Io(8,0,null,null,1,"h6",[["class","has-tooltip"]],null,null,null,null,null)),(t()(),Bl(9,null,[""," (",")"])),(t()(),Io(10,0,null,null,1,"span",[["class","label-tooltip-text hide-for-mobile"]],null,null,null,null,null)),(t()(),Bl(-1,null,["This is the count of all the unique ligands observed in any PDB entries the protein of interest is also found in. Note that not all of these small molecules may directly interact with the protein."]))],null,function(t,n){var e=n.component;t(n,3,0,e.interactingCount()),t(n,9,0,e.ligands.title,e.ligands.gallery_items.length)})}function rP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","protvista"],["onclick","gtag('event', 'ligands-download-annotations')"],["section","ligands"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.ligandProtvistaData,e.accession,"ligands","protvista","csv","Ligand Annotations")},null)}function aP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-superpose",[["label","3D view of superposed ligands"],["onclick","gtag('event', 'ligands-superpose-structures')"],["tooltip","View all the ligands superposed on this protein"]],null,null,null,mv,dv)),fl(2,49152,null,0,hv,[Rf],{superposeModalData:[0,"superposeModalData"],label:[1,"label"],tooltip:[2,"tooltip"]},null)],function(t,n){t(n,2,0,n.component.getSuperposeData(!0),"3D view of superposed ligands","View all the ligands superposed on this protein")},null)}function sP(t){return zl(0,[(t()(),Io(0,0,null,null,12,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"div",[["class","small-12 medium-6 columns stretch-column"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Download"])),(t()(),Io(4,0,null,null,1,"app-download",[["onclick","gtag('event', 'ligands-download-structures')"]],null,null,null,nw,Y_)),fl(5,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"],label:[2,"label"]},null),(t()(),So(16777216,null,null,1,null,rP)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(8,0,null,null,4,"div",[["class","small-12 medium-6 columns stretch-column view-btn-col"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(9,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["View"])),(t()(),So(16777216,null,null,1,null,aP)),fl(12,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.downloadModalData.ligandsProtein,"summary","Structures with Ligands"),t(n,7,0,e.ligandProtvistaData),t(n,12,0,e.hasSuperpositionData)},null)}function uP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row show-for-small-only"],["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),Io(3,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","l"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Rotate your device or view on a larger screen to see additional information "]))],null,null)}function cP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-gallery",[],null,null,null,tP,Ux)),fl(1,245760,null,0,Bx,[Rf],{data:[0,"data"]},null)],function(t,n){t(n,1,0,n.component.ligands)},null)}function pP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h5",[["class","sub-heading"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Ligand-binding Residues"]))],null,null)}function hP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function dP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(4,null,["No ligands for ",""]))],null,function(t,n){t(n,4,0,n.component.accession)})}function fP(t){return zl(0,[(t()(),Io(0,0,null,null,29,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,28,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,12,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,8,"div",[["class","small-12 medium-7 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,oP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(6,0,null,null,1,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Ligands and Environments"])),(t()(),So(16777216,null,null,1,null,lP)),fl(9,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(10,0,null,null,1,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["This section, by default, shows ligands observed directly bound to the protein of interest, if such ligands are available. Click on the checkbox below to see every ligand from all PDB entries (some may not directly interact with the protein). If there are no directly interacting ligands, all ligands will be shown by default. Click on the images to see the related PDB entries. For ligand binding residues, see the sequence viewer at the bottom. "])),(t()(),Io(12,0,null,null,2,"div",[["class","small-12 medium-5 columns hide-for-small-only"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,sP)),fl(14,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,uP)),fl(16,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,cP)),fl(18,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,pP)),fl(20,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(21,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["The visualisation is using UniProt numbering for residues, not PDB numbering."])),(t()(),So(16777216,null,null,1,null,hP)),fl(24,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(25,0,null,null,2,"div",[["class","row hide-for-small-only"],["style","margin-top: 40px;"]],null,null,null,null,null)),(t()(),Io(26,0,null,null,1,"div",[["class","medium-12 columns"]],null,null,null,null,null)),(t()(),Io(27,0,null,null,0,"div",[["class","ligandProtvistaCl"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,dP)),fl(29,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.title),t(n,9,0,e.ligands),t(n,14,0,e.hasLigands),t(n,16,0,e.ligands),t(n,18,0,e.ligands),t(n,20,0,e.ligands),t(n,24,0,e.dataLoading),t(n,29,0,!e.hasLigands&&!e.dataLoading)},null)}function gP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function mP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,fP)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,gP)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function yP(t){return zl(0,[(t()(),So(16777216,null,null,1,null,eP)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,iP)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,mP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB)},null)}function vP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-ligands-page",[],null,null,null,yP,nP)),fl(1,4308992,null,0,Us,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var bP=qo("app-ligands-page",Us,vP,{},{},[]),_P=Ki({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.sub-heading[_ngcontent-%COMP%]{margin-top:20px;color:#545454}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}"]],data:{}});function wP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","interactions"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"interactions",e.accession)},null)}function xP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function PP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function CP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h5",[["class","sub-heading"]],null,null,null,null,null)),(t()(),Bl(1,null,["Interacting Partners (",")"]))],null,function(t,n){t(n,1,0,n.component.complexes.gallery_items.length)})}function SP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","protvista"],["onclick","gtag('event', 'interactions-download-annotations')"],["section","interfaces"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.interfaceProtvistaData,e.accession,"interfaces","protvista","csv","Interface Annotations")},null)}function IP(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","small-12 medium-3 columns hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,6,"div",[["class","small-12 columns"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Download"])),(t()(),Io(5,0,null,null,1,"app-download",[["onclick","gtag('event', 'interactions-download-structures')"]],null,null,null,nw,Y_)),fl(6,114688,null,0,Gv,[Rf],{downloadModalData:[0,"downloadModalData"],type:[1,"type"],label:[2,"label"]},null),(t()(),So(16777216,null,null,1,null,SP)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,6,0,e.downloadModalData.interactionsProtein,"summary","Structures of Complexes"),t(n,8,0,e.interfaceProtvistaData)},null)}function kP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row show-for-small-only"],["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),Io(3,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","l"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Rotate your device or view on a larger screen to see additional information "]))],null,null)}function OP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-gallery",[],null,null,null,tP,Ux)),fl(1,245760,null,0,Bx,[Rf],{data:[0,"data"]},null)],function(t,n){t(n,1,0,n.component.complexes)},null)}function EP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h5",[["class","sub-heading"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Interface Residues"]))],null,null)}function DP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function AP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(4,null,["No macromolecular interactions for ",""]))],null,function(t,n){t(n,4,0,n.component.accession)})}function MP(t){return zl(0,[(t()(),Io(0,0,null,null,28,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,27,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,11,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,8,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,PP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(6,0,null,null,1,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Macromolecular Interactions"])),(t()(),So(16777216,null,null,1,null,CP)),fl(9,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(10,0,null,null,1,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["This section shows macromolecules observed together with the protein of interest in PDB entries. Click on the images to see the related PDB entries. The interaction partner is colored blue."])),(t()(),So(16777216,null,null,1,null,IP)),fl(13,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,kP)),fl(15,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,OP)),fl(17,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,EP)),fl(19,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(20,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["The visualisation is using UniProt numbering for residues, not PDB numbering."])),(t()(),So(16777216,null,null,1,null,DP)),fl(23,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(24,0,null,null,2,"div",[["class","row hide-for-small-only"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Io(25,0,null,null,1,"div",[["class","medium-12 columns"]],null,null,null,null,null)),(t()(),Io(26,0,null,null,0,"div",[["class","interfaceProtvistaCl"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,AP)),fl(28,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.title),t(n,9,0,e.complexes),t(n,13,0,e.complexes),t(n,15,0,e.complexes),t(n,17,0,e.complexes),t(n,19,0,e.complexes),t(n,23,0,e.dataLoading),t(n,28,0,!e.hasComplexes&&!e.dataLoading)},null)}function TP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function RP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,MP)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,TP)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function LP(t){return zl(0,[(t()(),So(16777216,null,null,1,null,wP)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,xP)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,RP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB)},null)}function NP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-interactions-page",[],null,null,null,LP,_P)),fl(1,4308992,null,0,Hs,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var jP=qo("app-interactions-page",Hs,NP,{},{},[]),VP=function(){function t(t){this.http=t}return t.prototype.ngOnInit=function(){this.pingUrl()},t.prototype.pingUrl=function(){for(var t=0,n=this.pingUrlData;t<n.length;t++)this.getUrls(n[t].url).subscribe()},t.prototype.getUrls=function(t){return this.http.get(t,{responseType:"json"}).pipe(oa(function(n){return console.log("fetched url",t)}),aa(this.handleError(t)))},t.prototype.handleError=function(t){return void 0===t&&(t="API request"),function(n){return ia([t,n.status])}},t}(),BP=Ki({encapsulation:0,styles:[""],data:{}});function UP(t){return zl(0,[],null,null)}var FP=Ki({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.sub-heading[_ngcontent-%COMP%]{margin-top:20px;color:#545454}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}"]],data:{}});function zP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","annotations"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"annotations",e.accession)},null)}function HP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function qP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function $P(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","protvista"],["onclick","gtag('event', 'annotations-download-annotations')"],["section","annotations"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.annotationProtvistaData,e.accession,"annotations","protvista","csv","All Annotations")},null)}function GP(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"div",[["class","small-12 columns"],["style","text-align: center;"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"h5",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Download"])),(t()(),So(16777216,null,null,1,null,$P)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,5,0,n.component.annotationProtvistaData)},null)}function QP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row show-for-small-only"],["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),Io(3,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","l"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Rotate your device or view on a larger screen to see additional information "]))],null,null)}function WP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h5",[["class","sub-heading"],["style","margin-top: 20px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Annotated Residues"]))],null,null)}function KP(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function ZP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(4,null,["No annotations for ",""]))],null,function(t,n){t(n,4,0,n.component.accession)})}function XP(t){return zl(0,[(t()(),Io(0,0,null,null,28,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,27,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,13,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,9,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,qP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(6,0,null,null,1,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Annotations"])),(t()(),Io(8,0,null,null,4,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["This section shows residue-level functional annotations available for the PDB entries related to this protein. These annotations are contributed by members of the PDBe-KB consortium or generated by weekly data pipelines. For more information see the "])),(t()(),Io(10,0,null,null,1,"a",[["class","exit-link"],["href","https://github.com/PDBe-KB/pdbe-kb-manual/wiki"],["onclick","gtag('event', 'annotations-go-to-wiki')"],["target","_blank"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" PDBe-KB Wiki pages"])),(t()(),Bl(-1,null,[". "])),(t()(),Io(13,0,null,null,2,"div",[["class","small-12 medium-3 columns hide-for-small-only"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,GP)),fl(15,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,QP)),fl(17,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,WP)),fl(19,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(20,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["The visualisation is using UniProt numbering for residues, not PDB numbering."])),(t()(),So(16777216,null,null,1,null,KP)),fl(23,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(24,0,null,null,2,"div",[["class","row hide-for-small-only"],["style","margin-top: 40px;"]],null,null,null,null,null)),(t()(),Io(25,0,null,null,1,"div",[["class","medium-12 columns"]],null,null,null,null,null)),(t()(),Io(26,0,null,null,0,"div",[["class","annotationProtvistaCl"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,ZP)),fl(28,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.title),t(n,15,0,e.hasAnnotations),t(n,17,0,e.hasAnnotations),t(n,19,0,e.hasAnnotations),t(n,23,0,e.dataLoading),t(n,28,0,!e.hasAnnotations&&!e.dataLoading)},null)}function YP(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function JP(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,XP)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,YP)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function tC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-ping",[],null,null,null,UP,BP)),fl(1,114688,null,0,VP,[ys],{pingUrlData:[0,"pingUrlData"]},null)],function(t,n){t(n,1,0,n.component.pingUrlData)},null)}function nC(t){return zl(0,[(t()(),So(16777216,null,null,1,null,zP)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,HP)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,JP)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,tC)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB),t(n,7,0,e.pingUrlData)},null)}function eC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-annotations-page",[],null,null,null,nC,FP)),fl(1,4308992,null,0,Gs,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var iC=qo("app-annotations-page",Gs,eC,{},{},[]),oC=function(){function t(t){this.dialog=t,this.itemSelected=new Qn,this.collapsed={"similar-pdbs":!1,"similar-with-no-data":!0}}return t.prototype.ngOnInit=function(){this.similarPDBs||(this.collapsed["similar-with-no-data"]=!1)},t.prototype.showOrCollapse=function(t){this.collapsed[t]=!this.collapsed[t]},t.prototype.getSummaryCount=function(){return Object.keys(this.summaries).length},t.prototype.getCombinedData=function(){var t=[];return this.similarProteins&&this.similarProteins.forEach(function(n){return t.push(Object.assign({},n))}),this.similarPDBs&&this.similarPDBs.forEach(function(n){t.push(n)}),t},t.prototype.setSearchTerm=function(t){this.searchTerm=t.srcElement.value},t.prototype.filterData=function(t){if(!this.searchTerm)return t;var n=this.searchTerm.toLowerCase(),e=[];return t.forEach(function(t){(t.description.toLowerCase().indexOf(n)>-1||t.species.toLowerCase().indexOf(n)>-1||t.taxid.toString().indexOf(n)>-1)&&e.push(t)}),e},t.prototype.getIconStyle=function(t){var n={"border-bottom":"none"};return 0===t&&(n.color="#808080"),n},t.prototype.getSectionStyle=function(t,n,e){var i={};return e&&(i.opacity=.5),i["background-color"]="royalblue",i.width=Math.ceil((t.unp_end-t.unp_start+1)/n*100)+"%",i.left=Math.floor(t.unp_start/n*100)+"%",i},t.prototype.getExample=function(){return this.similarProteins?this.similarProteins[0].species:this.similarPDBs?this.similarPDBs[0].species:"Homo sapiens"},t.prototype.getCount=function(){var t=0;return this.similarProteins&&(t+=this.similarProteins.length),this.similarPDBs&&(t+=this.similarPDBs.length),t},t.prototype.showCoverage=function(t){return Math.round(100*t).toString()+"%"},t.prototype.viewIn3d=function(t){this.itemSelected.emit({id:t.pdb_id,chainId:t.best_chain})},t}(),lC=Ki({encapsulation:0,styles:[['h5[_ngcontent-%COMP%]{font-size:18px}.help-icon[_ngcontent-%COMP%]{position:relative;left:98%;top:-40px}.similar-proteins-filter[_ngcontent-%COMP%]{width:200px;display:inline-block;padding:.1rem .5rem}.similar-proteins-filter[_ngcontent-%COMP%]:hover{border-color:#217976}.header[_ngcontent-%COMP%]{font-weight:600}.button[_ngcontent-%COMP%]{padding:5px;width:100%;max-width:150px}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;border-bottom:1px dotted #000}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip-alt[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:350px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:150%;left:50%;margin-left:-150px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;top:-7%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip-alt[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%], .label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}.segment[_ngcontent-%COMP%]{height:15px;top:-9px;position:absolute}#similar-pdbs[_ngcontent-%COMP%], #similar-with-no-data[_ngcontent-%COMP%], .segment[_ngcontent-%COMP%]:hover{cursor:pointer}#similar-pdbs[_ngcontent-%COMP%]:hover, #similar-with-no-data[_ngcontent-%COMP%]:hover{color:#74b360}.medium-12[_ngcontent-%COMP%]{margin:10px 0 5px}.no-left-padding[_ngcontent-%COMP%]{padding-left:0!important}.view-page-btn[_ngcontent-%COMP%]{font-size:smaller;min-width:135px}.segment-view[_ngcontent-%COMP%]{width:100%;height:30px;position:relative;margin-top:15px}.center-align[_ngcontent-%COMP%]{text-align:center}@media screen and (max-width:57em){.similar-proteins-container[_ngcontent-%COMP%]{font-size:14px}.view-page-btn[_ngcontent-%COMP%]{min-width:50px}}@media screen and (max-width:39.9375em){.sm-margin-top-15[_ngcontent-%COMP%]{margin-top:15px}.segment-view[_ngcontent-%COMP%]{margin-top:20px}.center-align[_ngcontent-%COMP%]{text-align:left}.similar-proteins-container[_ngcontent-%COMP%]{margin-top:25px}}']],data:{}});function rC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","+"]],null,null,null,null,null))],null,null)}function aC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","-"]],null,null,null,null,null))],null,null)}function sC(t){return zl(0,[(t()(),Io(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"div",[["class","segment label-tooltip"],["onclick","gtag('event', 'similarity-view-3d')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.viewIn3d(t.context.$implicit)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(3,0,null,null,4,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(5,null,["PDB "," chain "," (UniProt range "," - ",")"])),(t()(),Io(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click to load the structure in Mol* above"]))],function(t,n){t(n,2,0,n.component.getSectionStyle(n.context.$implicit,n.parent.context.$implicit.unp_length,!1))},function(t,n){t(n,5,0,n.context.$implicit.pdb_id,n.context.$implicit.best_chain,n.context.$implicit.unp_start,n.context.$implicit.unp_end)})}function uC(t){return zl(0,[(t()(),Io(0,0,null,null,37,"div",[["class","row"],["style","text-align: left"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,4,"div",[["class","small-3 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein name (UniProt accession):\xa0"])),(t()(),Bl(5,null,[" "," (",") "])),(t()(),Io(6,0,null,null,4,"div",[["class","small-3 columns stretch-column-for-mobile sm-margin-top-15"],["style","font-style: italic"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(8,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Species:\xa0"])),(t()(),Bl(10,null,[" "," "])),(t()(),Io(11,0,null,null,7,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,2,"span",[["class","show-block-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(13,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein segments mapped to PDB:\xa0"])),(t()(),Io(15,0,null,null,3,"div",[["class","segment-view"]],null,null,null,null,null)),(t()(),Io(16,0,null,null,0,"div",[["style","width: 100%; background-color: #8c8c8c; height: 4px; position:relative; top:-4px"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,sC)),fl(18,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(19,0,null,null,7,"div",[["class","small-2 columns hide-for-mobile"],["style","text-align: center"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" PDB "])),(t()(),Io(21,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(22,null,[""," "])),(t()(),Io(23,0,null,null,0,"br",[["class","show-inline-on-ipad"]],null,null,null,null,null)),(t()(),Bl(-1,null,["chain "])),(t()(),Io(25,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(26,null,["",""])),(t()(),Io(27,0,null,null,10,"div",[["class","small-2 columns stretch-column-for-mobile center-align"]],null,null,null,null,null)),(t()(),Io(28,0,null,null,6,"span",[["class","show-inline-on-mobile-only"],["style","width: 60%;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["PDB "])),(t()(),Io(30,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(31,null,["",""])),(t()(),Bl(-1,null,[" chain "])),(t()(),Io(33,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(34,null,["",""])),(t()(),Io(35,0,null,null,1,"a",[["class","vf-button vf-button--secondary view-page-btn"],["onclick","gtag('event', 'similarity-go-to-page')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,[" View protein page "])),(t()(),Io(37,0,null,null,0,"hr",[["class","show-block-on-mobile-only"]],null,null,null,null,null))],function(t,n){t(n,18,0,n.context.$implicit.mapped_segment)},function(t,n){t(n,5,0,n.context.$implicit.description,n.context.$implicit.uniprot_id),t(n,10,0,n.context.$implicit.species),t(n,22,0,n.context.$implicit.mapped_segment[0].pdb_id),t(n,26,0,n.context.$implicit.mapped_segment[0].best_chain),t(n,31,0,n.context.$implicit.mapped_segment[0].pdb_id),t(n,34,0,n.context.$implicit.mapped_segment[0].best_chain),t(n,35,0,Po(1,"/pdbe/pdbe-kb/proteins/",n.context.$implicit.uniprot_id,""))})}function cC(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row hide-for-mobile"],["style","text-align: center; margin-bottom: 10px"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["class","small-3 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein name (UniProt accession)"])),(t()(),Io(3,0,null,null,1,"div",[["class","small-3 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Species"])),(t()(),Io(5,0,null,null,1,"div",[["class","small-4 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein segments mapped to PDB"])),(t()(),Io(7,0,null,null,1,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Navigate"])),(t()(),So(16777216,null,null,1,null,uC)),fl(10,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),So(0,null,null,0))],function(t,n){var e=n.component;t(n,10,0,e.filterData(e.similarPDBs))},null)}function pC(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[["class","small-12 columns"],["style","margin-top: 25px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"h5",[["id","similar-pdbs"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showOrCollapse("similar-pdbs")&&i),i},null,null)),(t()(),So(16777216,null,null,1,null,rC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,aC)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Bl(6,null,[" Similar Proteins with highly identical PDB sequences to "," (",") "])),(t()(),Io(7,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["PDB entries with more than 90% sequence identity to the protein of interest."])),(t()(),So(16777216,null,null,1,null,cC)),fl(10,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,e.collapsed["similar-pdbs"]),t(n,5,0,!e.collapsed["similar-pdbs"]),t(n,10,0,!e.collapsed["similar-pdbs"])},function(t,n){var e=n.component;t(n,6,0,e.accession,e.similarPDBs.length)})}function hC(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"div",[["class","segment label-tooltip"],["onclick","gtag('event', 'similarity-view-3d')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.viewIn3d(t.parent.parent.context.$implicit)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(3,0,null,null,3,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Bl(4,null,["PDB "," chain "," (UniProt range "," - ",")"])),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click to load the structure in Mol* above"]))],function(t,n){t(n,2,0,n.component.getSectionStyle(n.context.$implicit,n.parent.parent.parent.parent.context.$implicit.unp_length,!1))},function(t,n){t(n,4,0,n.parent.parent.context.$implicit.pdb_id,n.parent.parent.context.$implicit.best_chain,n.context.$implicit.unp_start,n.context.$implicit.unp_end)})}function dC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,hC)),fl(2,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,2,0,n.parent.context.$implicit.observed_regions)},null)}function fC(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["class","segment label-tooltip"],["onclick","gtag('event', 'similarity-view-3d')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.viewIn3d(t.context.$implicit)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),So(16777216,null,null,1,null,dC)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.component.getSectionStyle(n.context.$implicit,n.parent.parent.context.$implicit.unp_length,!0)),t(n,4,0,n.context.$implicit.observed_regions.length>0)},null)}function gC(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(1,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","s"]],null,null,null,null,null)),(t()(),Bl(3,null,["\xa0"," "])),(t()(),Io(4,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of PDB structures"]))],function(t,n){var e=n.component;t(n,1,0,e.getIconStyle(e.summaries[n.parent.parent.context.$implicit.uniprot_id].pdbs))},function(t,n){t(n,3,0,n.component.summaries[n.parent.parent.context.$implicit.uniprot_id].pdbs)})}function mC(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(1,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","b"]],null,null,null,null,null)),(t()(),Bl(3,null,["\xa0"," "])),(t()(),Io(4,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of ligands"]))],function(t,n){var e=n.component;t(n,1,0,e.getIconStyle(e.summaries[n.parent.parent.context.$implicit.uniprot_id].ligands))},function(t,n){t(n,3,0,n.component.summaries[n.parent.parent.context.$implicit.uniprot_id].ligands)})}function yC(t){return zl(0,[(t()(),Io(0,0,null,null,5,"div",[["class","small-4 columns label-tooltip"]],null,null,null,null,null)),fl(1,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(2,0,null,null,0,"i",[["class","icon icon-conceptual"],["data-icon","y"]],null,null,null,null,null)),(t()(),Bl(3,null,["\xa0"," "])),(t()(),Io(4,0,null,null,1,"span",[["class","label-tooltip-text"],["style","font-weight: normal; font-size: initial"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Number of interaction partners"]))],function(t,n){var e=n.component;t(n,1,0,e.getIconStyle(e.summaries[n.parent.parent.context.$implicit.uniprot_id].interaction_partners))},function(t,n){t(n,3,0,n.component.summaries[n.parent.parent.context.$implicit.uniprot_id].interaction_partners)})}function vC(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein name (UniProt accession):\xa0"])),(t()(),Bl(4,null,[" "," (",") "])),(t()(),Io(5,0,null,null,4,"div",[["class","small-3 columns stretch-column-for-mobile sm-margin-top-15"],["style","font-style: italic"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Species:\xa0"])),(t()(),Bl(9,null,[" "," "])),(t()(),Io(10,0,null,null,7,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,2,"span",[["class","show-block-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein segments mapped to PDB:\xa0"])),(t()(),Io(14,0,null,null,3,"div",[["class","segment-view"]],null,null,null,null,null)),(t()(),Io(15,0,null,null,0,"div",[["style","width: 100%; background-color: #8c8c8c; height: 4px; position:relative; top:-4px"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,fC)),fl(17,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(18,0,null,null,4,"div",[["class","small-1 columns stretch-column-for-mobile sm-margin-top-15 center-align"]],null,null,null,null,null)),(t()(),Io(19,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(20,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Coverage:\xa0"])),(t()(),Bl(22,null,[" "," "])),(t()(),Io(23,0,null,null,9,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15 center-align"],["style","font-weight: bold; font-size: 1.2em;"]],null,null,null,null,null)),(t()(),Io(24,0,null,null,2,"span",[["class","show-block-on-mobile-only"],["style","font-size: 14px;"]],null,null,null,null,null)),(t()(),Io(25,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Available Structural Data:\xa0"])),(t()(),So(16777216,null,null,1,null,gC)),fl(28,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,mC)),fl(30,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,yC)),fl(32,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(33,0,null,null,3,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15 center-align"]],null,null,null,null,null)),(t()(),Io(34,0,null,null,1,"a",[["class","vf-button vf-button--secondary view-page-btn"],["onclick","gtag('event', 'similarity-go-to-page')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,[" View protein page "])),(t()(),Io(36,0,null,null,0,"hr",[["class","show-block-on-mobile-only"]],null,null,null,null,null))],function(t,n){var e=n.component;t(n,17,0,n.parent.context.$implicit.representative_pdbs),t(n,28,0,e.summaries[n.parent.context.$implicit.uniprot_id]),t(n,30,0,e.summaries[n.parent.context.$implicit.uniprot_id]),t(n,32,0,e.summaries[n.parent.context.$implicit.uniprot_id])},function(t,n){var e=n.component;t(n,4,0,n.parent.context.$implicit.description,n.parent.context.$implicit.uniprot_id),t(n,9,0,n.parent.context.$implicit.species),t(n,22,0,e.showCoverage(n.parent.context.$implicit.coverage)),t(n,34,0,Po(1,"/pdbe/pdbe-kb/proteins/",n.parent.context.$implicit.uniprot_id,""))})}function bC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","row"],["style","text-align: left"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,vC)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.context.$implicit.representative_pdbs.length>0)},null)}function _C(t){return zl(0,[(t()(),Io(0,0,null,null,21,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"h5",[["style","margin-bottom: 10px"]],null,null,null,null,null)),(t()(),Bl(2,null,["Similar Proteins with Structural Data (",")"])),(t()(),Io(3,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["These proteins are in the same UniRef90 cluster as the protein of interest and have one or more protein structures in PDB."])),(t()(),Io(5,0,null,null,14,"div",[["class","row hide-for-mobile"],["style","text-align: center; margin-bottom: 10px"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,3,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein Name"])),(t()(),Io(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,["(UniProt accession)"])),(t()(),Io(10,0,null,null,1,"div",[["class","small-3 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Species"])),(t()(),Io(12,0,null,null,1,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Representative Structures"])),(t()(),Io(14,0,null,null,1,"div",[["class","small-1 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Coverage"])),(t()(),Io(16,0,null,null,1,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Available Structural Data"])),(t()(),Io(18,0,null,null,1,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Navigate"])),(t()(),So(16777216,null,null,1,null,bC)),fl(21,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){var e=n.component;t(n,21,0,e.filterData(e.similarProteins))},function(t,n){t(n,2,0,n.component.getSummaryCount())})}function wC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","+"]],null,null,null,null,null))],null,null)}function xC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","-"]],null,null,null,null,null))],null,null)}function PC(t){return zl(0,[(t()(),Io(0,0,null,null,7,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"div",[["class","segment label-tooltip"],["onclick","gtag('event', 'similarity-view-3d')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.viewIn3d(t.context.$implicit)&&i),i},null,null)),fl(2,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(3,0,null,null,4,"span",[["class","label-tooltip-text"]],null,null,null,null,null)),(t()(),Io(4,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(5,null,["PDB "," chain "," (UniProt range "," - ",")"])),(t()(),Io(6,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" Click to load the structure in Mol* above"]))],function(t,n){t(n,2,0,n.component.getSectionStyle(n.context.$implicit,n.parent.parent.context.$implicit.unp_length,!1))},function(t,n){t(n,5,0,n.context.$implicit.pdb_id,n.context.$implicit.best_chain,n.context.$implicit.unp_start,n.context.$implicit.unp_end)})}function CC(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","small-3 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein name (UniProt accession):\xa0"])),(t()(),Bl(4,null,[" "," (",") "])),(t()(),Io(5,0,null,null,4,"div",[["class","small-3 columns stretch-column-for-mobile sm-margin-top-15"],["style","font-style: italic"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,2,"span",[["class","show-inline-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Species:\xa0"])),(t()(),Bl(9,null,[" "," "])),(t()(),Io(10,0,null,null,7,"div",[["class","small-2 columns stretch-column-for-mobile sm-margin-top-15"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,2,"span",[["class","show-block-on-mobile-only"]],null,null,null,null,null)),(t()(),Io(12,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein segments mapped to PDB:\xa0"])),(t()(),Io(14,0,null,null,3,"div",[["class","segment-view"]],null,null,null,null,null)),(t()(),Io(15,0,null,null,0,"div",[["style","width: 100%; background-color: #8c8c8c; height: 4px; position:relative; top:-4px"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,PC)),fl(17,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(18,0,null,null,7,"div",[["class","small-2 columns hide-for-mobile"],["style","text-align: center"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" PDB "])),(t()(),Io(20,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(21,null,[""," "])),(t()(),Io(22,0,null,null,0,"br",[["class","show-inline-on-ipad"]],null,null,null,null,null)),(t()(),Bl(-1,null,["chain "])),(t()(),Io(24,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(25,null,["",""])),(t()(),Io(26,0,null,null,8,"div",[["class","small-2 columns stretch-column-for-mobile center-align"]],null,null,null,null,null)),(t()(),Io(27,0,null,null,6,"span",[["class","show-inline-on-mobile-only"],["style","width: 60%;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["PDB "])),(t()(),Io(29,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(30,null,["",""])),(t()(),Bl(-1,null,[" chain "])),(t()(),Io(32,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(33,null,["",""])),(t()(),Io(34,0,null,null,0,"hr",[["class","show-block-on-mobile-only"]],null,null,null,null,null))],function(t,n){t(n,17,0,n.parent.context.$implicit.mapped_segment)},function(t,n){t(n,4,0,n.parent.context.$implicit.description,n.parent.context.$implicit.uniprot_id),t(n,9,0,n.parent.context.$implicit.species),t(n,21,0,n.parent.context.$implicit.mapped_segment[0].pdb_id),t(n,25,0,n.parent.context.$implicit.mapped_segment[0].best_chain),t(n,30,0,n.parent.context.$implicit.mapped_segment[0].pdb_id),t(n,33,0,n.parent.context.$implicit.mapped_segment[0].best_chain)})}function SC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","row"],["style","text-align: left"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,CC)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,0===n.context.$implicit.representative_pdbs.length)},null)}function IC(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row hide-for-mobile"],["style","text-align: center; margin-bottom: 10px"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["class","small-3 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein Name (UniProt ID)"])),(t()(),Io(3,0,null,null,1,"div",[["class","small-3 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Species"])),(t()(),Io(5,0,null,null,1,"div",[["class","small-4 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Protein segments mapped to PDB"])),(t()(),Io(7,0,null,null,1,"div",[["class","small-2 columns header"]],null,null,null,null,null)),(t()(),Bl(-1,null,["\xa0"])),(t()(),So(16777216,null,null,1,null,SC)),fl(10,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),So(0,null,null,0))],function(t,n){var e=n.component;t(n,10,0,e.filterData(e.similarProteins))},null)}function kC(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[["class","small-12 columns"],["style","margin-top: 25px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"h5",[["id","similar-with-no-data"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showOrCollapse("similar-with-no-data")&&i),i},null,null)),(t()(),So(16777216,null,null,1,null,wC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,xC)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Bl(6,null,[" Similar Proteins without Structural Data in the PDB (",") "])),(t()(),Io(7,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(-1,null,["These proteins do not have structures in the PDB, but a large segment can be mapped to a sequence with structure with minimum 90% sequence identity."])),(t()(),So(16777216,null,null,1,null,IC)),fl(10,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,e.collapsed["similar-with-no-data"]),t(n,5,0,!e.collapsed["similar-with-no-data"]),t(n,10,0,!e.collapsed["similar-with-no-data"])},function(t,n){var e=n.component;t(n,6,0,e.similarProteins.length-e.getSummaryCount())})}function OC(t){return zl(0,[(t()(),So(16777216,null,null,1,null,_C)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,kC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(0,null,null,0))],function(t,n){var e=n.component;t(n,1,0,e.getSummaryCount()>0),t(n,3,0,e.similarProteins.length-e.getSummaryCount()>0)},null)}function EC(t){return zl(0,[(t()(),Io(0,0,null,null,10,"div",[["class","row similar-proteins-container"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Filter the proteins: "])),(t()(),Io(4,0,null,null,0,"input",[["class","vf-form__input similar-proteins-filter"],["onclick","gtag('event', 'similarity-filter')"]],[[8,"placeholder",0]],[[null,"keyup"]],function(t,n,e){var i=!0;return"keyup"===n&&(i=!1!==t.component.setSearchTerm(e)&&i),i},null,null)),(t()(),Io(5,0,null,null,1,"small",[["style","display: block; margin-top: 10px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Filter by species, taxonomy id or protein name. "])),(t()(),So(16777216,null,null,1,null,pC)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,OC)),fl(10,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,8,0,e.similarPDBs),t(n,10,0,e.similarProteins)},function(t,n){t(n,4,0,Po(1,"e.g. ",n.component.getExample(),""))})}function DC(t){return zl(0,[(t()(),So(16777216,null,null,1,null,EC)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.similarProteins||e.similarPDBs)},null)}var AC=Ki({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}"]],data:{}});function MC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","similarity"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"similarity",e.accession)},null)}function TC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function RC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function LC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(1,null,["("," )"]))],null,function(t,n){t(n,1,0,n.component.totalSimilarProteins)})}function NC(t){return zl(0,[(t()(),Io(0,0,null,null,9,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,8,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,RC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(4,0,null,null,3,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Similar Proteins "])),(t()(),So(16777216,null,null,1,null,LC)),fl(7,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(8,0,null,null,1,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(9,null,["Proteins with 90% or greater sequence identity to ",". There can be two types of similarities used in this section: First, the sequence of a PDB chain which is mapped to the protein of interest needs to be 90% identical to another PDB chain mapped to another protein of interest; i.e. this is the sequence identity of the PDB chains. Second, the UniProt sequence of a protein of interest is in the same UniRef90 cluster as the UniProt sequences of other proteins. "]))],function(t,n){var e=n.component;t(n,3,0,e.title),t(n,7,0,e.similarProteindsLoadComplete&&e.similarPdbsLoadComplete&&e.totalSimilarProteins>0)},function(t,n){t(n,9,0,n.component.accession)})}function jC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function VC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"p",[["class","show-for-small-only"],["style","font-size: 12px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Tap on any segment (i.e. blue box) in the list to display a different structures."]))],null,null)}function BC(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row show-for-small-only"],["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,7,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,4,"p",[["style","margin-top:10px;"]],null,null,null,null,null)),(t()(),Bl(3,null,[" PDB Chain shown: "," "," "])),(t()(),Io(4,0,null,null,2,"a",[["class","exit-link"],["onclick","gtag('event', 'click', {'event_category': 'similarity', 'event_label': 'similarity-go-to-pdbe', 'value': undefined})"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(5,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(6,null,["go to ",""])),(t()(),So(16777216,null,null,1,null,VC)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,8,0,n.component.pdbIdIn3d)},function(t,n){var e=n.component;t(n,3,0,e.pdbIdIn3d.id,e.pdbIdIn3d.chainId),t(n,4,0,Po(1,"",e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.pageUrl:"http://www.ebi.ac.uk/pdbe/entry/pdb/"+e.pdbIdIn3d.id,"")),t(n,6,0,e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.id:"PDBe")})}function UC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(2,null,["No similar proteins for ",""]))],null,function(t,n){t(n,2,0,n.component.accession)})}function FC(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","row hide-for-small-only"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,7,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,4,"p",[["style","margin-top:15px;"]],null,null,null,null,null)),(t()(),Bl(3,null,[" PDB Chain shown: "," "," "])),(t()(),Io(4,0,null,null,2,"a",[["class","exit-link"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Io(5,0,null,null,1,"small",[["style","font-size: smaller"]],null,null,null,null,null)),(t()(),Bl(6,null,["go to ",""])),(t()(),Io(7,0,null,null,1,"p",[["style","font-size: 12px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Click on any segment below to display a different structures."]))],null,function(t,n){var e=n.component;t(n,3,0,e.pdbIdIn3d.id,e.pdbIdIn3d.chainId),t(n,4,0,Po(1,"",e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.pageUrl:"http://www.ebi.ac.uk/pdbe/entry/pdb/"+e.pdbIdIn3d.id,"")),t(n,6,0,e.pdbIdIn3d.dataUrl?e.pdbIdIn3d.id:"PDBe")})}function zC(t){return zl(0,[(t()(),Io(0,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,2,"div",[["class","medium-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"app-similar-proteins",[],null,[[null,"itemSelected"]],function(t,n,e){var i=!0;return"itemSelected"===n&&(i=!1!==t.component.onView3dSelect(e)&&i),i},DC,lC)),fl(3,114688,null,0,oC,[Rf],{similarProteins:[0,"similarProteins"],similarPDBs:[1,"similarPDBs"],summaries:[2,"summaries"],accession:[3,"accession"]},{itemSelected:"itemSelected"})],function(t,n){var e=n.component;t(n,3,0,e.similarProteins,e.similarPDBs,e.similarSummaries,e.accession)},null)}function HC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function qC(t){return zl(0,[(t()(),Io(0,0,null,null,19,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,16,"div",[],null,null,null,null,null)),(t()(),Io(2,0,null,null,15,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,NC)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,jC)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,BC)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(9,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(10,0,null,null,3,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,UC)),fl(12,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(13,0,null,null,0,"div",[["id","molstarBox"],["style","position:relative;height:358px;cursor:grab;z-index:2;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,FC)),fl(15,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,zC)),fl(17,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,HC)),fl(19,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,4,0,0==e.accessionList.length),t(n,6,0,e.dataLoading),t(n,8,0,e.pdbIdIn3d),t(n,12,0,e.similarProteindsLoadComplete&&e.similarPdbsLoadComplete&&!e.similarProteins&&!e.similarPDBs),t(n,15,0,e.pdbIdIn3d),t(n,17,0,e.similarProteindsLoadComplete&&e.similarPdbsLoadComplete&&e.similarSummariesLoadComplete&&(e.similarProteins&&e.similarProteins.length>0||e.similarPDBs&&e.similarPDBs.length>0)),t(n,19,0,e.accessionList.length>0)},null)}function $C(t){return zl(0,[(t()(),So(16777216,null,null,1,null,MC)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,TC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,qC)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB)},null)}function GC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-similarity-page",[],null,null,null,$C,AC)),fl(1,12697600,null,0,Qs,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var QC=qo("app-similarity-page",Qs,GC,{},{},[]),WC=function(){function t(){this.collapsed=!1,this.paginationButtonLimit=4,this.pagination=[],this.paginationOffset=0,this.currentPageIndex=0,this.authorLimit=5}return t.prototype.ngAfterContentChecked=function(){this.createPagination()},t.prototype.showOrCollapse=function(){this.collapsed&&(this.createPagination(),this.sortByYear()),this.collapsed=!this.collapsed},t.prototype.setPaginationOffset=function(t){this.paginationOffset+t<0?this.paginationOffset=0:this.paginationOffset+t>this.pagination.length||(this.paginationOffset+=t,this.currentPageIndex+=t)},t.prototype.showPage=function(t){return t-this.paginationOffset>=0&&t-this.paginationOffset<=this.paginationButtonLimit-1},t.prototype.setPage=function(t){this.currentPageIndex=t},t.prototype.sortByYear=function(){return this.sortedPublications=this.data.publications,this.sortedPublications.sort(function(t,n){return t.year>n.year?-1:t.year<n.year?1:0}),this.sortedBy="desc_year",this.sortedPublications},t.prototype.showPublication=function(t,n){return t>=this.currentPageIndex*n&&t<n+this.currentPageIndex*n},t.prototype.checkSortClass=function(t){if(t===this.sortedBy)return"active"},t.prototype.checkActivePage=function(t){if(t===this.currentPageIndex)return"activeButton"},t.prototype.createPagination=function(){this.pagination=[];for(var t=0,n=0;n<this.data.publications.length;n++)0!==n&&n%this.data.show_limit!=0||this.pagination.push(++t)},t.prototype.limitAuthorList=function(t){for(var n=[],e=t.split(","),i=0;i<e.length;i++)if(n.push(e[i]),i===this.authorLimit-1)return n.join(",")+" et al.";return n.join(",")},t}(),KC=Ki({encapsulation:0,styles:[['.journal[_ngcontent-%COMP%]{font-style:italic}.issue[_ngcontent-%COMP%]{font-weight:700}.publication-list[_ngcontent-%COMP%]{font-size:smaller;margin-bottom:22px;padding:0 6px}.publication-list[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{max-height:15px}#publication-header[_ngcontent-%COMP%]{cursor:pointer}#publication-header[_ngcontent-%COMP%]:hover{color:#74b360}button[_ngcontent-%COMP%]{margin-right:3px}.pagination-button[_ngcontent-%COMP%]{width:40px;padding:5px 10px;background-color:#4aa7b1}.active[_ngcontent-%COMP%]{font-weight:700}.activeButton[_ngcontent-%COMP%]{background-color:#00696f}.label-tooltip[_ngcontent-%COMP%]{position:relative;display:inline-block;border-bottom:1px dotted #000}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]{visibility:hidden;width:120px;background-color:#fff;color:#0a0a0a;text-align:center;border:2px solid #000;border-radius:6px;padding:5px 3px;position:absolute;z-index:1;top:150%;left:50%;margin-left:-60px}.label-tooltip[_ngcontent-%COMP%] .label-tooltip-text[_ngcontent-%COMP%]::after{content:"";position:absolute;bottom:100%;left:50%;margin-left:-5px;border-width:5px;border-style:solid;border-color:transparent transparent #000}.label-tooltip[_ngcontent-%COMP%]:hover .label-tooltip-text[_ngcontent-%COMP%]{visibility:visible}']],data:{}});function ZC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","+"]],null,null,null,null,null))],null,null)}function XC(t){return zl(0,[(t()(),Io(0,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","-"]],null,null,null,null,null))],null,null)}function YC(t){return zl(0,[(t()(),Io(0,0,null,null,1,"button",[["onclick","gtag('event', 'publications-select-page')"]],[[8,"className",0]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.setPage(t.parent.context.index)&&i),i},null,null)),(t()(),Bl(1,null,[" "," "]))],null,function(t,n){t(n,0,0,Po(1,"button pagination-button ",n.component.checkActivePage(n.parent.context.index),"")),t(n,1,0,n.parent.context.$implicit)})}function JC(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["style","float: left"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,YC)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,2,0,n.component.showPage(n.context.index))},null)}function tS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","publication"],["onclick","gtag('event', 'publications-download-csv')"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.data,e.accession,e.data.category,"publication","csv","Download CSV")},null)}function nS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-csv-exporter",[["category","publication"],["onclick","gtag('event', 'publications-download-bibtex')"]],null,null,null,hx,px)),fl(1,114688,null,0,cx,[],{data:[0,"data"],accession:[1,"accession"],section:[2,"section"],category:[3,"category"],defaultDowloadType:[4,"defaultDowloadType"],label:[5,"label"]},null)],function(t,n){var e=n.component;t(n,1,0,e.data,e.accession,e.data.category,"publication","bibtex","Download BibTeX")},null)}function eS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),Bl(1,null,[" "," "])),(t()(),Io(2,0,null,null,0,"br",[],null,null,null,null,null))],null,function(t,n){t(n,1,0,n.component.limitAuthorList(n.parent.parent.context.$implicit.authors))})}function iS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[["class","journal"]],null,null,null,null,null)),(t()(),Bl(1,null,[""," "]))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.journal)})}function oS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[["class","issue"]],null,null,null,null,null)),(t()(),Bl(1,null,[""," "]))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.issue)})}function lS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," "]))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.pages)})}function rS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"span",[],null,null,null,null,null)),(t()(),Bl(1,null,["(",")"])),(t()(),Io(2,0,null,null,0,"br",[],null,null,null,null,null))],null,function(t,n){t(n,1,0,n.parent.parent.context.$implicit.year)})}function aS(t){return zl(0,[(t()(),Io(0,0,null,null,4,"span",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Cited: "])),(t()(),Bl(3,null,[" "," times "])),(t()(),Io(4,0,null,null,0,"br",[],null,null,null,null,null))],null,function(t,n){t(n,3,0,n.parent.parent.context.$implicit.citation_count)})}function sS(t){return zl(0,[(t()(),Io(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" PMID: "])),(t()(),Io(2,0,null,null,1,"a",[["class","exit-link"],["onclick","gtag('event', 'publications-go-to-pubmed')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(3,null,[" "," "]))],null,function(t,n){t(n,2,0,Po(1,"https://europepmc.org/abstract/MED/",n.parent.parent.context.$implicit.pubmed_id,"")),t(n,3,0,n.parent.parent.context.$implicit.pubmed_id)})}function uS(t){return zl(0,[(t()(),Io(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),Bl(-1,null,[" DOI: "])),(t()(),Io(2,0,null,null,1,"a",[["class","exit-link"],["onclick","gtag('event', 'publications-go-to-doi')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(3,null,[" "," "]))],null,function(t,n){t(n,2,0,Po(1,"https://doi.org/",n.parent.parent.context.$implicit.doi,"")),t(n,3,0,n.parent.parent.context.$implicit.doi)})}function cS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Bl(-1,null,[","]))],null,null)}function pS(t){return zl(0,[(t()(),Io(0,0,null,null,6,"span",[["style","font-weight: bold"]],null,null,null,null,null)),(t()(),Bl(1,null,[" "," "])),(t()(),Io(2,0,null,null,1,"a",[["class","exit-link"],["onclick","gtag('event', 'publications-go-to-pdbe')"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["go to PDBe"])),(t()(),So(16777216,null,null,1,null,cS)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Bl(-1,null,["\xa0 "]))],function(t,n){t(n,5,0,n.context.index<n.parent.parent.parent.context.$implicit.associated_pdbs.length-1)},function(t,n){t(n,1,0,n.context.$implicit),t(n,2,0,Po(1,"https://pdbe.org/",n.context.$implicit,""))})}function hS(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Related PDB entries: "])),(t()(),So(16777216,null,null,1,null,pS)),fl(4,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,4,0,n.parent.parent.context.$implicit.associated_pdbs)},null)}function dS(t){return zl(0,[(t()(),Io(0,0,null,null,20,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"strong",[],[[8,"innerHTML",1]],null,null,null,null)),(t()(),Io(2,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,eS)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,iS)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,oS)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,lS)),fl(10,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,rS)),fl(12,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,aS)),fl(14,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,sS)),fl(16,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,uS)),fl(18,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,hS)),fl(20,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,4,0,n.parent.context.$implicit.authors),t(n,6,0,n.parent.context.$implicit.journal),t(n,8,0,n.parent.context.$implicit.issue),t(n,10,0,n.parent.context.$implicit.pages),t(n,12,0,n.parent.context.$implicit.year),t(n,14,0,n.parent.context.$implicit.citation_count),t(n,16,0,n.parent.context.$implicit.pubmed_id),t(n,18,0,n.parent.context.$implicit.doi),t(n,20,0,n.parent.context.$implicit.associated_pdbs.length>0)},function(t,n){t(n,1,0,n.parent.context.$implicit.title)})}function fS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","publication-list"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,dS)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,e.showPublication(n.context.index,e.data.show_limit))},null)}function gS(t){return zl(0,[(t()(),Io(0,0,null,null,27,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,26,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,10,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"div",[["style","float: left; margin-right: 15px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Go to page: "])),(t()(),Io(5,0,null,null,2,"div",[["style","float: left"]],null,null,null,null,null)),(t()(),Io(6,0,null,null,1,"button",[["class","button pagination-button"],["onclick","gtag('event', 'publications-previous-page')"]],[[8,"disabled",0]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.setPaginationOffset(-4)&&i),i},null,null)),(t()(),Io(7,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon","<"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,JC)),fl(9,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null),(t()(),Io(10,0,null,null,2,"div",[["style","float: left"]],null,null,null,null,null)),(t()(),Io(11,0,null,null,1,"button",[["class","button pagination-button"],["onclick","gtag('event', 'publications-next-page')"]],[[8,"disabled",0]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.setPaginationOffset(4)&&i),i},null,null)),(t()(),Io(12,0,null,null,0,"i",[["class","icon icon-functional"],["data-icon",">"]],null,null,null,null,null)),(t()(),Io(13,0,null,null,11,"div",[["class","small-12 columns"],["style","margin-bottom: 20px;"]],null,null,null,null,null)),(t()(),Io(14,0,null,null,3,"div",[["style","margin: 5px 0 15px 0;"]],null,null,null,null,null)),(t()(),Io(15,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Reference download: "])),(t()(),Bl(-1,null,["Click to download the data displayed below."])),(t()(),Io(18,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(19,0,null,null,2,"div",[["class","small-6 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,tS)),fl(21,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(22,0,null,null,2,"div",[["class","small-6 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,nS)),fl(24,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(25,0,null,null,2,"div",[["class","small-12 columns"],["id","publication-list-div"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,fS)),fl(27,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){var e=n.component;t(n,9,0,e.pagination),t(n,21,0,e.data),t(n,24,0,e.data),t(n,27,0,e.sortByYear())},function(t,n){var e=n.component;t(n,6,0,0==e.paginationOffset),t(n,11,0,e.paginationOffset>=e.pagination.length-e.paginationButtonLimit)})}function mS(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,5,"h5",[["id","publication-header"],["onclick","gtag('event', 'publications-toggle-collapse')"]],null,[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.showOrCollapse()&&i),i},null,null)),(t()(),So(16777216,null,null,1,null,ZC)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,XC)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Bl(6,null,[" "," (",") "])),(t()(),So(16777216,null,null,1,null,gS)),fl(8,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,3,0,e.collapsed),t(n,5,0,!e.collapsed),t(n,8,0,!e.collapsed)},function(t,n){var e=n.component;t(n,6,0,e.data.category,e.data.publications.length)})}function yS(t){return zl(0,[(t()(),So(16777216,null,null,1,null,mS)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){t(n,1,0,n.component.data)},null)}var vS=Ki({encapsulation:0,styles:[["h2[_ngcontent-%COMP%]{font-weight:700;font-size:22px;margin-top:50px}h5[_ngcontent-%COMP%]{font-weight:500;margin-top:100px}.sub-heading[_ngcontent-%COMP%]{margin-top:20px;color:#545454}.publications-filter[_ngcontent-%COMP%]{width:200px;margin-left:10px;display:inline-block;padding:.1rem .5rem;font-size:18px}.publications-filter[_ngcontent-%COMP%]:hover{border-color:#217976}.description-text[_ngcontent-%COMP%]{padding-top:10px;font-size:18px}.loader-img[_ngcontent-%COMP%]{text-align:center;padding:0 50px}@media screen and (max-width:57em){.stretch-half-screen[_ngcontent-%COMP%]{width:49.9%}.stretch-half-screen-plus[_ngcontent-%COMP%]{float:left!important;width:51%}}@media screen and (max-width:39.9375em){.stretch-half-screen[_ngcontent-%COMP%], .stretch-half-screen-plus[_ngcontent-%COMP%]{width:99%}.mobile-marin-top-20[_ngcontent-%COMP%]{margin-top:20px}}"]],data:{}});function bS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-header",[["activePage","publications"]],null,null,null,av,iv)),fl(1,114688,null,0,ev,[],{showMenu:[0,"showMenu"],activePage:[1,"activePage"],accession:[2,"accession"]},null)],function(t,n){var e=n.component;t(n,1,0,!(e.accessionList.length>0),"publications",e.accession)},null)}function _S(t){return zl(0,[(t()(),Io(0,0,null,null,2,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-error-message",[],null,null,null,cv,uv)),fl(2,114688,null,0,sv,[],null,null)],function(t,n){t(n,2,0)},null)}function wS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(1,null,[""," (",")"]))],null,function(t,n){var e=n.component;t(n,1,0,e.title,e.accession)})}function xS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"div",[["class","laoder-img"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,0,"img",[["src","/pdbe/pdbe-kb/proteins/assets/img/loader.gif"]],null,null,null,null,null))],null,null)}function PS(t){return zl(0,[(t()(),Io(0,0,null,null,4,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,3,"div",[["class","small-12 medium-9 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(4,null,["No publications for ",""]))],null,function(t,n){t(n,4,0,n.component.accession)})}function CS(t){return zl(0,[(t()(),Io(0,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),Bl(-1,null,["Filter the publications: "])),(t()(),Io(4,0,null,null,0,"input",[["class","vf-form__input publications-filter"],["onclick","gtag('event', 'publications-filter')"],["placeholder","E.g. Mutation"]],null,[[null,"keyup"]],function(t,n,e){var i=!0;return"keyup"===n&&(i=!1!==t.component.setPubSearch(e)&&i),i},null,null)),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,1,"small",[["style","display:inline-block; margin-top: 10px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Filter by keyword in the title or by PDB id or PubMed id."]))],null,null)}function SS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-12 large-4 columns stretch-half-screen"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-literature",[],null,null,null,yS,KC)),fl(2,2146304,null,0,WC,[],{data:[0,"data"],accession:[1,"accession"]},null)],function(t,n){var e=n.component;t(n,2,0,e.primaryPublications,e.accession)},null)}function IS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-12 large-4 columns stretch-half-screen mobile-marin-top-20"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-literature",[],null,null,null,yS,KC)),fl(2,2146304,null,0,WC,[],{data:[0,"data"],accession:[1,"accession"]},null)],function(t,n){var e=n.component;t(n,2,0,e.reviewPublications,e.accession)},null)}function kS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["class","small-12 medium-12 large-4 columns stretch-half-screen-plus mobile-marin-top-20"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-literature",[],null,null,null,yS,KC)),fl(2,2146304,null,0,WC,[],{data:[0,"data"],accession:[1,"accession"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniprotPublications,e.accession)},null)}function OS(t){return zl(0,[(t()(),Io(0,0,null,null,6,"div",[["class","row"],["style","overflow-x: hidden; margin-top: 20px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,SS)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,IS)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,kS)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,e.primaryPublications),t(n,4,0,e.reviewPublications),t(n,6,0,e.uniprotPublications)},null)}function ES(t){return zl(0,[(t()(),Io(0,0,null,null,17,"div",[],null,null,null,null,null)),(t()(),Io(1,0,null,null,16,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,7,"div",[["class","row"],["style","margin-bottom: 30px;"]],null,null,null,null,null)),(t()(),Io(3,0,null,null,6,"div",[["class","small-12 columns"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,wS)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(6,0,null,null,1,"h5",[["style","margin-top: 30px;"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Publications"])),(t()(),Io(8,0,null,null,1,"div",[["class","description-text"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Primary PDB publications, reviews associated with PDB entries and UniProt publications are listed below. Click on the plus/minus signs to expand/collapse the publication lists. "])),(t()(),So(16777216,null,null,1,null,xS)),fl(11,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,PS)),fl(13,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,CS)),fl(15,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,OS)),fl(17,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,5,0,e.title),t(n,11,0,e.dataLoading),t(n,13,0,!e.dataLoading&&!e.rawPubs),t(n,15,0,!e.dataLoading&&e.rawPubs),t(n,17,0,!e.dataLoading&&e.rawPubs)},null)}function DS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"div",[["id","multiView"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"app-multi-view",[],null,null,null,Ww,Uw)),fl(2,49152,null,0,Bw,[],{data:[0,"data"],pdbId:[1,"pdbId"]},null)],function(t,n){var e=n.component;t(n,2,0,e.uniProtMapping,e.accession)},null)}function AS(t){return zl(0,[(t()(),Io(0,0,null,null,4,"section",[["class","row"],["id","main-content-area"],["role","main"],["style","margin-bottom: 40px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,ES)),fl(2,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,DS)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,2,0,0==e.accessionList.length),t(n,4,0,e.accessionList.length>0)},null)}function MS(t){return zl(0,[(t()(),So(16777216,null,null,1,null,bS)),fl(1,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,_S)),fl(3,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,AS)),fl(5,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null)],function(t,n){var e=n.component;t(n,1,0,e.accession),t(n,3,0,e.noPDB),t(n,5,0,!e.noPDB)},null)}function TS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-publications-page",[],null,null,null,MS,vS)),fl(1,4308992,null,0,Zs,[_e,be,Qp,Ts],null,null)],function(t,n){t(n,1,0)},null)}var RS=qo("app-publications-page",Zs,TS,{},{},[]),LS="accent",NS="primary",jS=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],VS=function(t){function n(n,e,i){var o=t.call(this,n)||this;o._platform=e,o._focusMonitor=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var l=0,r=jS;l<r.length;l++){var a=r[l];o._hasHostAttributes(a)&&n.nativeElement.classList.add(a)}return o._focusMonitor.monitor(o._elementRef.nativeElement,!0),o.isRoundButton?o.color=LS:o._hasHostAttributes("mat-flat-button")&&(o.color=NS),o}return o(n,t),n.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef.nativeElement)},n.prototype.focus=function(){this._getHostElement().focus()},n.prototype._getHostElement=function(){return this._elementRef.nativeElement},n.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},n.prototype._hasHostAttributes=function(){for(var t=this,n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.some(function(n){return t._getHostElement().hasAttribute(n)})},n}(Ff(Uf(zf(function(){return function(t){this._elementRef=t}}())))),BS=function(){return function(){}}(),US=Ki({encapsulation:2,styles:[".mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{transition:none;opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:1}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-raised-button:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-raised-button[disabled]{box-shadow:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-flat-button:not([class*=mat-elevation-z]){box-shadow:0 0 0 0 rgba(0,0,0,.2),0 0 0 0 rgba(0,0,0,.14),0 0 0 0 rgba(0,0,0,.12)}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-fab::-moz-focus-inner{border:0}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-fab[disabled]{box-shadow:none}.mat-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:88px;line-height:36px;padding:0 16px;border-radius:2px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:1}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 1px -2px rgba(0,0,0,.2),0 2px 2px 0 rgba(0,0,0,.14),0 1px 5px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 5px 5px -3px rgba(0,0,0,.2),0 8px 10px 1px rgba(0,0,0,.14),0 3px 14px 2px rgba(0,0,0,.12)}.mat-mini-fab[disabled]{box-shadow:none}.mat-mini-fab:not([class*=mat-elevation-z]){box-shadow:0 3px 5px -1px rgba(0,0,0,.2),0 6px 10px 0 rgba(0,0,0,.14),0 1px 18px 0 rgba(0,0,0,.12)}.mat-mini-fab:not([disabled]):active:not([class*=mat-elevation-z]){box-shadow:0 7px 8px -4px rgba(0,0,0,.2),0 12px 17px 2px rgba(0,0,0,.14),0 5px 22px 4px rgba(0,0,0,.12)}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-focus-overlay{background-color:rgba(0,0,0,.12);border-radius:inherit;opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}@media screen and (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:rgba(255,255,255,.5)}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media screen and (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],data:{}});function FS(t){return zl(2,[Al(402653184,1,{ripple:0}),(t()(),Io(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),Nl(null,0),(t()(),Io(3,0,null,null,1,"div",[["class","mat-button-ripple mat-ripple"],["matRipple",""]],[[2,"mat-button-ripple-round",null],[2,"mat-ripple-unbounded",null]],null,null,null,null)),fl(4,212992,[[1,4]],0,Zf,[_e,Wn,Nd,[2,Kf],[2,Q_]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),Io(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,n){var e=n.component;t(n,4,0,e.isIconButton,e._isRippleDisabled(),e._getHostElement())},function(t,n){var e=n.component;t(n,3,0,e.isRoundButton||e.isIconButton,nl(n,4).unbounded)})}var zS=Ki({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{color:#222}.mat-dialog-content[_ngcontent-%COMP%]{margin:0!important;padding:0!important}a[_ngcontent-%COMP%]{color:#0932d6;outline:0}a[_ngcontent-%COMP%]:active{color:#896b25}a[_ngcontent-%COMP%]:visited{color:#58669e}.dowloadItemHeading[_ngcontent-%COMP%]{cursor:pointer;color:#000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-transform:capitalize;font-weight:700;padding:5px;font-size:13px}.dowloadItemHeadingIcon[_ngcontent-%COMP%]{margin-right:5px;font-size:10px}.expanded[_ngcontent-%COMP%]{max-height:300px!important}.downloadItemRow[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;width:100%;box-sizing:border-box;overflow:hidden;padding:3px 0 3px 20px;-webkit-box-pack:justify;justify-content:space-between}.downloadItemsContainer[_ngcontent-%COMP%]{width:100%;max-height:0;overflow-y:auto;transition-timing-function:ease-in;-webkit-transition:.5s;transition:.5s}.downloadItemLabel[_ngcontent-%COMP%]{float:left;color:#777;display:inline-block;overflow:hidden;font-size:93%;width:80%}.dialogCloseBtn[_ngcontent-%COMP%]{position:absolute;right:8px;top:5px;cursor:pointer;font-size:12px;z-index:9999}.entrySelectionBox[_ngcontent-%COMP%]{position:relative;width:100%;height:6%;padding-left:20px;color:#fff;background-color:#74b360}.entrySelectionBox[_ngcontent-%COMP%] select[_ngcontent-%COMP%]{height:80%;padding:0 1.3rem}.entrySelectionBoxSuperpose[_ngcontent-%COMP%]{display:-webkit-box;display:flex;-webkit-box-pack:end;justify-content:flex-end;height:100%}.molstarBox[_ngcontent-%COMP%]{position:relative;width:100%;height:95%}"]],data:{}});function HS(t){return zl(0,[(t()(),Io(0,0,null,null,3,"option",[],[[1,"value",0],[1,"selected",0]],null,null,null,null)),fl(1,147456,null,0,py,[_e,be,[8,null]],null,null),fl(2,147456,null,0,fy,[_e,be,[8,null]],null,null),(t()(),Bl(3,null,["",""]))],null,function(t,n){var e=n.component;t(n,0,0,n.context.index,n.context.index==e.dialogData.current?"true":null),t(n,3,0,e.getlabel(n.context.index))})}function qS(t){return zl(0,[(t()(),Io(0,0,null,null,8,"div",[["class","entrySelectionBox"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,1,"div",[["style","height:10%"]],null,null,null,null,null)),(t()(),Bl(-1,null,["\xa0"])),(t()(),Io(3,0,null,null,2,"strong",[],null,null,null,null,null)),(t()(),Io(4,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","i"]],null,null,null,null,null)),(t()(),Bl(-1,null,[" Select PDB entry from dropdown: "])),(t()(),Io(6,0,null,null,2,"select",[["onclick","gtag('event', 'molstar-dialog-select-pdb')"],["style","width:auto; font-weight: bold"]],null,[[null,"change"]],function(t,n,e){var i=!0;return"change"===n&&(i=!1!==t.component.updateView(e.target.value)&&i),i},null,null)),(t()(),So(16777216,null,null,1,null,HS)),fl(8,278528,null,0,Ma,[Oe,ke,Xe],{ngForOf:[0,"ngForOf"]},null)],function(t,n){t(n,8,0,n.component.dialogData.entryList)},null)}function $S(t){return zl(0,[(t()(),Io(0,0,null,null,7,"div",[["class","entrySelectionBox"]],null,null,null,null,null)),(t()(),Io(1,0,null,null,6,"div",[["class","entrySelectionBoxSuperpose"]],null,null,null,null,null)),(t()(),Io(2,0,null,null,2,"a",[["class","vf-button vf-button--secondary"],["onclick","gtag('event', 'molstar-dialog-superpose-data-download')"],["style","font-size: 75%; padding: 1em; margin: 1em; color: #217976;"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),Bl(-1,null,["Superposition data "])),(t()(),Io(4,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","x"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,2,"a",[["class","vf-button vf-button--secondary"],["href","https://github.com/PDBe-KB/pdbe-kb-manual/wiki/Structural-superposition"],["onclick","gtag('event', 'molstar-dialog-superpose-docs-access')"],["style","font-size: 75%; padding: 1em; margin: 1em; color: #217976;"],["target","_blank"]],null,null,null,null,null)),(t()(),Bl(-1,null,["Documentation "])),(t()(),Io(7,0,null,null,0,"i",[["class","icon icon-generic"],["data-icon","x"]],null,null,null,null,null))],null,function(t,n){var e=n.component;t(n,2,0,Po(2,"http://ftp.ebi.ac.uk/pub/databases/pdbe-kb/superposition/",e.dialogData.entryList[e.dialogData.current].accession[0],"/",e.dialogData.entryList[e.dialogData.current].accession,""))})}function GS(t){return zl(0,[(t()(),Io(0,0,null,null,2,"button",[["class","dialogCloseBtn"],["mat-mini-fab",""]],[[8,"disabled",0]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.closeDialog()&&i),i},FS,US)),fl(1,180224,null,0,VS,[_e,Nd,ag],null,null),(t()(),Io(2,0,null,0,0,"span",[["class","icon icon-functional"],["data-icon","x"],["style","font-size:12px;"]],null,null,null,null,null)),(t()(),So(16777216,null,null,1,null,qS)),fl(4,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),So(16777216,null,null,1,null,$S)),fl(6,16384,null,0,Ra,[Oe,ke],{ngIf:[0,"ngIf"]},null),(t()(),Io(7,0,null,null,1,"div",[["class","molstarBox"]],[[4,"height",null]],null,null,null,null)),(t()(),Io(8,0,null,null,0,"div",[["id","app"]],null,null,null,null,null))],function(t,n){var e=n.component;t(n,4,0,e.dialogData.entryList.length>1),t(n,6,0,e.dialogData.entryList[e.dialogData.current].superposition)},function(t,n){var e=n.component;t(n,0,0,nl(n,1).disabled||null),t(n,7,0,e.dialogData.entryList.length>1||e.dialogData.entryList[e.dialogData.current].superposition?"94%":"100%")})}function QS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-molstar-dialog-dialog",[],null,null,null,GS,zS)),fl(1,245760,null,0,pv,[Ef,Df],null,null)],function(t,n){t(n,1,0)},null)}var WS=qo("app-molstar-dialog-dialog",pv,QS,{},{},[]),KS=Ki({encapsulation:0,styles:[["h1[_ngcontent-%COMP%]{color:#222}.mat-dialog-content[_ngcontent-%COMP%]{margin:0!important;padding:0!important}a[_ngcontent-%COMP%]{color:#0932d6;outline:0}a[_ngcontent-%COMP%]:active{color:#896b25}a[_ngcontent-%COMP%]:visited{color:#58669e}.dialogCloseBtn[_ngcontent-%COMP%]{position:absolute;right:-20px;top:-20px;cursor:pointer;font-size:8px;z-index:9999}.tutorialBox[_ngcontent-%COMP%]{position:relative;width:100%;height:95%}"]],data:{}});function ZS(t){return zl(0,[(t()(),Io(0,0,null,null,11,"div",[["class","tutorialBox"]],null,null,null,null,null)),fl(1,278528,null,0,Ua,[Ye,_e,be],{ngStyle:[0,"ngStyle"]},null),(t()(),Io(2,0,null,null,2,"button",[["class","dialogCloseBtn"],["mat-mini-fab",""]],[[8,"disabled",0]],[[null,"click"]],function(t,n,e){var i=!0;return"click"===n&&(i=!1!==t.component.closeDialog()&&i),i},FS,US)),fl(3,180224,null,0,VS,[_e,Nd,ag],null,null),(t()(),Io(4,0,null,0,0,"span",[["class","icon icon-functional"],["data-icon","x"],["style","font-size:12px;"]],null,null,null,null,null)),(t()(),Io(5,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Io(6,0,null,null,5,"div",[["id","tutorial"]],null,null,null,null,null)),(t()(),Io(7,0,null,null,1,"h2",[],null,null,null,null,null)),(t()(),Bl(8,null,["",""])),(t()(),Io(9,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),Bl(10,null,["",""])),(t()(),Io(11,0,null,null,0,"iframe",[["allow","accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture"],["allowfullscreen",""],["autoplay","1"],["frameborder","1"],["height","500"],["width","100%"]],[[8,"src",5]],null,null,null,null))],function(t,n){t(n,1,0,n.component.getStyle())},function(t,n){var e=n.component;t(n,2,0,nl(n,3).disabled||null),t(n,8,0,e.dialogData.title),t(n,10,0,e.dialogData.text),t(n,11,0,e.sanitizer.bypassSecurityTrustResourceUrl(e.dialogData.url))})}function XS(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-tutorial",[],null,null,null,ZS,KS)),fl(1,49152,null,0,Ls,[Ef,Df,bc],null,null)],null,null)}var YS=qo("app-tutorial",Ls,XS,{},{},[]),JS=Ki({encapsulation:0,styles:[[".masthead[_ngcontent-%COMP%]{background-color:#085f5c!important}.masthead[_ngcontent-%COMP%] nav[_ngcontent-%COMP%]{background-color:rgba(17,17,17,.4)}h2[_ngcontent-%COMP%]{margin-bottom:25px}.partner-table[_ngcontent-%COMP%] td[_ngcontent-%COMP%]:first-child{font-weight:700}#main-content-area[_ngcontent-%COMP%] .row[_ngcontent-%COMP%]{margin-bottom:40px}.table-responsive[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{font-weight:700}#partner-details[_ngcontent-%COMP%] div[_ngcontent-%COMP%] p[_ngcontent-%COMP%]{text-align:justify}.partner-info[_ngcontent-%COMP%]{padding:0 20px}a[_ngcontent-%COMP%], a[_ngcontent-%COMP%]:hover, a[_ngcontent-%COMP%]:visited{border-bottom:none}"]],data:{}});function tI(t){return zl(0,[(t()(),Io(0,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),fl(1,212992,null,0,Bh,[Vh,Oe,jn,[8,null],Ee],null,null)],function(t,n){t(n,1,0)},null)}function nI(t){return zl(0,[(t()(),Io(0,0,null,null,1,"app-root",[],null,null,null,tI,JS)),fl(1,114688,null,0,ad,[Rh],null,null)],function(t,n){t(n,1,0)},null)}var eI=qo("app-root",ad,nI,{},{},[]),iI=new vt("mat-menu-scroll-strategy");function oI(t){return function(){return t.scrollStrategies.reposition()}}var lI=function(){return function(){}}(),rI=function(){function t(){}return t.prototype.create=function(t){return"undefined"==typeof MutationObserver?null:new MutationObserver(t)},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),aI=function(){return function(){}}(),sI=function(){return function(){}}(),uI=function(){return function(){}}(),cI=function(){function t(t,n){Ya(n)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(n,e){return{ngModule:t,providers:Array.isArray(e)?n.serverLoaded?[{provide:Zg,useValue:n},{provide:Vg,useValue:e,multi:!0},{provide:am,useValue:!0}]:[{provide:Zg,useValue:n},{provide:Vg,useValue:e,multi:!0}]:n.serverLoaded?[{provide:Zg,useValue:n},{provide:am,useValue:!0}]:[{provide:Zg,useValue:n}]}},t}(),pI=function(){return function(){}}(),hI=Kr(Xs,[ad],function(t){return function(t){for(var n={},e=[],i=!1,o=0;o<t.length;o++){var l=t[o];l.token===gn&&!0===l.value&&(i=!0),1073741824&l.flags&&e.push(l.token),l.index=o,n[$i(l.token)]=l}return{factory:null,providersByKey:n,providers:t,modules:e,isRoot:i}}([Lo(512,jn,Vn,[[8,[dg,Tg,jg,ux,Vx,bP,jP,iC,QC,RS,WS,YS,uw,eI]],[3,jn],Un]),Lo(5120,ii,ri,[[3,ii]]),Lo(4608,ka,Oa,[ii,[2,Ia]]),Lo(5120,_n,wn,[]),Lo(5120,Xe,oi,[]),Lo(5120,Ye,li,[]),Lo(4608,bc,_c,[Wa]),Lo(6144,Ai,null,[bc]),Lo(4608,hc,fc,[]),Lo(5120,Bu,function(t,n,e,i,o,l,r,a){return[new cc(t,n,e),new vc(i),new gc(o,l,r,a)]},[Wa,Wn,Cn,Wa,Wa,hc,In,[2,dc]]),Lo(4608,Uu,Uu,[Bu,Wn]),Lo(135680,Hu,Hu,[Wa]),Lo(4608,Zu,Zu,[Uu,Hu]),Lo(4608,bb,vb,[]),Lo(5120,r_,$_,[]),Lo(4608,N_,q_,[Wa,bb,r_]),Lo(5120,ye,G_,[Zu,N_,Wn]),Lo(6144,zu,null,[Hu]),Lo(4608,ee,ee,[Wn]),Lo(4608,sd,j_,[ye,Du]),Lo(4608,wf,wf,[pf,df,jn,bf,hf,Ft,Wn,Wa,Ed]),Lo(5120,xf,Pf,[wf]),Lo(5120,Mf,Tf,[wf]),Lo(4608,Rf,Rf,[wf,Ft,[2,va],[2,Af],Mf,[3,Rf],df]),Lo(5120,iI,oI,[wf]),Lo(4608,ks,Os,[Wa,Cn,Ss]),Lo(4608,Es,Es,[ks,Is]),Lo(5120,bs,function(t){return[t]},[Es]),Lo(4608,Ps,Ps,[]),Lo(6144,xs,null,[Ps]),Lo(4608,Cs,Cs,[xs]),Lo(6144,es,null,[Cs]),Lo(4608,ns,Ds,[es,Ft]),Lo(4608,ys,ys,[ns]),Lo(4608,oy,oy,[]),Lo(4608,im,om,[Yg,tm]),Lo(5120,rd,ld,[id]),Lo(5120,Sn,function(t,n,e){return[(i=t,o=n,function(){if(Xa(o)){var t=Array.from(i.querySelectorAll("[class*=flex-layout-]")),n=/\bflex-layout-.+?\b/g;t.forEach(function(t){t.classList.contains("flex-layout-ssr")&&t.parentNode?t.parentNode.removeChild(t):t.className.replace(n,"")})}}),e];var i,o},[Wa,Cn,rd]),Lo(4608,rI,rI,[]),Lo(5120,Ig,kg,[wf]),Lo(4608,Vy,Vy,[]),Lo(5120,Qp,ed,[Rh]),Lo(4608,Hh,Hh,[]),Lo(6144,Fh,null,[Hh]),Lo(135680,qh,qh,[Rh,we,On,Ft,Fh]),Lo(4608,zh,zh,[]),Lo(5120,$h,Xh,[Rh,Ja,Gh]),Lo(4608,Ts,Ts,[ys]),Lo(4608,$v,$v,[ys]),Lo(1073742336,Qa,Qa,[]),Lo(1024,fn,Oc,[]),Lo(1024,ue,function(){return[Kh()]},[]),Lo(512,id,id,[Ft]),Lo(1024,vn,function(t,n){return[(e=t,Nu("probe",Vu),Nu("coreTokens",l({},ju,(e||[]).reduce(function(t,n){return t[n.name]=n.token,t},{}))),function(){return Vu}),od(n)];var e},[[2,ue],id]),Lo(512,bn,bn,[[2,vn]]),Lo(131584,fe,fe,[Wn,In,Ft,fn,jn,bn]),Lo(1073742336,ai,ai,[fe]),Lo(1073742336,Ec,Ec,[[3,Ec]]),Lo(1073742336,W_,W_,[]),Lo(1073742336,Dd,Dd,[]),Lo(1073742336,Bf,Bf,[[2,Vf]]),Lo(1073742336,Vd,Vd,[]),Lo(1073742336,Xf,Xf,[]),Lo(1073742336,BS,BS,[]),Lo(1073742336,Cd,Cd,[]),Lo(1073742336,Xd,Xd,[]),Lo(1073742336,Cf,Cf,[]),Lo(1073742336,jf,jf,[]),Lo(1073742336,lI,lI,[]),Lo(1073742336,sI,sI,[]),Lo(1073742336,As,As,[]),Lo(1073742336,Ms,Ms,[]),Lo(1073742336,By,By,[]),Lo(1073742336,Uy,Uy,[]),Lo(1073742336,lm,lm,[]),Lo(1073742336,Nm,Nm,[]),Lo(1073742336,Um,Um,[]),Lo(1073742336,uI,uI,[]),Lo(1073742336,cI,cI,[[2,am],Cn]),Lo(1073742336,Yv,Yv,[]),Lo(1073742336,aI,aI,[]),Lo(1073742336,pI,pI,[]),Lo(1073742336,Eg,Eg,[]),Lo(1024,Qh,Jh,[[3,Rh]]),Lo(512,gp,mp,[]),Lo(512,Vh,Vh,[]),Lo(256,Gh,{},[]),Lo(1024,ma,Yh,[fa,[2,ya],Gh]),Lo(512,va,va,[ma]),Lo(512,On,On,[]),Lo(512,we,Se,[On,[2,Pe]]),Lo(1024,kh,function(){return[[{path:":accession",component:Ns},{path:":accession/structures",component:js},{path:":accession/ligands",component:Us},{path:":accession/interactions",component:Hs},{path:":accession/annotations",component:Gs},{path:":accession/similarity",component:Qs},{path:":accession/publications",component:Zs}]]},[]),Lo(1024,Rh,nd,[fe,gp,Vh,va,Ft,we,On,kh,Gh,[2,Eh],[2,Sh]]),Lo(1073742336,Zh,Zh,[[2,Qh],[2,Rh]]),Lo(1073742336,Fy,Fy,[]),Lo(1073742336,Xs,Xs,[]),Lo(256,gn,!0,[]),Lo(256,Q_,"NoopAnimations",[]),Lo(256,Ss,"XSRF-TOKEN",[]),Lo(256,Is,"X-XSRF-TOKEN",[])])});Xr.production&&function(){if(re)throw new Error("Cannot enable prod mode after platform setup.");le=!1}(),kc().bootstrapModuleFactory(hI).catch(function(t){return console.error(t)})}},[[0,0]]]);