diff --git a/server/src/uds/static/modern/3rdpartylicenses.txt b/server/src/uds/static/modern/3rdpartylicenses.txt index eb8c94ec..ae6d6327 100644 --- a/server/src/uds/static/modern/3rdpartylicenses.txt +++ b/server/src/uds/static/modern/3rdpartylicenses.txt @@ -44,6 +44,10 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +web-animations-js@2.3.1 +Apache-2.0 +Apache-2.0 + zone.js@0.8.26 MIT The MIT License @@ -68,7 +72,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -rxjs@6.2.2 +rxjs@6.3.2 Apache-2.0 Apache License Version 2.0, January 2004 diff --git a/server/src/uds/static/modern/main.js b/server/src/uds/static/modern/main.js index f7c5e5f7..37d0b4d7 100644 --- a/server/src/uds/static/modern/main.js +++ b/server/src/uds/static/modern/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[3],{"+umK":function(t,e,n){"use strict";function r(){}n.d(e,"a",function(){return r})},"/21U":function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("isby");function i(t){return!Object(r.a)(t)&&t-parseFloat(t)+1>=0}},"2Bdj":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},4:function(t,e,n){t.exports=n("zUnb")},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),a=n("xTla"),s=n("y3By"),l=n("iLxQ");n.d(e,"a",function(){return u});var u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?a.call(s,this.source):s.add(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e0&&(this.auth.value=this.auths[0].id)},LoginComponent.prototype.changeAuth=function(auth){var _this=this;this.auth.value=auth;for(var doCustomAuth=function(data){_this.visible=!1,eval(data)},_i=0,_a=this.auths;_i<_a.length;_i++){var l=_a[_i];l.id===auth&&l.is_custom&&this.api.getAuthCustomHtml(l.id).subscribe(function(t){return doCustomAuth(t)})}},LoginComponent}()},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},Ehmk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r,i=n("eihs");function o(){try{return r.apply(this,arguments)}catch(t){return i.a.e=t,i.a}}function a(t){return r=t,o}},FFOo:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),a=n("pugT"),s=n("L/V9"),l=n("iLxQ"),u=n("DKTb"),c=function(t){function e(e,n,r){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,arguments.length){case 0:i.destination=o.a;break;case 1:if(!e){i.destination=o.a;break}if("object"==typeof e){if(h(e)){var a=e[s.a]();i.syncErrorThrowable=a.syncErrorThrowable,i.destination=a,a.add(i)}else i.syncErrorThrowable=!0,i.destination=new p(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new p(i,e,n,r)}return i}return r.b(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this},e}(a.a),p=function(t){function e(e,n,r,a){var s,l=t.call(this)||this;l._parentSubscriber=e;var u=l;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(u=Object.create(n),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=s,l._error=r,l._complete=a,l}return r.b(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=l.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),l.a.useDeprecatedSynchronousErrorHandling)throw t;Object(u.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return l.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(u.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c);function h(t){return t instanceof c||"syncErrorThrowable"in t&&t[s.a]}},KIbp:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("wlNb"),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("OPAf"),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ePv7"),_environments_environment__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("AytR"),UDSApiService=function(){function UDSApiService(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_0__.a(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.a(this)}return Object.defineProperty(UDSApiService.prototype,"config",{get:function(){return udsData.config},enumerable:!0,configurable:!0}),Object.defineProperty(UDSApiService.prototype,"plugins",{get:function(){return udsData.plugins},enumerable:!0,configurable:!0}),UDSApiService.prototype.enabler=function(t,e){var n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)},UDSApiService.prototype.galleryImageURL=function(t){return this.config.urls.galleryImage.replace("param1",t)},UDSApiService.prototype.transportIconURL=function(t){return this.config.urls.transportIcon.replace("param1",t)},UDSApiService.prototype.staticURL=function(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_3__.a.production?this.config.urls.static+t:"/static"+t},UDSApiService.prototype.getServicesInformation=function(){return this.http.get(this.config.urls.services)},UDSApiService.prototype.executeCustomJSForServiceLaunch=function(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)},UDSApiService.prototype.gotoAdmin=function(){window.location.href=this.config.urls.admin},UDSApiService.prototype.logout=function(){window.location.href=this.config.urls.logout},UDSApiService.prototype.launchURL=function(t){this.plugin.launchURL(t)},UDSApiService.prototype.getAuthCustomHtml=function(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})},UDSApiService}()},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber"},McSo:function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.d(e,"a",function(){return r})},OPAf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YY/e"),i=function(){function t(t){this.dialog=t}return t.prototype.alert=function(t,e,n){void 0===n&&(n=0);var i=window.innerWidth<800?"80%":"40%";this.dialog.open(r.a,{width:i,data:{title:t,body:e,autoclose:n},disableClose:!0})},t}()},T1DM:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("h9Dq"),i=new(n("CS9Q").a)(r.a)},"YY/e":function(t,e,n){"use strict";var r=n("6blF"),i=n("T1DM"),o=n("/21U");function a(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}n.d(e,"a",function(){return s});var s=function(){function t(t,e){this.dialogRef=t,this.data=e,this.subscription=null}return t.prototype.closed=function(){null!==this.subscription&&this.subscription.unsubscribe()},t.prototype.close=function(){this.dialogRef.close()},t.prototype.setExtra=function(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "},t.prototype.ngOnInit=function(){var t,e,n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe(function(t){n.closed()}),this.setExtra(this.data.autoclose),this.subscription=(t=1e3,void 0===t&&(t=0),void 0===e&&(e=i.a),(!Object(o.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=i.a),new r.a(function(n){return n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n})).subscribe(function(t){var e=n.data.autoclose-1e3*(t+1);n.setExtra(e),e<=0&&n.close()}))},t}()},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},ePv7:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.api=t}return t.prototype.doLaunch=function(t){this.api.gui.alert(django.gettext("Launching service"),'

'+django.gettext("Please wait")+'

'+django.gettext("Remember that UDS Plugin is required in order for this service to be launched")+"

",5e3);var e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t},t.prototype.launchURL=function(e){var n=this;if("udsa://"===e.substring(0,7)){var r=e.split("//")[1].split("/");this.api.enabler(r[0],r[1]).subscribe(function(t){void 0!==t.error&&""!==t.error?alert(t.error):("https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n.doLaunch(t.url))})}else null!==t.transportsWindow&&t.transportsWindow.close(),t.transportsWindow=window.open(e,"uds_transport_window")},t.transportsWindow=null,t}()},eihs:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},h9Dq:function(t,e,n){"use strict";var r=n("mrSG"),i=function(t){function e(e,n){return t.call(this)||this}return r.b(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("pugT").a);n.d(e,"a",function(){return o});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.b(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i)},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},mrSG:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(b);function P(t){return t}function A(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),O(P,t)}function R(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof a&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.a?t[0]:A(n)(S(t,r))}var D=function(t){function e(){var n=t.call(this,"object unsubscribed")||this;return n.name="ObjectUnsubscribedError",Object.setPrototypeOf(n,e.prototype),n}return r.b(e,t),e}(Error),j=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.b(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(E.a),M=n("L/V9"),N=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.b(e,t),e}(a.a),L=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.b(e,t),e.prototype[M.a]=function(){return new N(this)},e.prototype.lift=function(t){var e=new F(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new D;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),H=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.b(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new E.a).add(this.source.subscribe(new q(this.getSubject(),this))),t.closed?(this._connection=null,t=E.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return V()(this)},e}(i.a).prototype,U={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:H._subscribe},_isComplete:{value:H._isComplete,writable:!0},getSubject:{value:H.getSubject},connect:{value:H.connect},refCount:{value:H.refCount}},q=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.b(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(N);function Q(){return new L}function K(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var W=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?K({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),G="__parameters__";function Y(t,e,n){var i=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):ot(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(St,"\n ")}function Pt(t,e){return new Error(Tt(t,e))}var At=void 0;function Rt(t){var e=At;return At=t,e}function Dt(t,e){if(void 0===e&&(e=0),void 0===At)throw new Error("inject() must be called from an injection context");if(null===At){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+ot(t)+"]")}return At.get(t,8&e?null:void 0,e)}function jt(t){for(var e=[],n=0;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),Be=function(){function t(){this._applications=new Map,He.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},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,e){return void 0===e&&(e=!0),He.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),He=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ue=!0,qe=!1,Qe=new W("AllowMultipleToken");function Ke(){return qe=!0,Ue}var We=function(t,e){this.name=t,this.token=e};function Ge(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new W(r);return function(e){void 0===e&&(e=[]);var o=Ye();if(!o||o.injector.get(Qe,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Fe&&!Fe.destroyed&&!Fe.injector.get(Qe,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Fe=t.get(Ze);var e=t.get(le,null);e&&e.forEach(function(t){return t()})}(gt.create({providers:a,name:r}))}return function(t){var e=Ye();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Ye(){return Fe&&!Fe.destroyed?Fe:null}var Ze=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new Ve:("zone.js"===n?void 0:n)||new Re({enableLongStackTrace:Ke()}),o=[{provide:Re,useValue:i}];return i.run(function(){var e=gt.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(Ut,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Je(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(ie)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ee(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(fe),i=Xe({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get($e);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+ot(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(e)}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 Xe(t,e){return Array.isArray(e)?e.reduce(Xe,t):Object(r.a)({},t,e)}var $e=function(){function t(t,e,n,r,o,a){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=Ke(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new i.a(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new i.a(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){Re.assertNotInAngularZone(),rt(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){Re.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=R(l,u.pipe(function(t){return V()((e=Q,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,U);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ye?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Ee?null:this._injector.get(Se),o=n.create(gt.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(ze,null);return a&&o.injector.get(Be).registerApplication(o.location.nativeElement,a),this._loadComponent(o),Ke()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Pe(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Je(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(ce,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Je(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=Te("ApplicationRef#tick()"),t}();function Je(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var tn=function(){},en=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),nn=function(){},rn=function(t){this.nativeElement=t},on=function(){},an=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Ae,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,e){return this._results.reduce(t,e)},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[nt()]=function(){return this._results[nt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(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}(),sn=function(){},ln={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},un=function(){function t(t,e){this._compiler=t,this._config=e||ln}return t.prototype.load=function(t){return this._compiler instanceof de?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=Object(r.c)(t.split("#"),2),o=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(t){return t[a]}).then(function(t){return cn(t,o,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.c)(t.split("#"),2),i=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+a]}).then(function(t){return cn(t,i,o)})},t}();function cn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var pn=function(){},hn=function(){},dn=function(){},fn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof mn?e.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}(),mn=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,i=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.d)([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=i}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof mn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof mn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof mn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(fn),yn=new Map;function gn(t){return yn.get(t)||null}function vn(t){yn.set(t.nativeNode,t)}function _n(t,e){var n=xn(t),r=xn(e);return n&&r?function(t,e,n){for(var r=t[nt()](),i=e[nt()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,_n):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||it(t,e)}var bn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),wn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function xn(t){return!!Cn(t)&&(Array.isArray(t)||!(t instanceof Map)&&nt()in t)}function Cn(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var En=function(){function t(){}return t.prototype.supports=function(t){return xn(t)},t.prototype.create=function(t){return new kn(t)},t}(),Sn=function(t,e){return e},kn=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||Sn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',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=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();nr.hasOwnProperty(e)&&!$n.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(ur(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&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 e},t}(),sr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,lr=/([^\#-~ |!])/g;function ur(t){return t.replace(/&/g,"&").replace(sr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(lr,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function cr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var pr=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"),hr=/^url\(([^)]+)\)$/,dr=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}({}),fr=function(){};function mr(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function yr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function gr(t,e){return t.nodes[e]}function vr(t,e){return t.nodes[e]}function _r(t,e){return t.nodes[e]}function br(t,e){return t.nodes[e]}function wr(t,e){return t.nodes[e]}var xr={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 Cr(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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,e){var n=new Error(t);return Er(n,e),n}(i,t)}function Er(t,e){t[Lt]=e,t[Vt]=e.logError.bind(e)}function Sr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var kr=function(){},Or=new Map;function Ir(t){var e=Or.get(t);return e||(e=ot(t)+"_"+Or.size,Or.set(t,e)),e}function Tr(t,e,n,r){if(bn.isWrapped(r)){r=bn.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=bn.unwrap(t.oldValues[i]);t.oldValues[i]=new bn(o)}return r}var Pr="$$undefined",Ar="$$empty";function Rr(t){return{id:Pr,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var Dr=0;function jr(t,e,n,r){return!(!(2&t.state)&&it(t.oldValues[e.bindingIndex+n],r))}function Mr(t,e,n,r){return!!jr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Nr(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!_n(i,r)){var o=e.bindings[n].name;throw Cr(xr.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Lr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Fr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Vr(t,e,n,r){try{return Lr(33554432&t.def.nodes[e].flags?vr(t,e).componentView:t),xr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function zr(t){return t.parent?vr(t.parent,t.parentNodeDef.nodeIndex):null}function Br(t){return t.parent?t.parentNodeDef.parent:null}function Hr(t,e){switch(201347067&e.flags){case 1:return vr(t,e.nodeIndex).renderElement;case 2:return gr(t,e.nodeIndex).renderText}}function Ur(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function qr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Qr(t){return 1<-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=di,t._providers[u]=_i(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Rt(o)}}function _i(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(vi(t,n[0]));case 2:return new e(vi(t,n[0]),vi(t,n[1]));case 3:return new e(vi(t,n[0]),vi(t,n[1]),vi(t,n[2]));default:for(var o=new Array(i),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Ei(n,e),xr.dirtyParentQueries(r),xi(r),r}function wi(t,e,n){var r=e?Hr(e,e.def.lastRenderRootNode):t.renderElement;Xr(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function xi(t){Xr(t,3,null,null,void 0)}function Ci(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Ei(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Si=new Object;function ki(t,e,n,r,i,o){return new Oi(t,e,n,r,i,o)}var Oi=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Zr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=xr.createRootView(t,e||[],n,i,r,Si),s=_r(a,o).instance;return n&&a.renderer.setAttribute(vr(a,0).renderElement,"ng-version",Nt.full),new Ii(a,new Ri(a),s)},e}(ye),Ii=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new rn(vr(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Ni(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(me);function Ti(t,e,n){return new Pi(t,e,n)}var Pi=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new rn(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Ni(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Br(t),t=t.parent;return t?new Ni(t,e):new Ni(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=bi(this._data,t);xr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Ri(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Ee||(i=o.get(Se));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return i=a._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Ci(o,r,i),function(t,e){var n=zr(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),xr.dirtyParentQueries(i),wi(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Ei(o,r),null==i&&(i=o.length),Ci(o,i,a),xr.dirtyParentQueries(a),xi(a),wi(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=bi(this._data,t);e&&xr.destroyView(e)},t.prototype.detach=function(t){var e=bi(this._data,t);return e?new Ri(e):null},t}();function Ai(t){return new Ri(t)}var Ri=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return Xr(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(){Lr(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{xr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){xr.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)),xr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,xi(this._view),xr.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 Di(t,e){return new ji(t,e)}var ji=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new Ri(xr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new rn(vr(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(pn);function Mi(t,e){return new Ni(t,e)}var Ni=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=gt.THROW_IF_NOT_FOUND),xr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Ir(t)},e)},t}();function Li(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=vr(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return gr(t,n.nodeIndex).renderText;if(20240&n.flags)return _r(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Fi(t){return new Vi(t.renderer)}var Vi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.c)(ri(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,i=e.provider;switch(201347067&e.flags){case 512:return oo(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,o){var a=o.length;switch(a){case 0:return i();case 1:return i(so(t,e,n,o[0]));case 2:return i(so(t,e,n,o[0]),so(t,e,n,o[1]));case 3:return i(so(t,e,n,o[0]),so(t,e,n,o[1]),so(t,e,n,o[2]));default:for(var s=Array(a),l=0;l0)u=m,Io(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&Io(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||kr,updateRenderer:r||kr,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function Io(t){return 0!=(1&t.flags)&&null===t.element.name}function To(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.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 "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Po(t,e,n,r){var i=Do(t.root,t.renderer,t,e,n);return jo(i,t.component,r),Mo(i),i}function Ao(t,e,n){var r=Do(t,t.renderer,null,null,e);return jo(r,n,n),Mo(r),r}function Ro(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,Do(t.root,i,t,e.element.componentProvider,n)}function Do(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function jo(t,e,n){t.component=e,t.context=n}function Mo(t){var e;Ur(t)&&(e=vr(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&hi(t,e,0,n)&&(d=!0),h>1&&hi(t,e,1,r)&&(d=!0),h>2&&hi(t,e,2,i)&&(d=!0),h>3&&hi(t,e,3,o)&&(d=!0),h>4&&hi(t,e,4,a)&&(d=!0),h>5&&hi(t,e,5,s)&&(d=!0),h>6&&hi(t,e,6,l)&&(d=!0),h>7&&hi(t,e,7,u)&&(d=!0),h>8&&hi(t,e,8,c)&&(d=!0),h>9&&hi(t,e,9,p)&&(d=!0),d}(t,e,n,r,i,o,a,s,l,u,c,p);case 2:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&Mr(t,e,0,n)&&(h=!0),f>1&&Mr(t,e,1,r)&&(h=!0),f>2&&Mr(t,e,2,i)&&(h=!0),f>3&&Mr(t,e,3,o)&&(h=!0),f>4&&Mr(t,e,4,a)&&(h=!0),f>5&&Mr(t,e,5,s)&&(h=!0),f>6&&Mr(t,e,6,l)&&(h=!0),f>7&&Mr(t,e,7,u)&&(h=!0),f>8&&Mr(t,e,8,c)&&(h=!0),f>9&&Mr(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;f>0&&(m+=ko(n,d[0])),f>1&&(m+=ko(r,d[1])),f>2&&(m+=ko(i,d[2])),f>3&&(m+=ko(o,d[3])),f>4&&(m+=ko(a,d[4])),f>5&&(m+=ko(s,d[5])),f>6&&(m+=ko(l,d[6])),f>7&&(m+=ko(u,d[7])),f>8&&(m+=ko(c,d[8])),f>9&&(m+=ko(p,d[9]));var y=gr(t,e.nodeIndex).renderText;t.renderer.setValue(y,m)}return h}(t,e,n,r,i,o,a,s,l,u,c,p);case 16384:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=_r(t,e.nodeIndex),d=h.instance,f=!1,m=void 0,y=e.bindings.length;return y>0&&jr(t,e,0,n)&&(f=!0,m=uo(t,h,e,0,n,m)),y>1&&jr(t,e,1,r)&&(f=!0,m=uo(t,h,e,1,r,m)),y>2&&jr(t,e,2,i)&&(f=!0,m=uo(t,h,e,2,i,m)),y>3&&jr(t,e,3,o)&&(f=!0,m=uo(t,h,e,3,o,m)),y>4&&jr(t,e,4,a)&&(f=!0,m=uo(t,h,e,4,a,m)),y>5&&jr(t,e,5,s)&&(f=!0,m=uo(t,h,e,5,s,m)),y>6&&jr(t,e,6,l)&&(f=!0,m=uo(t,h,e,6,l,m)),y>7&&jr(t,e,7,u)&&(f=!0,m=uo(t,h,e,7,u,m)),y>8&&jr(t,e,8,c)&&(f=!0,m=uo(t,h,e,8,c,m)),y>9&&jr(t,e,9,p)&&(f=!0,m=uo(t,h,e,9,p,m)),m&&d.ngOnChanges(m),65536&e.flags&&yr(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,i,o,a,s,l,u,c,p);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&Mr(t,e,0,n)&&(d=!0),f>1&&Mr(t,e,1,r)&&(d=!0),f>2&&Mr(t,e,2,i)&&(d=!0),f>3&&Mr(t,e,3,o)&&(d=!0),f>4&&Mr(t,e,4,a)&&(d=!0),f>5&&Mr(t,e,5,s)&&(d=!0),f>6&&Mr(t,e,6,l)&&(d=!0),f>7&&Mr(t,e,7,u)&&(d=!0),f>8&&Mr(t,e,8,c)&&(d=!0),f>9&&Mr(t,e,9,p)&&(d=!0),d){var m=br(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),f>0&&(y[0]=n),f>1&&(y[1]=r),f>2&&(y[2]=i),f>3&&(y[3]=o),f>4&&(y[4]=a),f>5&&(y[5]=s),f>6&&(y[6]=l),f>7&&(y[7]=u),f>8&&(y[8]=c),f>9&&(y[9]=p);break;case 64:y={},f>0&&(y[h[0].name]=n),f>1&&(y[h[1].name]=r),f>2&&(y[h[2].name]=i),f>3&&(y[h[3].name]=o),f>4&&(y[h[4].name]=a),f>5&&(y[h[5].name]=s),f>6&&(y[h[6].name]=l),f>7&&(y[h[7].name]=u),f>8&&(y[h[8].name]=c),f>9&&(y[h[9].name]=p);break;case 128:var g=n;switch(f){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,i);break;case 4:y=g.transform(r,i,o);break;case 5:y=g.transform(r,i,o,a);break;case 6:y=g.transform(r,i,o,a,s);break;case 7:y=g.transform(r,i,o,a,s,l);break;case 8:y=g.transform(r,i,o,a,s,l,u);break;case 9:y=g.transform(r,i,o,a,s,l,u,c);break;case 10:y=g.transform(r,i,o,a,s,l,u,c,p)}}m.value=y}return d}(t,e,n,r,i,o,a,s,l,u,c,p);default:throw"unreachable"}}(t,e,i,o,a,s,l,u,c,p,h,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&Nr(t,e,0,n),h>1&&Nr(t,e,1,r),h>2&&Nr(t,e,2,i),h>3&&Nr(t,e,3,o),h>4&&Nr(t,e,4,a),h>5&&Nr(t,e,5,s),h>6&&Nr(t,e,6,l),h>7&&Nr(t,e,7,u),h>8&&Nr(t,e,8,c),h>9&&Nr(t,e,9,p)}(t,e,r,i,o,a,s,l,u,c,p,h):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);ra.forEach(function(e,r){if(o.has(r.ngInjectableDef.providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:Wr(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Ir(r)]=i}})}}(t=t.factory(function(){return kr})),t):t}(r))}var na=new Map,ra=new Map,ia=new Map;function oa(t){na.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ra.set(t.token,t)}function aa(t,e){var n=Zr(Zr(e.viewDefFactory).nodes[0].element.componentView);ia.set(t,n)}function sa(){na.clear(),ra.clear(),ia.clear()}function la(t){if(0===na.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function cs(t){return Array.isArray(t)?t[0]:t}function ps(t){if(2===t.tNode.type){var e=t.data;return e[Ba]?e[Ba][qa]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function hs(t){return t.tNode.child?cs((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function ds(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[Xa];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return cs(n?t.view[n.index]:t.view[qa])}var fs=[];function ms(t){for(var e=t[qa];2===e.tNode.type;)ngDevMode&&Na(t[za],"lViewData.parent"),e=(t=t[za])[qa];return ngDevMode&&us(e,3),ngDevMode&&Na(e.data,"node.data"),e}function ys(t,e,n,r,i){0===t?ss(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?ss(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function gs(t){if(-1===t[Va].childIndex)return null;var e=t[t[Va].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function vs(t,e){var n;return(n=t[qa])&&2===n.tNode.type?ds(n).data:t[za]===e?null:t[za]}function _s(t){if(t[Va]){var e=t;!function(t){var e=t[Va].cleanup;if(null!=e){for(var n=0;n=h.length){var d=h[p]=Gs(e,p,r,i,s,null);if(!Cs&&xs){var f=xs.tNode;f.next=d,f.dynamicContainerNode&&(f.dynamicContainerNode.next=d)}}c.tNode=h[p],Cs&&(Ss=null,(null==xs.tNode.child&&xs.view===Os||2===xs.tNode.type)&&(xs.tNode.child=c.tNode))}if(2==(2&e)&&u){var m=o;ngDevMode&&null!=m[qa]&&La("lViewData[HOST_NODE] should not have been initialized"),m[qa]=c,js&&(m[Va].node=c.tNode)}return xs=c,Cs=!0,c}function Bs(t,e,n,r){var i,o=Cs,a=xs;if(null==t.data[za]&&t.data[Ga]&&!e.template)Xs(t.data[Ga]);else try{Cs=!0,xs=null,i=Ms(t.data,t),Qs(),e.template(r,n),2&r?Ls():t.data[Va].firstTemplatePass=js=!1}finally{Ns(i,1==(1&r)),Cs=o,xs=a}return t}function Hs(t,e,n,r){var i=Ms(e,t);try{ws.begin&&ws.begin(),r?(Qs(),r(Us(e),n),Ls()):(Ds||(es(Os,Es,ks),ns(Is,Es.contentHooks,Es.contentCheckHooks,ks)),Fs(As),Ys(0,Fa))}finally{ws.end&&ws.end(),Ns(i)}}function Us(t){return 1&t[Ua]?3:2}var qs=null;function Qs(){qs=null}function Ks(t,e,n,r,i){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:i,node:null,data:Rs.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function Ws(t,e){ngDevMode&&el(-1),ws=t;var n,r=t.createRenderer(null,null),i="string"==typeof e?ss(r)?r.selectRootElement(e):r.querySelector(e):e;if(ngDevMode&&!i)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+("function"==typeof(n=e)?n.name||n:"string"==typeof n?n:null==n?"":""+n)+"]");return i}function Gs(t,e,n,r,i,o){return ngDevMode&&ngDevMode.tNode++,{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Ys(t,e){ngDevMode&&el(e);var n=Os[e];ngDevMode&&us(n,3),ngDevMode&&Na(n.data,"Component's host node should have an LViewData attached.");var r=n.data;Zs(r)&&6&r[Ua]&&(ngDevMode&&el(t,Is),tl(r,n,Is[t]))}function Zs(t){return 8==(8&t[Ua])}function Xs(t){for(var e=0;e=(e?e.length:0)&&La("index expected to be a valid data index")}(t,e||Os)}function nl(t,e){null==e&&(e=Os),Ma(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function rl(t){ngDevMode&&Na(t,"expecting component got null");var e=t[Ts];return ngDevMode&&Na(t,"object is not a component"),e}var il=Ps;function ol(t){return{components:[],scheduler:t,clean:il}}var al=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[Ua])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Zs(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),ss(e=(t=this._view)[Za])&&e.destroyNode&&function(e,n,r,i,o,a){for(var s=t[qa],l=-1;s;){var u=null,c=s.tNode.type;if(3===c)ys(2,i,null,s.native,a),s.dynamicLContainerNode&&ys(2,i,null,s.dynamicLContainerNode.native,a);else if(0===c){ys(2,i,null,s.native,a);var p=s,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(u=h[os].length?hs(h[os][0]):null)&&(a=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var d=ms(s.view),f=d.tNode.projection[s.tNode.projection];fs[++l]=s,u=f?d.data[za][f.index]:null}else u=hs(s);if(null===u)for(null===(u=ps(s))&&8192&s.tNode.flags&&(u=ps(fs[l--]));s&&!u;){if(null===(s=ds(s))||s===n)return null;s.tNode.next||0!==c||(a=s.native),u=ps(s)}s=u}}(0,t[qa],0,e),function(t){if(-1===t[Va].childIndex)return _s(t);for(var e=gs(t);e;){var n=null;if(e.length>=Fa?e[Va].childIndex>-1&&(n=gs(e)):e[os].length&&(n=e[os][0].data),null==n){for(;e&&!e[Ba]&&e!==t;)_s(e),e=vs(e,t);_s(e||t),n=e&&e[Ba]}e=n}}(t),t[Ua]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[Wa]||(t[Wa]=[])}(e=this._view).push(n),e[Va].firstTemplatePass&&function(t){return t[Va].cleanup||(t[Va].cleanup=[])}(e).push(e[Wa].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[za];)e[Ua]|=4,e=e[za];var n,r;e[Ua]|=4,ngDevMode&&Na(e[Ga],"rootContext"),(n=e[Ga]).clean==Ps&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){Xs(n),r(null),n.clean=Ps}))}(this._view)},t.prototype.detach=function(){this._view[Ua]&=-9},t.prototype.reattach=function(){this._view[Ua]|=8},t.prototype.detectChanges=function(){Js(this.context)},t.prototype.checkNoChanges=function(){!function(t){Ds=!0;try{Js(t)}finally{Ds=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),sl=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.resolveComponentFactory=function(t){return ngDevMode&&(void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||La(e)),new pl(t.ngComponentDef);var e},e}(xe);function ll(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var ul=new W("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return ol(Dt(cl))}}),cl=new W("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),pl=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return ll(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return ll(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o,a=void 0===n,s=r?r.injector.get(tn):ls,l=a?(i=this.selector,ss(o=s.createRenderer(null,this.componentDef.rendererType)||bs)?o.createElement(i,qs):null===qs?o.createElement(i):o.createElementNS(qs,i)):Ws(s,n),u=r&&!a?r.injector.get(ul):ol(requestAnimationFrame.bind(window)),c=Vs(s.createRenderer(l,this.componentDef.rendererType),Ks(-1,null,null,null,null),u,this.componentDef.onPush?4:2);c[Ya]=r&&r.injector||null;var p,h,d=Ms(c,null);try{if(s.begin&&s.begin(),h=function(t,e,n,r){Cs=!1,xs=null;var i,o=zs(0,3,e,null,null,Vs(bs,(i=n.template).ngPrivateData||(i.ngPrivateData=Ks(-1,i,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return js&&(o.tNode.flags=4096,n.diPublic&&n.diPublic(n),Es.directives=[n]),o}(0,l,this.componentDef),u.components.push(p=function(t,e,n){if(ngDevMode&&Ma(Os[Qa],-1,"directives should be created before any bindings"),ngDevMode&&Ma(Cs,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,Ts,{enumerable:!1,value:xs}),null==Is&&(Os[Ka]=Is=[]),ngDevMode&&nl(t,Is),Is[t]=e,js){var r=xs.tNode.flags;0==(4095&r)?xs.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&La("Reached the max number of directives"),xs.tNode.flags++)}else{var i=n.diPublic;i&&i(n)}return null!=n.attributes&&3==xs.tNode.type&&function(t,e){for(var n=ss(bs),r=0;r>14,r=n+(4095&t),i=n;i=2;return function(r){return r.pipe(t?El(function(e,n){return t(e,n,r)}):P,Il(1),n?Al(e):Vl(function(){return new Cl}))}}function Hl(t,e){return function(n){return n.lift(new Ul(t,e,n))}}var Ul=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new ql(t,this.predicate,this.thisArg,this.source))},t}(),ql=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.b(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(a.a);function Ql(t,e){return O(t,e,1)}function Kl(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new Wl(t,e,n))}}var Wl=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Gl(t,this.accumulator,this.seed,this.hasSeed))},t}(),Gl=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.b(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(a.a);function Yl(t){return function(e){return 0===t?bl():e.lift(new Zl(t))}}var Zl=function(){function t(t){if(this.total=t,this.total<0)throw new Ol}return t.prototype.call=function(t,e){return e.subscribe(new Xl(t,this.total))},t}(),Xl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.b(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?El(function(e,n){return t(e,n,r)}):P,Yl(1),n?Al(e):Vl(function(){return new Cl}))}}var iu=function(){},ou=new W("Location Initialized"),au=function(){},su=new W("appBaseHref"),lu=function(){function t(e){var n=this;this._subject=new Ae,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(uu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,uu(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function uu(t){return t.replace(/\/index.html$/,"")}var cu=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=lu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+lu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+lu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(au),pu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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 r._baseHref=n,r}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return lu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+lu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+lu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+lu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(au),hu=void 0,du=["en",[["a","p"],["AM","PM"],hu],[["AM","PM"],hu,hu],[["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"]],hu,[["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"]],hu,[["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}",hu,"{1} 'at' {0}",hu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],fu={},mu=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}({}),yu=new W("UseV4Plurals"),gu=function(){},vu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(r.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=fu[e];if(n)return n;var r=e.split("-")[0];if(n=fu[r])return n;if("en"===r)return du;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case mu.Zero:return"zero";case mu.One:return"one";case mu.Two:return"two";case mu.Few:return"few";case mu.Many:return"many";default:return"other"}},e}(gu);function _u(t,e){var n,i;e=encodeURIComponent(e);try{for(var o=Object(r.e)(t.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.indexOf("="),u=Object(r.c)(-1==l?[s,""]:[s.slice(0,l),s.slice(l+1)],2),c=u[1];if(u[0].trim()===e)return decodeURIComponent(c)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}var bu=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,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&&(xn(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 e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+ot(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),wu=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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}(),xu=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,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){Ke()&&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(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new wu(null,e._ngForOf,-1,-1),i),a=new Cu(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new Cu(t,o),n.push(a))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[o]=[]);var l=Pc(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:i});else{for(var u=!1,c=0;c-1},e}(uc),Fc=["alt","control","meta","shift"],Vc={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},zc=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return qu().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Fc.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=qu().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Fc.forEach(function(r){r!=n&&(0,Vc[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(uc),Bc=function(){},Hc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case dr.NONE:return e;case dr.HTML:return e instanceof qc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Xn=Xn||new Qn(t);var r=e?String(e):"";n=Xn.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=Xn.getInertBodyElement(r)}while(r!==o);var a=new ar,s=a.sanitizeChildren(cr(n)||n);return Ke()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var l=cr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case dr.STYLE:return e instanceof Qc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(hr);return e&&Gn(e[1])===e[1]||t.match(pr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Ip(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Tp(t){return t.pipe(A(),Hl(function(t){return!0===t}))}function Pp(t){return ne(t)?t:ee(t)?k(Promise.resolve(t)):xl(t)}function Ap(t,e,n){return n?function(t,e){return Sp(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Mp(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Mp(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Mp(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Mp(n.segments,a)&&!!n.children[yp]&&e(n.children[yp],r,s)}(e,n,n.segments)}(t.root,e.root)}var Rp=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=vp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Vp.serialize(this)},t}(),Dp=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Ip(e,function(t,e){return t.parent=n})}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 zp(this)},t}(),jp=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=vp(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Kp(this)},t}();function Mp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Np(t,e){var n=[];return Ip(t.children,function(t,r){r===yp&&(n=n.concat(e(t,r)))}),Ip(t.children,function(t,r){r!==yp&&(n=n.concat(e(t,r)))}),n}var Lp=function(){},Fp=function(){function t(){}return t.prototype.parse=function(t){var e=new Xp(t);return new Rp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return zp(e);if(n){var r=e.children[yp]?t(e.children[yp],!1):"",i=[];return Ip(e.children,function(e,n){n!==yp&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Np(e,function(n,r){return r===yp?[t(e.children[yp],!1)]:[r+":"+t(n,!1)]});return zp(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Hp(t)+"="+Hp(e)}).join("&"):Hp(t)+"="+Hp(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Vp=new Fp;function zp(t){return t.segments.map(function(t){return Kp(t)}).join("/")}function Bp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Hp(t){return Bp(t).replace(/%3B/gi,";")}function Up(t){return Bp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function qp(t){return decodeURIComponent(t)}function Qp(t){return qp(t.replace(/\+/g,"%20"))}function Kp(t){return""+Up(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Up(t)+"="+Up(e[t])}).join(""));var e}var Wp=/^[^\/()?;=#]+/;function Gp(t){var e=t.match(Wp);return e?e[0]:""}var Yp=/^[^=?&#]+/,Zp=/^[^?&#]+/,Xp=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 Dp([],{}):new Dp([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[yp]=new Dp(t,e)),n},t.prototype.parseSegment=function(){var t=Gp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new jp(qp(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Gp(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Gp(this.remaining);r&&this.capture(n=r)}t[qp(e)]=qp(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Yp))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Zp);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Qp(n),a=Qp(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Gp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=yp);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[yp]:new Dp([],o),this.consumeOptional("//")}return e},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}(),$p=function(t){this.segmentGroup=t||null},Jp=function(t){this.urlTree=t};function th(t){return new i.a(function(e){return e.error(new $p(t))})}function eh(t){return new i.a(function(e){return e.error(new Jp(t))})}function nh(t){return new i.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var rh=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(Se)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,yp).pipe(w(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(Jl(function(e){if(e instanceof Jp)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof $p)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,yp).pipe(w(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(Jl(function(t){if(t instanceof $p)throw e.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,e,n){var r,i=t.segments.length>0?new Dp([],((r={})[yp]=t,r)):t;return new Rp(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(w(function(t){return new Dp([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return xl({});var o=[],a=[],s={};return Ip(n,function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(t,e,u,l)).pipe(w(function(t){return s[i]=t}));i===yp?o.push(c):a.push(c)}),xl.apply(null,o.concat(a)).pipe(nu(),ru(),w(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,o,a){var s=this;return xl.apply(void 0,Object(r.d)(n)).pipe(w(function(r){return s.expandSegmentAgainstRoute(t,e,n,r,i,o,a).pipe(Jl(function(t){if(t instanceof $p)return xl(null);throw t}))}),nu(),Bl(function(t){return!!t}),Jl(function(t,n){if(t instanceof Cl||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,o))return xl(new Dp([],{}));throw new $p(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return sh(r)!==o?th(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):th(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?eh(o):this.lineralizeSegments(n,o).pipe(O(function(n){var o=new Dp(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=ih(e,r,i),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return th(e);var p=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?eh(p):this.lineralizeSegments(r,p).pipe(O(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(w(function(t){return n._loadedConfig=t,new Dp(i,{})})):xl(new Dp(i,{}));var a=ih(e,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return th(e);var u=i.slice(l);return this.getChildConfig(t,n).pipe(O(function(t){var n=t.module,i=t.routes,a=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return ah(t,e,n)&&sh(n)!==yp})}(t,n)?{segmentGroup:oh(new Dp(e,function(t,e){var n,i,o={};o[yp]=e;try{for(var a=Object(r.e)(t),s=a.next();!s.done;s=a.next()){var l=s.value;""===l.path&&sh(l)!==yp&&(o[sh(l)]=new Dp([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}(i,new Dp(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return ah(t,e,n)})}(t,n)?{segmentGroup:oh(new Dp(t.segments,function(t,e,n,i){var o,a,s={};try{for(var l=Object(r.e)(n),u=l.next();!u.done;u=l.next()){var c=u.value;ah(t,e,c)&&!i[sh(c)]&&(s[sh(c)]=new Dp([],{}))}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return Object(r.a)({},i,s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,u,i),l=a.segmentGroup,c=a.slicedSegments;return 0===c.length&&l.hasChildren()?o.expandChildren(n,i,l).pipe(w(function(t){return new Dp(s,t)})):0===i.length&&0===c.length?xl(new Dp(s,{})):o.expandSegment(n,l,i,c,yp,!0).pipe(w(function(t){return new Dp(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?xl(new bp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?xl(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Tp(k(n).pipe(w(function(n){var r=t.get(n);return Pp(r.canLoad?r.canLoad(e):r(e))}))):xl(!0)}(t.injector,e).pipe(O(function(r){return r?n.configLoader.load(t.injector,e).pipe(w(function(t){return e._loadedConfig=t,t})):function(t){return new i.a(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):xl(new bp([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return xl(n);if(r.numberOfChildren>1||!r.children[yp])return nh(t.redirectTo);r=r.children[yp]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Rp(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Ip(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return Ip(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Dp(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,i,o=0;try{for(var a=Object(r.e)(e),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.path===t.path)return e.splice(o),l;o++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},t}();function ih(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||_p)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function oh(t){if(1===t.numberOfChildren&&t.children[yp]){var e=t.children[yp];return new Dp(t.segments.concat(e.segments),e.children)}return t}function ah(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function sh(t){return t.outlet||yp}var lh=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 e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=uh(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=uh(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=ch(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return ch(t,this._root).map(function(t){return t.value})},t}();function uh(t,e){var n,i;if(t===e.value)return e;try{for(var o=Object(r.e)(e.children),a=o.next();!a.done;a=o.next()){var s=uh(t,a.value);if(s)return s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function ch(t,e){var n,i;if(t===e.value)return[e];try{for(var o=Object(r.e)(e.children),a=o.next();!a.done;a=o.next()){var s=ch(t,a.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var ph=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function hh(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var dh=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,_h(r,e),r}return Object(r.b)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(lh);function fh(t,e){var n=function(t,e){var n=new gh([],{},{},"",{},yp,e,null,t.root,-1,{});return new vh("",new ph(n,[]))}(t,e),r=new vl([new jp("",{})]),i=new vl({}),o=new vl({}),a=new vl({}),s=new vl(""),l=new mh(r,i,a,s,o,yp,e,n.root);return l.snapshot=n.root,new dh(new ph(l,[]),n)}var mh=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}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(w(function(t){return vp(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(function(t){return vp(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function yh(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],a=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.a)({},t.params,e.params),data:Object(r.a)({},t.data,e.data),resolve:Object(r.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var gh=function(){function t(t,e,n,r,i,o,a,s,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=l,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=vp(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=vp(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}(),vh=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,_h(r,n),r}return Object(r.b)(e,t),e.prototype.toString=function(){return bh(this._root)},e}(lh);function _h(t,e){e.value._routerState=t,e.children.forEach(function(e){return _h(t,e)})}function bh(t){var e=t.children.length>0?" { "+t.children.map(bh).join(", ")+" } ":"";return""+t.value+e}function wh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Sp(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Sp(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Ch(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Op(n))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}(),kh=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Oh(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[yp]:""+t}function Ih(t,e,n){if(t||(t=new Dp([],{})),0===t.segments.length&&t.hasChildren())return Th(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Oh(n[r]),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Dh(s,l,a))return o;r+=2}else{if(!Dh(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return Object($l.a)(Kl(t,e),Yl(1),Al(e))(n)}:function(e){return Object($l.a)(Kl(function(e,n,r){return t(e,n,r+1)}),Yl(1))(e)}}(function(t,e){return t})):xl(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=hh(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),Ip(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new jh(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(t,e,i.component?a?a.children:null:n,r),s&&this.canDeactivateChecks.push(new Mh(a.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new jh(r)),this.setupChildRouteGuards(t,null,i.component?a?a.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!xh(t,e)||!Sp(t.queryParams,e.queryParams);case"paramsChange":default:return!xh(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=hh(t),i=t.value;Ip(r,function(t,r){n.deactivateRouteAndItsChildren(t,i.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Mh(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this;return k(this.canDeactivateChecks).pipe(O(function(e){return t.runCanDeactivate(e.component,e.route)}),Hl(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return k(this.canActivateChecks).pipe(Ql(function(e){return Tp(k([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),Hl(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new hp(t)),xl(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new cp(t)),xl(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Tp(k(n).pipe(w(function(n){var r=e.getToken(n,t);return Pp(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(Bl())}))):xl(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Tp(k(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(w(function(t){return Tp(k(t.guards).pipe(w(function(r){var i=e.getToken(r,t.node);return Pp(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)).pipe(Bl())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?k(r).pipe(O(function(r){var i=n.getToken(r,e);return Pp(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)).pipe(Bl())})).pipe(Hl(function(t){return!0===t})):xl(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(w(function(n){return t._resolvedData=n,t.data=Object(r.a)({},t.data,yh(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return xl({});if(1===r.length){var i=r[0];return this.getResolver(t[i],e).pipe(w(function(t){var e;return(e={})[i]=t,e}))}var o={};return k(r).pipe(O(function(r){return n.getResolver(t[r],e).pipe(w(function(t){return o[r]=t,t}))})).pipe(ru(),w(function(){return o}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Pp(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Lh=function(){},Fh=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=Bh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,yp),n=new gh([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},yp,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new ph(n,e),a=new vh(this.url,o);return this.inheritParamsAndData(a._root),xl(a)}catch(t){return new i.a(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=yh(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=Np(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===yp?-1:e.value.outlet===yp?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,i){var o,a;try{for(var s=Object(r.e)(t),l=s.next();!l.done;l=s.next()){var u=l.value;try{return this.processSegmentAgainstRoute(u,e,n,i)}catch(t){if(!(t instanceof Lh))throw t}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new Lh},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new Lh;if((t.outlet||yp)!==i)throw new Lh;var o,a=[],s=[];if("**"===t.path){var l=n.length>0?Op(n).parameters:{};o=new gh(n,l,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,qh(t),i,t.component,t,Vh(e),zh(e)+n.length,Qh(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Lh;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||_p)(n,t,e);if(!i)throw new Lh;var o={};Ip(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object(r.a)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,s=n.slice(u.lastChild),o=new gh(a,u.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,qh(t),i,t.component,t,Vh(e),zh(e)+a.length,Qh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=Bh(e,a,s,c,this.relativeLinkResolution),h=p.segmentGroup,d=p.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new ph(o,f)]}if(0===c.length&&0===d.length)return[new ph(o,[])];var m=this.processSegment(c,h,d,yp);return[new ph(o,m)]},t}();function Vh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function zh(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function Bh(t,e,n,i,o){if(n.length>0&&function(t,e,n){return i.some(function(n){return Hh(t,e,n)&&Uh(n)!==yp})}(t,n)){var a=new Dp(e,function(t,e,n,i){var o,a,s={};s[yp]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var l=Object(r.e)(n),u=l.next();!u.done;u=l.next()){var c=u.value;if(""===c.path&&Uh(c)!==yp){var p=new Dp([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Uh(c)]=p}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return s}(t,e,i,new Dp(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return Hh(t,e,n)})}(t,n)){var s=new Dp(t.segments,function(t,e,n,i,o,a){var s,l,u={};try{for(var c=Object(r.e)(i),p=c.next();!p.done;p=c.next()){var h=p.value;if(Hh(t,n,h)&&!o[Uh(h)]){var d=new Dp([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,u[Uh(h)]=d}}}catch(t){s={error:t}}finally{try{p&&!p.done&&(l=c.return)&&l.call(c)}finally{if(s)throw s.error}}return Object(r.a)({},o,u)}(t,e,n,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new Dp(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function Hh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Uh(t){return t.outlet||yp}function qh(t){return t.data||{}}function Qh(t){return t.resolve||{}}var Kh=function(){},Wh=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Gh=new W("ROUTES"),Yh=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(w(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new bp(kp(i.injector.get(Gh)).map(Ep),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?k(this.loader.load(t)):Pp(t()).pipe(O(function(t){return t instanceof ke?xl(t):k(e.compiler.compileModuleAsync(t))}))},t}(),Zh=function(){},Xh=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function $h(t){throw t}function Jh(t,e,n){return e.parse("/")}function td(t,e){return xl(null)}var ed=function(){function t(t,e,n,r,i,o,a,s){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.navigations=new vl(null),this.navigationId=0,this.events=new L,this.errorHandler=$h,this.malformedUriErrorHandler=Jh,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:td,afterPreactivation:td},this.urlHandlingStrategy=new Xh,this.routeReuseStrategy=new Wh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(Se),this.resetConfig(s),this.currentUrlTree=new Rp(new Dp([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new Yh(o,a,function(t){return l.triggerEvent(new lp(t))},function(t){return l.triggerEvent(new up(t))}),this.routerState=fh(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(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{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){wp(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,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;Ke()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=Object(r.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=a?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,i,o){if(0===n.length)return Eh(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Sh(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Ip(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),Object(r.d)(t,[{outlets:a}])}if(i.segmentPath)return Object(r.d)(t,[i.segmentPath])}return"string"!=typeof i?Object(r.d)(t,[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):Object(r.d)(t,[i])},[]);return new Sh(n,e,i)}(n);if(a.toRoot())return Eh(e.root,new Dp([],{}),e,i,o);var s=function(t,n,r){if(t.isAbsolute)return new kh(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new kh(r.snapshot._urlSegment,!0,0);var i=Ch(t.commands[0])?0:1;return function(e,n,o){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,l=t.numberOfDoubleDots;l>s;){if(l-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new kh(a,!1,s-l)}()}(a,0,t),l=s.processChildren?Th(s.segmentGroup,s.index,a.commands):Ih(s.segmentGroup,s.index,a.commands);return Eh(s.segmentGroup,l,e,i,o)}(u,this.currentUrlTree,t,p,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof Rp?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=Hd++,Ud[o]=i,Promise.resolve().then(function(){return function(t){var e=Ud[t];e&&e()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Ud[n],e.scheduled=void 0)},e}(qd.a),Kd=n("CS9Q"),Wd=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.b(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}})}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(Nl(function(t){return e._pressedLetters.push(t)}),of(t),El(function(){return e._pressedLetters.length>0}),w(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),r=1;r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e)))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);this._activeItemIndex=n,this._activeItem=e[n]},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof an?this._items.toArray():this._items},t}(),wf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(bf),xf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return Object(r.b)(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(bf),Cf=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 e=function(t){try{return t.frameElement}catch(t){return null}}(t.ownerDocument.defaultView||window);if(e){var n=e&&e.nodeName.toLowerCase();if(-1===Sf(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}var r=t.nodeName.toLowerCase(),i=Sf(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(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 e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Ef(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=K({factory:function(){return new t(Dt(hf))},token:t,providedIn:"root"}),t}();function Ef(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Sf(t){if(!Ef(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var kf=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||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;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",function(){return t.focusLastTabbableElement()})),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",function(){return t.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}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(Il(1)).subscribe(t)},t}(),Of=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new kf(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=K({factory:function(){return new t(Dt(Cf),Dt(Re),Dt(Nu))},token:t,providedIn:"root"}),t}(),If=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return xl(null);if(this._elementInfo.has(t)){var r=this._elementInfo.get(t);return r.checkChildren=e,r.subject.asObservable()}var i={unlisten:function(){},checkChildren:e,subject:new L};this._elementInfo.set(t,i),this._incrementMonitoredElementCount();var o=function(e){return n._onFocus(e,t)},a=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",o,!0),t.addEventListener("blur",a,!0)}),i.unlisten=function(){t.removeEventListener("focus",o,!0),t.removeEventListener("blur",a,!0)},i.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},i=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!df()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!df()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null},1)})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=K({factory:function(){return new t(Dt(Re),Dt(hf))},token:t,providedIn:"root"}),t}();function Tf(t){return 0===t.buttons}var Pf=function(){},Af=new W("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Rf=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&&Ke()&&!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&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.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 Df(t){return function(t){function e(){for(var e=[],n=0;n0?S(t,n):bl(n):wl(t[0]),e)}}var um=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,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,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t;switch(this.kind){case"N":return xl(this.value);case"E":return t=this.error,new i.a(function(e){return e.error(t)});case"C":return bl()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),cm=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new pm(t,this.delay,this.scheduler))},t}(),pm=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.b(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new hm(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(um.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(um.createComplete())},e}(a.a),hm=function(t,e){this.time=t,this.notification=e},dm=n("isby");function fm(t,e,n,r){return Object(Ml.a)(n)&&(r=n,n=void 0),r?fm(t,e,n).pipe(w(function(t){return Object(dm.a)(t)?r.apply(void 0,t):r(t)})):new i.a(function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),a=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,p=e.length;c1?Array.prototype.slice.call(arguments):t)},r,n)})}Object;var mm=n("Ehmk"),ym=n("eihs"),gm=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new vm(t,this.durationSelector))},t}(),vm=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.b(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(mm.a)(this.durationSelector)(t);if(e===ym.a)this.destination.error(ym.a.e);else{var n=_(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(b),_m=n("/21U");function bm(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function wm(t,e){return void 0===e&&(e=rf.a),n=function(){return function(t,e,n){void 0===t&&(t=0);var r=-1;return Object(_m.a)(e)?r=Number(e)<1?1:Number(e):o(e)&&(n=e),o(n)||(n=rf.a),new i.a(function(e){var i=Object(_m.a)(t)?t:+t-n.now();return n.schedule(bm,i,{index:0,period:r,subscriber:e})})}(t,e)},function(t){return t.lift(new gm(n))};var n}var xm=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new L,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?i.a.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(wm(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):xl()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(El(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return fm(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=K({factory:function(){return new t(Dt(Re),Dt(hf))},token:t,providedIn:"root"}),t}(),Cm=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return R(fm(window,"resize"),fm(window,"orientationchange"))}):xl(),this._invalidateCache=this.change().subscribe(function(){return n._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(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},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(wm(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=K({factory:function(){return new t(Dt(hf),Dt(Re))},token:t,providedIn:"root"}),t}(),Em=function(){},Sm=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),km=function(){return function(t){var e=this;this.scrollStrategy=new Sm,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}).forEach(function(n){return e[n]=t[n]})}}();function Om(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Im(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Tm=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}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=_f(-this._previousScrollPosition.left),t.style.top=_f(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",r=e.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=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Pm(){return Error("Scroll strategy has already been attached.")}var Am=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw Pm();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function Rm(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Dm(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var jm=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Pm();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 e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;Rm(e,[{width:r,height:i,bottom:i,right:r,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}(),Mm=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Sm},this.close=function(t){return new Am(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new Tm(i._viewportRuler,i._document)},this.reposition=function(t){return new jm(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.ngInjectableDef=K({factory:function(){return new t(Dt(xm),Dt(Cm),Dt(Re),Dt(Nu))},token:t,providedIn:"root"}),t}(),Nm=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,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=K({factory:function(){return new t(Dt(Nu))},token:t,providedIn:"root"}),t}(),Lm=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=K({factory:function(){return new t(Dt(Nu))},token:t,providedIn:"root"}),t}(),Fm=function(){function t(t,e,n,r,o,a,s){var l=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._backdropElement=null,this._backdropClick=new L,this._attachments=new L,this._detachments=new L,this._keydownEventsObservable=i.a.create(function(t){var e=l._keydownEvents.subscribe(t);return l._keydownEventSubscriptions++,function(){e.unsubscribe(),l._keydownEventSubscriptions--}}),this._keydownEvents=new L,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.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 e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Il(1)).subscribe(function(){e.hasAttached()&&e.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),n},t.prototype.detach=function(){var t=this;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(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1);var e=this._portalOutlet.detach();this._detachments.next(),this._keyboardDispatcher.remove(this);var n=this._ngZone.onStable.asObservable().pipe(nm(R(this._attachments,this._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),n.unsubscribe())});return e}},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._previousHostParent=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._keydownEventsObservable},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=Object(r.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(r.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=_f(this._config.width),t.height=_f(this._config.height),t.minWidth=_f(this._config.minWidth),t.minHeight=_f(this._config.minHeight),t.maxWidth=_f(this._config.maxWidth),t.maxHeight=_f(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(e){return t._backdropClick.next(e)}),"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,e=this._backdropElement;if(e){var n,r=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",r)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},t.prototype._toggleClasses=function(t,e,n){var r=t.classList;vf(e).forEach(function(t){n?r.add(t):r.remove(t)})},t}(),Vm=function(){function t(t,e,n,r,o){var a=this;this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,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 L,this._resizeSubscription=E.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=i.a.create(function(t){var e=a._positionChanges.subscribe(t);return a._positionChangeSubscriptions++,function(){e.unsubscribe(),a._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=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 e.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,e=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,a=this._preferredPositions;oh&&(h=y,p=m)}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],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},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 rn?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,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),p=this._subtractOverflows(e.height,l,u),h=c*p;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:p===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=i)}},t.prototype._pushOverlayOnScreen=function(t,e){var n=this._viewportRect,r=Math.max(t.x+e.width-n.right,0),i=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-t.y,0),a=Math.max(n.left-t.x,0);return{x:t.x+(e.width<=n.width?a||-r:n.left-t.x),y:t.y+(e.height<=n.height?o||-i:n.top-t.y)}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t,this._positionChangeSubscriptions>0){var n=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var i=0;ip&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-p/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.right-t.x+this._viewportMargin,o=t.x-l.left;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x,t.x-l.top);var h=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-h/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=_f(n.height),r.top=_f(n.top),r.bottom=_f(n.bottom),r.width=_f(n.width),r.left=_f(n.left),r.right=_f(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=_f(i)),o&&(r.maxWidth=_f(o))}this._lastBoundingBoxSize=n,zm(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){zm(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){zm(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};this._hasExactPosition()?(zm(n,this._getExactOverlayY(e,t)),zm(n,this._getExactOverlayX(e,t))):n.position="static";var r="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(r+="translateX("+i+"px) "),o&&(r+="translateY("+o+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),zm(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e){var n={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect));var i=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return r.y-=i,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=_f(r.y),n},t.prototype._getExactOverlayX=function(t,e){var n={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=_f(r.x),n},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Dm(t,n),isOriginOutsideView:Rm(t,n),isOverlayClipped:Dm(e,n),isOverlayOutsideView:Rm(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=gf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=gf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){t&&t.length&&(this._classList=t.split(" ").reduce(function(t,e){return t[e]=!0,t},{}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new xf(this._items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.closed.emit("tab")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._itemChanges.pipe(lm(this._items),om(function(t){return R.apply(void 0,t.map(function(t){return t._hovered}))}))},t.prototype._handleKeydown=function(t){var e=t.keyCode;switch(e){case nf:this.closed.emit("keydown"),t.stopPropagation();break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||this._keyManager.setFocusOrigin("keyboard"),this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(Il(1)).subscribe(function(){return e._keyManager.setFocusOrigin(t).setFirstItemActive()}):this._keyManager.setFocusOrigin(t).setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(2+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.addItem=function(t){-1===this._items.indexOf(t)&&(this._items.push(t),this._itemChanges.next(this._items))},t.prototype.removeItem=function(t){var e=this._items.indexOf(t);this._items.indexOf(t)>-1&&(this._items.splice(e,1),this._itemChanges.next(this._items))},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t}(),ny=new W("mat-menu-scroll-strategy");function ry(t){return function(){return t.scrollStrategies.reposition()}}var iy=function(){function t(t,e,n,r,i,o,a,s){this._overlay=t,this._element=e,this._viewContainerRef=n,this._scrollStrategy=r,this._parentMenu=i,this._menuItemInstance=o,this._dir=a,this._focusMonitor=s,this._overlayRef=null,this._menuOpen=!1,this._closeSubscription=E.a.EMPTY,this._hoverSubscription=E.a.EMPTY,this._openedByMouse=!1,this.menuOpened=new Ae,this.onMenuOpen=this.menuOpened,this.menuClosed=new Ae,this.onMenuClose=this.menuClosed,o&&(o._triggersSubmenu=this.triggersSubmenu())}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._checkMenu(),this.menu.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._cleanUpSubscriptions()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay();this._setPosition(e.getConfig().positionStrategy),e.attach(this._portal),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closeSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof ey&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element.nativeElement,t):this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closeSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof ey?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(El(function(t){return"void"===t.toState}),Il(1),nm(e.lazyContent._attached)).subscribe(function(){return e.lazyContent.detach()},void 0,function(){t._resetMenu()}):this._resetMenu()):(this._resetMenu(),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedByMouse?"mouse":"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse?this.triggersSubmenu()||this.focus("mouse"):this.focus(),this._openedByMouse=!1},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new Nd(this.menu.templateRef,this._viewContainerRef);var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t)}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new km({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withTransformOriginOn(".mat-menu-panel"),hasBackdrop:null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],r=e[1],i="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=i[0],a=i[1],s=[o,a],l=s[0],u=s[1],c=[n,r],p=c[0],h=c[1],d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",r=p="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:l,overlayX:p,overlayY:o,offsetY:d},{originX:r,originY:l,overlayX:h,overlayY:o,offsetY:d},{originX:n,originY:u,overlayX:p,overlayY:a,offsetY:-d},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:-d}])},t.prototype._cleanUpSubscriptions=function(){this._closeSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return R(e,this._parentMenu?this._parentMenu.closed:xl(),this._parentMenu?this._parentMenu._hovered().pipe(El(function(e){return e!==t._menuItemInstance}),El(function(){return t._menuOpen})):xl(),n)},t.prototype._handleMousedown=function(t){Tf(t)||(this._openedByMouse=!0,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(El(function(e){return e===t._menuItemInstance&&!e.disabled}),function(t,e){void 0===e&&(e=rf.a);var n=0 instanceof Date&&!isNaN(0)?0-e.now():Math.abs(0);return function(t){return t.lift(new cm(n,e))}}(0,Wd)).subscribe(function(){t._openedByMouse=!0,t.menu instanceof ey&&t.menu._isAnimating?t.menu._animationDone.pipe(Il(1),nm(t._parentMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))},t}(),oy=function(){},ay=new W("cdk-dir-doc",{providedIn:"root",factory:function(){return Dt(Nu)}}),sy=function(){function t(t){if(this.value="ltr",this.change=new Ae,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=K({factory:function(){return new t(Dt(ay,8))},token:t,providedIn:"root"}),t}(),ly=function(){};function uy(){return"undefined"!=typeof process}function cy(t){switch(t.length){case 0:return new Jd;case 1:return t[0];default:return new tf(t)}}function py(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],l=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case ef:s=i[n];break;case Yd:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),u=c,l=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function hy(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&dy(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&dy(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&dy(n,"destroy",t))})}}function dy(t,e,n){var r=n.totalTime,i=fy(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function fy(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function my(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function yy(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var gy=function(t,e){return!1},vy=function(t,e){return!1},_y=function(t,e,n){return[]},by=uy();if(by||"undefined"!=typeof Element){if(gy=function(t,e){return t.contains(e)},by||Element.prototype.matches)vy=function(t,e){return t.matches(e)};else{var wy=Element.prototype,xy=wy.matchesSelector||wy.mozMatchesSelector||wy.msMatchesSelector||wy.oMatchesSelector||wy.webkitMatchesSelector;xy&&(vy=function(t,e){return xy.apply(t,[e])})}_y=function(t,e,n){var i=[];if(n)i.push.apply(i,Object(r.d)(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&i.push(o)}return i}}var Cy=null,Ey=!1;function Sy(t){Cy||(Cy=("undefined"!=typeof document?document.body:null)||{},Ey=!!Cy.style&&"WebkitAppearance"in Cy.style);var e=!0;return Cy.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in Cy.style)&&Ey&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in Cy.style),e}var ky=vy,Oy=gy,Iy=_y;function Ty(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var Py=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Sy(t)},t.prototype.matchesElement=function(t,e){return ky(t,e)},t.prototype.containsElement=function(t,e){return Oy(t,e)},t.prototype.query=function(t,e,n){return Iy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new Jd(n,r)},t}(),Ay=function(){function t(){}return t.NOOP=new Py,t}(),Ry=1e3;function Dy(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:jy(parseFloat(e[1]),e[2])}function jy(t,e){switch(e){case"s":return t*Ry;default:return t}}function My(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=jy(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=jy(Math.floor(parseFloat(s)),a[4]));var l=a[5];l&&(o=l)}else r=t;if(!n){var u=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function Ny(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function Ly(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Ny(t,n);return n}function Fy(t,e,n){return n?e+":"+n+";":""}function Vy(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(ng(o,s)),"<"!=a[0]||o==Jy&&s==Jy||e.push(ng(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:lg(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return Xy(n,t,e)}),options:lg(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=Xy(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:lg(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return ug(My(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=ug(0,0,"");return i.dynamic=!0,i.strValue=r,i}return ug((n=n||My(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:Xd({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=Xd(s)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==Yd?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(sg(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" 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 "'+o+'ms" and "'+i+'ms"'),p=!1),o=c.startTime),p&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(l=qy(t[r])).length&&l.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(sg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(sg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c0&&i0?i==h?1:p*i:o[i],s=a*m;e.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:Xy(this,Hy(t.animation),e),options:lg(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:lg(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:lg(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var o=Object(r.c)(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(rg,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+a:a,my(e.collectedStyles,e.currentQuerySelector,{});var l=Xy(this,Hy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:l,originalSelector:t.selector,options:lg(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:My(t.timings,e.errors,!0);return{type:12,animation:Xy(this,Hy(t.animation),e),timings:n,options:null}},t}(),ag=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 sg(t){return!Array.isArray(t)&&"object"==typeof t}function lg(t){var e;return t?(t=Ny(t)).params&&(t.params=(e=t.params)?Ny(e):null):t={},t}function ug(t,e,n){return{duration:t,delay:e,easing:n}}function cg(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var pg=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(r.d)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),hg=new RegExp(":enter","g"),dg=new RegExp(":leave","g");function fg(t,e,n,r,i,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new mg).buildKeyframes(t,e,n,r,i,o,a,s,l,u)}var mg=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,l,u){void 0===u&&(u=[]),l=l||new pg;var c=new gg(t,e,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),Xy(this,n,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return p.length?p.map(function(t){return t.buildKeyframes()}):[cg(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Dy(n.duration):null,o=null!=n.delay?Dy(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),Xy(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=yg);var a=Dy(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return Xy(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Dy(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),Xy(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return My(e.params?Qy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Dy(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=yg);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(l=s.currentTimeline),Xy(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;Xy(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),yg={},gg=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=yg,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new vg(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Dy(r.duration)),null!=r.delay&&(i.delay=Dy(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Qy(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=yg,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new _g(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},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,e,n,i,o,a){var s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(hg,"."+this._enterClassName)).replace(dg,"."+this._leaveClassName);var l=this._driver.query(this.element,t,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,Object(r.d)(l))}return o||0!=s.length||a.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),vg=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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 e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||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,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||Yd,e._currentKeyframe[t]=Yd}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=Yd}):Ly(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Qy(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:Yd),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=Ly(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==ef?e.add(t):r==Yd&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Ky(e.values()):[],a=n.size?Ky(n.values()):[];if(r){var s=i[0],l=Ny(s);s.offset=0,l.offset=1,i=[s,l]}return cg(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),_g=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var l=t.call(this,e,n,a.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return Object(r.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=Ly(t[0],!1);l.offset=0,o.push(l);var u=Ly(t[0],!1);u.offset=bg(s),o.push(u);for(var c=t.length-1,p=1;p<=c;p++){var h=Ly(t[p],!1);h.offset=bg((n+h.offset*r)/a),o.push(h)}r=a,n=0,i="",t=o}return cg(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(vg);function bg(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var wg=function(){},xg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return Gy(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(Cg[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(wg),Cg=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Eg(t,e,n,r,i,o,a,s,l,u,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:p,errors:h}}var Sg={},kg=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,o,a,s,l,u,c){var p=[],h=this.ast.options&&this.ast.options.params||Sg,d=this.buildStyles(n,s&&s.params||Sg,p),f=l&&l.params||Sg,m=this.buildStyles(i,f,p),y=new Set,g=new Map,v=new Map,_="void"===i,b={params:Object(r.a)({},h,f)},w=c?[]:fg(t,e,this.ast.animation,o,a,d,m,b,u,p),x=0;if(w.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),p.length)return Eg(e,this._triggerName,n,i,_,d,m,[],[],g,v,x,p);w.forEach(function(t){var n=t.element,r=my(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=my(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&y.add(n)});var C=Ky(y.values());return Eg(e,this._triggerName,n,i,_,d,m,w,C,g,v,x)},t}(),Og=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Ny(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Qy(o,r,e)),n[t]=o})}}),n},t}(),Ig=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Og(t.style,t.options&&t.options.params||{})}),Tg(this.states,"true","1"),Tg(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new kg(t,e,n.states))}),this.fallbackTransition=new kg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){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,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Tg(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Pg=new pg,Ag=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=ig(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=py(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=fg(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Pg,o)).forEach(function(t){var e=my(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,Yd)})});var l=cy(i.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=fy(e,"","","");return hy(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Rg=[],Dg={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},jg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Mg="__ng_removed",Ng=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Ny(t);delete r.value,this.options=r}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 e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),Lg=new Ng("void"),Fg=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Kg(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=my(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var l=my(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Kg(t,"ng-trigger"),Kg(t,"ng-trigger-"+e),l[e]=Lg),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new zg(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Kg(t,"ng-trigger"),Kg(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new Ng(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=Lg),"void"===u.value||l.value!==u.value){var c=my(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=o.matchTransition(l.value,u.value,t,u.params),h=!1;if(!p){if(!r)return;p=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(Kg(t,"ng-animate-queued"),a.onStart(function(){Wg(t,"ng-animate-queued")})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Kg(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Wg(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(Bg(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Mg]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Bg(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return cy(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Mg];if(n&&n.setForRemoval){if(t[Mg]=Dg,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(C.push(e),n.collectedEnterElements.length){var a=r[Mg];if(a&&a.setForMove)return void e.destroy()}var p=!h||!n.driver.containsElement(h,r),d=w.get(r),f=m.get(r),y=n._buildInstruction(t,i,f,d,p);if(y.errors&&y.errors.length)E.push(y);else{if(p)return e.onStart(function(){return By(r,y.fromStyles)}),e.onDestroy(function(){return zy(r,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return By(r,y.fromStyles)}),e.onDestroy(function(){return zy(r,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,y.timelines),s.push({instruction:y,player:e,element:r}),y.queriedElements.forEach(function(t){return my(l,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(E.length){var k=[];E.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,I=new Map;s.forEach(function(t){var e=t.element;i.has(e)&&(I.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){my(O,e,[]).push(t),t.destroy()})});var T=g.filter(function(t){return Yg(t,u,c)}),P=new Map;Ug(P,this.driver,_,c,Yd).forEach(function(t){Yg(t,u,c)&&T.push(t)});var A=new Map;f.forEach(function(t,e){Ug(A,n.driver,new Set(t),u,ef)}),T.forEach(function(t){var e=P.get(t),n=A.get(t);P.set(t,Object(r.a)({},e,n))});var R=[],D=[],j={};s.forEach(function(t){var e=t.element,r=t.player,s=t.instruction;if(i.has(e)){if(p.has(e))return r.onDestroy(function(){return zy(e,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var l=j;if(I.size>1){for(var u=e,c=[];u=u.parentNode;){var h=I.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(t){return I.set(t,l)})}var d=n._buildAnimation(r.namespaceId,s,O,a,A,P);if(r.setRealPlayer(d),l===j)R.push(r);else{var f=n.playersByElement.get(l);f&&f.length&&(r.parentPlayer=cy(f)),o.push(r)}}else By(e,s.fromStyles),r.onDestroy(function(){return zy(e,s.toStyles)}),D.push(r),p.has(e)&&o.push(r)}),D.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=cy(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var M=0;M0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new Jd(t.duration,t.delay)},t}(),zg=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new Jd,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 e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return hy(t,n,void 0,e)})}),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 e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){my(this._queuedCallbacks,t,[]).push(e)},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 e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function Bg(t){return t&&1===t.nodeType}function Hg(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Ug(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Hg(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Mg]=jg,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return Hg(t,o[s++])}),a}function qg(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var Qg="$$classes";function Kg(t,e){if(t.classList)t.classList.add(e);else{var n=t[Qg];n||(n=t[Qg]={}),n[e]=!0}}function Wg(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Qg];n&&delete n[e]}}function Gg(t,e,n){cy(n).onDone(function(){return t.processLeaveNode(e)})}function Yg(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var Zg=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Vg(t,e,n),this._timelineEngine=new Ag(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=ig(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Ig(t,e)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var o=Object(r.c)(yy(n),2);this._timelineEngine.command(o[0],e,o[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,o){if("@"==n.charAt(0)){var a=Object(r.c)(yy(n),2);return this._timelineEngine.listen(a[0],e,a[1],o)}return this._transitionEngine.listen(t,e,n,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}(),Xg="animation",$g="animationend",Jg=function(){function t(t,e,n,r,i,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=ov(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),rv(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=nv(n=ov(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),iv(t,"",n.join(","))))},t}();function tv(t,e,n){iv(t,"PlayState",n,ev(t,e))}function ev(t,e){var n=ov(t,"");return n.indexOf(",")>0?nv(n.split(","),e):nv([n],e)}function nv(t,e){for(var n=0;n=0)return n;return-1}function rv(t,e,n){n?t.removeEventListener($g,e):t.addEventListener($g,e)}function iv(t,e,n,r){var i=Xg+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function ov(t,e){return t.style[Xg+e]}var av="linear",sv=function(){function t(t,e,n,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||av,this.totalTime=r+i,this._buildStyler()}return 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.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new Jg(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:$y(t.element,r))})}this.currentSnapshot=e},t}(),lv=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ty(n),r}return Object(r.b)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(Jd),uv=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Sy(t)},t.prototype.matchesElement=function(t,e){return ky(t,e)},t.prototype.containsElement=function(t,e){return Oy(t,e)},t.prototype.query=function(t,e,n){return Iy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",i="";(n=n.map(function(t){return Ty(t)})).forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof sv}),l={};Yy(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Zy(t,e,l));if(0==n)return new lv(t,u);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=new sv(t,e,c,n,r,i,u);return h.onDestroy(function(){var t;(t=p).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),cv=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},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.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:$y(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),pv=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(hv().toString()),this._cssKeyframesDriver=new uv}return t.prototype.validateStyleProperty=function(t){return Sy(t)},t.prototype.matchesElement=function(t,e){return ky(t,e)},t.prototype.containsElement=function(t,e){return Oy(t,e)},t.prototype.query=function(t,e,n){return Iy(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter(function(t){return t instanceof cv});return Yy(n,r)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})}),e=Zy(t,e=e.map(function(t){return Ly(t,!1)}),l),new cv(t,e,s)},t}();function hv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var dv=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Mt.None,styles:[],data:{animation:[]}}),r}return Object(r.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Zd(t):t;return yv(this._renderer,null,e,"register",[n]),new fv(e,this._renderer)},e}(Gd),fv=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(r.b)(e,t),e.prototype.create=function(t,e){return new mv(this._id,t,e||{},this._renderer)},e}(function(){}),mv=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t enter",animation:{type:2,steps:[{type:11,selector:".mat-menu-content",animation:{type:6,styles:{opacity:0},offset:null},options:null},{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 0.5)"},offset:null},timings:"100ms linear"},{type:3,steps:[{type:11,selector:".mat-menu-content",animation:{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"400ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null},{type:4,styles:{type:6,styles:{transform:"scale(1, 1)"},offset:null},timings:"300ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null}],options:null},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"150ms 50ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Ov(t){return Oo(0,[(t()(),li(0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.start"],[null,"@transformMenu.done"]],function(t,e,n){var r=!0,i=t.component;return"keydown"===e&&(r=!1!==i._handleKeydown(n)&&r),"click"===e&&(r=!1!==i.closed.emit("click")&&r),"@transformMenu.start"===e&&(r=0!=(i._isAnimating=!0)&&r),"@transformMenu.done"===e&&(r=!1!==i._onAnimationDone(n)&&r),r},null,null)),Zi(1,278528,null,0,bu,[jn,Mn,rn,nn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),li(2,0,null,null,1,"div",[["class","mat-menu-content"]],null,null,null,null,null)),_o(null,0)],function(t,e){t(e,1,0,"mat-menu-panel",e.component._classList)},function(t,e){t(e,0,0,e.component._panelAnimationState)})}function Iv(t){return Oo(2,[fo(402653184,1,{templateRef:0}),(t()(),si(0,[[1,2]],null,0,null,Ov))],null,null)}var Tv=Rr({encapsulation:2,styles:[],data:{}});function Pv(t){return Oo(2,[_o(null,0),(t()(),li(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),Zi(2,212992,null,0,qf,[rn,Re,hf,[2,Uf],[2,Ev]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(t,e){t(e,1,0,Li(e,2).unbounded)})}var Av=function(){function t(t){this.el=t}return t.prototype.ngOnInit=function(){this.el.nativeElement.outerHTML=django.gettext(this.el.nativeElement.innerHTML)},t}(),Rv="accent",Dv="primary",jv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Mv=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var a=0,s=jv;a*,.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 Fv(t){return Oo(2,[fo(402653184,1,{ripple:0}),(t()(),li(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),_o(null,0),(t()(),li(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)),Zi(4,212992,[[1,4]],0,qf,[rn,Re,hf,[2,Uf],[2,Ev]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),li(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,Li(e,4).unbounded)})}var Vv=n("KIbp"),zv=function(){function t(t){this.api=t}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"serviceImage",{get:function(){return this.api.galleryImageURL(this.service.imageId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceName",{get:function(){var t=this.service.visual_name;return t.length>60&&(t=t.substring(0,57)+"..."),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceTooltip",{get:function(){return this.service.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceClass",{get:function(){var t=["service"];return this.service.maintenance?t.push("maintenance"):this.service.not_accesible&&t.push("forbidden"),t},enumerable:!0,configurable:!0}),t.prototype.getTransportIcon=function(t){return this.api.transportIconURL(t)},t.prototype.hasActions=function(){return this.service.allow_users_remove||this.service.allow_users_reset},t.prototype.hasManyTransports=function(){return this.service.transports.length>1},t.prototype.hasMenu=function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.hasManyTransports())},t.prototype.notifyNotLaunching=function(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)},t.prototype.launch=function(){this.service.maintenance?this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched")):this.service.not_accesible?this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+django.gettext("Access limited by calendar")+'

'+django.gettext("Please, retry access in a while.")+"

"):this.api.launchURL(this.service.transports[0].link)},t}(),Bv=Rr({encapsulation:0,styles:[[".service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1);border:1px solid;border-color:rgb(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:.3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:.3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.2em;display:flex;flex:1 0 auto;flex-flow:row auto;align-items:center;justify-content:center;height:2.5rem}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgb(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;position:absolute;top:1rem;left:1rem;font-size:8rem;font-family:'Material Icons';font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';font-feature-settings:'liga';content:'update';text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;position:absolute;top:1rem;left:1rem;font-size:8rem;font-family:'Material Icons';font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';font-feature-settings:'liga';content:'build';text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}"]],data:{}});function Hv(t){return Oo(0,[(t()(),li(0,0,null,null,4,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Li(t,1)._handleMouseEnter()&&r),r},Pv,Tv)),Zi(1,180224,[[1,4]],0,Jm,[rn,Nu,If,[2,$m]],null,null),(t()(),li(2,0,null,0,2,"div",[["class","transport-item"]],null,null,null,null,null)),(t()(),li(3,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),Eo(4,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,Li(e,1)._highlighted,Li(e,1)._triggersSubmenu,Li(e,1)._getTabIndex(),Li(e,1).disabled.toString(),Li(e,1).disabled||null),t(e,3,0,n.getTransportIcon(e.context.$implicit.id)),t(e,4,0,e.context.$implicit.name)})}function Uv(t){return Oo(0,[(t()(),li(0,0,null,null,6,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Li(t,1)._handleMouseEnter()&&r),r},Pv,Tv)),Zi(1,180224,[[3,4]],0,Jm,[rn,Nu,If,[2,$m]],null,null),(t()(),li(2,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),Eo(-1,null,["delete"])),(t()(),li(4,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(5,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,[" Release service"]))],function(t,e){t(e,5,0)},function(t,e){t(e,0,0,Li(e,1)._highlighted,Li(e,1)._triggersSubmenu,Li(e,1)._getTabIndex(),Li(e,1).disabled.toString(),Li(e,1).disabled||null)})}function qv(t){return Oo(0,[(t()(),li(0,0,null,null,6,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Li(t,1)._handleMouseEnter()&&r),r},Pv,Tv)),Zi(1,180224,[[3,4]],0,Jm,[rn,Nu,If,[2,$m]],null,null),(t()(),li(2,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),Eo(-1,null,["refresh"])),(t()(),li(4,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(5,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,[" Reset service"]))],function(t,e){t(e,5,0)},function(t,e){t(e,0,0,Li(e,1)._highlighted,Li(e,1)._triggersSubmenu,Li(e,1)._getTabIndex(),Li(e,1).disabled.toString(),Li(e,1).disabled||null)})}function Qv(t){return Oo(0,[(t()(),li(0,16777216,null,null,5,"button",[["aria-haspopup","true"],["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"],[null,"mouseenter"],[null,"mousedown"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Li(t,1)._handleMouseEnter()&&r),"mousedown"===e&&(r=!1!==Li(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Li(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Li(t,2)._handleClick(n)&&r),r},Pv,Tv)),Zi(1,180224,[[5,4]],0,Jm,[rn,Nu,If,[2,$m]],null,null),Zi(2,1196032,null,0,iy,[Qm,rn,hn,ny,[2,ey],[6,Jm],[2,sy],If],{menu:[0,"menu"]},null),(t()(),li(3,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(4,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Transports"])),(t()(),si(0,null,null,0))],function(t,e){t(e,2,0,Li(e.parent,3)),t(e,4,0)},function(t,e){t(e,0,0,Li(e,1)._highlighted,Li(e,1)._triggersSubmenu,Li(e,1)._getTabIndex(),Li(e,1).disabled.toString(),Li(e,1).disabled||null,Li(e,2).menuOpen||null)})}function Kv(t){return Oo(0,[(t()(),li(0,16777216,null,null,5,"button",[["aria-haspopup","true"],["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"],[null,"mouseenter"],[null,"mousedown"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Li(t,1)._handleMouseEnter()&&r),"mousedown"===e&&(r=!1!==Li(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Li(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Li(t,2)._handleClick(n)&&r),r},Pv,Tv)),Zi(1,180224,[[5,4]],0,Jm,[rn,Nu,If,[2,$m]],null,null),Zi(2,1196032,null,0,iy,[Qm,rn,hn,ny,[2,ey],[6,Jm],[2,sy],If],{menu:[0,"menu"]},null),(t()(),li(3,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(4,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Actions"])),(t()(),si(0,null,null,0))],function(t,e){t(e,2,0,Li(e.parent,10)),t(e,4,0)},function(t,e){t(e,0,0,Li(e,1)._highlighted,Li(e,1)._triggersSubmenu,Li(e,1)._getTabIndex(),Li(e,1).disabled.toString(),Li(e,1).disabled||null,Li(e,2).menuOpen||null)})}function Wv(t){return Oo(0,[(t()(),li(0,16777216,null,null,4,"button",[["aria-haspopup","true"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(t,e,n){var r=!0;return"mousedown"===e&&(r=!1!==Li(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Li(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Li(t,2)._handleClick(n)&&r),r},Fv,Lv)),Zi(1,180224,null,0,Mv,[rn,hf,If,[2,Ev]],null,null),Zi(2,1196032,null,0,iy,[Qm,rn,hn,ny,[2,ey],[8,null],[2,sy],If],{menu:[0,"menu"]},null),(t()(),li(3,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),Eo(-1,null,["menu"])),(t()(),si(0,null,null,0))],function(t,e){t(e,2,0,Li(e.parent,19))},function(t,e){t(e,0,0,Li(e,1).disabled||null,"NoopAnimations"===Li(e,1)._animationMode,Li(e,2).menuOpen||null)})}function Gv(t){return Oo(0,[(t()(),li(0,0,null,null,34,"div",[],null,null,null,null,null)),(t()(),li(1,0,null,null,6,"mat-menu",[],null,null,null,Iv,kv)),$i(6144,null,$m,null,[ey]),Zi(3,1294336,[["transports",4]],2,ey,[rn,Re,ty],null,null),fo(603979776,1,{items:1}),fo(335544320,2,{lazyContent:0}),(t()(),si(16777216,null,0,1,null,Hv)),Zi(7,278528,null,0,xu,[hn,pn,jn],{ngForOf:[0,"ngForOf"]},null),(t()(),li(8,0,null,null,8,"mat-menu",[],null,null,null,Iv,kv)),$i(6144,null,$m,null,[ey]),Zi(10,1294336,[["actions",4]],2,ey,[rn,Re,ty],null,null),fo(603979776,3,{items:1}),fo(335544320,4,{lazyContent:0}),(t()(),si(16777216,null,0,1,null,Uv)),Zi(14,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),si(16777216,null,0,1,null,qv)),Zi(16,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),li(17,0,null,null,8,"mat-menu",[],null,null,null,Iv,kv)),$i(6144,null,$m,null,[ey]),Zi(19,1294336,[["menu",4]],2,ey,[rn,Re,ty],null,null),fo(603979776,5,{items:1}),fo(335544320,6,{lazyContent:0}),(t()(),si(16777216,null,0,1,null,Qv)),Zi(23,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),si(16777216,null,0,1,null,Kv)),Zi(25,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),li(26,0,null,null,8,"div",[],null,null,null,null,null)),Zi(27,278528,null,0,bu,[jn,Mn,rn,nn],{ngClass:[0,"ngClass"]},null),(t()(),li(28,0,null,null,1,"div",[["class","icon"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.launch()&&r),r},null,null)),(t()(),li(29,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),li(30,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(t()(),Eo(31,null,[" "," "])),(t()(),li(32,0,null,null,2,"div",[["class","menu"]],null,null,null,null,null)),(t()(),si(16777216,null,null,1,null,Wv)),Zi(34,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0),t(e,7,0,n.service.transports),t(e,10,0),t(e,14,0,n.service.allow_users_remove),t(e,16,0,n.service.allow_users_reset),t(e,19,0),t(e,23,0,n.hasManyTransports()),t(e,25,0,n.hasActions()),t(e,27,0,n.serviceClass),t(e,34,0,n.hasMenu())},function(t,e){var n=e.component;t(e,29,0,n.serviceImage),t(e,31,0,n.serviceName)})}function Yv(t){return Oo(0,[(t()(),si(16777216,null,null,1,null,Gv)),Zi(1,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.service.transports.length>0)},null)}var Zv=0,Xv=function(){function t(){this._stateChanges=new L,this._openCloseAllActions=new L,this.id="cdk-accordion-"+Zv++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=gf(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t}(),$v=0,Jv=function(){function t(t,e,n){var r=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=E.a.EMPTY,this.closed=new Ae,this.opened=new Ae,this.destroyed=new Ae,this.expandedChange=new Ae,this.id="cdk-accordion-child-"+$v++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=gf(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=gf(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})},t}(),t_=function(){},e_=new W("MAT_ACCORDION"),n_=0,r_=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a._viewContainerRef=i,a._hideToggle=!1,a._inputChanges=new L,a._headerId="mat-expansion-panel-header-"+n_++,a.accordion=e,a._document=o,a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=gf(t)},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(lm(null),El(function(){return t.expanded&&!t._portal}),Il(1)).subscribe(function(){t._portal=new Nd(t._lazyContent._template,t._viewContainerRef)})},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._inputChanges.complete()},e.prototype._bodyAnimation=function(t){var e=t.element.classList,n=t.phaseName,r=t.toState;"done"===n&&"expanded"===r?e.add("mat-expanded"):"start"===n&&"collapsed"===r&&e.remove("mat-expanded")},e.prototype._containsFocus=function(){if(this._body&&this._document){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e}(Jv),i_=function(){function t(t,e,n,r){var i=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=E.a.EMPTY;var o=t.accordion?t.accordion._stateChanges.pipe(El(function(t){return!!t.hideToggle})):_l;this._parentChangeSubscription=R(t.opened,t.closed,o,t._inputChanges.pipe(El(function(t){return!(!t.hideToggle&&!t.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),t.closed.pipe(El(function(){return t._containsFocus()})).subscribe(function(){return n.focusVia(e.nativeElement,"program")}),n.monitor(e.nativeElement).subscribe(function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(i)})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case 32:case 13:t.preventDefault(),this._toggle();break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element.nativeElement,t)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t}(),o_=function(){},a_=function(){},s_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=gf(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new xf(this._headers).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;36===e?(n.setFirstItemActive(),t.preventDefault()):35===e?(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e}(Xv),l_=function(){},u_=function(){function t(t,e,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=this;this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=this._emitChanges?new L:null,this.onChange=this.changed,e&&e.length&&(t?e.forEach(function(t){return r._markSelected(t)}):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),c_=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n.mat-expansion-panel-spacing:first-child,.mat-accordion>:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"bodyExpansion",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"0px",visibility:"hidden"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{height:"*",visibility:"visible"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}}]}});function h_(t){return Oo(0,[(t()(),si(0,null,null,0))],null,null)}function d_(t){return Oo(2,[fo(402653184,1,{_body:0}),_o(null,0),(t()(),li(2,0,[[1,0],["body",1]],null,5,"div",[["class","mat-expansion-panel-content"],["role","region"]],[[24,"@bodyExpansion",0],[1,"aria-labelledby",0],[8,"id",0]],[[null,"@bodyExpansion.done"],[null,"@bodyExpansion.start"]],function(t,e,n){var r=!0,i=t.component;return"@bodyExpansion.done"===e&&(r=!1!==i._bodyAnimation(n)&&r),"@bodyExpansion.start"===e&&(r=!1!==i._bodyAnimation(n)&&r),r},null,null)),(t()(),li(3,0,null,null,3,"div",[["class","mat-expansion-panel-body"]],null,null,null,null,null)),_o(null,1),(t()(),si(16777216,null,null,1,null,h_)),Zi(6,212992,null,0,Vd,[xe,hn],{portal:[0,"portal"]},null),_o(null,2)],function(t,e){t(e,6,0,e.component._portal)},function(t,e){var n=e.component;t(e,2,0,n._getExpandedState(),n._headerId,n.id)})}var f_=Rr({encapsulation:2,styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],data:{animation:[{type:7,name:"indicatorRotate",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{transform:"rotate(0deg)"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{transform:"rotate(180deg)"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"expansionHeight",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"{{collapsedHeight}}"},offset:null},options:{params:{collapsedHeight:"48px"}}},{type:0,name:"expanded",styles:{type:6,styles:{height:"{{expandedHeight}}"},offset:null},options:{params:{expandedHeight:"64px"}}},{type:1,expr:"expanded <=> collapsed",animation:{type:3,steps:[{type:11,selector:"@indicatorRotate",animation:{type:9,options:null},options:{optional:!0}},{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null},options:null}],options:{}}]}});function m_(t){return Oo(0,[(t()(),li(0,0,null,null,0,"span",[["class","mat-expansion-indicator"]],[[24,"@indicatorRotate",0]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component._getExpandedState())})}function y_(t){return Oo(2,[(t()(),li(0,0,null,null,3,"span",[["class","mat-content"]],null,null,null,null,null)),_o(null,0),_o(null,1),_o(null,2),(t()(),si(16777216,null,null,1,null,m_)),Zi(5,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,5,0,e.component._showToggle())},null)}var g_=new W("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),v_=[{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)"}],__="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",b_="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",w_="(orientation: portrait) and (min-width: 840px)",x_="(orientation: landscape) and (min-width: 1280px)",C_={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:b_+" , "+__,WEB:w_+", "+x_+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:b_+" ",WEB_PORTRAIT:""+w_,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+__,WEB_LANDSCAPE:""+x_},E_=[{alias:"handset",mediaQuery:C_.HANDSET},{alias:"handset.landscape",mediaQuery:C_.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:C_.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:C_.TABLET},{alias:"tablet.landscape",mediaQuery:C_.TABLET},{alias:"tablet.portrait",mediaQuery:C_.TABLET_PORTRAIT},{alias:"web",mediaQuery:C_.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:C_.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:C_.WEB_PORTRAIT,overlapping:!0}];function S_(t){for(var e=[],n=1;n0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var I_={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},T_=new W("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return I_}}),P_=new W("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=Dt(g_),e=Dt(T_),n=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach(function(t){r[t.alias]=t}),e.forEach(function(t){r[t.alias]?S_(r[t.alias],t):r[t.alias]=t}),(n=Object.keys(r).map(function(t){return r[t]})).forEach(function(t){t.suffix||(t.suffix=t.alias.replace(k_,"|").split("|").map(O_).join(""),t.overlapping=!!t.overlapping)}),n}((e.disableDefaultBps?[]:v_).concat(e.addOrientationBps?E_:[]),n)}}),A_=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}),e=this._registry.filter(function(t){return!0!==t.overlapping});return t.concat(e)},enumerable:!0,configurable:!0}),t.prototype.findByAlias=function(t){return this._registry.find(function(e){return e.alias==t})||null},t.prototype.findByQuery=function(t){return this._registry.find(function(e){return e.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=K({factory:function(){return new t(Dt(P_))},token:t,providedIn:"root"}),t}(),R_=function(){function t(t,e,n,r){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),D_=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this._registry=new Map,this._source=new vl(new R_(!0)),this._observable$=this._source.asObservable()}return t.prototype.isActive=function(t){var e=this._registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t){return t&&this.registerQuery(t),this._observable$.pipe(El(function(e){return!t||e.mediaQuery===t}))},t.prototype.registerQuery=function(t){var e=this,n=function(t){return void 0===t?[]:"string"==typeof t?[t]:(e={},t.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)}));var e}(t);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(t){var n=e._registry.get(t),r=function(n){e._zone.run(function(){var r=new R_(n.matches,t);e._source.next(r)})};n||((n=e._buildMQL(t)).addListener(r),e._registry.set(t,n)),n.matches&&r(n)}))},t.prototype._buildMQL=function(t){return Vu(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}},t.prototype._prepareQueryCSS=function(t,e){var n=t.filter(function(t){return!j_[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach(function(t){return j_[t]=i})}catch(t){console.error(t)}}},t.ngInjectableDef=K({factory:function(){return new t(Dt(Re),Dt(ue),Dt(Nu))},token:t,providedIn:"root"}),t}(),j_={};function M_(t,e){return S_(t,e?{mqAlias:e.alias,suffix:e.suffix}:{})}var N_=function(){},L_=function(){function t(t,e){this.breakpoints=t,this.mediaWatcher=e,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return t.prototype.isActive=function(t){var e=this._toMediaQuery(t);return this.mediaWatcher.isActive(e)},t.prototype.subscribe=function(t,e,n){return t&&"object"==typeof t?this.observable$.subscribe(t.next,t.error,t.complete):this.observable$.subscribe(t,e,n)},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,e=this;return this.mediaWatcher.observe().pipe(El(function(t){return!0===t.matches}),El(function(n){var r=t.breakpoints.findByQuery(n.mediaQuery);return!r||!(e.filterOverlaps&&r.overlapping)}),w(function(e){return M_(e,t._findByQuery(e.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 e=this._findByAlias(t)||this._findByQuery(t);return e?e.mediaQuery:t},t.ngInjectableDef=K({factory:function(){return new t(Dt(A_),Dt(D_))},token:t,providedIn:"root"}),t}(),F_=function(){},V_=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.ngInjectableDef=K({factory:function(){return new t},token:t,providedIn:"root"}),t}(),z_=new W("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),B_=["row","column","row-reverse","column-reverse"],H_=function(){function t(t,e,n){this._options=t,this._mediaMonitor=e,this._onMediaChanges=n,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,e=[];return this._registryMap.forEach(function(n){t._keyInUse(n.key)&&e.push(t.mediaMonitor.observe(n.alias).pipe(w(function(e){return(e=e.clone()).property=t._options.baseKey,e})).subscribe(function(e){t._onMonitorEvents(e)}))}),e},t.prototype._buildRegistryMap=function(){var t=this;return this.mediaMonitor.breakpoints.map(function(e){return S_({},e,{baseKey:t._options.baseKey,key:t._options.baseKey+e.suffix})}).filter(function(e){return t._keyInUse(e.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 e=this._options.baseKey+t.suffix,n=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(n=t.matches?e:n==e?"":n),this.activatedInput},t.prototype._validateInputKey=function(t){var e=this,n=function(t){return!e._keyInUse(t)};return n(t)&&this.mediaMonitor.activeOverlaps.some(function(r){var i=e._options.baseKey+r.suffix;return!n(i)&&(t=i,!0)}),t},t.prototype._lookupKeyValue=function(t){return this._options.inputKeys[t]},t}(),U_=function(){function t(t,e,n){this._mediaMonitor=t,this._elementRef=e,this._styler=n,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 e,n,r="baseKey";this._mqActivation&&(n=this._inputMap[r=this._mqActivation.activatedInputKey],this._inputMap[r]=t);var i=new wn(n,t,!1);this.ngOnChanges(((e={})[r]=i,e))},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,e){var n=this._queryInput(t);return void 0!==n&&null!==n&&""!==n?n:e},t.prototype._getDisplayStyle=function(t){return void 0===t&&(t=this.nativeElement),this._styler.lookupStyle(t,"display")},t.prototype._getAttributeValue=function(t,e){return void 0===e&&(e=this.nativeElement),this._styler.lookupAttributeValue(e,t)},t.prototype._getFlexFlowDirection=function(t,e){var n;void 0===e&&(e=!1);var r="row";if(t&&(r=(n=this._styler.getFlowDirection(t))[0],!n[1]&&e)){var i=function(t){var e,n,r=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return B_.find(function(t){return t===n})||(n=B_[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(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}(r),!!i]}(t);return n=r[2],void 0===(e=r[1])&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null}}(r);this._styler.applyStyleToElements(i,[t])}return r.trim()||"row"},t.prototype._applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this._styler.applyStyleToElement(n,t,e)},t.prototype._applyStyleToElements=function(t,e){this._styler.applyStyleToElements(t,e)},t.prototype._cacheInput=function(t,e){if("object"==typeof e)for(var n in e)this._inputMap[n]=e[n];else t&&(this._inputMap[t]=e)},t.prototype._listenForMediaQueryChanges=function(t,e,n){if(!this._mqActivation){var r=new function(t,e,n){this.baseKey=t,this.defaultValue=e,this.inputKeys=n}(t,e,this._inputMap);this._mqActivation=new H_(r,this._mediaMonitor,function(t){return n(t)})}return this._mqActivation},Object.defineProperty(t.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},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}(),q_=function(){function t(t,e){this._breakpoints=t,this._matchMedia=e,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(e){return t._matchMedia.isActive(e.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){var t=this,e=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!e&&t._matchMedia.isActive(n.mediaQuery)&&(e=n)});var n=this.breakpoints[0];return e||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this._breakpoints.findByAlias(t)||this._breakpoints.findByQuery(t);return this._matchMedia.isActive(e?e.mediaQuery:t)},t.prototype.observe=function(t){var e=this._breakpoints.findByAlias(t||"")||this._breakpoints.findByQuery(t||"");return this._matchMedia.observe(e?e.mediaQuery:t).pipe(w(function(t){return M_(t,e)}),El(function(t){return!e||""!==t.mqAlias}))},t.prototype._registerBreakpoints=function(){var t=this._breakpoints.sortedItems.map(function(t){return t.mediaQuery});this._matchMedia.registerQuery(t)},t.ngInjectableDef=K({factory:function(){return new t(Dt(A_),Dt(D_))},token:t,providedIn:"root"}),t}();function Q_(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(n)?"0":n}}return t}var K_=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:Q_(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:Q_(t);e.forEach(function(t){n._applyMultiValueStyleToElement(r,t)})},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");e===W_&&(e="");var n=this.lookupInlineStyle(t,"flex-direction")||zu(this._platformId)&&this._serverModuleLoaded?e:"";return[e||"row",n]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return Vu(this._platformId)?t.style[e]:this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(Vu(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():W_},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach(function(r){var i=Array.isArray(t[r])?t[r]:[t[r]];i.sort();for(var o=0,a=i;o0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.ngInjectableDef=K({factory:function(){return new t(Dt(V_,8),Dt(z_,8),Dt(ue),Dt(T_))},token:t,providedIn:"root"}),t}(),W_="block",G_=["false",!1,0];function Y_(t){return""!==t&&("false"===t||0===t||!t)}var Z_=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,r,i)||this;return s.layout=n,s.elRef=r,s.styleUtils=i,s.platformId=o,s.serverModuleLoaded=a,n&&(s._layoutWatcher=n.layout$.subscribe(function(){return s._updateWithValue()})),s}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"show",{set:function(t){this._cacheInput("show",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showXs",{set:function(t){this._cacheInput("showXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSm",{set:function(t){this._cacheInput("showSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showMd",{set:function(t){this._cacheInput("showMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLg",{set:function(t){this._cacheInput("showLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showXl",{set:function(t){this._cacheInput("showXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtSm",{set:function(t){this._cacheInput("showLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtMd",{set:function(t){this._cacheInput("showLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtLg",{set:function(t){this._cacheInput("showLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtXl",{set:function(t){this._cacheInput("showLtXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtXs",{set:function(t){this._cacheInput("showGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtSm",{set:function(t){this._cacheInput("showGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtMd",{set:function(t){this._cacheInput("showGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtLg",{set:function(t){this._cacheInput("showGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hide",{set:function(t){this._cacheInput("show",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideXs",{set:function(t){this._cacheInput("showXs",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideSm",{set:function(t){this._cacheInput("showSm",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideMd",{set:function(t){this._cacheInput("showMd",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLg",{set:function(t){this._cacheInput("showLg",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideXl",{set:function(t){this._cacheInput("showXl",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtSm",{set:function(t){this._cacheInput("showLtSm",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtMd",{set:function(t){this._cacheInput("showLtMd",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtLg",{set:function(t){this._cacheInput("showLtLg",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtXl",{set:function(t){this._cacheInput("showLtXl",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtXs",{set:function(t){this._cacheInput("showGtXs",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtSm",{set:function(t){this._cacheInput("showGtSm",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtMd",{set:function(t){this._cacheInput("showGtMd",Y_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtLg",{set:function(t){this._cacheInput("showGtLg",Y_(t))},enumerable:!0,configurable:!0}),e.prototype._getDisplayStyle=function(){return this.layout?"flex":t.prototype._getDisplayStyle.call(this)},e.prototype.ngOnChanges=function(t){this.hasInitialized&&(null!=t.show||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._display=this._getDisplayStyle();var n=this._getDefaultVal("show",!0);this._listenForMediaQueryChanges("show",n,function(t){e._updateWithValue(t.value)}),this._updateWithValue()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},e.prototype._updateWithValue=function(t){t=t||this._getDefaultVal("show",!0),this._mqActivation&&(t=this._mqActivation.activatedInput);var e=this._validateTruthy(t);this._applyStyleToElement(this._buildCSS(e)),zu(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display","")},e.prototype._buildCSS=function(t){return{display:t?this._display:"none"}},e.prototype._validateTruthy=function(t){return-1==G_.indexOf(t)},e}(U_),X_=function(){},$_=function(){function t(t){this.api=t,this.expanded=!1}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"groupImage",{get:function(){return this.api.galleryImageURL(this.group.imageUuid)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleServices",{get:function(){return this.services.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortedServices",{get:function(){return this.services.sort(function(t,e){return t.name>e.name?1:t.namee.group.id?1:t.group.id0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,fm(this._label.nativeElement,"transitionend").pipe(Il(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(t||n.hintLabel)throw fb("start");t=r}else if("end"===r.align){if(e)throw fb("end");e=r}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,r=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-start"),i=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){for(var o=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),a=this._getStartEnd(t.children[0].getBoundingClientRect()),s=0,l=0,u=t.children;l0?.75*s+10:0}for(var c=0;c enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function kb(t){return Oo(0,[(t()(),li(0,0,null,null,8,null,null,null,null,null,null,null)),(t()(),li(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(t()(),li(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),li(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),li(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(t()(),li(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(t()(),li(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),li(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),li(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function Ob(t){return Oo(0,[(t()(),li(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),_o(null,0)],null,null)}function Ib(t){return Oo(0,[(t()(),li(0,0,null,null,2,null,null,null,null,null,null,null)),_o(null,2),(t()(),Eo(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function Tb(t){return Oo(0,[_o(null,3),(t()(),si(0,null,null,0))],null,null)}function Pb(t){return Oo(0,[(t()(),li(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),Eo(-1,null,["\xa0*"]))],null,null)}function Ab(t){return Oo(0,[(t()(),li(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component.updateOutlineGap()&&r),r},null,null)),Zi(1,16384,null,0,Iu,[],{ngSwitch:[0,"ngSwitch"]},null),Zi(2,1196032,null,0,Cb,[xb,rn,Re],null,{event:"cdkObserveContent"}),(t()(),si(16777216,null,null,1,null,Ib)),Zi(4,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),si(16777216,null,null,1,null,Tb)),Zi(6,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),si(16777216,null,null,1,null,Pb)),Zi(8,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,4,0,!1),t(e,6,0,!0),t(e,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function Rb(t){return Oo(0,[(t()(),li(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),_o(null,4)],null,null)}function Db(t){return Oo(0,[(t()(),li(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(t()(),li(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,1,0,"accent"==n.color,"warn"==n.color)})}function jb(t){return Oo(0,[(t()(),li(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),_o(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function Mb(t){return Oo(0,[(t()(),li(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),Eo(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function Nb(t){return Oo(0,[(t()(),li(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),si(16777216,null,null,1,null,Mb)),Zi(2,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),_o(null,6),(t()(),li(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),_o(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function Lb(t){return Oo(2,[fo(671088640,1,{underlineRef:0}),fo(402653184,2,{_connectionContainerRef:0}),fo(402653184,3,{_inputContainerRef:0}),fo(671088640,4,{_label:0}),(t()(),li(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),li(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(t()(),si(16777216,null,null,1,null,kb)),Zi(7,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),si(16777216,null,null,1,null,Ob)),Zi(9,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),li(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),_o(null,1),(t()(),li(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(t()(),si(16777216,null,null,1,null,Ab)),Zi(14,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),si(16777216,null,null,1,null,Rb)),Zi(16,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),si(16777216,null,null,1,null,Db)),Zi(18,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),li(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),Zi(20,16384,null,0,Iu,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),si(16777216,null,null,1,null,jb)),Zi(22,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),si(16777216,null,null,1,null,Nb)),Zi(24,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,"outline"==n.appearance),t(e,9,0,n._prefixChildren.length),t(e,14,0,n._hasFloatingLabel()),t(e,16,0,n._suffixChildren.length),t(e,18,0,"outline"!=n.appearance),t(e,20,0,n._getDisplayedMessages()),t(e,22,0,"error"),t(e,24,0,"hint")},null)}function Fb(t){return new i.a(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?k(n):bl()).subscribe(e)})}var Vb=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new zb(t,this.compare,this.keySelector))},t}(),zb=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.b(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(mm.a)(this.keySelector)(t))===ym.a)return this.destination.error(ym.a.e);var n=!1;if(this.hasKey){if((n=Object(mm.a)(this.compare)(this.key,e))===ym.a)return this.destination.error(ym.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(a.a),Bb=0,Hb=new W("mat-select-scroll-strategy");function Ub(t){return function(){return t.scrollStrategies.reposition()}}var qb=function(t){function e(e,n,r,i,o,a,s,l,u,c,p,h){var d=t.call(this,o,i,s,l,c)||this;return d._viewportRuler=e,d._changeDetectorRef=n,d._ngZone=r,d._dir=a,d._parentFormField=u,d.ngControl=c,d._scrollStrategyFactory=h,d._panelOpen=!1,d._required=!1,d._scrollTop=0,d._multiple=!1,d._compareWith=function(t,e){return t===e},d._uid="mat-select-"+Bb++,d._destroy=new L,d._triggerFontSize=0,d._onChange=function(){},d._onTouched=function(){},d._optionIds="",d._transformOrigin="top",d._panelDoneAnimating=!1,d._panelDoneAnimatingStream=new L,d._scrollStrategy=d._scrollStrategyFactory(),d._offsetY=0,d._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],d._disableOptionCentering=!1,d._focused=!1,d.controlType="mat-select",d.ariaLabel="",d.optionSelectionChanges=Fb(function(){return d.options?R.apply(void 0,d.options.map(function(t){return t.onSelectionChange})):d._ngZone.onStable.asObservable().pipe(Il(1),om(function(){return d.optionSelectionChanges}))}),d.openedChange=new Ae,d._openedStream=d.openedChange.pipe(El(function(t){return t}),w(function(){})),d._closedStream=d.openedChange.pipe(El(function(t){return!t}),w(function(){})),d.selectionChange=new Ae,d.valueChange=new Ae,d.ngControl&&(d.ngControl.valueAccessor=d),d.tabIndex=parseInt(p)||0,d.id=d.id,d}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=gf(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=gf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=gf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new u_(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(function(t){return t.lift(new Vb(void 0,void 0))},nm(this._destroy)).subscribe(function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t._panelDoneAnimating=!1,t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(nm(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(lm(null),nm(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Il(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode;13===e||32===e||(this.multiple||t.altKey)&&(40===e||38===e||37===e||39===e)?(t.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(t)},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,r=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?r.setFirstItemActive():r.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!r.activeItem)if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var i=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(i?t.select():t.deselect())})}else{var o=r.activeItemIndex;r.onKeydown(t),this._multiple&&n&&t.shiftKey&&r.activeItem&&r.activeItemIndex!==o&&r.activeItem._selectViaInteraction()}else t.preventDefault(),r.activeItem._selectViaInteraction()},e.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Il(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value)})},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(function(t){return e._selectValue(t)}),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n&&this._keyManager.setActiveItem(n)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find(function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(t){return Ke()&&console.warn(t),!1}});return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new wf(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(nm(this._destroy)).subscribe(function(){t.focus(),t.close()}),this._keyManager.change.pipe(nm(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},e.prototype._resetOptions=function(){var t=this,e=R(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(nm(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),R.apply(void 0,this.options.map(function(t){return t._stateChanges})).pipe(nm(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()}),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(e,n){return t.indexOf(e)-t.indexOf(n)}),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new function(t,e){this.source=t,this.value=e}(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,r=this._keyManager.activeItemIndex||0,i=Jf(r,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(r+i)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,r){return void 0===e?t===n?r:void 0:e},void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=Jf(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},e.prototype._calculateOverlayScroll=function(t,e,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*t-e+r/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?60:32;if(this.multiple)t=44;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var a=0-(e.left+t-(r?i:0)),s=e.right+t-n.width+(r?0:i);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);return this._disableOptionCentering?0:(r=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*r-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e}(Mf(function(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],r=0;rt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Gb(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Gb(t.value)?null:Yb.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Gb(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Gb(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(Xb);return 0==e.length?null:function(t){return Jb(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(Xb);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r\n
\n \n
\n ')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+nw)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+rw)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function ow(t,e){t||uw(e,"Cannot find control with"),e.valueAccessor||uw(e,"No value accessor for form control with"),t.validator=Zb.compose([t.validator,e.validator]),t.asyncValidator=Zb.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&aw(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&aw(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function aw(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function sw(t,e){null==t&&uw(e,"Cannot find control with"),t.validator=Zb.compose([t.validator,e.validator]),t.asyncValidator=Zb.composeAsync([t.asyncValidator,e.asyncValidator])}function lw(t){return uw(t,"There is no FormControl instance attached to form control element with")}function uw(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function cw(t){return null!=t?Zb.compose(t.map(tw)):null}function pw(t){return null!=t?Zb.composeAsync(t.map(ew)):null}function hw(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function dw(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function fw(t){var e=yw(t)?t.validators:t;return Array.isArray(e)?cw(e):e||null}function mw(t,e){var n=yw(e)?e.asyncValidators:t;return Array.isArray(n)?pw(n):n||null}function yw(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var gw=function(){function t(t,e){this.validator=t,this.asyncValidator=e,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=fw(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=mw(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(e){e.disable(Object(r.a)({},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(e){e.enable(Object(r.a)({},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(e){return e._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 e=this;if(this.asyncValidator){this.status="PENDING";var n=$b(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof _w?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof bw&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},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 Ae,this.statusChanges=new Ae},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(e){return e.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){yw(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),vw=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,fw(n),mw(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.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))},e.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},e}(gw),_w=function(t){function e(e,n,r){var i=t.call(this,fw(n),mw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof vw?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.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+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.e)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(gw),bw=function(t){function e(e,n,r){var i=t.call(this,fw(n),mw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof vw?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.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)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.e)(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(gw),ww=Promise.resolve(null),xw=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Ae,r.form=new _w({},cw(e),pw(n)),r}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;ww.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),ow(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;ww.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),dw(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;ww.then(function(){var n=e._findContainer(t.path),r=new _w({});sw(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;ww.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;ww.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,hw(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(Wb),Cw=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Ae,r}return Object(r.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return ow(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){dw(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);sw(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);sw(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,hw(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return lw(e)}),e.valueAccessor.registerOnTouched(function(){return lw(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&ow(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=cw(this._validators);this.form.validator=Zb.compose([this.form.validator,t]);var e=pw(this._asyncValidators);this.form.asyncValidator=Zb.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||iw.missingFormException()},e}(Wb),Ew=Rr({encapsulation:2,styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper,.mat-form-field-appearance-standard .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel: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)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{transform:"scaleY(0)",minWidth:"100%",opacity:0},offset:null},options:void 0},{type:0,name:"showing",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:0,name:"showing-multiple",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:3,steps:[{type:11,selector:"@fadeInContent",animation:{type:9,options:null},options:null},{type:4,styles:null,timings:"150ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null},options:null},{type:1,expr:"* => void",animation:[{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"250ms 100ms linear"}],options:null}],options:{}},{type:7,name:"fadeInContent",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => showing",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Sw(t){return Oo(0,[(t()(),li(0,0,null,null,1,"span",[["class","mat-select-placeholder"]],null,null,null,null,null)),(t()(),Eo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.placeholder||"\xa0")})}function kw(t){return Oo(0,[(t()(),li(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),Eo(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.triggerValue||"\xa0")})}function Ow(t){return Oo(0,[_o(null,0),(t()(),si(0,null,null,0))],null,null)}function Iw(t){return Oo(0,[(t()(),li(0,0,null,null,5,"span",[["class","mat-select-value-text"]],null,null,null,null,null)),Zi(1,16384,null,0,Iu,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),si(16777216,null,null,1,null,kw)),Zi(3,16384,null,0,Pu,[hn,pn,Iu],null,null),(t()(),si(16777216,null,null,1,null,Ow)),Zi(5,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){t(e,1,0,!!e.component.customTrigger),t(e,5,0,!0)},null)}function Tw(t){return Oo(0,[(t()(),li(0,0,[[2,0],["panel",1]],null,3,"div",[],[[24,"@transformPanel",0],[4,"transformOrigin",null],[2,"mat-select-panel-done-animating",null],[4,"font-size","px"]],[[null,"@transformPanel.done"],[null,"keydown"]],function(t,e,n){var r=!0,i=t.component;return"@transformPanel.done"===e&&(r=!1!==i._panelDoneAnimatingStream.next(n.toState)&&r),"keydown"===e&&(r=!1!==i._handleKeydown(n)&&r),r},null,null)),Zi(1,278528,null,0,bu,[jn,Mn,rn,nn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),li(2,0,null,null,1,"div",[["class","mat-select-content"]],[[24,"@fadeInContent",0]],[[null,"@fadeInContent.done"]],function(t,e,n){var r=!0;return"@fadeInContent.done"===e&&(r=!1!==t.component._onFadeInDone()&&r),r},null,null)),_o(null,1)],function(t,e){var n=e.component;t(e,1,0,oi(1,"mat-select-panel ",n._getPanelTheme(),""),n.panelClass)},function(t,e){var n=e.component;t(e,0,0,n.multiple?"showing-multiple":"showing",n._transformOrigin,n._panelDoneAnimating,n._triggerFontSize),t(e,2,0,"showing")})}function Pw(t){return Oo(2,[fo(402653184,1,{trigger:0}),fo(671088640,2,{panel:0}),fo(402653184,3,{overlayDir:0}),(t()(),li(3,0,[[1,0],["trigger",1]],null,9,"div",[["aria-hidden","true"],["cdk-overlay-origin",""],["class","mat-select-trigger"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle()&&r),r},null,null)),Zi(4,16384,[["origin",4]],0,Gm,[rn],null,null),(t()(),li(5,0,null,null,5,"div",[["class","mat-select-value"]],null,null,null,null,null)),Zi(6,16384,null,0,Iu,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),si(16777216,null,null,1,null,Sw)),Zi(8,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),si(16777216,null,null,1,null,Iw)),Zi(10,278528,null,0,Tu,[hn,pn,Iu],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),li(11,0,null,null,1,"div",[["class","mat-select-arrow-wrapper"]],null,null,null,null,null)),(t()(),li(12,0,null,null,0,"div",[["class","mat-select-arrow"]],null,null,null,null,null)),(t()(),si(16777216,null,null,1,function(t,e,n){var r=!0,i=t.component;return"backdropClick"===e&&(r=!1!==i.close()&&r),"attach"===e&&(r=!1!==i._onAttached()&&r),"detach"===e&&(r=!1!==i.close()&&r),r},Tw)),Zi(14,671744,[[3,4]],0,Ym,[Qm,pn,hn,Wm,[2,sy]],{origin:[0,"origin"],positions:[1,"positions"],offsetY:[2,"offsetY"],minWidth:[3,"minWidth"],backdropClass:[4,"backdropClass"],scrollStrategy:[5,"scrollStrategy"],open:[6,"open"],hasBackdrop:[7,"hasBackdrop"],lockPosition:[8,"lockPosition"]},{backdropClick:"backdropClick",attach:"attach",detach:"detach"})],function(t,e){var n=e.component;t(e,6,0,n.empty),t(e,8,0,!0),t(e,10,0,!1),t(e,14,0,Li(e,4),n._positions,n._offsetY,null==n._triggerRect?null:n._triggerRect.width,"cdk-overlay-transparent-backdrop",n._scrollStrategy,n.panelOpen,"","")},null)}var Aw=!!df()&&{passive:!0},Rw=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return _l;var n=t instanceof rn?t.nativeElement:t,r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new L,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,Aw),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",a,Aw)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=t instanceof rn?t.nativeElement:t,n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})},t.ngInjectableDef=K({factory:function(){return new t(Dt(hf),Dt(Re))},token:t,providedIn:"root"}),t}(),Dw=function(){},jw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Mw=0,Nw=function(t){function e(e,n,r,i,o,a,s,l,u){var c=t.call(this,a,i,o,r)||this;return c._elementRef=e,c._platform=n,c.ngControl=r,c._autofillMonitor=l,c._uid="mat-input-"+Mw++,c._isServer=!1,c.focused=!1,c.stateChanges=new L,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return mf().has(t)}),c._inputValueAccessor=s||c._elementRef.nativeElement,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=gf(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=gf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&mf().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=gf(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(jw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus()},e}(Nf(function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r})),Lw=function(){},Fw=n("D8EZ"),Vw=Rr({encapsulation:0,styles:[[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:30%;padding:1rem;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);transition:.3s cubic-bezier(.25,.8,.25,1);flex:1 0 51%;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]],data:{}});function zw(t){return Oo(0,[(t()(),li(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Li(t,1)._selectViaInteraction()&&r),"keydown"===e&&(r=!1!==Li(t,1)._handleKeydown(n)&&r),r},cb,lb)),Zi(1,8568832,[[22,4]],0,$f,[rn,dn,[2,Xf],[2,Yf]],{value:[0,"value"]},null),(t()(),Eo(2,0,[" "," "]))],function(t,e){t(e,1,0,e.context.$implicit.id)},function(t,e){t(e,0,0,Li(e,1)._getTabIndex(),Li(e,1).selected,Li(e,1).multiple,Li(e,1).active,Li(e,1).id,Li(e,1).selected.toString(),Li(e,1).disabled.toString(),Li(e,1).disabled),t(e,2,0,e.context.$implicit.name)})}function Bw(t){return Oo(0,[(t()(),li(0,0,null,null,23,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),li(1,0,null,null,22,"mat-form-field",[["appaerance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,Lb,Sb)),Zi(2,7389184,null,7,_b,[rn,dn,[2,em],[2,sy],[2,vb],hf,Re,[2,Ev]],null,null),fo(335544320,15,{_control:0}),fo(335544320,16,{_placeholderChild:0}),fo(335544320,17,{_labelChild:0}),fo(603979776,18,{_errorChildren:1}),fo(603979776,19,{_hintChildren:1}),fo(603979776,20,{_prefixChildren:1}),fo(603979776,21,{_suffixChildren:1}),(t()(),li(10,0,null,3,4,"mat-label",[],null,null,null,null,null)),Zi(11,16384,[[17,4]],0,mb,[],null,null),(t()(),li(12,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Zi(13,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Authenticator"])),(t()(),li(15,0,null,1,8,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var r=!0,i=t.component;return"keydown"===e&&(r=!1!==Li(t,17)._handleKeydown(n)&&r),"focus"===e&&(r=!1!==Li(t,17)._onFocus()&&r),"blur"===e&&(r=!1!==Li(t,17)._onBlur()&&r),"selectionChange"===e&&(r=!1!==i.changeAuth(n.value)&&r),r},Pw,Ew)),$i(6144,null,Xf,null,[qb]),Zi(17,2080768,null,3,qb,[Cm,dn,Re,Lf,rn,[2,sy],[2,xw],[2,Cw],[2,_b],[8,null],[8,null],Hb],{value:[0,"value"]},{selectionChange:"selectionChange"}),fo(603979776,22,{options:1}),fo(603979776,23,{optionGroups:1}),fo(335544320,24,{customTrigger:0}),$i(2048,[[15,4]],db,null,[qb]),(t()(),si(16777216,null,1,1,null,zw)),Zi(23,278528,null,0,xu,[hn,pn,jn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,13,0),t(e,17,0,n.auths[0].id),t(e,23,0,n.auths)},function(t,e){t(e,1,1,["standard"==Li(e,2).appearance,"fill"==Li(e,2).appearance,"outline"==Li(e,2).appearance,"legacy"==Li(e,2).appearance,Li(e,2)._control.errorState,Li(e,2)._canLabelFloat,Li(e,2)._shouldLabelFloat(),Li(e,2)._hideControlPlaceholder(),Li(e,2)._control.disabled,Li(e,2)._control.autofilled,Li(e,2)._control.focused,"accent"==Li(e,2).color,"warn"==Li(e,2).color,Li(e,2)._shouldForward("untouched"),Li(e,2)._shouldForward("touched"),Li(e,2)._shouldForward("pristine"),Li(e,2)._shouldForward("dirty"),Li(e,2)._shouldForward("valid"),Li(e,2)._shouldForward("invalid"),Li(e,2)._shouldForward("pending"),!Li(e,2)._animationsEnabled]),t(e,15,1,[Li(e,17).id,Li(e,17).tabIndex,Li(e,17)._getAriaLabel(),Li(e,17)._getAriaLabelledby(),Li(e,17).required.toString(),Li(e,17).disabled.toString(),Li(e,17).errorState,Li(e,17).panelOpen?Li(e,17)._optionIds:null,Li(e,17).multiple,Li(e,17)._ariaDescribedby||null,Li(e,17)._getAriaActiveDescendant(),Li(e,17).disabled,Li(e,17).errorState,Li(e,17).required])})}function Hw(t){return Oo(0,[(t()(),li(0,0,null,null,53,"form",[["id","loginform"],["method","post"]],null,null,null,null,null)),(t()(),li(1,0,null,null,0,"input",[["id","token"],["name",""],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),li(2,0,null,null,0,"input",[["id","id_logouturl"],["name","logouturl"],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),li(3,0,null,null,0,"input",[["id","authenticator"],["name","authenticator"],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),li(4,0,null,null,49,"div",[["class","login-container"]],null,null,null,null,null)),(t()(),li(5,0,null,null,1,"div",[["class","login-brand"]],null,null,null,null,null)),(t()(),li(6,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),li(7,0,null,null,1,"div",[["class","login-info"]],null,null,null,null,null)),(t()(),Eo(8,null,[" "," "])),(t()(),li(9,0,null,null,44,"div",[["class","login-form"]],null,null,null,null,null)),(t()(),li(10,0,null,null,17,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),li(11,0,null,null,16,"mat-form-field",[["appearance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,Lb,Sb)),Zi(12,7389184,null,7,_b,[rn,dn,[2,em],[2,sy],[2,vb],hf,Re,[2,Ev]],{appearance:[0,"appearance"]},null),fo(335544320,1,{_control:0}),fo(335544320,2,{_placeholderChild:0}),fo(335544320,3,{_labelChild:0}),fo(603979776,4,{_errorChildren:1}),fo(603979776,5,{_hintChildren:1}),fo(603979776,6,{_prefixChildren:1}),fo(603979776,7,{_suffixChildren:1}),(t()(),li(20,0,null,3,4,"mat-label",[],null,null,null,null,null)),Zi(21,16384,[[3,4]],0,mb,[],null,null),(t()(),li(22,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Zi(23,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Username"])),(t()(),li(25,0,null,1,2,"input",[["autofocus",""],["class","mat-input-element mat-form-field-autofill-control"],["id","id_user"],["matInput",""],["name","user"],["required",""],["value",""]],[[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"blur"],[null,"focus"],[null,"input"]],function(t,e,n){var r=!0;return"blur"===e&&(r=!1!==Li(t,26)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==Li(t,26)._focusChanged(!0)&&r),"input"===e&&(r=!1!==Li(t,26)._onInput()&&r),r},null,null)),Zi(26,999424,null,0,Nw,[rn,hf,[8,null],[2,xw],[2,Cw],Lf,[8,null],Rw,Re],{id:[0,"id"],required:[1,"required"],value:[2,"value"]},null),$i(2048,[[1,4]],db,null,[Nw]),(t()(),li(28,0,null,null,17,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),li(29,0,null,null,16,"mat-form-field",[["appearance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,Lb,Sb)),Zi(30,7389184,null,7,_b,[rn,dn,[2,em],[2,sy],[2,vb],hf,Re,[2,Ev]],{appearance:[0,"appearance"]},null),fo(335544320,8,{_control:0}),fo(335544320,9,{_placeholderChild:0}),fo(335544320,10,{_labelChild:0}),fo(603979776,11,{_errorChildren:1}),fo(603979776,12,{_hintChildren:1}),fo(603979776,13,{_prefixChildren:1}),fo(603979776,14,{_suffixChildren:1}),(t()(),li(38,0,null,3,4,"mat-label",[],null,null,null,null,null)),Zi(39,16384,[[10,4]],0,mb,[],null,null),(t()(),li(40,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Zi(41,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Password"])),(t()(),li(43,0,null,1,2,"input",[["class","form-control mat-input-element mat-form-field-autofill-control"],["data-eye",""],["id","id_password"],["matInput",""],["name","password"],["type","password"]],[[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"blur"],[null,"focus"],[null,"input"]],function(t,e,n){var r=!0;return"blur"===e&&(r=!1!==Li(t,44)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==Li(t,44)._focusChanged(!0)&&r),"input"===e&&(r=!1!==Li(t,44)._onInput()&&r),r},null,null)),Zi(44,999424,null,0,Nw,[rn,hf,[8,null],[2,xw],[2,Cw],Lf,[8,null],Rw,Re],{id:[0,"id"],type:[1,"type"]},null),$i(2048,[[8,4]],db,null,[Nw]),(t()(),si(16777216,null,null,1,null,Bw)),Zi(47,16384,null,0,Eu,[hn,pn],{ngIf:[0,"ngIf"]},null),(t()(),li(48,0,null,null,5,"div",[["class","login-button"]],null,null,null,null,null)),(t()(),li(49,0,null,null,4,"button",[["color","primary"],["mat-stroked-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Fv,Lv)),Zi(50,180224,null,0,Mv,[rn,hf,If,[2,Ev]],{color:[0,"color"]},null),(t()(),li(51,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(52,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Login"]))],function(t,e){var n=e.component;t(e,12,0,"standard"),t(e,23,0),t(e,26,0,"id_user","",""),t(e,30,0,"standard"),t(e,41,0),t(e,44,0,"id_password","password"),t(e,47,0,n.auths.length>1),t(e,50,0,"primary"),t(e,52,0)},function(t,e){var n=e.component;t(e,6,0,n.api.staticURL("modern/img/login-img.png")),t(e,8,0,n.title),t(e,11,1,["standard"==Li(e,12).appearance,"fill"==Li(e,12).appearance,"outline"==Li(e,12).appearance,"legacy"==Li(e,12).appearance,Li(e,12)._control.errorState,Li(e,12)._canLabelFloat,Li(e,12)._shouldLabelFloat(),Li(e,12)._hideControlPlaceholder(),Li(e,12)._control.disabled,Li(e,12)._control.autofilled,Li(e,12)._control.focused,"accent"==Li(e,12).color,"warn"==Li(e,12).color,Li(e,12)._shouldForward("untouched"),Li(e,12)._shouldForward("touched"),Li(e,12)._shouldForward("pristine"),Li(e,12)._shouldForward("dirty"),Li(e,12)._shouldForward("valid"),Li(e,12)._shouldForward("invalid"),Li(e,12)._shouldForward("pending"),!Li(e,12)._animationsEnabled]),t(e,25,0,Li(e,26)._isServer,Li(e,26).id,Li(e,26).placeholder,Li(e,26).disabled,Li(e,26).required,Li(e,26).readonly,Li(e,26)._ariaDescribedby||null,Li(e,26).errorState,Li(e,26).required.toString()),t(e,29,1,["standard"==Li(e,30).appearance,"fill"==Li(e,30).appearance,"outline"==Li(e,30).appearance,"legacy"==Li(e,30).appearance,Li(e,30)._control.errorState,Li(e,30)._canLabelFloat,Li(e,30)._shouldLabelFloat(),Li(e,30)._hideControlPlaceholder(),Li(e,30)._control.disabled,Li(e,30)._control.autofilled,Li(e,30)._control.focused,"accent"==Li(e,30).color,"warn"==Li(e,30).color,Li(e,30)._shouldForward("untouched"),Li(e,30)._shouldForward("touched"),Li(e,30)._shouldForward("pristine"),Li(e,30)._shouldForward("dirty"),Li(e,30)._shouldForward("valid"),Li(e,30)._shouldForward("invalid"),Li(e,30)._shouldForward("pending"),!Li(e,30)._animationsEnabled]),t(e,43,0,Li(e,44)._isServer,Li(e,44).id,Li(e,44).placeholder,Li(e,44).disabled,Li(e,44).required,Li(e,44).readonly,Li(e,44)._ariaDescribedby||null,Li(e,44).errorState,Li(e,44).required.toString()),t(e,49,0,Li(e,50).disabled||null,"NoopAnimations"===Li(e,50)._animationMode)})}var Uw=ki("uds-login",Fw.a,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"uds-login",[],null,null,null,Hw,Vw)),Zi(1,114688,null,0,Fw.a,[Vv.a],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),qw=function(){function t(t){this.api=t}return t.prototype.ngOnInit=function(){},t.prototype.download=function(t){window.location.href=t},t.prototype.img=function(t){return this.api.staticURL("modern/img/"+t+".png")},t}(),Qw=Rr({encapsulation:0,styles:[[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1);flex:1 0 21%}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:justify}"]],data:{}});function Kw(t){return Oo(0,[(t()(),li(0,0,null,null,6,"div",[["class","plugin"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.download(t.context.$implicit.url)&&r),r},null,null)),(t()(),li(1,0,null,null,1,"div",[["class","image"]],null,null,null,null,null)),(t()(),li(2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),li(3,0,null,null,1,"div",[["class","platform"]],null,null,null,null,null)),(t()(),Eo(4,null,[" "," "])),(t()(),li(5,0,null,null,1,"div",[["class","description"]],null,null,null,null,null)),(t()(),Eo(6,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.img(e.context.$implicit.name)),t(e,4,0,e.context.$implicit.name),t(e,6,0,e.context.$implicit.description)})}function Ww(t){return Oo(0,[(t()(),li(0,0,null,null,13,"div",[["class","plugins-container"]],null,null,null,null,null)),(t()(),li(1,0,null,null,5,"div",[["class","banner"]],null,null,null,null,null)),(t()(),li(2,0,null,null,4,"div",[["class","banner-text"]],null,null,null,null,null)),(t()(),li(3,0,null,null,3,"h1",[],null,null,null,null,null)),(t()(),li(4,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Zi(5,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["UDS Client"])),(t()(),li(7,0,null,null,2,"div",[["class","plugins"]],null,null,null,null,null)),(t()(),si(16777216,null,null,1,null,Kw)),Zi(9,278528,null,0,xu,[hn,pn,jn],{ngForOf:[0,"ngForOf"]},null),(t()(),li(10,0,null,null,3,"div",[["class","info"]],null,null,null,null,null)),(t()(),li(11,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Zi(12,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Download UDS client for your platform"]))],function(t,e){var n=e.component;t(e,5,0),t(e,9,0,n.api.plugins),t(e,12,0)},null)}var Gw,Yw=ki("uds-client-download",qw,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"uds-client-download",[],null,null,null,Ww,Qw)),Zi(1,114688,null,0,qw,[Vv.a],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Zw={},Xw=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new $w(t,this.resultSelector))},t}(),$w=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.b(e,t),e.prototype._next=function(t){this.values.push(Zw),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n 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 px(t){return Oo(2,[(t()(),li(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,e,n){var r=!0,i=t.component;return"@state.start"===e&&(r=!1!==i._animationStart()&&r),"@state.done"===e&&(r=!1!==i._animationDone(n)&&r),r},null,null)),Zi(1,278528,null,0,bu,[jn,Mn,rn,nn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),Xi(131072,ju,[dn]),(t()(),Eo(3,null,["",""]))],function(t,e){t(e,1,0,"mat-tooltip",e.component.tooltipClass)},function(t,e){var n=e.component;t(e,0,0,Tr(e,0,0,Li(e,2).transform(n._isHandset)).matches,n._visibility),t(e,3,0,n.message)})}var hx=ki("mat-tooltip-component",lx,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(t,e,n){var r=!0;return"body:click"===e&&(r=!1!==Li(t,1)._handleBodyInteraction()&&r),r},px,cx)),Zi(1,49152,null,0,lx,[dn,nx],null,null)],null,function(t,e){t(e,0,0,"visible"===Li(e,1)._visibility?1:null)})},{},{},[]),dx=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 fx(){throw Error("Attempting to attach dialog content after content is already attached")}var mx=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=r,a._document=i,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Ae,a._ariaLabelledBy=null,a}return Object(r.b)(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&fx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&fx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},e.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()}))},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e}(Ld),yx=0,gx=function(){function t(t,e,n,r){void 0===r&&(r="mat-dialog-"+yx++);var i=this;this._overlayRef=t,this._containerInstance=e,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new L,this._afterClosed=new L,this._beforeClose=new L,this._locationChanges=E.a.EMPTY,e._id=r,e._animationStateChanged.pipe(El(function(t){return"done"===t.phaseName&&"enter"===t.toState}),Il(1)).subscribe(function(){i._afterOpen.next(),i._afterOpen.complete()}),e._animationStateChanged.pipe(El(function(t){return"done"===t.phaseName&&"exit"===t.toState}),Il(1)).subscribe(function(){return i._overlayRef.dispose()}),t.detachments().subscribe(function(){i._beforeClose.next(i._result),i._beforeClose.complete(),i._locationChanges.unsubscribe(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(El(function(t){return t.keyCode===nf&&!i.disableClose})).subscribe(function(){return i.close()}),n&&(this._locationChanges=n.subscribe(function(){i._containerInstance._config.closeOnNavigation&&i.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(El(function(t){return"start"===t.phaseName}),Il(1)).subscribe(function(){e._beforeClose.next(t),e._beforeClose.complete(),e._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 e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),vx=new W("MatDialogData"),_x=new W("mat-dialog-default-options"),bx=new W("mat-dialog-scroll-strategy");function wx(t){return function(){return t.scrollStrategies.block()}}var xx=function(){function t(t,e,n,r,i,o,a){var s=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=r,this._scrollStrategy=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new L,this._afterOpenAtThisLevel=new L,this._ariaHiddenElements=new Map,this.afterAllClosed=Fb(function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(lm(void 0))})}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,e){var n=this;if((e=function(t,e){return Object(r.a)({},e,t)}(e,this._defaultOptions||new dx)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),o=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,o,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpen.next(a),a},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(e){return e.id===t})},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new km({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&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new Bd(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[dx,e]])),r=new Md(mx,e.viewContainerRef,n);return t.attach(r).instance},t.prototype._attachDialogContent=function(t,e,n,r){var i=new gx(n,e,this._location,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe(function(){i.disableClose||i.close()}),t instanceof pn)e.attachTemplatePortal(new Nd(t,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,e),a=e.attachComponentPortal(new Md(t,void 0,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},t.prototype._createInjector=function(t,e,n){var r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=new WeakMap([[mx,n],[vx,t.data],[gx,e]]);return!t.direction||r&&r.get(sy,null)||i.set(sy,{value:t.direction,change:xl()}),new Bd(r||this._injector,i)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t}(),Cx=0,Ex=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.ariaLabel="Close dialog"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Ix(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t}(),Sx=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Cx++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=Ix(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),kx=function(){},Ox=function(){};function Ix(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var Tx=function(){},Px=Rr({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 Ax(t){return Oo(0,[(t()(),si(0,null,null,0))],null,null)}function Rx(t){return Oo(0,[fo(402653184,1,{_portalOutlet:0}),(t()(),si(16777216,null,null,1,null,Ax)),Zi(2,212992,[[1,4]],0,Vd,[xe,hn],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var Dx=ki("mat-dialog-container",mx,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["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,e,n){var r=!0;return"component:@slideDialog.start"===e&&(r=!1!==Li(t,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===e&&(r=!1!==Li(t,1)._onAnimationDone(n)&&r),r},Rx,Px)),Zi(1,49152,null,0,mx,[rn,Of,dn,[2,Nu],dx],null,null)],null,function(t,e){t(e,0,0,Li(e,1)._id,Li(e,1)._config.role,Li(e,1)._config.ariaLabel?null:Li(e,1)._ariaLabelledBy,Li(e,1)._config.ariaLabel,Li(e,1)._config.ariaDescribedBy||null,Li(e,1)._state)})},{},{},[]),jx=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t,e){return this.sanitizer.bypassSecurityTrustHtml(t)},t}(),Mx=n("YY/e"),Nx=Rr({encapsulation:0,styles:[[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]],data:{}});function Lx(t){return Oo(0,[Xi(0,jx,[Bc]),(t()(),li(1,0,null,null,2,"h4",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"innerHTML",1],[8,"id",0]],null,null,null,null)),Zi(2,81920,null,0,Sx,[[2,gx],rn,xx],null,null),wo(3,1),(t()(),li(4,0,null,null,2,"mat-dialog-content",[["class","mat-dialog-content"]],[[8,"innerHTML",1]],null,null,null,null)),Zi(5,16384,null,0,kx,[],null,null),wo(6,1),(t()(),li(7,0,null,null,8,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),Zi(8,16384,null,0,Ox,[],null,null),(t()(),li(9,0,null,null,6,"button",[["mat-dialog-close",""],["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==Li(t,11).dialogRef.close(Li(t,11).dialogResult)&&r),"click"===e&&(r=!1!==i.close()&&r),r},Fv,Lv)),Zi(10,180224,null,0,Mv,[rn,hf,If,[2,Ev]],null,null),Zi(11,606208,null,0,Ex,[[2,gx],rn,xx],{dialogResult:[0,"dialogResult"]},null),(t()(),li(12,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Zi(13,81920,null,0,Av,[rn],null,null),(t()(),Eo(-1,null,["Close"])),(t()(),Eo(15,0,["",""]))],function(t,e){t(e,2,0),t(e,11,0,""),t(e,13,0)},function(t,e){var n=e.component;t(e,1,0,Tr(e,1,0,t(e,3,0,Li(e,0),n.data.title)),Li(e,2).id),t(e,4,0,Tr(e,4,0,t(e,6,0,Li(e,0),n.data.body))),t(e,9,0,Li(e,10).disabled||null,"NoopAnimations"===Li(e,10)._animationMode,Li(e,11).ariaLabel),t(e,15,0,n.extra)})}var Fx=ki("uds-modal",Mx.a,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"uds-modal",[],null,null,null,Lx,Nx)),Zi(1,114688,null,0,Mx.a,[gx,vx],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Vx=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._document=r,i}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){var t=this;Ke()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&[].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return t.textContent.trim()})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(jf(function(t){this._elementRef=t})),zx=function(){},Bx=Rr({encapsulation:2,styles:["@media screen and (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function Hx(t){return Oo(2,[_o(null,0),_o(null,1)],null,null)}var Ux=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.b(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(qd.a),qx=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.b(e,t),e}(Kd.a))(Ux),Qx=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.b(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new Kx(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(um.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(um.createError(t))},e.prototype._complete=function(){this.scheduleMessage(um.createComplete())},e}(a.a),Kx=function(t,e){this.notification=t,this.destination=e},Wx=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.b(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new Gx(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new D;if(this.isStopped||this.hasError?e=E.a.EMPTY:(this.observers.push(t),e=new j(this,t)),i&&t.add(t=new Qx(t,i)),n)for(var a=0;ae&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(L),Gx=function(t,e){this.time=t,this.value=e},Yx=["row","column","row-reverse","column-reverse"],Zx=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i._announcer=new Wx(1),i.layout$=i._announcer.asObservable(),i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"layout",{set:function(t){this._cacheInput("layout",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXs",{set:function(t){this._cacheInput("layoutXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutSm",{set:function(t){this._cacheInput("layoutSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutMd",{set:function(t){this._cacheInput("layoutMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLg",{set:function(t){this._cacheInput("layoutLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXl",{set:function(t){this._cacheInput("layoutXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtXs",{set:function(t){this._cacheInput("layoutGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtSm",{set:function(t){this._cacheInput("layoutGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtMd",{set:function(t){this._cacheInput("layoutGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtLg",{set:function(t){this._cacheInput("layoutGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtSm",{set:function(t){this._cacheInput("layoutLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtMd",{set:function(t){this._cacheInput("layoutLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtLg",{set:function(t){this._cacheInput("layoutLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtXl",{set:function(t){this._cacheInput("layoutLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.layout||this._mqActivation)&&this._updateWithDirection()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(t){e._updateWithDirection(t.value)})},e.prototype._updateWithDirection=function(t){t=t||this._queryInput("layout")||"row",this._mqActivation&&(t=this._mqActivation.activatedInput);var e=function(t){var e=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return Yx.find(function(t){return t===n})||(n=Yx[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(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}(r),!!i]}(t);return function(t,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e[0],"flex-wrap":n||null}}(0,e[1],e[2])}(t||"");this._applyStyleToElement(e),this._announcer.next({direction:e["flex-direction"],wrap:!!e["flex-wrap"]&&"nowrap"!==e["flex-wrap"]})},e}(U_),Xx=function(){},$x=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,r=t.config.available_languages;n0,0===Li(e,58)._toolbarRows.length),t(e,60,0,Li(e,62).disabled||null,"NoopAnimations"===Li(e,62)._animationMode),t(e,63,0,n.api.staticURL("modern/img/udsicon.png")),t(e,69,0,Li(e,71).disabled||null,"NoopAnimations"===Li(e,71)._animationMode),t(e,75,0,Li(e,77).disabled||null,"NoopAnimations"===Li(e,77)._animationMode),t(e,83,0,Li(e,84).disabled||null,"NoopAnimations"===Li(e,84)._animationMode,Li(e,85).menuOpen||null),t(e,86,0,n.lang.name),t(e,91,0,Li(e,92).disabled||null,"NoopAnimations"===Li(e,92)._animationMode,Li(e,93).menuOpen||null)})}var oC=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),aC=Rr({encapsulation:0,styles:[[""]],data:{}});function sC(t){return Oo(0,[(t()(),li(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),Eo(-1,null,["Copyright \xa9 2012-2018 "])),(t()(),li(2,0,null,null,1,"a",[["href","https://www.udsenterprise.com"]],null,null,null,null,null)),(t()(),Eo(-1,null,["Virtual Cable S.L.U."]))],null,null)}var lC=Rr({encapsulation:0,styles:[[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:4rem auto 0}@media only screen and (max-width:744px){.content[_ngcontent-%COMP%]{width:100%}}"]],data:{}});function uC(t){return Oo(0,[(t()(),li(0,0,null,null,1,"uds-navbar",[],null,null,null,iC,Jx)),Zi(1,114688,null,0,$x,[Vv.a],null,null),(t()(),li(2,0,null,null,6,"div",[["class","page"]],null,null,null,null,null)),(t()(),li(3,0,null,null,2,"div",[["class","content"]],null,null,null,null,null)),(t()(),li(4,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Zi(5,212992,null,0,ld,[sd,hn,xe,[8,null],dn],null,null),(t()(),li(6,0,null,null,2,"div",[["class","footer"]],null,null,null,null,null)),(t()(),li(7,0,null,null,1,"uds-footer",[],null,null,null,sC,aC)),Zi(8,114688,null,0,oC,[],null,null)],function(t,e){t(e,1,0),t(e,5,0),t(e,8,0)},null)}var cC=ki("uds-root",gl,function(t){return Oo(0,[(t()(),li(0,0,null,null,1,"uds-root",[],null,null,null,uC,lC)),Zi(1,114688,null,0,gl,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),pC=function(){},hC=function(){},dC=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}: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 e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[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,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(r.d)(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),fC=function(){function t(){}return t.prototype.encodeKey=function(t){return mC(t)},t.prototype.encodeValue=function(t){return mC(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function mC(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 yC=function(){function t(t){void 0===t&&(t={});var e,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new fC,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=Object(r.c)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],l=i.get(a)||[];l.push(s),i.set(a,l)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[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,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},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(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function gC(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function vC(t){return"undefined"!=typeof Blob&&t instanceof Blob}function _C(t){return"undefined"!=typeof FormData&&t instanceof FormData}var bC=function(){function t(t,e,n,r){var i;if(this.url=e,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)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new dC),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),CC=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=wC.ResponseHeader,n}return Object(r.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(xC),EC=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=wC.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(xC),SC=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.b)(e,t),e}(xC);function kC(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var OC=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof bC)r=t;else{var o;o=n.headers instanceof dC?n.headers:new dC(n.headers);var a=void 0;n.params&&(a=n.params instanceof yC?n.params:new yC({fromObject:n.params})),r=new bC(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=xl(r).pipe(Ql(function(t){return i.handler.handle(t)}));if(t instanceof bC||"events"===n.observe)return s;var l=s.pipe(El(function(t){return t instanceof EC}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(w(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(w(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(w(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 l.pipe(w(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new yC).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,kC(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,kC(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,kC(n,e))},t}(),IC=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),TC=new W("HTTP_INTERCEPTORS"),PC=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),AC=/^\)\]\}',?\n/,RC=function(){},DC=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),jC=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new dC(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new CC({headers:i,status:e,statusText:n,url:o})},u=function(){var e=l(),i=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var p=u;u=u.replace(AC,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=p,c&&(c=!1,u={error:t,text:u})}}c?(n.next(new EC({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new SC({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=new SC({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(l()),p=!0);var i={type:wC.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:wC.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:wC.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),MC=new W("XSRF_COOKIE_NAME"),NC=new W("XSRF_HEADER_NAME"),LC=function(){},FC=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,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=_u(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),VC=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),zC=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(TC,[]);this.chain=e.reduceRight(function(t,e){return new IC(t,e)},this.backend)}return this.chain.handle(t)},t}(),BC=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:VC,useClass:PC}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:MC,useValue:e.cookieName}:[],e.headerName?{provide:NC,useValue:e.headerName}:[]]}},t}(),HC=function(){},UC=n("OPAf"),qC=function(){},QC=function(){},KC={float:"always"},WC=function(){},GC=function(){},YC=function(){function t(t,e){zu(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return{ngModule:t,providers:Array.isArray(n)?e.serverLoaded?[{provide:T_,useValue:e},{provide:g_,useValue:n,multi:!0},{provide:z_,useValue:!0}]:[{provide:T_,useValue:e},{provide:g_,useValue:n,multi:!0}]:e.serverLoaded?[{provide:T_,useValue:e},{provide:z_,useValue:!0}]:[{provide:T_,useValue:e}]}},t}(),ZC=function(t,e,n){return new ja(yl,[gl],function(t){return function(t){for(var e={},n=[],r=!1,i=0;i=0}},"2Bdj":function(t,e,n){"use strict";function r(t){return"function"==typeof t}n.d(e,"a",function(){return r})},4:function(t,e,n){t.exports=n("zUnb")},"6ahw":function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n("iLxQ"),i=n("DKTb"),o={closed:!0,next:function(t){},error:function(t){if(r.a.useDeprecatedSynchronousErrorHandling)throw t;Object(i.a)(t)},complete:function(){}}},"6blF":function(t,e,n){"use strict";var r=n("FFOo"),i=n("L/V9"),o=n("6ahw"),a=n("xTla"),s=n("y3By"),l=n("iLxQ");n.d(e,"a",function(){return u});var u=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var a=this.operator,s=function(t,e,n){if(t){if(t instanceof r.a)return t;if(t[i.a])return t[i.a]()}return t||e||n?new r.a(t,e,n):new r.a(o.a)}(t,e,n);if(a?a.call(s,this.source):s._addParentTeardownLogic(this.source||l.a.useDeprecatedSynchronousErrorHandling&&!s.syncErrorThrowable?this._subscribe(s):this._trySubscribe(s)),l.a.useDeprecatedSynchronousErrorHandling&&s.syncErrorThrowable&&(s.syncErrorThrowable=!1,s.syncErrorThrown))throw s.syncErrorValue;return s},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){l.a.useDeprecatedSynchronousErrorHandling&&(t.syncErrorThrown=!0,t.syncErrorValue=e),t.error(e)}},t.prototype.forEach=function(t,e){var n=this;return new(e=c(e))(function(e,r){var i;i=n.subscribe(function(e){try{t(e)}catch(t){r(t),i&&i.unsubscribe()}},r,e)})},t.prototype._subscribe=function(t){var e=this.source;return e&&e.subscribe(t)},t.prototype[a.a]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e0&&(this.auth.value=this.auths[0].id)},LoginComponent.prototype.changeAuth=function(auth){var _this=this;this.auth.value=auth;for(var doCustomAuth=function(data){_this.visible=!1,eval(data)},_i=0,_a=this.auths;_i<_a.length;_i++){var l=_a[_i];l.id===auth&&l.is_custom&&this.api.getAuthCustomHtml(l.id).subscribe(function(t){return doCustomAuth(t)})}},LoginComponent}()},DKTb:function(t,e,n){"use strict";function r(t){setTimeout(function(){throw t})}n.d(e,"a",function(){return r})},Ehmk:function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r,i=n("eihs");function o(){try{return r.apply(this,arguments)}catch(t){return i.a.e=t,i.a}}function a(t){return r=t,o}},FFOo:function(t,e,n){"use strict";n.d(e,"a",function(){return c});var r=n("mrSG"),i=n("2Bdj"),o=n("6ahw"),a=n("pugT"),s=n("L/V9"),l=n("iLxQ"),u=n("DKTb"),c=function(t){function e(e,n,r){var i=t.call(this)||this;switch(i.syncErrorValue=null,i.syncErrorThrown=!1,i.syncErrorThrowable=!1,i.isStopped=!1,i._parentSubscription=null,arguments.length){case 0:i.destination=o.a;break;case 1:if(!e){i.destination=o.a;break}if("object"==typeof e){if(h(e)){var a=e[s.a]();i.syncErrorThrowable=a.syncErrorThrowable,i.destination=a,a._addParentTeardownLogic(i)}else i.syncErrorThrowable=!0,i.destination=new p(i,e);break}default:i.syncErrorThrowable=!0,i.destination=new p(i,e,n,r)}return i}return r.b(e,t),e.prototype[s.a]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t),this._unsubscribeParentSubscription())},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete(),this._unsubscribeParentSubscription())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._addParentTeardownLogic=function(t){t!==this&&(this._parentSubscription=this.add(t))},e.prototype._unsubscribeParentSubscription=function(){null!==this._parentSubscription&&this._parentSubscription.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this._parent,e=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=t,this._parents=e,this._parentSubscription=null,this},e}(a.a),p=function(t){function e(e,n,r,a){var s,l=t.call(this)||this;l._parentSubscriber=e;var u=l;return Object(i.a)(n)?s=n:n&&(s=n.next,r=n.error,a=n.complete,n!==o.a&&(u=Object.create(n),Object(i.a)(u.unsubscribe)&&l.add(u.unsubscribe.bind(u)),u.unsubscribe=l.unsubscribe.bind(l))),l._context=u,l._next=s,l._error=r,l._complete=a,l}return r.b(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber,n=l.a.useDeprecatedSynchronousErrorHandling;if(this._error)n&&e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else if(e.syncErrorThrowable)n?(e.syncErrorValue=t,e.syncErrorThrown=!0):Object(u.a)(t),this.unsubscribe();else{if(this.unsubscribe(),n)throw t;Object(u.a)(t)}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};l.a.useDeprecatedSynchronousErrorHandling&&e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){if(this.unsubscribe(),l.a.useDeprecatedSynchronousErrorHandling)throw t;Object(u.a)(t)}},e.prototype.__tryOrSetError=function(t,e,n){if(!l.a.useDeprecatedSynchronousErrorHandling)throw new Error("bad call");try{e.call(this._context,n)}catch(e){return l.a.useDeprecatedSynchronousErrorHandling?(t.syncErrorValue=e,t.syncErrorThrown=!0,!0):(Object(u.a)(e),!0)}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(c);function h(t){return t instanceof c||"_addParentTeardownLogic"in t&&t[s.a]}},KIbp:function(module,__webpack_exports__,__webpack_require__){"use strict";__webpack_require__.d(__webpack_exports__,"a",function(){return UDSApiService});var _types_config__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("wlNb"),_gui_uds_gui_service__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("OPAf"),_helpers_plugin__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__("ePv7"),_environments_environment__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__("AytR"),UDSApiService=function(){function UDSApiService(t,e,n){this.http=t,this.gui=e,this.router=n,this.user=new _types_config__WEBPACK_IMPORTED_MODULE_0__.a(udsData.profile),this.transportsWindow=null,this.plugin=new _helpers_plugin__WEBPACK_IMPORTED_MODULE_2__.a(this)}return Object.defineProperty(UDSApiService.prototype,"config",{get:function(){return udsData.config},enumerable:!0,configurable:!0}),Object.defineProperty(UDSApiService.prototype,"plugins",{get:function(){return udsData.plugins},enumerable:!0,configurable:!0}),UDSApiService.prototype.enabler=function(t,e){var n=this.config.urls.enabler.replace("param1",t).replace("param2",e);return this.http.get(n)},UDSApiService.prototype.galleryImageURL=function(t){return this.config.urls.galleryImage.replace("param1",t)},UDSApiService.prototype.transportIconURL=function(t){return this.config.urls.transportIcon.replace("param1",t)},UDSApiService.prototype.staticURL=function(t){return _environments_environment__WEBPACK_IMPORTED_MODULE_3__.a.production?this.config.urls.static+t:"/static/"+t},UDSApiService.prototype.getServicesInformation=function(){return this.http.get(this.config.urls.services)},UDSApiService.prototype.executeCustomJSForServiceLaunch=function(){void 0!==udsData.customJSForServiceLaunch&&eval(udsData.customJSForServiceLaunch)},UDSApiService.prototype.gotoAdmin=function(){window.location.href=this.config.urls.admin},UDSApiService.prototype.logout=function(){window.location.href=this.config.urls.logout},UDSApiService.prototype.launchURL=function(t){this.plugin.launchURL(t)},UDSApiService.prototype.getAuthCustomHtml=function(t){return this.http.get(this.config.urls.customAuth+t,{responseType:"text"})},UDSApiService}()},"L/V9":function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r="function"==typeof Symbol&&"function"==typeof Symbol.for?Symbol.for("rxSubscriber"):"@@rxSubscriber"},McSo:function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}n.d(e,"a",function(){return r})},OPAf:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("YY/e"),i=function(){function t(t){this.dialog=t}return t.prototype.alert=function(t,e,n){void 0===n&&(n=0);var i=window.innerWidth<800?"80%":"40%";this.dialog.open(r.a,{width:i,data:{title:t,body:e,autoclose:n},disableClose:!0})},t}()},T1DM:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n("h9Dq"),i=new(n("CS9Q").a)(r.a)},"YY/e":function(t,e,n){"use strict";var r=n("6blF"),i=n("T1DM"),o=n("/21U");function a(t){var e=t.subscriber,n=t.counter,r=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:r},r)}n.d(e,"a",function(){return s});var s=function(){function t(t,e){this.dialogRef=t,this.data=e,this.subscription=null}return t.prototype.closed=function(){null!==this.subscription&&this.subscription.unsubscribe()},t.prototype.close=function(){this.dialogRef.close()},t.prototype.setExtra=function(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "},t.prototype.ngOnInit=function(){var t,e,n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe(function(t){n.closed()}),this.setExtra(this.data.autoclose),this.subscription=(t=1e3,void 0===t&&(t=0),void 0===e&&(e=i.a),(!Object(o.a)(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=i.a),new r.a(function(n){return n.add(e.schedule(a,t,{subscriber:n,counter:0,period:t})),n})).subscribe(function(t){var e=n.data.autoclose-1e3*(t+1);n.setExtra(e),e<=0&&n.close()}))},t}()},crnd:function(t,e){function n(t){return Promise.resolve().then(function(){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e})}n.keys=function(){return[]},n.resolve=n,t.exports=n,n.id="crnd"},ePv7:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=function(){function t(t){this.api=t}return t.prototype.doLaunch=function(t){this.api.gui.alert(django.gettext("Launching service"),'

'+django.gettext("Please wait")+'

'+django.gettext("Remember that UDS Plugin is required in order for this service to be launched")+"

",5e3);var e=document.getElementById("hiddenUdsLauncherIFrame");if(null===e){var n=document.createElement("div");n.id="testID",n.innerHTML='',document.body.appendChild(n),e=document.getElementById("hiddenUdsLauncherIFrame")}e.contentWindow.location.href=t},t.prototype.launchURL=function(e){var n=this;if("udsa://"===e.substring(0,7)){var r=e.split("//")[1].split("/");this.api.enabler(r[0],r[1]).subscribe(function(t){void 0!==t.error&&""!==t.error?alert(t.error):("https:"===window.location.protocol&&(t.url=t.url.replace("uds://","udss://")),n.doLaunch(t.url))})}else null!==t.transportsWindow&&t.transportsWindow.close(),t.transportsWindow=window.open(e,"uds_transport_window")},t.transportsWindow=null,t}()},eihs:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r={e:{}}},h9Dq:function(t,e,n){"use strict";var r=n("mrSG"),i=function(t){function e(e,n){return t.call(this)||this}return r.b(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(n("pugT").a);n.d(e,"a",function(){return o});var o=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r.pending=!1,r}return r.b(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(i)},iLxQ:function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=!1,i={Promise:void 0,set useDeprecatedSynchronousErrorHandling(t){r=t},get useDeprecatedSynchronousErrorHandling(){return r}}},isby:function(t,e,n){"use strict";n.d(e,"a",function(){return r});var r=Array.isArray||function(t){return t&&"number"==typeof t.length}},mrSG:function(t,e,n){"use strict";n.d(e,"b",function(){return i}),n.d(e,"a",function(){return o}),n.d(e,"e",function(){return a}),n.d(e,"c",function(){return s}),n.d(e,"d",function(){return l});var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,e)};function i(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var r,i,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(r=o.next()).done;)a.push(r.value)}catch(t){i={error:t}}finally{try{r&&!r.done&&(n=o.return)&&n.call(o)}finally{if(i)throw i.error}}return a}function l(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(b);function P(t){return t}function A(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),O(P,t)}function R(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof a&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.a?t[0]:A(n)(S(t,r))}function D(){return Error.call(this),this.message="object unsubscribed",this.name="ObjectUnsubscribedError",this}D.prototype=Object.create(Error.prototype);var j=D,M=function(t){function e(e,n){var r=t.call(this)||this;return r.subject=e,r.subscriber=n,r.closed=!1,r}return r.b(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(E.a),N=n("L/V9"),L=function(t){function e(e){var n=t.call(this,e)||this;return n.destination=e,n}return r.b(e,t),e}(a.a),F=function(t){function e(){var e=t.call(this)||this;return e.observers=[],e.closed=!1,e.isStopped=!1,e.hasError=!1,e.thrownError=null,e}return r.b(e,t),e.prototype[N.a]=function(){return new L(this)},e.prototype.lift=function(t){var e=new V(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new j;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i1)this.connection=null;else{var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()}}else this.connection=null},e}(a.a),U=function(t){function e(e,n){var r=t.call(this)||this;return r.source=e,r.subjectFactory=n,r._refCount=0,r._isComplete=!1,r}return r.b(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,(t=this._connection=new E.a).add(this.source.subscribe(new Q(this.getSubject(),this))),t.closed?(this._connection=null,t=E.a.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return z()(this)},e}(i.a).prototype,q={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:U._subscribe},_isComplete:{value:U._isComplete,writable:!0},getSubject:{value:U.getSubject},connect:{value:U.connect},refCount:{value:U.refCount}},Q=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return r.b(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(L);function K(){return new F}function W(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}var G=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?W({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Y="__parameters__";function Z(t,e,n){var i=function(t){return function(){for(var e=[],n=0;n ");else if("object"==typeof e){var i=[];for(var o in e)if(e.hasOwnProperty(o)){var a=e[o];i.push(o+":"+("string"==typeof a?JSON.stringify(a):at(a)))}r="{"+i.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(kt,"\n ")}function At(t,e){return new Error(Pt(t,e))}var Rt=void 0;function Dt(t){var e=Rt;return Rt=t,e}function jt(t,e){if(void 0===e&&(e=0),void 0===Rt)throw new Error("inject() must be called from an injection context");if(null===Rt){var n=t.ngInjectableDef;if(n&&"root"==n.providedIn)return void 0===n.value?n.value=n.factory():n.value;if(8&e)return null;throw new Error("Injector: NOT_FOUND ["+at(t)+"]")}return Rt.get(t,8&e?null:void 0,e)}function Mt(t){for(var e=[],n=0;n0&&(i=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==i}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:i,updateCb:n})},t.prototype.whenStable=function(t,e,n){if(n&&!this.taskTrackingZone)throw new Error('Task tracking zone is required when passing an update callback to whenStable(). Is "zone.js/dist/task-tracking.js" loaded?');this.addCallback(t,e,n),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findProviders=function(t,e,n){return[]},t}(),He=function(){function t(){this._applications=new Map,Ue.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},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,e){return void 0===e&&(e=!0),Ue.findTestabilityInTree(this,t,e)},t.ctorParameters=function(){return[]},t}(),Ue=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),qe=!0,Qe=!1,Ke=new G("AllowMultipleToken");function We(){return Qe=!0,qe}var Ge=function(t,e){this.name=t,this.token=e};function Ye(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,i=new G(r);return function(e){void 0===e&&(e=[]);var o=Ze();if(!o||o.injector.get(Ke,!1))if(t)t(n.concat(e).concat({provide:i,useValue:!0}));else{var a=n.concat(e).concat({provide:i,useValue:!0});!function(t){if(Ve&&!Ve.destroyed&&!Ve.injector.get(Ke,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ve=t.get(Xe);var e=t.get(ue,null);e&&e.forEach(function(t){return t()})}(vt.create({providers:a,name:r}))}return function(t){var e=Ze();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different configuration has been created. Please destroy it first.");return e}(i)}}function Ze(){return Ve&&!Ve.destroyed?Ve:null}var Xe=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,r=this,i="noop"===(n=e?e.ngZone:void 0)?new ze:("zone.js"===n?void 0:n)||new De({enableLongStackTrace:We()}),o=[{provide:De,useValue:i}];return i.run(function(){var e=vt.create({providers:o,parent:r.injector,name:t.moduleType.name}),n=t.create(e),a=n.injector.get(qt,null);if(!a)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return tn(r._modules,n)}),i.runOutsideAngular(function(){return i.onError.subscribe({next:function(t){a.handleError(t)}})}),function(t,e,i){try{var o=((a=n.injector.get(oe)).runInitializers(),a.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return ne(o)?o.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):o}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}var a}(a,i)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.injector.get(me),i=$e({},e);return r.createCompiler([i]).compileModuleAsync(t).then(function(t){return n.bootstrapModuleFactory(t,i)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Je);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+at(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(e)}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 $e(t,e){return Array.isArray(e)?e.reduce($e,t):Object(r.a)({},t,e)}var Je=function(){function t(t,e,n,r,o,a){var s=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=a,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=We(),this._zone.onMicrotaskEmpty.subscribe({next:function(){s._zone.run(function(){s.tick()})}});var l=new i.a(function(t){s._stable=s._zone.isStable&&!s._zone.hasPendingMacrotasks&&!s._zone.hasPendingMicrotasks,s._zone.runOutsideAngular(function(){t.next(s._stable),t.complete()})}),u=new i.a(function(t){var e;s._zone.runOutsideAngular(function(){e=s._zone.onStable.subscribe(function(){De.assertNotInAngularZone(),it(function(){s._stable||s._zone.hasPendingMacrotasks||s._zone.hasPendingMicrotasks||(s._stable=!0,t.next(!0))})})});var n=s._zone.onUnstable.subscribe(function(){De.assertInAngularZone(),s._stable&&(s._stable=!1,s._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=R(l,u.pipe(function(t){return z()((e=K,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,q);return r.source=t,r.subjectFactory=n,r})(t));var e}))}return t.prototype.bootstrap=function(t,e){var n,r=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof ge?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var i=n instanceof Se?null:this._injector.get(ke),o=n.create(vt.NULL,[],e||n.selector,i);o.onDestroy(function(){r._unloadComponent(o)});var a=o.injector.get(Be,null);return a&&o.injector.get(He).registerApplication(o.location.nativeElement,a),this._loadComponent(o),We()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var e=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=t._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(t){this._zone.runOutsideAngular(function(){return e._exceptionHandler.handleError(t)})}finally{this._runningTick=!1,Ae(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;tn(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(pe,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),tn(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=Pe("ApplicationRef#tick()"),t}();function tn(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var en=function(){},nn=function(t){return t[t.Important=1]="Important",t[t.DashCase=2]="DashCase",t}({}),rn=function(){},on=function(t){this.nativeElement=t},an=function(){},sn=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Re,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,e){return this._results.reduce(t,e)},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[rt()]=function(){return this._results[rt()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e){return e.reduce(function(e,n){var r=Array.isArray(n)?t(n):n;return e.concat(r)},[])}(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}(),ln=function(){},un={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},cn=function(){function t(t,e){this._compiler=t,this._config=e||un}return t.prototype.load=function(t){return this._compiler instanceof fe?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=Object(r.c)(t.split("#"),2),o=i[0],a=i[1];return void 0===a&&(a="default"),n("crnd")(o).then(function(t){return t[a]}).then(function(t){return pn(t,o,a)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=Object(r.c)(t.split("#"),2),i=e[0],o=e[1],a="NgFactory";return void 0===o&&(o="default",a=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then(function(t){return t[o+a]}).then(function(t){return pn(t,i,o)})},t}();function pn(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var hn=function(){},dn=function(){},fn=function(){},mn=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof yn?e.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}(),yn=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Object(r.b)(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n,i=this,o=this.childNodes.indexOf(t);-1!==o&&((n=this.childNodes).splice.apply(n,Object(r.d)([o+1,0],e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=i}))},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return function t(e,n,r){e.childNodes.forEach(function(e){e instanceof yn&&(n(e)&&r.push(e),t(e,n,r))})}(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return function t(e,n,r){e instanceof yn&&e.childNodes.forEach(function(e){n(e)&&r.push(e),e instanceof yn&&t(e,n,r)})}(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEach(function(n){n.name==t&&n.callback(e)})},e}(mn),gn=new Map;function vn(t){return gn.get(t)||null}function _n(t){gn.set(t.nativeNode,t)}function bn(t,e){var n=Cn(t),r=Cn(e);return n&&r?function(t,e,n){for(var r=t[rt()](),i=e[rt()]();;){var o=r.next(),a=i.next();if(o.done&&a.done)return!0;if(o.done||a.done)return!1;if(!n(o.value,a.value))return!1}}(t,e,bn):!(n||!t||"object"!=typeof t&&"function"!=typeof t||r||!e||"object"!=typeof e&&"function"!=typeof e)||ot(t,e)}var wn=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t.unwrap=function(e){return t.isWrapped(e)?e.wrapped:e},t.isWrapped=function(e){return e instanceof t},t}(),xn=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Cn(t){return!!En(t)&&(Array.isArray(t)||!(t instanceof Map)&&rt()in t)}function En(t){return null!==t&&("function"==typeof t||"object"==typeof t)}var Sn=function(){function t(){}return t.prototype.supports=function(t){return Cn(t)},t.prototype.create=function(t){return new On(t)},t}(),kn=function(t,e){return e},On=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||kn}return t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex',!this.inertBodyElement.querySelector||this.inertBodyElement.querySelector("svg")?(this.inertBodyElement.innerHTML='

',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=""+t+"";try{t=encodeURI(t)}catch(t){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(null);var n=e.response.body;return n.removeChild(n.firstChild),n},t.prototype.getInertBodyElement_DOMParser=function(t){t=""+t+"";try{var e=(new window.DOMParser).parseFromString(t,"text/html").body;return e.removeChild(e.firstChild),e}catch(t){return null}},t.prototype.getInertBodyElement_InertDocument=function(t){var e=this.inertDocument.createElement("template");return"content"in e?(e.innerHTML=t,e):(this.inertBodyElement.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(this.inertBodyElement),this.inertBodyElement)},t.prototype.stripCustomNsAttrs=function(t){for(var e=t.attributes,n=e.length-1;0")}else this.sanitizedSomething=!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();rr.hasOwnProperty(e)&&!Jn.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(cr(t))},t.prototype.checkClobberedElement=function(t,e){if(e&&(t.compareDocumentPosition(e)&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 e},t}(),lr=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,ur=/([^\#-~ |!])/g;function cr(t){return t.replace(/&/g,"&").replace(lr,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(ur,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function pr(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var hr=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"),dr=/^url\(([^)]+)\)$/,fr=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}({}),mr=function(){};function yr(t,e,n){var r=t.state,i=1792&r;return i===e?(t.state=-1793&r|n,t.initIndex=-1,!0):i===n}function gr(t,e,n){return(1792&t.state)===e&&t.initIndex<=n&&(t.initIndex=n+1,!0)}function vr(t,e){return t.nodes[e]}function _r(t,e){return t.nodes[e]}function br(t,e){return t.nodes[e]}function wr(t,e){return t.nodes[e]}function xr(t,e){return t.nodes[e]}var Cr={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 Er(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" 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,e){var n=new Error(t);return Sr(n,e),n}(i,t)}function Sr(t,e){t[Ft]=e,t[zt]=e.logError.bind(e)}function kr(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}var Or=function(){},Ir=new Map;function Tr(t){var e=Ir.get(t);return e||(e=at(t)+"_"+Ir.size,Ir.set(t,e)),e}function Pr(t,e,n,r){if(wn.isWrapped(r)){r=wn.unwrap(r);var i=t.def.nodes[e].bindingIndex+n,o=wn.unwrap(t.oldValues[i]);t.oldValues[i]=new wn(o)}return r}var Ar="$$undefined",Rr="$$empty";function Dr(t){return{id:Ar,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}var jr=0;function Mr(t,e,n,r){return!(!(2&t.state)&&ot(t.oldValues[e.bindingIndex+n],r))}function Nr(t,e,n,r){return!!Mr(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Lr(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!bn(i,r)){var o=e.bindings[n].name;throw Er(Cr.createDebugContext(t,e.nodeIndex),o+": "+i,o+": "+r,0!=(1&t.state))}}function Fr(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Vr(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function zr(t,e,n,r){try{return Fr(33554432&t.def.nodes[e].flags?_r(t,e).componentView:t),Cr.handleEvent(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}function Br(t){return t.parent?_r(t.parent,t.parentNodeDef.nodeIndex):null}function Hr(t){return t.parent?t.parentNodeDef.parent:null}function Ur(t,e){switch(201347067&e.flags){case 1:return _r(t,e.nodeIndex).renderElement;case 2:return vr(t,e.nodeIndex).renderText}}function qr(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function Qr(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function Kr(t){return 1<-1}(r)||"root"===i.providedIn&&r._def.isRoot))){var u=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:e.token.ngInjectableDef.factory,deps:[],index:u,token:e.token},t._providers[u]=fi,t._providers[u]=bi(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{Dt(o)}}function bi(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var i=n.length;switch(i){case 0:return new e;case 1:return new e(_i(t,n[0]));case 2:return new e(_i(t,n[0]),_i(t,n[1]));case 3:return new e(_i(t,n[0]),_i(t,n[1]),_i(t,n[2]));default:for(var o=new Array(i),a=0;a=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Si(n,e),Cr.dirtyParentQueries(r),Ci(r),r}function xi(t,e,n){var r=e?Ur(e,e.def.lastRenderRootNode):t.renderElement;$r(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function Ci(t){$r(t,3,null,null,void 0)}function Ei(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Si(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var ki=new Object;function Oi(t,e,n,r,i,o){return new Ii(t,e,n,r,i,o)}var Ii=function(t){function e(e,n,r,i,o,a){var s=t.call(this)||this;return s.selector=e,s.componentType=n,s._inputs=i,s._outputs=o,s.ngContentSelectors=a,s.viewDefFactory=r,s}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e)t.push({propName:n,templateName:e[n]});return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs)t.push({propName:e,templateName:this._outputs[e]});return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=Xr(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,a=Cr.createRootView(t,e||[],n,i,r,ki),s=br(a,o).instance;return n&&a.renderer.setAttribute(_r(a,0).renderElement,"ng-version",Lt.full),new Ti(a,new Di(a),s)},e}(ge),Ti=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i.hostView=n,i.changeDetectorRef=n,i.instance=r,i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new on(_r(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Li(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(ye);function Pi(t,e,n){return new Ai(t,e,n)}var Ai=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new on(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Li(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=Hr(t),t=t.parent;return t?new Li(t,e):new Li(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=wi(this._data,t);Cr.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Di(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof Se||(i=o.get(ke));var a=t.create(o,r,void 0,i);return this.insert(a.hostView,e),a},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,i,o,a=t;return i=a._view,o=(n=this._data).viewContainer._embeddedViews,null!==(r=e)&&void 0!==r||(r=o.length),i.viewContainerParent=this._view,Ei(o,r,i),function(t,e){var n=Br(e);if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),function(t,n){if(!(4&n.flags)){e.parent.def.nodeFlags|=4,n.flags|=4;for(var r=n.parent;r;)r.childFlags|=4,r=r.parent}}(0,e.parentNodeDef)}}(n,i),Cr.dirtyParentQueries(i),xi(n,r>0?o[r-1]:null,i),a.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n,r,i,o,a,s=this._embeddedViews.indexOf(t._view);return i=e,a=(o=(n=this._data).viewContainer._embeddedViews)[r=s],Si(o,r),null==i&&(i=o.length),Ei(o,i,a),Cr.dirtyParentQueries(a),Ci(a),xi(n,i>0?o[i-1]:null,a),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=wi(this._data,t);e&&Cr.destroyView(e)},t.prototype.detach=function(t){var e=wi(this._data,t);return e?new Di(e):null},t}();function Ri(t){return new Di(t)}var Di=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return $r(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(){Fr(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{Cr.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Cr.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)),Cr.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,Ci(this._view),Cr.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 ji(t,e){return new Mi(t,e)}var Mi=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Object(r.b)(e,t),e.prototype.createEmbeddedView=function(t){return new Di(Cr.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new on(_r(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(hn);function Ni(t,e){return new Li(t,e)}var Li=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=vt.THROW_IF_NOT_FOUND),Cr.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Tr(t)},e)},t}();function Fi(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=_r(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return vr(t,n.nodeIndex).renderText;if(20240&n.flags)return br(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function Vi(t){return new zi(t.renderer)}var zi=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=Object(r.c)(ii(e),2),i=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,i),i},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n0,e.provider.value,e.provider.deps);if(e.outputs.length)for(var r=0;r0,i=e.provider;switch(201347067&e.flags){case 512:return ao(t,e.parent,n,i.value,i.deps);case 1024:return function(t,e,n,i,o){var a=o.length;switch(a){case 0:return i();case 1:return i(lo(t,e,n,o[0]));case 2:return i(lo(t,e,n,o[0]),lo(t,e,n,o[1]));case 3:return i(lo(t,e,n,o[0]),lo(t,e,n,o[1]),lo(t,e,n,o[2]));default:for(var s=Array(a),l=0;l0)u=m,To(m)||(c=m);else for(;u&&f===u.nodeIndex+u.childCount;){var v=u.parent;v&&(v.childFlags|=u.childFlags,v.childMatchedQueries|=u.childMatchedQueries),c=(u=v)&&To(u)?u.renderParent:u}}return{factory:null,nodeFlags:a,rootNodeFlags:s,nodeMatchedQueries:l,flags:t,nodes:e,updateDirectives:n||Or,updateRenderer:r||Or,handleEvent:function(t,n,r,i){return e[n].element.handleEvent(t,r,i)},bindingCount:i,outputCount:o,lastRenderRootNode:d}}function To(t){return 0!=(1&t.flags)&&null===t.element.name}function Po(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.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 "+e.nodeIndex+"!");if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Ao(t,e,n,r){var i=jo(t.root,t.renderer,t,e,n);return Mo(i,t.component,r),No(i),i}function Ro(t,e,n){var r=jo(t,t.renderer,null,null,e);return Mo(r,n,n),No(r),r}function Do(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,jo(t.root,i,t,e.element.componentProvider,n)}function jo(t,e,n,r,i){var o=new Array(i.nodes.length),a=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:a,initIndex:-1}}function Mo(t,e,n){t.component=e,t.context=n}function No(t){var e;qr(t)&&(e=_r(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,i=0;i0&&di(t,e,0,n)&&(d=!0),h>1&&di(t,e,1,r)&&(d=!0),h>2&&di(t,e,2,i)&&(d=!0),h>3&&di(t,e,3,o)&&(d=!0),h>4&&di(t,e,4,a)&&(d=!0),h>5&&di(t,e,5,s)&&(d=!0),h>6&&di(t,e,6,l)&&(d=!0),h>7&&di(t,e,7,u)&&(d=!0),h>8&&di(t,e,8,c)&&(d=!0),h>9&&di(t,e,9,p)&&(d=!0),d}(t,e,n,r,i,o,a,s,l,u,c,p);case 2:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=!1,d=e.bindings,f=d.length;if(f>0&&Nr(t,e,0,n)&&(h=!0),f>1&&Nr(t,e,1,r)&&(h=!0),f>2&&Nr(t,e,2,i)&&(h=!0),f>3&&Nr(t,e,3,o)&&(h=!0),f>4&&Nr(t,e,4,a)&&(h=!0),f>5&&Nr(t,e,5,s)&&(h=!0),f>6&&Nr(t,e,6,l)&&(h=!0),f>7&&Nr(t,e,7,u)&&(h=!0),f>8&&Nr(t,e,8,c)&&(h=!0),f>9&&Nr(t,e,9,p)&&(h=!0),h){var m=e.text.prefix;f>0&&(m+=Oo(n,d[0])),f>1&&(m+=Oo(r,d[1])),f>2&&(m+=Oo(i,d[2])),f>3&&(m+=Oo(o,d[3])),f>4&&(m+=Oo(a,d[4])),f>5&&(m+=Oo(s,d[5])),f>6&&(m+=Oo(l,d[6])),f>7&&(m+=Oo(u,d[7])),f>8&&(m+=Oo(c,d[8])),f>9&&(m+=Oo(p,d[9]));var y=vr(t,e.nodeIndex).renderText;t.renderer.setValue(y,m)}return h}(t,e,n,r,i,o,a,s,l,u,c,p);case 16384:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=br(t,e.nodeIndex),d=h.instance,f=!1,m=void 0,y=e.bindings.length;return y>0&&Mr(t,e,0,n)&&(f=!0,m=co(t,h,e,0,n,m)),y>1&&Mr(t,e,1,r)&&(f=!0,m=co(t,h,e,1,r,m)),y>2&&Mr(t,e,2,i)&&(f=!0,m=co(t,h,e,2,i,m)),y>3&&Mr(t,e,3,o)&&(f=!0,m=co(t,h,e,3,o,m)),y>4&&Mr(t,e,4,a)&&(f=!0,m=co(t,h,e,4,a,m)),y>5&&Mr(t,e,5,s)&&(f=!0,m=co(t,h,e,5,s,m)),y>6&&Mr(t,e,6,l)&&(f=!0,m=co(t,h,e,6,l,m)),y>7&&Mr(t,e,7,u)&&(f=!0,m=co(t,h,e,7,u,m)),y>8&&Mr(t,e,8,c)&&(f=!0,m=co(t,h,e,8,c,m)),y>9&&Mr(t,e,9,p)&&(f=!0,m=co(t,h,e,9,p,m)),m&&d.ngOnChanges(m),65536&e.flags&&gr(t,256,e.nodeIndex)&&d.ngOnInit(),262144&e.flags&&d.ngDoCheck(),f}(t,e,n,r,i,o,a,s,l,u,c,p);case 32:case 64:case 128:return function(t,e,n,r,i,o,a,s,l,u,c,p){var h=e.bindings,d=!1,f=h.length;if(f>0&&Nr(t,e,0,n)&&(d=!0),f>1&&Nr(t,e,1,r)&&(d=!0),f>2&&Nr(t,e,2,i)&&(d=!0),f>3&&Nr(t,e,3,o)&&(d=!0),f>4&&Nr(t,e,4,a)&&(d=!0),f>5&&Nr(t,e,5,s)&&(d=!0),f>6&&Nr(t,e,6,l)&&(d=!0),f>7&&Nr(t,e,7,u)&&(d=!0),f>8&&Nr(t,e,8,c)&&(d=!0),f>9&&Nr(t,e,9,p)&&(d=!0),d){var m=wr(t,e.nodeIndex),y=void 0;switch(201347067&e.flags){case 32:y=new Array(h.length),f>0&&(y[0]=n),f>1&&(y[1]=r),f>2&&(y[2]=i),f>3&&(y[3]=o),f>4&&(y[4]=a),f>5&&(y[5]=s),f>6&&(y[6]=l),f>7&&(y[7]=u),f>8&&(y[8]=c),f>9&&(y[9]=p);break;case 64:y={},f>0&&(y[h[0].name]=n),f>1&&(y[h[1].name]=r),f>2&&(y[h[2].name]=i),f>3&&(y[h[3].name]=o),f>4&&(y[h[4].name]=a),f>5&&(y[h[5].name]=s),f>6&&(y[h[6].name]=l),f>7&&(y[h[7].name]=u),f>8&&(y[h[8].name]=c),f>9&&(y[h[9].name]=p);break;case 128:var g=n;switch(f){case 1:y=g.transform(n);break;case 2:y=g.transform(r);break;case 3:y=g.transform(r,i);break;case 4:y=g.transform(r,i,o);break;case 5:y=g.transform(r,i,o,a);break;case 6:y=g.transform(r,i,o,a,s);break;case 7:y=g.transform(r,i,o,a,s,l);break;case 8:y=g.transform(r,i,o,a,s,l,u);break;case 9:y=g.transform(r,i,o,a,s,l,u,c);break;case 10:y=g.transform(r,i,o,a,s,l,u,c,p)}}m.value=y}return d}(t,e,n,r,i,o,a,s,l,u,c,p);default:throw"unreachable"}}(t,e,i,o,a,s,l,u,c,p,h,d):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,i=0;i0&&Lr(t,e,0,n),h>1&&Lr(t,e,1,r),h>2&&Lr(t,e,2,i),h>3&&Lr(t,e,3,o),h>4&&Lr(t,e,4,a),h>5&&Lr(t,e,5,s),h>6&&Lr(t,e,6,l),h>7&&Lr(t,e,7,u),h>8&&Lr(t,e,8,c),h>9&&Lr(t,e,9,p)}(t,e,r,i,o,a,s,l,u,c,p,h):function(t,e,n){for(var r=0;r0){var o=new Set(t.modules);ia.forEach(function(e,r){if(o.has(r.ngInjectableDef.providedIn)){var i={token:r,flags:e.flags|(n?4096:0),deps:Gr(e.deps),value:e.value,index:t.providers.length};t.providers.push(i),t.providersByKey[Tr(r)]=i}})}}(t=t.factory(function(){return Or})),t):t}(r))}var ra=new Map,ia=new Map,oa=new Map;function aa(t){ra.set(t.token,t),"function"==typeof t.token&&t.token.ngInjectableDef&&"function"==typeof t.token.ngInjectableDef.providedIn&&ia.set(t.token,t)}function sa(t,e){var n=Xr(Xr(e.viewDefFactory).nodes[0].element.componentView);oa.set(t,n)}function la(){ra.clear(),ia.clear(),oa.clear()}function ua(t){if(0===ra.size)return t;var e=function(t){for(var e=[],n=null,r=0;r"}(e))}function ps(t){return Array.isArray(t)?t[0]:t}function hs(t){if(2===t.tNode.type){var e=t.data;return e[Ha]?e[Ha][Qa]:null}return t.tNode.next?t.view[t.tNode.next.index]:null}function ds(t){return t.tNode.child?ps((2===t.tNode.type?t.data:t.view)[t.tNode.child.index]):null}function fs(t){if(-1===t.tNode.index&&2===t.tNode.type){var e=t.data[$a];return-1===e?null:t.view[e].dynamicLContainerNode}var n=t.tNode.parent;return ps(n?t.view[n.index]:t.view[Qa])}var ms=[];function ys(t){for(var e=t[Qa];2===e.tNode.type;)ngDevMode&&La(t[Ba],"lViewData.parent"),e=(t=t[Ba])[Qa];return ngDevMode&&cs(e,3),ngDevMode&&La(e.data,"node.data"),e}function gs(t,e,n,r,i){0===t?ls(e)?e.insertBefore(n,r,i):n.insertBefore(r,i,!0):1===t?ls(e)?e.removeChild(n,r):n.removeChild(r):2===t&&(ngDevMode&&ngDevMode.rendererDestroyNode++,e.destroyNode(r))}function vs(t){if(-1===t[za].childIndex)return null;var e=t[t[za].childIndex];return e.data?e.data:e.dynamicLContainerNode.data}function _s(t,e){var n;return(n=t[Qa])&&2===n.tNode.type?fs(n).data:t[Ba]===e?null:t[Ba]}function bs(t){if(t[za]){var e=t;!function(t){var e=t[za].cleanup;if(null!=e){for(var n=0;n=h.length){var d=h[p]=Ys(e,p,r,i,s,null);if(!Es&&Cs){var f=Cs.tNode;f.next=d,f.dynamicContainerNode&&(f.dynamicContainerNode.next=d)}}c.tNode=h[p],Es&&(ks=null,(null==Cs.tNode.child&&Cs.view===Is||2===Cs.tNode.type)&&(Cs.tNode.child=c.tNode))}if(2==(2&e)&&u){var m=o;ngDevMode&&null!=m[Qa]&&Fa("lViewData[HOST_NODE] should not have been initialized"),m[Qa]=c,Ms&&(m[za].node=c.tNode)}return Cs=c,Es=!0,c}function Hs(t,e,n,r){var i,o=Es,a=Cs;if(null==t.data[Ba]&&t.data[Ya]&&!e.template)$s(t.data[Ya]);else try{Es=!0,Cs=null,i=Ns(t.data,t),Ks(),e.template(r,n),2&r?Fs():t.data[za].firstTemplatePass=Ms=!1}finally{Ls(i,1==(1&r)),Es=o,Cs=a}return t}function Us(t,e,n,r){var i=Ns(e,t);try{xs.begin&&xs.begin(),r?(Ks(),r(qs(e),n),Fs()):(js||(ns(Is,Ss,Os),rs(Ts,Ss.contentHooks,Ss.contentCheckHooks,Os)),Vs(Rs),Zs(0,Va))}finally{xs.end&&xs.end(),Ls(i)}}function qs(t){return 1&t[qa]?3:2}var Qs=null;function Ks(){Qs=null}function Ws(t,e,n,r,i){return ngDevMode&&ngDevMode.tView++,{id:t,template:e,viewQuery:i,node:null,data:Ds.slice(),childIndex:-1,bindingStartIndex:-1,directives:null,firstTemplatePass:!0,initHooks:null,checkHooks:null,contentHooks:null,contentCheckHooks:null,viewHooks:null,viewCheckHooks:null,destroyHooks:null,pipeDestroyHooks:null,cleanup:null,hostBindings:null,contentQueries:null,components:null,directiveRegistry:"function"==typeof n?n():n,pipeRegistry:"function"==typeof r?r():r,currentMatches:null}}function Gs(t,e){ngDevMode&&nl(-1),xs=t;var n,r=t.createRenderer(null,null),i="string"==typeof e?ls(r)?r.selectRootElement(e):r.querySelector(e):e;if(ngDevMode&&!i)throw new Error("Renderer: "+("string"==typeof e?"Host node with selector not found:":"Host node is required:")+" ["+("function"==typeof(n=e)?n.name||n:"string"==typeof n?n:null==n?"":""+n)+"]");return i}function Ys(t,e,n,r,i,o){return ngDevMode&&ngDevMode.tNode++,{type:t,index:e,flags:0,tagName:n,attrs:r,localNames:null,initialInputs:void 0,inputs:void 0,outputs:void 0,tViews:o,next:null,child:null,parent:i,dynamicContainerNode:null,detached:null,stylingTemplate:null,projection:null}}function Zs(t,e){ngDevMode&&nl(e);var n=Is[e];ngDevMode&&cs(n,3),ngDevMode&&La(n.data,"Component's host node should have an LViewData attached.");var r=n.data;Xs(r)&&6&r[qa]&&(ngDevMode&&nl(t,Ts),el(r,n,Ts[t]))}function Xs(t){return 8==(8&t[qa])}function $s(t){for(var e=0;e=(e?e.length:0)&&Fa("index expected to be a valid data index")}(t,e||Is)}function rl(t,e){null==e&&(e=Is),Na(e.length,t,"index "+t+" expected to be at the end of arr (length "+e.length+")")}function il(t){ngDevMode&&La(t,"expecting component got null");var e=t[Ps];return ngDevMode&&La(t,"object is not a component"),e}var ol=As;function al(t){return{components:[],scheduler:t,clean:ol}}var sl=function(){function t(t,e){this._view=t,this._appRef=null,this._viewContainerRef=null,this._lViewNode=null,this.context=e}return t.prototype._setComponentContext=function(t,e){this._view=t,this.context=e},Object.defineProperty(t.prototype,"destroyed",{get:function(){return 32==(32&this._view[qa])},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t,e;this._viewContainerRef&&Xs(this._view)&&(this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),this._viewContainerRef=null),ls(e=(t=this._view)[Xa])&&e.destroyNode&&function(e,n,r,i,o,a){for(var s=t[Qa],l=-1;s;){var u=null,c=s.tNode.type;if(3===c)gs(2,i,null,s.native,a),s.dynamicLContainerNode&&gs(2,i,null,s.dynamicLContainerNode.native,a);else if(0===c){gs(2,i,null,s.native,a);var p=s,h=p.dynamicLContainerNode?p.dynamicLContainerNode.data:p.data;(u=h[as].length?ds(h[as][0]):null)&&(a=p.dynamicLContainerNode?p.dynamicLContainerNode.native:p.native)}else if(1===c){var d=ys(s.view),f=d.tNode.projection[s.tNode.projection];ms[++l]=s,u=f?d.data[Ba][f.index]:null}else u=ds(s);if(null===u)for(null===(u=hs(s))&&8192&s.tNode.flags&&(u=hs(ms[l--]));s&&!u;){if(null===(s=fs(s))||s===n)return null;s.tNode.next||0!==c||(a=s.native),u=hs(s)}s=u}}(0,t[Qa],0,e),function(t){if(-1===t[za].childIndex)return bs(t);for(var e=vs(t);e;){var n=null;if(e.length>=Va?e[za].childIndex>-1&&(n=vs(e)):e[as].length&&(n=e[as][0].data),null==n){for(;e&&!e[Ha]&&e!==t;)bs(e),e=_s(e,t);bs(e||t),n=e&&e[Ha]}e=n}}(t),t[qa]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[Ga]||(t[Ga]=[])}(e=this._view).push(n),e[za].firstTemplatePass&&function(t){return t[za].cleanup||(t[za].cleanup=[])}(e).push(e[Ga].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;null!=e[Ba];)e[qa]|=4,e=e[Ba];var n,r;e[qa]|=4,ngDevMode&&La(e[Ya],"rootContext"),(n=e[Ya]).clean==As&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){$s(n),r(null),n.clean=As}))}(this._view)},t.prototype.detach=function(){this._view[qa]&=-9},t.prototype.reattach=function(){this._view[qa]|=8},t.prototype.detectChanges=function(){tl(this.context)},t.prototype.checkNoChanges=function(){!function(t){js=!0;try{tl(t)}finally{js=!1}}(this.context)},t.prototype.attachToViewContainerRef=function(t){this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){this._appRef=null},t.prototype.attachToAppRef=function(t){this._appRef=t},t}(),ll=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.resolveComponentFactory=function(t){return ngDevMode&&(void 0===e&&(e="Type passed in is not ComponentType, it does not have 'ngComponentDef' property."),t.ngComponentDef||Fa(e)),new hl(t.ngComponentDef);var e},e}(Ce);function ul(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push({propName:t[n],templateName:n});return e}var cl=new G("ROOT_CONTEXT_TOKEN",{providedIn:"root",factory:function(){return al(jt(pl))}}),pl=new G("SCHEDULER_TOKEN",{providedIn:"root",factory:function(){return requestAnimationFrame.bind(window)}}),hl=function(t){function e(e){var n=t.call(this)||this;return n.componentDef=e,n.componentType=e.type,n.selector=e.selectors[0][0],n.ngContentSelectors=[],n}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){return ul(this.componentDef.inputs)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return ul(this.componentDef.outputs)},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){var i,o,a=void 0===n,s=r?r.injector.get(en):us,l=a?(i=this.selector,ls(o=s.createRenderer(null,this.componentDef.rendererType)||ws)?o.createElement(i,Qs):null===Qs?o.createElement(i):o.createElementNS(Qs,i)):Gs(s,n),u=r&&!a?r.injector.get(cl):al(requestAnimationFrame.bind(window)),c=zs(s.createRenderer(l,this.componentDef.rendererType),Ws(-1,null,null,null,null),u,this.componentDef.onPush?4:2);c[Za]=r&&r.injector||null;var p,h,d=Ns(c,null);try{if(s.begin&&s.begin(),h=function(t,e,n,r){Es=!1,Cs=null;var i,o=Bs(0,3,e,null,null,zs(ws,(i=n.template).ngPrivateData||(i.ngPrivateData=Ws(-1,i,n.directiveDefs,n.pipeDefs,n.viewQuery)),null,n.onPush?4:2,r));return Ms&&(o.tNode.flags=4096,n.diPublic&&n.diPublic(n),Ss.directives=[n]),o}(0,l,this.componentDef),u.components.push(p=function(t,e,n){if(ngDevMode&&Na(Is[Ka],-1,"directives should be created before any bindings"),ngDevMode&&Na(Es,!0,"previousOrParentNode should be a parent"),Object.defineProperty(e,Ps,{enumerable:!1,value:Cs}),null==Ts&&(Is[Wa]=Ts=[]),ngDevMode&&rl(t,Ts),Ts[t]=e,Ms){var r=Cs.tNode.flags;0==(4095&r)?Cs.tNode.flags=t<<14|4096&r|1:(ngDevMode&&4095==(4095&r)&&Fa("Reached the max number of directives"),Cs.tNode.flags++)}else{var i=n.diPublic;i&&i(n)}return null!=n.attributes&&3==Cs.tNode.type&&function(t,e){for(var n=ls(ws),r=0;r>14,r=n+(4095&t),i=n;i=2&&(n=!0),function(r){return r.lift(new Il(t,e,n))}}var Il=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new Tl(t,this.accumulator,this.seed,this.hasSeed))},t}(),Tl=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=r,o.hasSeed=i,o.index=0,o}return r.b(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(a.a);function Pl(){return Error.call(this),this.message="argument out of range",this.name="ArgumentOutOfRangeError",this}Pl.prototype=Object.create(Error.prototype);var Al=Pl;function Rl(t){return function(e){return 0===t?bl():e.lift(new Dl(t))}}var Dl=function(){function t(t){if(this.total=t,this.total<0)throw new Al}return t.prototype.call=function(t,e){return e.subscribe(new jl(t,this.total))},t}(),jl=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.ring=new Array,r.count=0,r}return r.b(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;e.length0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i=2;return function(r){return r.pipe(t?Vl(function(e,n){return t(e,n,r)}):P,Rl(1),n?Ml(e):Wl(function(){return new Sl}))}}function Zl(t){return function(e){return 0===t?bl():e.lift(new Xl(t))}}var Xl=function(){function t(t){if(this.total=t,this.total<0)throw new Al}return t.prototype.call=function(t,e){return e.subscribe(new $l(t,this.total))},t}(),$l=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return r.b(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(a.a);function Jl(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?Vl(function(e,n){return t(e,n,r)}):P,Zl(1),n?Ml(e):Wl(function(){return new Sl}))}}function tu(t){return function(e){var n=new eu(t),r=e.lift(n);return n.caught=r}}var eu=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new nu(t,this.selector,this.caught))},t}(),nu=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.selector=n,i.caught=r,i}return r.b(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle();var r=new s(this,void 0,void 0);this.add(r),_(this,n,void 0,void 0,r)}},e}(b);function ru(){return A(1)}function iu(t,e){return function(n){return n.lift(new ou(t,e,n))}}var ou=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new au(t,this.predicate,this.thisArg,this.source))},t}(),au=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=r,o.source=i,o.index=0,o.thisArg=r||o,o}return r.b(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(a.a),su=function(){},lu=new G("Location Initialized"),uu=function(){},cu=new G("appBaseHref"),pu=function(){function t(e){var n=this;this._subject=new Re,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(hu(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,hu(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)},t}();function hu(t){return t.replace(/\/index.html$/,"")}var du=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=pu.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pu.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(uu),fu=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)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 r._baseHref=n,r}return Object(r.b)(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return pu.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+pu.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pu.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+pu.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(uu),mu=void 0,yu=["en",[["a","p"],["AM","PM"],mu],[["AM","PM"],mu,mu],[["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"]],mu,[["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"]],mu,[["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}",mu,"{1} 'at' {0}",mu],[".",",",";","%","+","-","E","\xd7","\u2030","\u221e","NaN",":"],["#,##0.###","#,##0%","\xa4#,##0.00","#E0"],"$","US Dollar",{},function(t){var e=Math.floor(Math.abs(t)),n=t.toString().replace(/^[^.]*\.?/,"").length;return 1===e&&0===n?1:5}],gu={},vu=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}({}),_u=new G("UseV4Plurals"),bu=function(){},wu=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return Object(r.b)(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return function(t){var e=t.toLowerCase().replace(/_/g,"-"),n=gu[e];if(n)return n;var r=e.split("-")[0];if(n=gu[r])return n;if("en"===r)return yu;throw new Error('Missing locale data for the locale "'+t+'".')}(t)[18]}(e||this.locale)(t)){case vu.Zero:return"zero";case vu.One:return"one";case vu.Two:return"two";case vu.Few:return"few";case vu.Many:return"many";default:return"other"}},e}(bu);function xu(t,e){var n,i;e=encodeURIComponent(e);try{for(var o=Object(r.e)(t.split(";")),a=o.next();!a.done;a=o.next()){var s=a.value,l=s.indexOf("="),u=Object(r.c)(-1==l?[s,""]:[s.slice(0,l),s.slice(l+1)],2),c=u[1];if(u[0].trim()===e)return decodeURIComponent(c)}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}var Cu=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,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&&(Cn(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 e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+at(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!0)}):Object.keys(t).forEach(function(n){return e._toggleClass(n,!!t[n])}))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return e._toggleClass(t,!1)}):Object.keys(t).forEach(function(t){return e._toggleClass(t,!1)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)})},t}(),Eu=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}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}(),Su=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,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){We()&&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(n){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((e=t).name||typeof e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}var e;if(this._differ){var n=this._differ.diff(this._ngForOf);n&&this._applyChanges(n)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Eu(null,e._ngForOf,-1,-1),i),a=new ku(t,o);n.push(a)}else null==i?e._viewContainer.remove(r):(o=e._viewContainer.get(r),e._viewContainer.move(o,i),a=new ku(t,o),n.push(a))});for(var r=0;r0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r0;a||(a=t[o]=[]);var l=Dc(e)?Zone.root:Zone.current;if(0===a.length)a.push({zone:l,handler:i});else{for(var u=!1,c=0;c-1},e}(hc),Bc=["alt","control","meta","shift"],Hc={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Uc=function(t){function e(e){return t.call(this,e)||this}return Object(r.b)(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,r){var i=e.parseEventName(n),o=e.eventCallback(i.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Wu().onAndCancel(t,i.domEventName,o)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Bc.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var a={};return a.domEventName=r,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=Wu().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Bc.forEach(function(r){r!=n&&(0,Hc[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(hc),qc=function(){},Qc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return Object(r.b)(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case fr.NONE:return e;case fr.HTML:return e instanceof Wc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{$n=$n||new Kn(t);var r=e?String(e):"";n=$n.getInertBodyElement(r);var i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,o=n.innerHTML,n=$n.getInertBodyElement(r)}while(r!==o);var a=new sr,s=a.sanitizeChildren(pr(n)||n);return We()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),s}finally{if(n)for(var l=pr(n)||n;l.firstChild;)l.removeChild(l.firstChild)}}(this._doc,String(e)));case fr.STYLE:return e instanceof Gc?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(dr);return e&&Yn(e[1])===e[1]||t.match(hr)&&function(t){for(var e=!0,n=!0,r=0;rt.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length0?t[t.length-1]:null}function Ap(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Rp(t){return t.pipe(A(),iu(function(t){return!0===t}))}function Dp(t){return re(t)?t:ne(t)?k(Promise.resolve(t)):xl(t)}function jp(t,e,n){return n?function(t,e){return Ip(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Fp(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var r in n.children){if(!e.children[r])return!1;if(!t(e.children[r],n.children[r]))return!1}return!0}(t.root,e.root):function(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,r,i){if(n.segments.length>i.length)return!!Fp(a=n.segments.slice(0,i.length),i)&&!r.hasChildren();if(n.segments.length===i.length){if(!Fp(n.segments,i))return!1;for(var o in r.children){if(!n.children[o])return!1;if(!t(n.children[o],r.children[o]))return!1}return!0}var a=i.slice(0,n.segments.length),s=i.slice(n.segments.length);return!!Fp(n.segments,a)&&!!n.children[_p]&&e(n.children[_p],r,s)}(e,n,n.segments)}(t.root,e.root)}var Mp=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=wp(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Hp.serialize(this)},t}(),Np=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Ap(e,function(t,e){return t.parent=n})}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 Up(this)},t}(),Lp=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=wp(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Yp(this)},t}();function Fp(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Vp(t,e){var n=[];return Ap(t.children,function(t,r){r===_p&&(n=n.concat(e(t,r)))}),Ap(t.children,function(t,r){r!==_p&&(n=n.concat(e(t,r)))}),n}var zp=function(){},Bp=function(){function t(){}return t.prototype.parse=function(t){var e=new th(t);return new Mp(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Up(e);if(n){var r=e.children[_p]?t(e.children[_p],!1):"",i=[];return Ap(e.children,function(e,n){n!==_p&&i.push(n+":"+t(e,!1))}),i.length>0?r+"("+i.join("//")+")":r}var o=Vp(e,function(n,r){return r===_p?[t(e.children[_p],!1)]:[r+":"+t(n,!1)]});return Up(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map(function(t){var n=e[t];return Array.isArray(n)?n.map(function(e){return Qp(t)+"="+Qp(e)}).join("&"):Qp(t)+"="+Qp(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Hp=new Bp;function Up(t){return t.segments.map(function(t){return Yp(t)}).join("/")}function qp(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Qp(t){return qp(t).replace(/%3B/gi,";")}function Kp(t){return qp(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function Wp(t){return decodeURIComponent(t)}function Gp(t){return Wp(t.replace(/\+/g,"%20"))}function Yp(t){return""+Kp(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Kp(t)+"="+Kp(e[t])}).join(""));var e}var Zp=/^[^\/()?;=#]+/;function Xp(t){var e=t.match(Zp);return e?e[0]:""}var $p=/^[^=?&#]+/,Jp=/^[^?&#]+/,th=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 Np([],{}):new Np([],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 e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[_p]=new Np(t,e)),n},t.prototype.parseSegment=function(){var t=Xp(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Lp(Wp(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Xp(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Xp(this.remaining);r&&this.capture(n=r)}t[Wp(e)]=Wp(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match($p))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var i=function(t){var e=t.match(Jp);return e?e[0]:""}(this.remaining);i&&this.capture(r=i)}var o=Gp(n),a=Gp(r);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Xp(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=_p);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[_p]:new Np([],o),this.consumeOptional("//")}return e},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}(),eh=function(t){this.segmentGroup=t||null},nh=function(t){this.urlTree=t};function rh(t){return new i.a(function(e){return e.error(new eh(t))})}function ih(t){return new i.a(function(e){return e.error(new nh(t))})}function oh(t){return new i.a(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}var ah=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(ke)}return t.prototype.apply=function(){var t=this;return this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,_p).pipe(w(function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)})).pipe(tu(function(e){if(e instanceof nh)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof eh)throw t.noMatchError(e);throw e}))},t.prototype.match=function(t){var e=this;return this.expandSegmentGroup(this.ngModule,this.config,t.root,_p).pipe(w(function(n){return e.createUrlTree(n,t.queryParams,t.fragment)})).pipe(tu(function(t){if(t instanceof eh)throw e.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,e,n){var r,i=t.segments.length>0?new Np([],((r={})[_p]=t,r)):t;return new Mp(i,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(w(function(t){return new Np([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,i){if(0===Object.keys(n).length)return xl({});var o=[],a=[],s={};return Ap(n,function(n,i){var l,u,c=(l=i,u=n,r.expandSegmentGroup(t,e,u,l)).pipe(w(function(t){return s[i]=t}));i===_p?o.push(c):a.push(c)}),xl.apply(null,o.concat(a)).pipe(ru(),Yl(),w(function(){return s}))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,o,a){var s=this;return xl.apply(void 0,Object(r.d)(n)).pipe(w(function(r){return s.expandSegmentAgainstRoute(t,e,n,r,i,o,a).pipe(tu(function(t){if(t instanceof eh)return xl(null);throw t}))}),ru(),Jl(function(t){return!!t}),tu(function(t,n){if(t instanceof Sl||"EmptyError"===t.name){if(s.noLeftoversInUrl(e,i,o))return xl(new Np([],{}));throw new eh(e)}throw t}))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,a){return ch(r)!==o?rh(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):rh(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?ih(o):this.lineralizeSegments(n,o).pipe(O(function(n){var o=new Np(n,{});return i.expandSegment(t,o,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var a=this,s=sh(e,r,i),l=s.consumedSegments,u=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return rh(e);var p=this.applyRedirectCommands(l,r.redirectTo,c);return r.redirectTo.startsWith("/")?ih(p):this.lineralizeSegments(r,p).pipe(O(function(r){return a.expandSegment(t,e,n,r.concat(i.slice(u)),o,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(w(function(t){return n._loadedConfig=t,new Np(i,{})})):xl(new Np(i,{}));var a=sh(e,n,i),s=a.consumedSegments,l=a.lastChild;if(!a.matched)return rh(e);var u=i.slice(l);return this.getChildConfig(t,n).pipe(O(function(t){var n=t.module,i=t.routes,a=function(t,e,n,i){return n.length>0&&function(t,e,n){return i.some(function(n){return uh(t,e,n)&&ch(n)!==_p})}(t,n)?{segmentGroup:lh(new Np(e,function(t,e){var n,i,o={};o[_p]=e;try{for(var a=Object(r.e)(t),s=a.next();!s.done;s=a.next()){var l=s.value;""===l.path&&ch(l)!==_p&&(o[ch(l)]=new Np([],{}))}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return o}(i,new Np(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return i.some(function(n){return uh(t,e,n)})}(t,n)?{segmentGroup:lh(new Np(t.segments,function(t,e,n,i){var o,a,s={};try{for(var l=Object(r.e)(n),u=l.next();!u.done;u=l.next()){var c=u.value;uh(t,e,c)&&!i[ch(c)]&&(s[ch(c)]=new Np([],{}))}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return Object(r.a)({},i,s)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,s,u,i),l=a.segmentGroup,c=a.slicedSegments;return 0===c.length&&l.hasChildren()?o.expandChildren(n,i,l).pipe(w(function(t){return new Np(s,t)})):0===i.length&&0===c.length?xl(new Np(s,{})):o.expandSegment(n,l,i,c,_p,!0).pipe(w(function(t){return new Np(s.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?xl(new Cp(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?xl(e._loadedConfig):function(t,e){var n=e.canLoad;return n&&0!==n.length?Rp(k(n).pipe(w(function(n){var r=t.get(n);return Dp(r.canLoad?r.canLoad(e):r(e))}))):xl(!0)}(t.injector,e).pipe(O(function(r){return r?n.configLoader.load(t.injector,e).pipe(w(function(t){return e._loadedConfig=t,t})):function(t){return new i.a(function(e){return e.error(((n=Error("NavigationCancelingError: Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false")).ngNavigationCancelingError=!0,n));var n})}(e)})):xl(new Cp([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return xl(n);if(r.numberOfChildren>1||!r.children[_p])return oh(t.redirectTo);r=r.children[_p]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new Mp(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Ap(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),a={};return Ap(e.children,function(e,o){a[o]=i.createSegmentGroup(t,e,n,r)}),new Np(o,a)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){var n,i,o=0;try{for(var a=Object(r.e)(e),s=a.next();!s.done;s=a.next()){var l=s.value;if(l.path===t.path)return e.splice(o),l;o++}}catch(t){n={error:t}}finally{try{s&&!s.done&&(i=a.return)&&i.call(a)}finally{if(n)throw n.error}}return t},t}();function sh(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=(e.matcher||xp)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function lh(t){if(1===t.numberOfChildren&&t.children[_p]){var e=t.children[_p];return new Np(t.segments.concat(e.segments),e.children)}return t}function uh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function ch(t){return t.outlet||_p}var ph=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 e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null},t.prototype.children=function(t){var e=hh(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=hh(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=dh(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return dh(t,this._root).map(function(t){return t.value})},t}();function hh(t,e){var n,i;if(t===e.value)return e;try{for(var o=Object(r.e)(e.children),a=o.next();!a.done;a=o.next()){var s=hh(t,a.value);if(s)return s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return null}function dh(t,e){var n,i;if(t===e.value)return[e];try{for(var o=Object(r.e)(e.children),a=o.next();!a.done;a=o.next()){var s=dh(t,a.value);if(s.length)return s.unshift(e),s}}catch(t){n={error:t}}finally{try{a&&!a.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return[]}var fh=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function mh(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var yh=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,xh(r,e),r}return Object(r.b)(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(ph);function gh(t,e){var n=function(t,e){var n=new bh([],{},{},"",{},_p,e,null,t.root,-1,{});return new wh("",new fh(n,[]))}(t,e),r=new Cl([new Lp("",{})]),i=new Cl({}),o=new Cl({}),a=new Cl({}),s=new Cl(""),l=new vh(r,i,a,s,o,_p,e,n.root);return l.snapshot=n.root,new yh(new fh(l,[]),n)}var vh=function(){function t(t,e,n,r,i,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this._futureSnapshot=s}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(w(function(t){return wp(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(w(function(t){return wp(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function _h(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var o=n[i],a=n[i-1];if(o.routeConfig&&""===o.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce(function(t,e){return{params:Object(r.a)({},t.params,e.params),data:Object(r.a)({},t.data,e.data),resolve:Object(r.a)({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(i))}var bh=function(){function t(t,e,n,r,i,o,a,s,l,u,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=l,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=wp(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=wp(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}(),wh=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,xh(r,n),r}return Object(r.b)(e,t),e.prototype.toString=function(){return Ch(this._root)},e}(ph);function xh(t,e){e.value._routerState=t,e.children.forEach(function(e){return xh(t,e)})}function Ch(t){var e=t.children.length>0?" { "+t.children.map(Ch).join(", ")+" } ":"";return""+t.value+e}function Eh(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,Ip(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),Ip(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&kh(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==Pp(n))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}(),Th=function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n};function Ph(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[_p]:""+t}function Ah(t,e,n){if(t||(t=new Np([],{})),0===t.segments.length&&t.hasChildren())return Rh(t,e,n);var r=function(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i=n.length)return o;var a=t.segments[i],s=Ph(n[r]),l=r0&&void 0===s)break;if(s&&l&&"object"==typeof l&&void 0===l.outlets){if(!Nh(s,l,a))return o;r+=2}else{if(!Nh(s,{},a))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex=2?function(n){return Object(Fl.a)(Ol(t,e),Rl(1),Ml(e))(n)}:function(e){return Object(Fl.a)(Ol(function(e,n,r){return t(e,n,r+1)}),Rl(1))(e)}}(function(t,e){return t})):xl(null)},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.setupChildRouteGuards=function(t,e,n,r){var i=this,o=mh(e);t.children.forEach(function(t){i.setupRouteGuards(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),Ap(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.setupRouteGuards=function(t,e,n,r){var i=t.value,o=e?e.value:null,a=n?n.getContext(t.value.outlet):null;if(o&&i.routeConfig===o.routeConfig){var s=this.shouldRunGuardsAndResolvers(o,i,i.routeConfig.runGuardsAndResolvers);s?this.canActivateChecks.push(new Lh(r)):(i.data=o.data,i._resolvedData=o._resolvedData),this.setupChildRouteGuards(t,e,i.component?a?a.children:null:n,r),s&&this.canDeactivateChecks.push(new Fh(a.outlet.component,o))}else o&&this.deactivateRouteAndItsChildren(e,a),this.canActivateChecks.push(new Lh(r)),this.setupChildRouteGuards(t,null,i.component?a?a.children:null:n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!Sh(t,e)||!Ip(t.queryParams,e.queryParams);case"paramsChange":default:return!Sh(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=mh(t),i=t.value;Ap(r,function(t,r){n.deactivateRouteAndItsChildren(t,i.component?e?e.children.getContext(r):null:e)}),this.canDeactivateChecks.push(new Fh(i.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this;return k(this.canDeactivateChecks).pipe(O(function(e){return t.runCanDeactivate(e.component,e.route)}),iu(function(t){return!0===t}))},t.prototype.runCanActivateChecks=function(){var t=this;return k(this.canActivateChecks).pipe(kl(function(e){return Rp(k([t.fireChildActivationStart(e.route.parent),t.fireActivationStart(e.route),t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))}),iu(function(t){return!0===t}))},t.prototype.fireActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new mp(t)),xl(!0)},t.prototype.fireChildActivationStart=function(t){return null!==t&&this.forwardEvent&&this.forwardEvent(new dp(t)),xl(!0)},t.prototype.runCanActivate=function(t){var e=this,n=t.routeConfig?t.routeConfig.canActivate:null;return n&&0!==n.length?Rp(k(n).pipe(w(function(n){var r=e.getToken(n,t);return Dp(r.canActivate?r.canActivate(t,e.future):r(t,e.future)).pipe(Jl())}))):xl(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1];return Rp(k(t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t})).pipe(w(function(t){return Rp(k(t.guards).pipe(w(function(r){var i=e.getToken(r,t.node);return Dp(i.canActivateChild?i.canActivateChild(n,e.future):i(n,e.future)).pipe(Jl())})))})))},t.prototype.extractCanActivateChild=function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return r&&0!==r.length?k(r).pipe(O(function(r){var i=n.getToken(r,e);return Dp(i.canDeactivate?i.canDeactivate(t,e,n.curr,n.future):i(t,e,n.curr,n.future)).pipe(Jl())})).pipe(iu(function(t){return!0===t})):xl(!0)},t.prototype.runResolve=function(t,e){return this.resolveNode(t._resolve,t).pipe(w(function(n){return t._resolvedData=n,t.data=Object(r.a)({},t.data,_h(t,e).resolve),null}))},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return xl({});if(1===r.length){var i=r[0];return this.getResolver(t[i],e).pipe(w(function(t){var e;return(e={})[i]=t,e}))}var o={};return k(r).pipe(O(function(r){return n.getResolver(t[r],e).pipe(w(function(t){return o[r]=t,t}))})).pipe(Yl(),w(function(){return o}))},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return Dp(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=function(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e.routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),zh=function(){},Bh=function(){function t(t,e,n,r,i,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=i,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=qh(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,_p),n=new bh([],Object.freeze({}),Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,{},_p,this.rootComponentType,null,this.urlTree.root,-1,{}),o=new fh(n,e),a=new wh(this.url,o);return this.inheritParamsAndData(a._root),xl(a)}catch(t){return new i.a(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=_h(n,this.paramsInheritanceStrategy);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEach(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n,r=this,i=Vp(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},i.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}n[t.value.outlet]=t.value}),i.sort(function(t,e){return t.value.outlet===_p?-1:e.value.outlet===_p?1:t.value.outlet.localeCompare(e.value.outlet)}),i},t.prototype.processSegment=function(t,e,n,i){var o,a;try{for(var s=Object(r.e)(t),l=s.next();!l.done;l=s.next()){var u=l.value;try{return this.processSegmentAgainstRoute(u,e,n,i)}catch(t){if(!(t instanceof zh))throw t}}}catch(t){o={error:t}}finally{try{l&&!l.done&&(a=s.return)&&a.call(s)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new zh},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new zh;if((t.outlet||_p)!==i)throw new zh;var o,a=[],s=[];if("**"===t.path){var l=n.length>0?Pp(n).parameters:{};o=new bh(n,l,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Wh(t),i,t.component,t,Hh(e),Uh(e)+n.length,Gh(t))}else{var u=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new zh;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||xp)(n,t,e);if(!i)throw new zh;var o={};Ap(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object(r.a)({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=u.consumedSegments,s=n.slice(u.lastChild),o=new bh(a,u.parameters,Object.freeze(Object(r.a)({},this.urlTree.queryParams)),this.urlTree.fragment,Wh(t),i,t.component,t,Hh(e),Uh(e)+a.length,Gh(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=qh(e,a,s,c,this.relativeLinkResolution),h=p.segmentGroup,d=p.slicedSegments;if(0===d.length&&h.hasChildren()){var f=this.processChildren(c,h);return[new fh(o,f)]}if(0===c.length&&0===d.length)return[new fh(o,[])];var m=this.processSegment(c,h,d,_p);return[new fh(o,m)]},t}();function Hh(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Uh(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)n+=(e=e._sourceSegment)._segmentIndexShift?e._segmentIndexShift:0;return n-1}function qh(t,e,n,i,o){if(n.length>0&&function(t,e,n){return i.some(function(n){return Qh(t,e,n)&&Kh(n)!==_p})}(t,n)){var a=new Np(e,function(t,e,n,i){var o,a,s={};s[_p]=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var l=Object(r.e)(n),u=l.next();!u.done;u=l.next()){var c=u.value;if(""===c.path&&Kh(c)!==_p){var p=new Np([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,s[Kh(c)]=p}}}catch(t){o={error:t}}finally{try{u&&!u.done&&(a=l.return)&&a.call(l)}finally{if(o)throw o.error}}return s}(t,e,i,new Np(n,t.children)));return a._sourceSegment=t,a._segmentIndexShift=e.length,{segmentGroup:a,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return i.some(function(n){return Qh(t,e,n)})}(t,n)){var s=new Np(t.segments,function(t,e,n,i,o,a){var s,l,u={};try{for(var c=Object(r.e)(i),p=c.next();!p.done;p=c.next()){var h=p.value;if(Qh(t,n,h)&&!o[Kh(h)]){var d=new Np([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===a?t.segments.length:e.length,u[Kh(h)]=d}}}catch(t){s={error:t}}finally{try{p&&!p.done&&(l=c.return)&&l.call(c)}finally{if(s)throw s.error}}return Object(r.a)({},o,u)}(t,e,n,i,t.children,o));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}var l=new Np(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function Qh(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Kh(t){return t.outlet||_p}function Wh(t){return t.data||{}}function Gh(t){return t.resolve||{}}var Yh=function(){},Zh=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),Xh=new G("ROUTES"),$h=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(w(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Cp(Tp(i.injector.get(Xh)).map(Op),i)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?k(this.loader.load(t)):Dp(t()).pipe(O(function(t){return t instanceof Oe?xl(t):k(e.compiler.compileModuleAsync(t))}))},t}(),Jh=function(){},td=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}();function ed(t){throw t}function nd(t,e,n){return e.parse("/")}function rd(t,e){return xl(null)}var id=function(){function t(t,e,n,r,i,o,a,s){var l=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=s,this.navigations=new Cl(null),this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new F,this.errorHandler=ed,this.malformedUriErrorHandler=nd,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:rd,afterPreactivation:rd},this.urlHandlingStrategy=new td,this.routeReuseStrategy=new Zh,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=i.get(ke),this.console=i.get(he);var u=i.get(De);this.isNgZoneEnabled=u instanceof De,this.resetConfig(s),this.currentUrlTree=new Mp(new Np([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new $h(o,a,function(t){return l.triggerEvent(new pp(t))},function(t){return l.triggerEvent(new hp(t))}),this.routerState=gh(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(e){var n=t.parseUrl(e.url),r="popstate"===e.type?"popstate":"hashchange",i=e.state&&e.state.navigationId?{navigationId:e.state.navigationId}:null;setTimeout(function(){t.scheduleNavigation(n,r,i,{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){Ep(t),this.config=t.map(Op),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,e){void 0===e&&(e={});var n=e.relativeTo,i=e.queryParams,o=e.fragment,a=e.preserveQueryParams,s=e.queryParamsHandling,l=e.preserveFragment;We()&&a&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=l?this.currentUrlTree.fragment:o,p=null;if(s)switch(s){case"merge":p=Object(r.a)({},this.currentUrlTree.queryParams,i);break;case"preserve":p=this.currentUrlTree.queryParams;break;default:p=i||null}else p=a?this.currentUrlTree.queryParams:i||null;return null!==p&&(p=this.removeEmptyProps(p)),function(t,e,n,i,o){if(0===n.length)return Oh(e.root,e.root,e,i,o);var a=function(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new Ih(!0,0,t);var e=0,n=!1,i=t.reduce(function(t,i,o){if("object"==typeof i&&null!=i){if(i.outlets){var a={};return Ap(i.outlets,function(t,e){a[e]="string"==typeof t?t.split("/"):t}),Object(r.d)(t,[{outlets:a}])}if(i.segmentPath)return Object(r.d)(t,[i.segmentPath])}return"string"!=typeof i?Object(r.d)(t,[i]):0===o?(i.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):Object(r.d)(t,[i])},[]);return new Ih(n,e,i)}(n);if(a.toRoot())return Oh(e.root,new Np([],{}),e,i,o);var s=function(t,n,r){if(t.isAbsolute)return new Th(e.root,!0,0);if(-1===r.snapshot._lastPathIndex)return new Th(r.snapshot._urlSegment,!0,0);var i=kh(t.commands[0])?0:1;return function(e,n,o){for(var a=r.snapshot._urlSegment,s=r.snapshot._lastPathIndex+i,l=t.numberOfDoubleDots;l>s;){if(l-=s,!(a=a.parent))throw new Error("Invalid number of '../'");s=a.segments.length}return new Th(a,!1,s-l)}()}(a,0,t),l=s.processChildren?Rh(s.segmentGroup,s.index,a.commands):Ah(s.segmentGroup,s.index,a.commands);return Oh(s.segmentGroup,l,e,i,o)}(u,this.currentUrlTree,t,p,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),We()&&this.isNgZoneEnabled&&!De.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=t instanceof Mp?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=(i=e.flush.bind(e,null),o=Qd++,Kd[o]=i,Promise.resolve().then(function(){return function(t){var e=Kd[t];e&&e()}(o)}),o)));var i,o},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(delete Kd[n],e.scheduled=void 0)},e}(Wd.a),Yd=n("CS9Q"),Zd=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.b(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}})}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some(function(t){return"function"!=typeof t.getLabel}))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(ql(function(t){return e._pressedLetters.push(t)}),lf(t),Vl(function(){return e._pressedLetters.length>0}),w(function(){return e._pressedLetters.join("")})).subscribe(function(t){for(var n=e._getItemsArray(),r=1;r=65&&e<=90||e>=48&&e<=57)&&this._letterKeyStream.next(String.fromCharCode(e)))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t);this._activeItemIndex=n,this._activeItem=e[n]},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var r=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[r]))return void this.setActiveItem(r)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof sn?this._items.toArray():this._items},t}(),Ef=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(Cf),Sf=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return Object(r.b)(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(Cf),kf=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 e=function(t){try{return t.frameElement}catch(t){return null}}(t.ownerDocument.defaultView||window);if(e){var n=e&&e.nodeName.toLowerCase();if(-1===If(e))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===n)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(e))return!1}var r=t.nodeName.toLowerCase(),i=If(t);if(t.hasAttribute("contenteditable"))return-1!==i;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(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 e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||Of(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=W({factory:function(){return new t(jt(mf))},token:t,providedIn:"root"}),t}();function Of(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function If(t){if(!Of(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var Tf=function(){function t(t,e,n,r,i){void 0===i&&(i=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=r,this._hasAttached=!1,this._enabled=!0,i||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;return!!this._hasAttached||(this._ngZone.runOutsideAngular(function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",function(){return t.focusLastTabbableElement()})),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",function(){return t.focusFirstTabbableElement()}))}),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusInitialElement())})})},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusFirstTabbableElement())})})},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise(function(e){t._executeOnStable(function(){return e(t.focusLastTabbableElement())})})},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var r=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(r)return r}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(Zl(1)).subscribe(t)},t}(),Pf=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new Tf(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=W({factory:function(){return new t(jt(kf),jt(De),jt(Vu))},token:t,providedIn:"root"}),t}(),Af=function(){function t(t,e){this._ngZone=t,this._platform=e,this._origin=null,this._windowFocused=!1,this._elementInfo=new Map,this._unregisterGlobalListeners=function(){},this._monitoredElementCount=0}return t.prototype.monitor=function(t,e){var n=this;if(void 0===e&&(e=!1),!this._platform.isBrowser)return xl(null);if(this._elementInfo.has(t)){var r=this._elementInfo.get(t);return r.checkChildren=e,r.subject.asObservable()}var i={unlisten:function(){},checkChildren:e,subject:new F};this._elementInfo.set(t,i),this._incrementMonitoredElementCount();var o=function(e){return n._onFocus(e,t)},a=function(e){return n._onBlur(e,t)};return this._ngZone.runOutsideAngular(function(){t.addEventListener("focus",o,!0),t.addEventListener("blur",a,!0)}),i.unlisten=function(){t.removeEventListener("focus",o,!0),t.removeEventListener("blur",a,!0)},i.subject.asObservable()},t.prototype.stopMonitoring=function(t){var e=this._elementInfo.get(t);e&&(e.unlisten(),e.subject.complete(),this._setClasses(t),this._elementInfo.delete(t),this._decrementMonitoredElementCount())},t.prototype.focusVia=function(t,e,n){this._setOriginForCurrentEventQueue(e),"function"==typeof t.focus&&t.focus(n)},t.prototype.ngOnDestroy=function(){var t=this;this._elementInfo.forEach(function(e,n){return t.stopMonitoring(n)})},t.prototype._registerGlobalListeners=function(){var t=this;if(this._platform.isBrowser){var e=function(){t._lastTouchTarget=null,t._setOriginForCurrentEventQueue("keyboard")},n=function(){t._lastTouchTarget||t._setOriginForCurrentEventQueue("mouse")},r=function(e){null!=t._touchTimeoutId&&clearTimeout(t._touchTimeoutId),t._lastTouchTarget=e.target,t._touchTimeoutId=setTimeout(function(){return t._lastTouchTarget=null},650)},i=function(){t._windowFocused=!0,t._windowFocusTimeoutId=setTimeout(function(){return t._windowFocused=!1})};this._ngZone.runOutsideAngular(function(){document.addEventListener("keydown",e,!0),document.addEventListener("mousedown",n,!0),document.addEventListener("touchstart",r,!yf()||{passive:!0,capture:!0}),window.addEventListener("focus",i)}),this._unregisterGlobalListeners=function(){document.removeEventListener("keydown",e,!0),document.removeEventListener("mousedown",n,!0),document.removeEventListener("touchstart",r,!yf()||{passive:!0,capture:!0}),window.removeEventListener("focus",i),clearTimeout(t._windowFocusTimeoutId),clearTimeout(t._touchTimeoutId),clearTimeout(t._originTimeoutId)}}},t.prototype._toggleClass=function(t,e,n){n?t.classList.add(e):t.classList.remove(e)},t.prototype._setClasses=function(t,e){this._elementInfo.get(t)&&(this._toggleClass(t,"cdk-focused",!!e),this._toggleClass(t,"cdk-touch-focused","touch"===e),this._toggleClass(t,"cdk-keyboard-focused","keyboard"===e),this._toggleClass(t,"cdk-mouse-focused","mouse"===e),this._toggleClass(t,"cdk-program-focused","program"===e))},t.prototype._setOriginForCurrentEventQueue=function(t){var e=this;this._ngZone.runOutsideAngular(function(){e._origin=t,e._originTimeoutId=setTimeout(function(){return e._origin=null},1)})},t.prototype._wasCausedByTouch=function(t){var e=t.target;return this._lastTouchTarget instanceof Node&&e instanceof Node&&(e===this._lastTouchTarget||e.contains(this._lastTouchTarget))},t.prototype._onFocus=function(t,e){var n=this._elementInfo.get(e);if(n&&(n.checkChildren||e===t.target)){var r=this._origin;r||(r=this._windowFocused&&this._lastFocusOrigin?this._lastFocusOrigin:this._wasCausedByTouch(t)?"touch":"program"),this._setClasses(e,r),this._emitOrigin(n.subject,r),this._lastFocusOrigin=r}},t.prototype._onBlur=function(t,e){var n=this._elementInfo.get(e);!n||n.checkChildren&&t.relatedTarget instanceof Node&&e.contains(t.relatedTarget)||(this._setClasses(e),this._emitOrigin(n.subject,null))},t.prototype._emitOrigin=function(t,e){this._ngZone.run(function(){return t.next(e)})},t.prototype._incrementMonitoredElementCount=function(){1==++this._monitoredElementCount&&this._registerGlobalListeners()},t.prototype._decrementMonitoredElementCount=function(){--this._monitoredElementCount||(this._unregisterGlobalListeners(),this._unregisterGlobalListeners=function(){})},t.ngInjectableDef=W({factory:function(){return new t(jt(De),jt(mf))},token:t,providedIn:"root"}),t}();function Rf(t){return 0===t.buttons}var Df=function(){},jf=new G("mat-sanity-checks",{providedIn:"root",factory:function(){return!0}}),Mf=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&&We()&&!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&&this._document.body&&"function"==typeof getComputedStyle){var t=this._document.createElement("div");t.classList.add("mat-theme-loaded-marker"),this._document.body.appendChild(t);var e=getComputedStyle(t);e&&"none"!==e.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 Nf(t){return function(t){function e(){for(var e=[],n=0;n0?S(t,n):bl(n):wl(t[0]),e)}}var hm=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,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,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){var t;switch(this.kind){case"N":return xl(this.value);case"E":return t=this.error,new i.a(function(e){return e.error(t)});case"C":return bl()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}(),dm=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new fm(t,this.delay,this.scheduler))},t}(),fm=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.delay=n,i.scheduler=r,i.queue=[],i.active=!1,i.errored=!1,i}return r.b(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new mm(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(hm.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(hm.createComplete())},e}(a.a),mm=function(t,e){this.time=t,this.notification=e},ym=n("isby");function gm(t,e,n,r){return Object(Ul.a)(n)&&(r=n,n=void 0),r?gm(t,e,n).pipe(w(function(t){return Object(ym.a)(t)?r.apply(void 0,t):r(t)})):new i.a(function(r){!function t(e,n,r,i,o){var a;if(function(t){return t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}(e)){var s=e;e.addEventListener(n,r,o),a=function(){return s.removeEventListener(n,r,o)}}else if(function(t){return t&&"function"==typeof t.on&&"function"==typeof t.off}(e)){var l=e;e.on(n,r),a=function(){return l.off(n,r)}}else if(function(t){return t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}(e)){var u=e;e.addListener(n,r),a=function(){return u.removeListener(n,r)}}else{if(!e||!e.length)throw new TypeError("Invalid event target");for(var c=0,p=e.length;c1?Array.prototype.slice.call(arguments):t)},r,n)})}Object;var vm=n("Ehmk"),_m=n("eihs"),bm=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new wm(t,this.durationSelector))},t}(),wm=function(t){function e(e,n){var r=t.call(this,e)||this;return r.durationSelector=n,r.hasValue=!1,r}return r.b(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=Object(vm.a)(this.durationSelector)(t);if(e===_m.a)this.destination.error(_m.a.e);else{var n=_(this,e);!n||n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this.value,e=this.hasValue,n=this.throttled;n&&(this.remove(n),this.throttled=null,n.unsubscribe()),e&&(this.value=null,this.hasValue=!1,this.destination.next(t))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(b),xm=n("/21U");function Cm(t){var e=t.index,n=t.period,r=t.subscriber;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,this.schedule(t,n)}}function Em(t,e){return void 0===e&&(e=sf.a),n=function(){return function(t,e,n){void 0===t&&(t=0);var r=-1;return Object(xm.a)(e)?r=Number(e)<1?1:Number(e):o(e)&&(n=e),o(n)||(n=sf.a),new i.a(function(e){var i=Object(xm.a)(t)?t:+t-n.now();return n.schedule(Cm,i,{index:0,period:r,subscriber:e})})}(t,e)},function(t){return t.lift(new bm(n))};var n}var Sm=function(){function t(t,e){this._ngZone=t,this._platform=e,this._scrolled=new F,this._globalSubscription=null,this._scrolledCount=0,this.scrollContainers=new Map}return t.prototype.register=function(t){var e=this,n=t.elementScrolled().subscribe(function(){return e._scrolled.next(t)});this.scrollContainers.set(t,n)},t.prototype.deregister=function(t){var e=this.scrollContainers.get(t);e&&(e.unsubscribe(),this.scrollContainers.delete(t))},t.prototype.scrolled=function(t){var e=this;return void 0===t&&(t=20),this._platform.isBrowser?i.a.create(function(n){e._globalSubscription||e._addGlobalListener();var r=t>0?e._scrolled.pipe(Em(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){r.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}}):xl()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach(function(e,n){return t.deregister(n)}),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Vl(function(t){return!t||n.indexOf(t)>-1}))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach(function(r,i){e._scrollableContainsElement(i,t)&&n.push(i)}),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,r=t.getElementRef().nativeElement;do{if(n==r)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular(function(){return gm(window.document,"scroll").subscribe(function(){return t._scrolled.next()})})},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=W({factory:function(){return new t(jt(De),jt(mf))},token:t,providedIn:"root"}),t}(),km=function(){function t(t,e){var n=this;this._platform=t,this._change=t.isBrowser?e.runOutsideAngular(function(){return R(gm(window,"resize"),gm(window,"orientationchange"))}):xl(),this._invalidateCache=this.change().subscribe(function(){return n._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(),e=this.getViewportSize(),n=e.width,r=e.height;return{top:t.top,left:t.left,bottom:t.top+r,right:t.left+n,height:r,width:n}},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(Em(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=W({factory:function(){return new t(jt(mf),jt(De))},token:t,providedIn:"root"}),t}(),Om=function(){},Im=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}(),Tm=function(){return function(t){var e=this;this.scrollStrategy=new Im,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",t&&Object.keys(t).filter(function(e){return void 0!==t[e]}).forEach(function(n){return e[n]=t[n]})}}();function Pm(t,e){if("top"!==e&&"bottom"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "top", "bottom" or "center".')}function Am(t,e){if("start"!==e&&"end"!==e&&"center"!==e)throw Error("ConnectedPosition: Invalid "+t+' "'+e+'". Expected "start", "end" or "center".')}var Rm=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}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=xf(-this._previousScrollPosition.left),t.style.top=xf(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=this._document.body,n=t.style.scrollBehavior||"",r=e.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=e.style.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),t.style.scrollBehavior=n,e.style.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Dm(){return Error("Scroll strategy has already been attached.")}var jm=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=r,this._scrollSubscription=null,this._detach=function(){i.disable(),i._overlayRef.hasAttached()&&i._ngZone.run(function(){return i._overlayRef.detach()})}}return t.prototype.attach=function(t){if(this._overlayRef)throw Dm();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe(function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()})):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t}();function Mm(t,e){return e.some(function(e){return t.bottome.bottom||t.righte.right})}function Nm(t,e){return e.some(function(e){return t.tope.bottom||t.lefte.right})}var Lm=function(){function t(t,e,n,r){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=r,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Dm();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 e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),r=n.width,i=n.height;Mm(e,[{width:r,height:i,bottom:i,right:r,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}(),Fm=function(){function t(t,e,n,r){var i=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Im},this.close=function(t){return new jm(i._scrollDispatcher,i._ngZone,i._viewportRuler,t)},this.block=function(){return new Rm(i._viewportRuler,i._document)},this.reposition=function(t){return new Lm(i._scrollDispatcher,i._viewportRuler,i._ngZone,t)},this._document=r}return t.ngInjectableDef=W({factory:function(){return new t(jt(Sm),jt(km),jt(De),jt(Vu))},token:t,providedIn:"root"}),t}(),Vm=function(){function t(t){var e=this;this._attachedOverlays=[],this._keydownListener=function(t){for(var n=e._attachedOverlays,r=n.length-1;r>-1;r--)if(n[r]._keydownEventSubscriptions>0){n[r]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener,!0),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,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=W({factory:function(){return new t(jt(Vu))},token:t,providedIn:"root"}),t}(),zm=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=W({factory:function(){return new t(jt(Vu))},token:t,providedIn:"root"}),t}(),Bm=function(){function t(t,e,n,r,o,a,s){var l=this;this._portalOutlet=t,this._host=e,this._pane=n,this._config=r,this._ngZone=o,this._keyboardDispatcher=a,this._document=s,this._backdropElement=null,this._backdropClick=new F,this._attachments=new F,this._detachments=new F,this._keydownEventsObservable=i.a.create(function(t){var e=l._keydownEvents.subscribe(t);return l._keydownEventSubscriptions++,function(){e.unsubscribe(),l._keydownEventSubscriptions--}}),this._keydownEvents=new F,this._keydownEventSubscriptions=0,r.scrollStrategy&&r.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 e=this,n=this._portalOutlet.attach(t);return this._config.positionStrategy&&this._config.positionStrategy.attach(this),!this._host.parentElement&&this._previousHostParent&&this._previousHostParent.appendChild(this._host),this._updateStackingOrder(),this._updateElementSize(),this._updateElementDirection(),this._config.scrollStrategy&&this._config.scrollStrategy.enable(),this._ngZone.onStable.asObservable().pipe(Zl(1)).subscribe(function(){e.hasAttached()&&e.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),n},t.prototype.detach=function(){var t=this;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(),this._config.panelClass&&this._toggleClasses(this._pane,this._config.panelClass,!1);var e=this._portalOutlet.detach();this._detachments.next(),this._keyboardDispatcher.remove(this);var n=this._ngZone.onStable.asObservable().pipe(om(R(this._attachments,this._detachments))).subscribe(function(){t._pane&&t._host&&0!==t._pane.children.length||(t._host&&t._host.parentElement&&(t._previousHostParent=t._host.parentElement,t._previousHostParent.removeChild(t._host)),n.unsubscribe())});return e}},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._previousHostParent=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._keydownEventsObservable},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=Object(r.a)({},this._config,t),this._updateElementSize()},t.prototype.setDirection=function(t){this._config=Object(r.a)({},this._config,{direction:t}),this._updateElementDirection()},t.prototype.getDirection=function(){var t=this._config.direction;return t?"string"==typeof t?t:t.value:"ltr"},t.prototype._updateElementDirection=function(){this._host.setAttribute("dir",this.getDirection())},t.prototype._updateElementSize=function(){var t=this._pane.style;t.width=xf(this._config.width),t.height=xf(this._config.height),t.minWidth=xf(this._config.minWidth),t.minHeight=xf(this._config.minHeight),t.maxWidth=xf(this._config.maxWidth),t.maxHeight=xf(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(e){return t._backdropClick.next(e)}),"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,e=this._backdropElement;if(e){var n,r=function(){e&&e.parentNode&&e.parentNode.removeChild(e),t._backdropElement==e&&(t._backdropElement=null),clearTimeout(n)};e.classList.remove("cdk-overlay-backdrop-showing"),this._config.backdropClass&&this._toggleClasses(e,this._config.backdropClass,!1),this._ngZone.runOutsideAngular(function(){e.addEventListener("transitionend",r)}),e.style.pointerEvents="none",n=this._ngZone.runOutsideAngular(function(){return setTimeout(r,500)})}},t.prototype._toggleClasses=function(t,e,n){var r=t.classList;wf(e).forEach(function(t){n?r.add(t):r.remove(t)})},t}(),Hm=function(){function t(t,e,n,r,o){var a=this;this._viewportRuler=e,this._document=n,this._platform=r,this._overlayContainer=o,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 F,this._resizeSubscription=E.a.EMPTY,this._offsetX=0,this._offsetY=0,this._positionChangeSubscriptions=0,this.positionChanges=i.a.create(function(t){var e=a._positionChanges.subscribe(t);return a._positionChangeSubscriptions++,function(){e.unsubscribe(),a._positionChangeSubscriptions--}}),this.setOrigin(t)}return Object.defineProperty(t.prototype,"positions",{get:function(){return this._preferredPositions},enumerable:!0,configurable:!0}),t.prototype.attach=function(t){var e=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 e.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,e=this._originRect,n=this._overlayRect,r=this._viewportRect,i=[],o=0,a=this._preferredPositions;oh&&(h=y,p=m)}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],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},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 on?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,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var r=this._isRtl()?t.right:t.left,i=this._isRtl()?t.left:t.right;n="start"==e.originX?r:i}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var r;return r="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+r,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,r){var i=t.x,o=t.y,a=this._getOffset(r,"x"),s=this._getOffset(r,"y");a&&(i+=a),s&&(o+=s);var l=0-o,u=o+e.height-n.height,c=this._subtractOverflows(e.width,0-i,i+e.width-n.width),p=this._subtractOverflows(e.height,l,u),h=c*p;return{visibleArea:h,isCompletelyWithinViewport:e.width*e.height===h,fitsInViewportVertically:p===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var r=n.bottom-e.y,i=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=r)&&(t.fitsInViewportHorizontally||null!=a&&a<=i)}},t.prototype._pushOverlayOnScreen=function(t,e){var n=this._viewportRect,r=Math.max(t.x+e.width-n.right,0),i=Math.max(t.y+e.height-n.bottom,0),o=Math.max(n.top-t.y,0),a=Math.max(n.left-t.x,0);return{x:t.x+(e.width<=n.width?a||-r:n.left-t.x),y:t.y+(e.height<=n.height?o||-i:n.top-t.y)}},t.prototype._applyPosition=function(t,e){if(this._setTransformOrigin(t),this._setOverlayElementStyles(e,t),this._setBoundingBoxStyles(e,t),this._lastPosition=t,this._positionChangeSubscriptions>0){var n=new function(t,e){this.connectionPair=t,this.scrollableViewProperties=e}(t,this._getScrollVisibility());this._positionChanges.next(n)}this._isInitialRender=!1},t.prototype._setTransformOrigin=function(t){if(this._transformOriginSelector){var e,n=this._boundingBox.querySelectorAll(this._transformOriginSelector),r=t.overlayY;e="center"===t.overlayX?"center":this._isRtl()?"start"===t.overlayX?"right":"left":"start"===t.overlayX?"left":"right";for(var i=0;ip&&!this._isInitialRender&&!this._growAfterOpen&&(r=t.y-p/2)}if("end"===e.overlayX&&!u||"start"===e.overlayX&&u)s=l.right-t.x+this._viewportMargin,o=t.x-l.left;else if("start"===e.overlayX&&!u||"end"===e.overlayX&&u)a=t.x,o=l.right-t.x;else{c=Math.min(l.right-t.x,t.x-l.top);var h=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>h&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-h/2)}return{top:r,left:a,bottom:i,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var r={};if(this._hasExactPosition())r.top=r.left="0",r.bottom=r.right="",r.width=r.height="100%";else{var i=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;r.height=xf(n.height),r.top=xf(n.top),r.bottom=xf(n.bottom),r.width=xf(n.width),r.left=xf(n.left),r.right=xf(n.right),r.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",r.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",i&&(r.maxHeight=xf(i)),o&&(r.maxWidth=xf(o))}this._lastBoundingBoxSize=n,Um(this._boundingBox.style,r)},t.prototype._resetBoundingBoxStyles=function(){Um(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Um(this._pane.style,{top:"",left:"",bottom:"",right:"",position:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};this._hasExactPosition()?(Um(n,this._getExactOverlayY(e,t)),Um(n,this._getExactOverlayX(e,t))):n.position="static";var r="",i=this._getOffset(e,"x"),o=this._getOffset(e,"y");i&&(r+="translateX("+i+"px) "),o&&(r+="translateY("+o+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Um(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e){var n={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect));var i=this._overlayContainer?this._overlayContainer.getContainerElement().getBoundingClientRect().top:0;return r.y-=i,"bottom"===t.overlayY?n.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":n.top=xf(r.y),n},t.prototype._getExactOverlayX=function(t,e){var n={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?n.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":n.left=xf(r.x),n},t.prototype._getScrollVisibility=function(){var t=this._origin.getBoundingClientRect(),e=this._pane.getBoundingClientRect(),n=this.scrollables.map(function(t){return t.getElementRef().nativeElement.getBoundingClientRect()});return{isOriginClipped:Nm(t,n),isOriginOutsideView:Mm(t,n),isOverlayClipped:Nm(e,n),isOverlayOutsideView:Mm(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=bf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=bf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){t&&t.length&&(this._classList=t.split(" ").reduce(function(t,e){return t[e]=!0,t},{}),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new Sf(this._items).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe(function(){return t.closed.emit("tab")})},t.prototype.ngOnDestroy=function(){this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._itemChanges.pipe(pm(this._items),lm(function(t){return R.apply(void 0,t.map(function(t){return t._hovered}))}))},t.prototype._handleKeydown=function(t){var e=t.keyCode;switch(e){case af:this.closed.emit("keydown"),t.stopPropagation();break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;default:38!==e&&40!==e||this._keyManager.setFocusOrigin("keyboard"),this._keyManager.onKeydown(t)}},t.prototype.focusFirstItem=function(t){var e=this;void 0===t&&(t="program"),this.lazyContent?this._ngZone.onStable.asObservable().pipe(Zl(1)).subscribe(function(){return e._keyManager.setFocusOrigin(t).setFirstItemActive()}):this._keyManager.setFocusOrigin(t).setFirstItemActive()},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(2+t),n=Object.keys(this._classList).find(function(t){return t.startsWith("mat-elevation-z")});n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.addItem=function(t){-1===this._items.indexOf(t)&&(this._items.push(t),this._itemChanges.next(this._items))},t.prototype.removeItem=function(t){var e=this._items.indexOf(t);this._items.indexOf(t)>-1&&(this._items.splice(e,1),this._itemChanges.next(this._items))},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t}(),oy=new G("mat-menu-scroll-strategy");function ay(t){return function(){return t.scrollStrategies.reposition()}}var sy=function(){function t(t,e,n,r,i,o,a,s){this._overlay=t,this._element=e,this._viewContainerRef=n,this._scrollStrategy=r,this._parentMenu=i,this._menuItemInstance=o,this._dir=a,this._focusMonitor=s,this._overlayRef=null,this._menuOpen=!1,this._closeSubscription=E.a.EMPTY,this._hoverSubscription=E.a.EMPTY,this._openedByMouse=!1,this.menuOpened=new Re,this.onMenuOpen=this.menuOpened,this.menuClosed=new Re,this.onMenuClose=this.menuClosed,o&&(o._triggersSubmenu=this.triggersSubmenu())}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this._checkMenu(),this.menu.close.subscribe(function(e){t._destroyMenu(),"click"!==e&&"tab"!==e||!t._parentMenu||t._parentMenu.closed.emit(e)}),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._cleanUpSubscriptions()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay();this._setPosition(e.getConfig().positionStrategy),e.attach(this._portal),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closeSubscription=this._menuClosingActions().subscribe(function(){return t.closeMenu()}),this._initMenu(),this.menu instanceof iy&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element.nativeElement,t):this._element.nativeElement.focus()},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closeSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof iy?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Vl(function(t){return"void"===t.toState}),Zl(1),om(e.lazyContent._attached)).subscribe(function(){return e.lazyContent.detach()},void 0,function(){t._resetMenu()}):this._resetMenu()):(this._resetMenu(),e.lazyContent&&e.lazyContent.detach())}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedByMouse?"mouse":"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._resetMenu=function(){this._setIsMenuOpen(!1),this._openedByMouse?this.triggersSubmenu()||this.focus("mouse"):this.focus(),this._openedByMouse=!1},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){this._portal=new Vd(this.menu.templateRef,this._viewContainerRef);var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t)}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new Tm({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withTransformOriginOn(".mat-menu-panel"),hasBackdrop:null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe(function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")})},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],r=e[1],i="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=i[0],a=i[1],s=[o,a],l=s[0],u=s[1],c=[n,r],p=c[0],h=c[1],d=0;this.triggersSubmenu()?(h=n="before"===this.menu.xPosition?"start":"end",r=p="end"===n?"start":"end",d="bottom"===o?8:-8):this.menu.overlapTrigger||(l="top"===o?"bottom":"top",u="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:l,overlayX:p,overlayY:o,offsetY:d},{originX:r,originY:l,overlayX:h,overlayY:o,offsetY:d},{originX:n,originY:u,overlayX:p,overlayY:a,offsetY:-d},{originX:r,originY:u,overlayX:h,overlayY:a,offsetY:-d}])},t.prototype._cleanUpSubscriptions=function(){this._closeSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return R(e,this._parentMenu?this._parentMenu.closed:xl(),this._parentMenu?this._parentMenu._hovered().pipe(Vl(function(e){return e!==t._menuItemInstance}),Vl(function(){return t._menuOpen})):xl(),n)},t.prototype._handleMousedown=function(t){Rf(t)||(this._openedByMouse=!0,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Vl(function(e){return e===t._menuItemInstance&&!e.disabled}),function(t,e){void 0===e&&(e=sf.a);var n=0 instanceof Date&&!isNaN(0)?0-e.now():Math.abs(0);return function(t){return t.lift(new dm(n,e))}}(0,Zd)).subscribe(function(){t._openedByMouse=!0,t.menu instanceof iy&&t.menu._isAnimating?t.menu._animationDone.pipe(Zl(1),om(t._parentMenu._hovered())).subscribe(function(){return t.openMenu()}):t.openMenu()}))},t}(),ly=function(){},uy=new G("cdk-dir-doc",{providedIn:"root",factory:function(){return jt(Vu)}}),cy=function(){function t(t){if(this.value="ltr",this.change=new Re,t){var e=(t.body?t.body.dir:null)||(t.documentElement?t.documentElement.dir:null);this.value="ltr"===e||"rtl"===e?e:"ltr"}}return t.prototype.ngOnDestroy=function(){this.change.complete()},t.ngInjectableDef=W({factory:function(){return new t(jt(uy,8))},token:t,providedIn:"root"}),t}(),py=function(){};function hy(){return"undefined"!=typeof process}function dy(t){switch(t.length){case 0:return new nf;case 1:return t[0];default:return new rf(t)}}function fy(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var a=[],s=[],l=-1,u=null;if(r.forEach(function(t){var n=t.offset,r=n==l,c=r&&u||{};Object.keys(t).forEach(function(n){var r=n,s=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,a),s){case of:s=i[n];break;case $d:s=o[n];break;default:s=e.normalizeStyleValue(n,r,s,a)}c[r]=s}),r||s.push(c),u=c,l=n}),a.length)throw new Error("Unable to animate due to the following errors:\n - "+a.join("\n - "));return s}function my(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&yy(n,"start",t))});break;case"done":t.onDone(function(){return r(n&&yy(n,"done",t))});break;case"destroy":t.onDestroy(function(){return r(n&&yy(n,"destroy",t))})}}function yy(t,e,n){var r=n.totalTime,i=gy(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==r?t.totalTime:r,!!n.disabled),o=t._data;return null!=o&&(i._data=o),i}function gy(t,e,n,r,i,o,a){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o,disabled:!!a}}function vy(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function _y(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}var by=function(t,e){return!1},wy=function(t,e){return!1},xy=function(t,e,n){return[]},Cy=hy();if(Cy||"undefined"!=typeof Element){if(by=function(t,e){return t.contains(e)},Cy||Element.prototype.matches)wy=function(t,e){return t.matches(e)};else{var Ey=Element.prototype,Sy=Ey.matchesSelector||Ey.mozMatchesSelector||Ey.msMatchesSelector||Ey.oMatchesSelector||Ey.webkitMatchesSelector;Sy&&(wy=function(t,e){return Sy.apply(t,[e])})}xy=function(t,e,n){var i=[];if(n)i.push.apply(i,Object(r.d)(t.querySelectorAll(e)));else{var o=t.querySelector(e);o&&i.push(o)}return i}}var ky=null,Oy=!1;function Iy(t){ky||(ky=("undefined"!=typeof document?document.body:null)||{},Oy=!!ky.style&&"WebkitAppearance"in ky.style);var e=!0;return ky.style&&!function(t){return"ebkit"==t.substring(1,6)}(t)&&!(e=t in ky.style)&&Oy&&(e="Webkit"+t.charAt(0).toUpperCase()+t.substr(1)in ky.style),e}var Ty=wy,Py=by,Ay=xy;function Ry(t){var e={};return Object.keys(t).forEach(function(n){var r=n.replace(/([a-z])([A-Z])/g,"$1-$2");e[r]=t[n]}),e}var Dy=function(){function t(){}return t.prototype.validateStyleProperty=function(t){return Iy(t)},t.prototype.matchesElement=function(t,e){return Ty(t,e)},t.prototype.containsElement=function(t,e){return Py(t,e)},t.prototype.query=function(t,e,n){return Ay(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o,a){return void 0===o&&(o=[]),new nf(n,r)},t}(),jy=function(){function t(){}return t.NOOP=new Dy,t}(),My=1e3;function Ny(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:Ly(parseFloat(e[1]),e[2])}function Ly(t,e){switch(e){case"s":return t*My;default:return t}}function Fy(t,e,n){return t.hasOwnProperty("duration")?t:function(t,e,n){var r,i=0,o="";if("string"==typeof t){var a=t.match(/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=Ly(parseFloat(a[1]),a[2]);var s=a[3];null!=s&&(i=Ly(Math.floor(parseFloat(s)),a[4]));var l=a[5];l&&(o=l)}else r=t;if(!n){var u=!1,c=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),u=!0),i<0&&(e.push("Delay values below 0 are not allowed for this animation step."),u=!0),u&&e.splice(c,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:i,easing:o}}(t,e,n)}function Vy(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function zy(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else Vy(t,n);return n}function By(t,e,n){return n?e+":"+n+";":""}function Hy(t){for(var e="",n=0;n *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof r)return void e.push(r);t=r}var i=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==i||i.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=i[1],a=i[2],s=i[3];e.push(og(o,s)),"<"!=a[0]||o==ng&&s==ng||e.push(og(s,o))}(t,i,r)}):i.push(n),i),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:pg(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return tg(n,t,e)}),options:pg(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=tg(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:pg(t.options)}},t.prototype.visitAnimate=function(t,e){var n,r=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return hg(Fy(t,e).duration,0,"");var r=t;if(r.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var i=hg(0,0,"");return i.dynamic=!0,i.strValue=r,i}return hg((n=n||Fy(r,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=r;var i=t.styles?t.styles:tf({});if(5==i.type)n=this.visitKeyframes(i,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};r.easing&&(s.easing=r.easing),o=tf(s)}e.currentTime+=r.duration+r.delay;var l=this.visitStyle(o,e);l.isEmptyStep=a,n=l}return e.currentAnimateTimings=null,{type:4,timings:r,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==$d?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(cg(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e)if(e[o].toString().indexOf("{{")>=0){r=!0;break}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,r=e.currentAnimateTimings,i=e.currentTime,o=e.currentTime;r&&o>0&&(o-=r.duration+r.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(r){if(n._driver.validateStyleProperty(r)){var a,s,l,u=e.collectedStyles[e.currentQuerySelector],c=u[r],p=!0;c&&(o!=i&&o>=c.startTime&&i<=c.endTime&&(e.errors.push('The CSS property "'+r+'" 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 "'+o+'ms" and "'+i+'ms"'),p=!1),o=c.startTime),p&&(u[r]={startTime:o,endTime:i}),e.options&&(a=e.errors,s=e.options.params||{},(l=Wy(t[r])).length&&l.forEach(function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")}))}else e.errors.push('The provided animation property "'+r+'" is not a supported CSS property for animations')})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],a=!1,s=!1,l=0,u=t.steps.map(function(t){var r=n._makeStyleAst(t,e),u=null!=r.offset?r.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(cg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(cg(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(r.styles),c=0;return null!=u&&(i++,c=r.offset=u),s=s||c<0||c>1,a=a||c0&&i0?i==h?1:p*i:o[i],s=a*m;e.currentTime=d+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:tg(this,Qy(t.animation),e),options:pg(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:pg(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:pg(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var o=Object(r.c)(function(t){var e=!!t.split(/\s*,\s*/).find(function(t){return":self"==t});return e&&(t=t.replace(ag,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,function(t){return".ng-trigger-"+t.substr(1)}).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),a=o[0],s=o[1];e.currentQuerySelector=n.length?n+" "+a:a,vy(e.collectedStyles,e.currentQuerySelector,{});var l=tg(this,Qy(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:a,limit:i.limit||0,optional:!!i.optional,includeSelf:s,animation:l,originalSelector:t.selector,options:pg(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:Fy(t.timings,e.errors,!0);return{type:12,animation:tg(this,Qy(t.animation),e),timings:n,options:null}},t}(),ug=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 cg(t){return!Array.isArray(t)&&"object"==typeof t}function pg(t){var e;return t?(t=Vy(t)).params&&(t.params=(e=t.params)?Vy(e):null):t={},t}function hg(t,e,n){return{duration:t,delay:e,easing:n}}function dg(t,e,n,r,i,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:a,subTimeline:s}}var fg=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,Object(r.d)(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),mg=new RegExp(":enter","g"),yg=new RegExp(":leave","g");function gg(t,e,n,r,i,o,a,s,l,u){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===u&&(u=[]),(new vg).buildKeyframes(t,e,n,r,i,o,a,s,l,u)}var vg=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,a,s,l,u){void 0===u&&(u=[]),l=l||new fg;var c=new bg(t,e,l,r,i,u,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),tg(this,n,c);var p=c.timelines.filter(function(t){return t.containsAnimation()});if(p.length&&Object.keys(a).length){var h=p[p.length-1];h.allowOnlyTimelineStyles()||h.setStyles([a],null,c.errors,s)}return p.length?p.map(function(t){return t.buildKeyframes()}):[dg(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=null!=n.duration?Ny(n.duration):null,o=null!=n.delay?Ny(n.delay):null;return 0!==i&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,i,o);r=Math.max(r,n.duration+n.delay)}),r},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),tg(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&((i=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=_g);var a=Ny(o.delay);i.delayNextStep(a)}t.steps.length&&(t.steps.forEach(function(t){return tg(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?Ny(t.options.delay):0;t.steps.forEach(function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),tg(n,a,s),i=Math.max(i,s.currentTimeline.currentTime),r.push(s.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return Fy(e.params?Gy(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach(function(t){o.forwardTime((t.offset||0)*i),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?Ny(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=_g);var a=r,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=s.length;var l=null;s.forEach(function(r,i){e.currentQueryIndex=i;var s=e.createSubContext(t.options,r);o&&s.delayNextStep(o),r===e.element&&(l=s.currentTimeline),tg(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),l&&(e.currentTimeline.mergeTimelineCollectedStyles(l),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var l=e.currentTimeline;s&&l.delayNextStep(s);var u=l.currentTime;tg(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-u+(r.startTime-n.currentTimeline.startTime)},t}(),_g={},bg=function(){function t(t,e,n,r,i,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=r,this._leaveClassName=i,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=_g,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new wg(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=Ny(r.duration)),null!=r.delay&&(i.delay=Ny(r.delay));var o=r.params;if(o){var a=i.params;a||(a=this.options.params={}),Object.keys(o).forEach(function(t){e&&a.hasOwnProperty(t)||(a[t]=Gy(o[t],a,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=_g,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new xg(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},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,e,n,i,o,a){var s=[];if(i&&s.push(this.element),t.length>0){t=(t=t.replace(mg,"."+this._enterClassName)).replace(yg,"."+this._leaveClassName);var l=this._driver.query(this.element,t,1!=n);0!==n&&(l=n<0?l.slice(l.length+n,l.length):l.slice(0,n)),s.push.apply(s,Object(r.d)(l))}return o||0!=s.length||a.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),wg=function(){function t(t,e,n,r){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=r,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,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 e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||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,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach(function(t){e._backFill[t]=e._globalTimelineStyles[t]||$d,e._currentKeyframe[t]=$d}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},a=function(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e)).forEach(function(t){r[t]=$d}):zy(t,!1,r)}),r}(t,this._globalTimelineStyles);Object.keys(a).forEach(function(t){var e=Gy(a[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:$d),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){t._currentKeyframe[n]=e[n]}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,a){var s=zy(o,!0);Object.keys(s).forEach(function(t){var r=s[t];r==of?e.add(t):r==$d&&n.add(t)}),r||(s.offset=a/t.duration),i.push(s)});var o=e.size?Yy(e.values()):[],a=n.size?Yy(n.values()):[];if(r){var s=i[0],l=Vy(s);s.offset=0,l.offset=1,i=[s,l]}return dg(this.element,i,o,a,this.duration,this.startTime,this.easing,!1)},t}(),xg=function(t){function e(e,n,r,i,o,a,s){void 0===s&&(s=!1);var l=t.call(this,e,n,a.delay)||this;return l.element=n,l.keyframes=r,l.preStyleProps=i,l.postStyleProps=o,l._stretchStartingKeyframe=s,l.timings={duration:a.duration,delay:a.delay,easing:a.easing},l}return Object(r.b)(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=r+n,s=n/a,l=zy(t[0],!1);l.offset=0,o.push(l);var u=zy(t[0],!1);u.offset=Cg(s),o.push(u);for(var c=t.length-1,p=1;p<=c;p++){var h=zy(t[p],!1);h.offset=Cg((n+h.offset*r)/a),o.push(h)}r=a,n=0,i="",t=o}return dg(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(wg);function Cg(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var Eg=function(){},Sg=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Object(r.b)(e,t),e.prototype.normalizePropertyName=function(t,e){return Xy(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(kg[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(Eg),kg=function(t){var e={};return"width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",").forEach(function(t){return e[t]=!0}),e}();function Og(t,e,n,r,i,o,a,s,l,u,c,p,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:a,timelines:s,queriedElements:l,preStyleProps:u,postStyleProps:c,totalTime:p,errors:h}}var Ig={},Tg=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,r){return function(t,e,n,r,i){return t.some(function(t){return t(e,n,r,i)})}(this.ast.matchers,t,e,n,r)},t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,o,a,s,l,u,c){var p=[],h=this.ast.options&&this.ast.options.params||Ig,d=this.buildStyles(n,s&&s.params||Ig,p),f=l&&l.params||Ig,m=this.buildStyles(i,f,p),y=new Set,g=new Map,v=new Map,_="void"===i,b={params:Object(r.a)({},h,f)},w=c?[]:gg(t,e,this.ast.animation,o,a,d,m,b,u,p),x=0;if(w.forEach(function(t){x=Math.max(t.duration+t.delay,x)}),p.length)return Og(e,this._triggerName,n,i,_,d,m,[],[],g,v,x,p);w.forEach(function(t){var n=t.element,r=vy(g,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=vy(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&y.add(n)});var C=Yy(y.values());return Og(e,this._triggerName,n,i,_,d,m,w,C,g,v,x)},t}(),Pg=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=Vy(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=Gy(o,r,e)),n[t]=o})}}),n},t}(),Ag=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){n.states[t.name]=new Pg(t.style,t.options&&t.options.params||{})}),Rg(this.states,"true","1"),Rg(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Tg(t,e,n.states))}),this.fallbackTransition=new Tg(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){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,e,n,r){return this.transitionFactories.find(function(i){return i.match(t,e,n,r)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function Rg(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Dg=new fg,jg=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=sg(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,i=fy(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(r,i,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var r=this;void 0===n&&(n={});var i,o=[],a=this._animations[t],s=new Map;if(a?(i=gg(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Dg,o)).forEach(function(t){var e=vy(s,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})}):(o.push("The requested animation doesn't exist or has already been destroyed"),i=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=r._driver.computeStyle(e,n,$d)})});var l=dy(i.map(function(t){var e=s.get(t.element);return r._buildPlayer(t,{},e)}));return this._playersById[t]=l,l.onDestroy(function(){return r.destroy(t)}),this.players.push(l),l},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=gy(e,"","","");return my(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"!=n)if("create"!=n){var i=this._getPlayer(t);switch(n){case"play":i.play();break;case"pause":i.pause();break;case"reset":i.reset();break;case"restart":i.restart();break;case"finish":i.finish();break;case"init":i.init();break;case"setPosition":i.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,r[0]||{});else this.register(t,r[0])},t}(),Mg=[],Ng={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},Lg={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},Fg="__ng_removed",Vg=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n=t&&t.hasOwnProperty("value");if(this.value=function(t){return null!=t?t:null}(n?t.value:t),n){var r=Vy(t);delete r.value,this.options=r}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 e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),zg=new Vg("void"),Bg=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,Yg(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(i=n)&&"done"!=i)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=vy(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};a.push(s);var l=vy(this._engine.statesByElement,t,{});return l.hasOwnProperty(e)||(Yg(t,"ng-trigger"),Yg(t,"ng-trigger-"+e),l[e]=zg),function(){o._engine.afterFlush(function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete l[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),a=new Ug(this.id,e,t),s=this._engine.statesByElement.get(t);s||(Yg(t,"ng-trigger"),Yg(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var l=s[e],u=new Vg(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&l&&u.absorbOptions(l.options),s[e]=u,l||(l=zg),"void"===u.value||l.value!==u.value){var c=vy(this._engine.playersByElement,t,[]);c.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=o.matchTransition(l.value,u.value,t,u.params),h=!1;if(!p){if(!r)return;p=o.fallbackTransition,h=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:l,toState:u,player:a,isFallbackTransition:h}),h||(Yg(t,"ng-animate-queued"),a.onStart(function(){Zg(t,"ng-animate-queued")})),a.onDone(function(){var e=i.players.indexOf(a);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(a);r>=0&&n.splice(r,1)}}),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i=0){for(var r=!1,i=n;i>=0;i--)if(this.driver.containsElement(this._namespaceList[i].hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var r=Object.keys(n),i=0;i=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),Yg(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),Zg(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n){if(qg(e)){var r=t?this._fetchNamespace(t):null;r?r.removeNode(e,n):this.markElementAsRemoved(t,e,!1,n)}else this._onRemovalComplete(e,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[Fg]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return qg(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e,n,r,i){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,r,t.fromState.options,t.toState.options,e,i)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach(function(t){return e.destroyActiveAnimationsForElement(t)}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach(function(t){return e.finishActiveQueriedAnimationOnElement(t)})},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()})},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach(function(t){return t.finish()})},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return dy(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[Fg];if(n&&n.setForRemoval){if(t[Fg]=Ng,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var r=0;r=0;S--)this._namespaceList[S].drainQueuedTransitions(e).forEach(function(t){var e=t.player,r=t.element;if(C.push(e),n.collectedEnterElements.length){var a=r[Fg];if(a&&a.setForMove)return void e.destroy()}var p=!h||!n.driver.containsElement(h,r),d=w.get(r),f=m.get(r),y=n._buildInstruction(t,i,f,d,p);if(y.errors&&y.errors.length)E.push(y);else{if(p)return e.onStart(function(){return qy(r,y.fromStyles)}),e.onDestroy(function(){return Uy(r,y.toStyles)}),void o.push(e);if(t.isFallbackTransition)return e.onStart(function(){return qy(r,y.fromStyles)}),e.onDestroy(function(){return Uy(r,y.toStyles)}),void o.push(e);y.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,y.timelines),s.push({instruction:y,player:e,element:r}),y.queriedElements.forEach(function(t){return vy(l,t,[]).push(e)}),y.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=u.get(e);r||u.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),y.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=c.get(e);r||c.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})}});if(E.length){var k=[];E.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,I=new Map;s.forEach(function(t){var e=t.element;i.has(e)&&(I.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,O))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){vy(O,e,[]).push(t),t.destroy()})});var T=g.filter(function(t){return $g(t,u,c)}),P=new Map;Kg(P,this.driver,_,c,$d).forEach(function(t){$g(t,u,c)&&T.push(t)});var A=new Map;f.forEach(function(t,e){Kg(A,n.driver,new Set(t),u,of)}),T.forEach(function(t){var e=P.get(t),n=A.get(t);P.set(t,Object(r.a)({},e,n))});var R=[],D=[],j={};s.forEach(function(t){var e=t.element,r=t.player,s=t.instruction;if(i.has(e)){if(p.has(e))return r.onDestroy(function(){return Uy(e,s.toStyles)}),r.disabled=!0,r.overrideTotalTime(s.totalTime),void o.push(r);var l=j;if(I.size>1){for(var u=e,c=[];u=u.parentNode;){var h=I.get(u);if(h){l=h;break}c.push(u)}c.forEach(function(t){return I.set(t,l)})}var d=n._buildAnimation(r.namespaceId,s,O,a,A,P);if(r.setRealPlayer(d),l===j)R.push(r);else{var f=n.playersByElement.get(l);f&&f.length&&(r.parentPlayer=dy(f)),o.push(r)}}else qy(e,s.fromStyles),r.onDestroy(function(){return Uy(e,s.toStyles)}),D.push(r),p.has(e)&&o.push(r)}),D.forEach(function(t){var e=a.get(t.element);if(e&&e.length){var n=dy(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()});for(var M=0;M0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new nf(t.duration,t.delay)},t}(),Ug=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new nf,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 e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach(function(n){e._queuedCallbacks[n].forEach(function(e){return my(t,n,void 0,e)})}),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 e=this,n=this._player;n.triggerCallback&&t.onStart(function(){return n.triggerCallback("start")}),t.onDone(function(){return e.finish()}),t.onDestroy(function(){return e.destroy()})},t.prototype._queueEvent=function(t,e){vy(this._queuedCallbacks,t,[]).push(e)},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 e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function qg(t){return t&&1===t.nodeType}function Qg(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function Kg(t,e,n,r,i){var o=[];n.forEach(function(t){return o.push(Qg(t))});var a=[];r.forEach(function(n,r){var o={};n.forEach(function(t){var n=o[t]=e.computeStyle(r,t,i);n&&0!=n.length||(r[Fg]=Lg,a.push(r))}),t.set(r,o)});var s=0;return n.forEach(function(t){return Qg(t,o[s++])}),a}function Wg(t,e){var n=new Map;if(t.forEach(function(t){return n.set(t,[])}),0==e.length)return n;var r=new Set(e),i=new Map;return e.forEach(function(t){var e=function t(e){if(!e)return 1;var o=i.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:r.has(a)?1:t(a),i.set(e,o),o}(t);1!==e&&n.get(e).push(t)}),n}var Gg="$$classes";function Yg(t,e){if(t.classList)t.classList.add(e);else{var n=t[Gg];n||(n=t[Gg]={}),n[e]=!0}}function Zg(t,e){if(t.classList)t.classList.remove(e);else{var n=t[Gg];n&&delete n[e]}}function Xg(t,e,n){dy(n).onDone(function(){return t.processLeaveNode(e)})}function $g(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}var Jg=function(){function t(t,e,n){var r=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new Hg(t,e,n),this._timelineEngine=new jg(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return r.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,a=this._triggerCache[o];if(!a){var s=[],l=sg(this._driver,i,s);if(s.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new Ag(t,e)}(r,l),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,r,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var o=Object(r.c)(_y(n),2);this._timelineEngine.command(o[0],e,o[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,o){if("@"==n.charAt(0)){var a=Object(r.c)(_y(n),2);return this._timelineEngine.listen(a[0],e,a[1],o)}return this._transitionEngine.listen(t,e,n,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}(),tv="animation",ev="animationend",nv=function(){function t(t,e,n,r,i,o,a){var s=this;this._element=t,this._name=e,this._duration=n,this._delay=r,this._easing=i,this._fillMode=o,this._onDoneFn=a,this._finished=!1,this._destroyed=!1,this._startTime=0,this._position=0,this._eventFn=function(t){return s._handleCallback(t)}}return t.prototype.apply=function(){var t,e,n;e=this._duration+"ms "+this._easing+" "+this._delay+"ms 1 normal "+this._fillMode+" "+this._name,(n=lv(t=this._element,"").trim()).length&&(function(t,e){for(var n=0;n=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),av(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,r;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(r=ov(n=lv(t=this._element,"").split(","),e))>=0&&(n.splice(r,1),sv(t,"",n.join(","))))},t}();function rv(t,e,n){sv(t,"PlayState",n,iv(t,e))}function iv(t,e){var n=lv(t,"");return n.indexOf(",")>0?ov(n.split(","),e):ov([n],e)}function ov(t,e){for(var n=0;n=0)return n;return-1}function av(t,e,n){n?t.removeEventListener(ev,e):t.addEventListener(ev,e)}function sv(t,e,n,r){var i=tv+e;if(null!=r){var o=t.style[i];if(o.length){var a=o.split(",");a[r]=n,n=a.join(",")}}t.style[i]=n}function lv(t,e){return t.style[tv+e]}var uv="linear",cv=function(){function t(t,e,n,r,i,o,a){this.element=t,this.keyframes=e,this.animationName=n,this._duration=r,this._delay=i,this._finalStyles=a,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||uv,this.totalTime=r+i,this._buildStyler()}return 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.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new nv(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",function(){return t.finish()})},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach(function(r){"offset"!=r&&(e[r]=n?t._finalStyles[r]:eg(t.element,r))})}this.currentSnapshot=e},t}(),pv=function(t){function e(e,n){var r=t.call(this)||this;return r.element=e,r._startingStyles={},r.__initialized=!1,r._styles=Ry(n),r}return Object(r.b)(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach(function(t){e._startingStyles[t]=e.element.style[t]}),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach(function(t){return e.element.style.setProperty(t,e._styles[t])}),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach(function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)}),this._startingStyles=null,t.prototype.destroy.call(this))},e}(nf),hv=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Iy(t)},t.prototype.matchesElement=function(t,e){return Ty(t,e)},t.prototype.containsElement=function(t,e){return Py(t,e)},t.prototype.query=function(t,e,n){return Ay(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){var r="@keyframes "+e+" {\n",i="";(n=n.map(function(t){return Ry(t)})).forEach(function(t){i=" ";var e=parseFloat(t.offset);r+=""+i+100*e+"% {\n",i+=" ",Object.keys(t).forEach(function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(r+=i+"animation-timing-function: "+n+";\n"));default:return void(r+=""+i+e+": "+n+";\n")}}),r+=i+"}\n"}),r+="}\n";var o=document.createElement("style");return o.innerHTML=r,o},t.prototype.animate=function(t,e,n,r,i,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter(function(t){return t instanceof cv}),l={};$y(n,r)&&s.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})});var u=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach(function(t){Object.keys(t).forEach(function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])})}),e}(e=Jy(t,e,l));if(0==n)return new pv(t,u);var c="gen_css_kf_"+this._count++,p=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(p);var h=new cv(t,e,c,n,r,i,u);return h.onDestroy(function(){var t;(t=p).parentNode.removeChild(t)}),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),dv=function(){function t(t,e,n){this.element=t,this.keyframes=e,this.options=n,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},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.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:eg(t.element,n))}),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach(function(t){return t()}),e.length=0},t}(),fv=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(mv().toString()),this._cssKeyframesDriver=new hv}return t.prototype.validateStyleProperty=function(t){return Iy(t)},t.prototype.matchesElement=function(t,e){return Ty(t,e)},t.prototype.containsElement=function(t,e){return Py(t,e)},t.prototype.query=function(t,e,n){return Ay(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,r,i,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,r,i,o);var s={duration:n,delay:r,fill:0==r?"both":"forwards"};i&&(s.easing=i);var l={},u=o.filter(function(t){return t instanceof dv});return $y(n,r)&&u.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return l[t]=e[t]})}),e=Jy(t,e=e.map(function(t){return zy(t,!1)}),l),new dv(t,e,s)},t}();function mv(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var yv=function(t){function e(e,n){var r=t.call(this)||this;return r._nextAnimationId=0,r._renderer=e.createRenderer(n.body,{id:"0",encapsulation:Nt.None,styles:[],data:{animation:[]}}),r}return Object(r.b)(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Jd(t):t;return _v(this._renderer,null,e,"register",[n]),new gv(e,this._renderer)},e}(Xd),gv=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return Object(r.b)(e,t),e.prototype.create=function(t,e){return new vv(this._id,t,e||{},this._renderer)},e}(function(){}),vv=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t enter",animation:{type:2,steps:[{type:11,selector:".mat-menu-content",animation:{type:6,styles:{opacity:0},offset:null},options:null},{type:4,styles:{type:6,styles:{opacity:1,transform:"scale(1, 0.5)"},offset:null},timings:"100ms linear"},{type:3,steps:[{type:11,selector:".mat-menu-content",animation:{type:4,styles:{type:6,styles:{opacity:1},offset:null},timings:"400ms cubic-bezier(0.55, 0, 0.55, 0.2)"},options:null},{type:4,styles:{type:6,styles:{transform:"scale(1, 1)"},offset:null},timings:"300ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null}],options:null},options:null},{type:1,expr:"* => void",animation:{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"150ms 50ms linear"},options:null}],options:{}},{type:7,name:"fadeInItems",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => *",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Pv(t){return Io(0,[(t()(),ui(0,0,null,null,3,"div",[["class","mat-menu-panel"],["role","menu"],["tabindex","-1"]],[[24,"@transformMenu",0]],[[null,"keydown"],[null,"click"],[null,"@transformMenu.start"],[null,"@transformMenu.done"]],function(t,e,n){var r=!0,i=t.component;return"keydown"===e&&(r=!1!==i._handleKeydown(n)&&r),"click"===e&&(r=!1!==i.closed.emit("click")&&r),"@transformMenu.start"===e&&(r=0!=(i._isAnimating=!0)&&r),"@transformMenu.done"===e&&(r=!1!==i._onAnimationDone(n)&&r),r},null,null)),Xi(1,278528,null,0,Cu,[Mn,Nn,on,rn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),ui(2,0,null,null,1,"div",[["class","mat-menu-content"]],null,null,null,null,null)),bo(null,0)],function(t,e){t(e,1,0,"mat-menu-panel",e.component._classList)},function(t,e){t(e,0,0,e.component._panelAnimationState)})}function Av(t){return Io(2,[mo(402653184,1,{templateRef:0}),(t()(),li(0,[[1,2]],null,0,null,Pv))],null,null)}var Rv=Dr({encapsulation:2,styles:[],data:{}});function Dv(t){return Io(2,[bo(null,0),(t()(),ui(1,0,null,null,1,"div",[["class","mat-menu-ripple mat-ripple"],["matRipple",""]],[[2,"mat-ripple-unbounded",null]],null,null,null,null)),Xi(2,212992,null,0,Wf,[on,De,mf,[2,Kf],[2,Ov]],{disabled:[0,"disabled"],trigger:[1,"trigger"]},null)],function(t,e){var n=e.component;t(e,2,0,n.disableRipple||n.disabled,n._getHostElement())},function(t,e){t(e,1,0,Fi(e,2).unbounded)})}var jv=function(){function t(t){this.el=t}return t.prototype.ngOnInit=function(){this.el.nativeElement.outerHTML=django.gettext(this.el.nativeElement.innerHTML)},t}(),Mv="accent",Nv="primary",Lv=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],Fv=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o._platform=n,o._focusMonitor=r,o._animationMode=i,o.isRoundButton=o._hasHostAttributes("mat-fab","mat-mini-fab"),o.isIconButton=o._hasHostAttributes("mat-icon-button");for(var a=0,s=Lv;a*,.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 Bv(t){return Io(2,[mo(402653184,1,{ripple:0}),(t()(),ui(1,0,null,null,1,"span",[["class","mat-button-wrapper"]],null,null,null,null,null)),bo(null,0),(t()(),ui(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)),Xi(4,212992,[[1,4]],0,Wf,[on,De,mf,[2,Kf],[2,Ov]],{centered:[0,"centered"],disabled:[1,"disabled"],trigger:[2,"trigger"]},null),(t()(),ui(5,0,null,null,0,"div",[["class","mat-button-focus-overlay"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,4,0,n.isIconButton,n._isRippleDisabled(),n._getHostElement())},function(t,e){var n=e.component;t(e,3,0,n.isRoundButton||n.isIconButton,Fi(e,4).unbounded)})}var Hv=n("KIbp"),Uv=function(){function t(t){this.api=t}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"serviceImage",{get:function(){return this.api.galleryImageURL(this.service.imageId)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceName",{get:function(){var t=this.service.visual_name;return t.length>60&&(t=t.substring(0,57)+"..."),t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceTooltip",{get:function(){return this.service.name},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"serviceClass",{get:function(){var t=["service"];return this.service.maintenance?t.push("maintenance"):this.service.not_accesible&&t.push("forbidden"),t},enumerable:!0,configurable:!0}),t.prototype.getTransportIcon=function(t){return this.api.transportIconURL(t)},t.prototype.hasActions=function(){return this.service.allow_users_remove||this.service.allow_users_reset},t.prototype.hasManyTransports=function(){return this.service.transports.length>1},t.prototype.hasMenu=function(){return!1===this.service.maintenance&&!1===this.service.not_accesible&&(this.hasActions()||this.hasManyTransports())},t.prototype.notifyNotLaunching=function(t){this.api.gui.alert('

'+django.gettext("Launcher")+"

",t)},t.prototype.launch=function(){this.service.maintenance?this.notifyNotLaunching(django.gettext("Service is in maintenance and cannot be launched")):this.service.not_accesible?this.notifyNotLaunching('

'+django.gettext("This service is currently not accesible due to schedule restrictions.")+'

'+django.gettext("Access limited by calendar")+'

'+django.gettext("Please, retry access in a while.")+"

"):this.api.launchURL(this.service.transports[0].link)},t}(),qv=Dr({encapsulation:0,styles:[[".service[_ngcontent-%COMP%]{width:10rem;margin:0 1rem 2rem 0;padding:.5rem 0 1rem;box-shadow:0 12px 18px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1);border:1px solid;border-color:rgb(0,0,0,.22);display:flex;flex:1;align-items:center;justify-content:start;flex-flow:column wrap;position:relative}.service[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.icon[_ngcontent-%COMP%]{cursor:pointer;display:flex;justify-content:center;transition:.3s cubic-bezier(.25,.8,.25,1);width:6rem;height:6rem;margin:.5rem}.service[_ngcontent-%COMP%]:not(.forbidden):not(.maintenance):hover .icon[_ngcontent-%COMP%]{transition:.3s cubic-bezier(.25,.8,.25,1);width:7rem;height:7rem;margin:0}.icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:100%;height:100%;overflow:hidden}.forbidden[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%], .maintenance[_ngcontent-%COMP%] .icon[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{opacity:.5;z-index:10}.name[_ngcontent-%COMP%]{margin-top:.5em;font-size:1.2em;display:flex;flex:1 0 auto;flex-flow:row;align-items:center;justify-content:center;height:2.5rem;width:100%}.menu[_ngcontent-%COMP%]{position:absolute;top:2px;right:2px}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]{cursor:pointer;border-radius:1px;background-color:rgb(255,255,255,.8)}.menu[_ngcontent-%COMP%] .mat-icon-button[_ngcontent-%COMP%]:hover{box-shadow:0 2px 3px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1)}.transport-item[_ngcontent-%COMP%]{display:flex;align-items:center}.transport-item[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{width:2em;margin-right:.4em}.forbidden[_ngcontent-%COMP%]:before{color:#fc0000;position:absolute;top:1rem;left:1rem;font-size:8rem;font-family:'Material Icons';font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';font-feature-settings:'liga';content:'update';text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}.maintenance[_ngcontent-%COMP%]:before{color:#fcb900;position:absolute;top:1rem;left:1rem;font-size:8rem;font-family:'Material Icons';font-weight:400;font-style:normal;line-height:1;letter-spacing:normal;text-transform:none;display:inline-block;white-space:nowrap;word-wrap:normal;direction:ltr;-webkit-font-feature-settings:'liga';font-feature-settings:'liga';content:'build';text-shadow:0 6px 8px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);z-index:1}"]],data:{}});function Qv(t){return Io(0,[(t()(),ui(0,0,null,null,4,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Fi(t,1)._handleMouseEnter()&&r),r},Dv,Rv)),Xi(1,180224,[[1,4]],0,ny,[on,Vu,Af,[2,ey]],null,null),(t()(),ui(2,0,null,0,2,"div",[["class","transport-item"]],null,null,null,null,null)),(t()(),ui(3,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),So(4,null,[" "," "]))],null,function(t,e){var n=e.component;t(e,0,0,Fi(e,1)._highlighted,Fi(e,1)._triggersSubmenu,Fi(e,1)._getTabIndex(),Fi(e,1).disabled.toString(),Fi(e,1).disabled||null),t(e,3,0,n.getTransportIcon(e.context.$implicit.id)),t(e,4,0,e.context.$implicit.name)})}function Kv(t){return Io(0,[(t()(),ui(0,0,null,null,6,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Fi(t,1)._handleMouseEnter()&&r),r},Dv,Rv)),Xi(1,180224,[[3,4]],0,ny,[on,Vu,Af,[2,ey]],null,null),(t()(),ui(2,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),So(-1,null,["delete"])),(t()(),ui(4,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(5,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,[" Release service"]))],function(t,e){t(e,5,0)},function(t,e){t(e,0,0,Fi(e,1)._highlighted,Fi(e,1)._triggersSubmenu,Fi(e,1)._getTabIndex(),Fi(e,1).disabled.toString(),Fi(e,1).disabled||null)})}function Wv(t){return Io(0,[(t()(),ui(0,0,null,null,6,"button",[["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0]],[[null,"click"],[null,"mouseenter"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Fi(t,1)._handleMouseEnter()&&r),r},Dv,Rv)),Xi(1,180224,[[3,4]],0,ny,[on,Vu,Af,[2,ey]],null,null),(t()(),ui(2,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),So(-1,null,["refresh"])),(t()(),ui(4,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(5,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,[" Reset service"]))],function(t,e){t(e,5,0)},function(t,e){t(e,0,0,Fi(e,1)._highlighted,Fi(e,1)._triggersSubmenu,Fi(e,1)._getTabIndex(),Fi(e,1).disabled.toString(),Fi(e,1).disabled||null)})}function Gv(t){return Io(0,[(t()(),ui(0,16777216,null,null,5,"button",[["aria-haspopup","true"],["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"],[null,"mouseenter"],[null,"mousedown"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Fi(t,1)._handleMouseEnter()&&r),"mousedown"===e&&(r=!1!==Fi(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Fi(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Fi(t,2)._handleClick(n)&&r),r},Dv,Rv)),Xi(1,180224,[[5,4]],0,ny,[on,Vu,Af,[2,ey]],null,null),Xi(2,1196032,null,0,sy,[Gm,on,dn,oy,[2,iy],[6,ny],[2,cy],Af],{menu:[0,"menu"]},null),(t()(),ui(3,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(4,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Transports"])),(t()(),li(0,null,null,0))],function(t,e){t(e,2,0,Fi(e.parent,3)),t(e,4,0)},function(t,e){t(e,0,0,Fi(e,1)._highlighted,Fi(e,1)._triggersSubmenu,Fi(e,1)._getTabIndex(),Fi(e,1).disabled.toString(),Fi(e,1).disabled||null,Fi(e,2).menuOpen||null)})}function Yv(t){return Io(0,[(t()(),ui(0,16777216,null,null,5,"button",[["aria-haspopup","true"],["class","mat-menu-item"],["mat-menu-item",""],["role","menuitem"]],[[2,"mat-menu-item-highlighted",null],[2,"mat-menu-item-submenu-trigger",null],[1,"tabindex",0],[1,"aria-disabled",0],[1,"disabled",0],[1,"aria-expanded",0]],[[null,"click"],[null,"mouseenter"],[null,"mousedown"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._checkDisabled(n)&&r),"mouseenter"===e&&(r=!1!==Fi(t,1)._handleMouseEnter()&&r),"mousedown"===e&&(r=!1!==Fi(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Fi(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Fi(t,2)._handleClick(n)&&r),r},Dv,Rv)),Xi(1,180224,[[5,4]],0,ny,[on,Vu,Af,[2,ey]],null,null),Xi(2,1196032,null,0,sy,[Gm,on,dn,oy,[2,iy],[6,ny],[2,cy],Af],{menu:[0,"menu"]},null),(t()(),ui(3,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(4,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Actions"])),(t()(),li(0,null,null,0))],function(t,e){t(e,2,0,Fi(e.parent,10)),t(e,4,0)},function(t,e){t(e,0,0,Fi(e,1)._highlighted,Fi(e,1)._triggersSubmenu,Fi(e,1)._getTabIndex(),Fi(e,1).disabled.toString(),Fi(e,1).disabled||null,Fi(e,2).menuOpen||null)})}function Zv(t){return Io(0,[(t()(),ui(0,16777216,null,null,4,"button",[["aria-haspopup","true"],["mat-icon-button",""]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-expanded",0]],[[null,"mousedown"],[null,"keydown"],[null,"click"]],function(t,e,n){var r=!0;return"mousedown"===e&&(r=!1!==Fi(t,2)._handleMousedown(n)&&r),"keydown"===e&&(r=!1!==Fi(t,2)._handleKeydown(n)&&r),"click"===e&&(r=!1!==Fi(t,2)._handleClick(n)&&r),r},Bv,zv)),Xi(1,180224,null,0,Fv,[on,mf,Af,[2,Ov]],null,null),Xi(2,1196032,null,0,sy,[Gm,on,dn,oy,[2,iy],[8,null],[2,cy],Af],{menu:[0,"menu"]},null),(t()(),ui(3,0,null,0,1,"i",[["class","material-icons"]],null,null,null,null,null)),(t()(),So(-1,null,["menu"])),(t()(),li(0,null,null,0))],function(t,e){t(e,2,0,Fi(e.parent,19))},function(t,e){t(e,0,0,Fi(e,1).disabled||null,"NoopAnimations"===Fi(e,1)._animationMode,Fi(e,2).menuOpen||null)})}function Xv(t){return Io(0,[(t()(),ui(0,0,null,null,34,"div",[],null,null,null,null,null)),(t()(),ui(1,0,null,null,6,"mat-menu",[],null,null,null,Av,Tv)),Ji(6144,null,ey,null,[iy]),Xi(3,1294336,[["transports",4]],2,iy,[on,De,ry],null,null),mo(603979776,1,{items:1}),mo(335544320,2,{lazyContent:0}),(t()(),li(16777216,null,0,1,null,Qv)),Xi(7,278528,null,0,Su,[dn,hn,Mn],{ngForOf:[0,"ngForOf"]},null),(t()(),ui(8,0,null,null,8,"mat-menu",[],null,null,null,Av,Tv)),Ji(6144,null,ey,null,[iy]),Xi(10,1294336,[["actions",4]],2,iy,[on,De,ry],null,null),mo(603979776,3,{items:1}),mo(335544320,4,{lazyContent:0}),(t()(),li(16777216,null,0,1,null,Kv)),Xi(14,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),li(16777216,null,0,1,null,Wv)),Xi(16,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),ui(17,0,null,null,8,"mat-menu",[],null,null,null,Av,Tv)),Ji(6144,null,ey,null,[iy]),Xi(19,1294336,[["menu",4]],2,iy,[on,De,ry],null,null),mo(603979776,5,{items:1}),mo(335544320,6,{lazyContent:0}),(t()(),li(16777216,null,0,1,null,Gv)),Xi(23,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),li(16777216,null,0,1,null,Yv)),Xi(25,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),ui(26,0,null,null,8,"div",[],null,null,null,null,null)),Xi(27,278528,null,0,Cu,[Mn,Nn,on,rn],{ngClass:[0,"ngClass"]},null),(t()(),ui(28,0,null,null,1,"div",[["class","icon"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.launch()&&r),r},null,null)),(t()(),ui(29,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),ui(30,0,null,null,1,"div",[["class","name"]],null,null,null,null,null)),(t()(),So(31,null,[" "," "])),(t()(),ui(32,0,null,null,2,"div",[["class","menu"]],null,null,null,null,null)),(t()(),li(16777216,null,null,1,null,Zv)),Xi(34,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,3,0),t(e,7,0,n.service.transports),t(e,10,0),t(e,14,0,n.service.allow_users_remove),t(e,16,0,n.service.allow_users_reset),t(e,19,0),t(e,23,0,n.hasManyTransports()),t(e,25,0,n.hasActions()),t(e,27,0,n.serviceClass),t(e,34,0,n.hasMenu())},function(t,e){var n=e.component;t(e,29,0,n.serviceImage),t(e,31,0,n.serviceName)})}function $v(t){return Io(0,[(t()(),li(16777216,null,null,1,null,Xv)),Xi(1,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,1,0,e.component.service.transports.length>0)},null)}var Jv=0,t_=function(){function t(){this._stateChanges=new F,this._openCloseAllActions=new F,this.id="cdk-accordion-"+Jv++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=bf(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t}(),e_=0,n_=function(){function t(t,e,n){var r=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=E.a.EMPTY,this.closed=new Re,this.opened=new Re,this.destroyed=new Re,this.expandedChange=new Re,this.id="cdk-accordion-child-"+e_++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen(function(t,e){r.accordion&&!r.accordion.multi&&r.accordion.id===e&&r.id!==t&&(r.expanded=!1)}),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=bf(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=bf(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe(function(e){t.disabled||(t.expanded=e)})},t}(),r_=function(){},i_=new G("MAT_ACCORDION"),o_=0,a_=function(t){function e(e,n,r,i,o){var a=t.call(this,e,n,r)||this;return a._viewContainerRef=i,a._hideToggle=!1,a._inputChanges=new F,a._headerId="mat-expansion-panel-header-"+o_++,a.accordion=e,a._document=o,a}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=bf(t)},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(pm(null),Vl(function(){return t.expanded&&!t._portal}),Zl(1)).subscribe(function(){t._portal=new Vd(t._lazyContent._template,t._viewContainerRef)})},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._inputChanges.complete()},e.prototype._bodyAnimation=function(t){var e=t.element.classList,n=t.phaseName,r=t.toState;"done"===n&&"expanded"===r?e.add("mat-expanded"):"start"===n&&"collapsed"===r&&e.remove("mat-expanded")},e.prototype._containsFocus=function(){if(this._body&&this._document){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e}(n_),s_=function(){function t(t,e,n,r){var i=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=r,this._parentChangeSubscription=E.a.EMPTY;var o=t.accordion?t.accordion._stateChanges.pipe(Vl(function(t){return!!t.hideToggle})):_l;this._parentChangeSubscription=R(t.opened,t.closed,o,t._inputChanges.pipe(Vl(function(t){return!(!t.hideToggle&&!t.disabled)}))).subscribe(function(){return i._changeDetectorRef.markForCheck()}),t.closed.pipe(Vl(function(){return t._containsFocus()})).subscribe(function(){return n.focusVia(e.nativeElement,"program")}),n.monitor(e.nativeElement).subscribe(function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(i)})}return Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case 32:case 13:t.preventDefault(),this._toggle();break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element.nativeElement,t)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element.nativeElement)},t}(),l_=function(){},u_=function(){},c_=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=bf(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new Sf(this._headers).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;36===e?(n.setFirstItemActive(),t.preventDefault()):35===e?(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e}(t_),p_=function(){},h_=function(){function t(t,e,n){void 0===t&&(t=!1),void 0===n&&(n=!0);var r=this;this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=this._emitChanges?new F:null,this.onChange=this.changed,e&&e.length&&(t?e.forEach(function(t){return r._markSelected(t)}):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),d_=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,r=this._listeners;n.mat-expansion-panel-spacing:first-child,.mat-accordion>:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button{margin-left:0;margin-right:8px}"],data:{animation:[{type:7,name:"bodyExpansion",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"0px",visibility:"hidden"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{height:"*",visibility:"visible"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}}]}});function m_(t){return Io(0,[(t()(),li(0,null,null,0))],null,null)}function y_(t){return Io(2,[mo(402653184,1,{_body:0}),bo(null,0),(t()(),ui(2,0,[[1,0],["body",1]],null,5,"div",[["class","mat-expansion-panel-content"],["role","region"]],[[24,"@bodyExpansion",0],[1,"aria-labelledby",0],[8,"id",0]],[[null,"@bodyExpansion.done"],[null,"@bodyExpansion.start"]],function(t,e,n){var r=!0,i=t.component;return"@bodyExpansion.done"===e&&(r=!1!==i._bodyAnimation(n)&&r),"@bodyExpansion.start"===e&&(r=!1!==i._bodyAnimation(n)&&r),r},null,null)),(t()(),ui(3,0,null,null,3,"div",[["class","mat-expansion-panel-body"]],null,null,null,null,null)),bo(null,1),(t()(),li(16777216,null,null,1,null,m_)),Xi(6,212992,null,0,Hd,[Ce,dn],{portal:[0,"portal"]},null),bo(null,2)],function(t,e){t(e,6,0,e.component._portal)},function(t,e){var n=e.component;t(e,2,0,n._getExpandedState(),n._headerId,n.id)})}var g_=Dr({encapsulation:2,styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],data:{animation:[{type:7,name:"indicatorRotate",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{transform:"rotate(0deg)"},offset:null},options:void 0},{type:0,name:"expanded",styles:{type:6,styles:{transform:"rotate(180deg)"},offset:null},options:void 0},{type:1,expr:"expanded <=> collapsed",animation:{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"},options:null}],options:{}},{type:7,name:"expansionHeight",definitions:[{type:0,name:"collapsed",styles:{type:6,styles:{height:"{{collapsedHeight}}"},offset:null},options:{params:{collapsedHeight:"48px"}}},{type:0,name:"expanded",styles:{type:6,styles:{height:"{{expandedHeight}}"},offset:null},options:{params:{expandedHeight:"64px"}}},{type:1,expr:"expanded <=> collapsed",animation:{type:3,steps:[{type:11,selector:"@indicatorRotate",animation:{type:9,options:null},options:{optional:!0}},{type:4,styles:null,timings:"225ms cubic-bezier(0.4,0.0,0.2,1)"}],options:null},options:null}],options:{}}]}});function v_(t){return Io(0,[(t()(),ui(0,0,null,null,0,"span",[["class","mat-expansion-indicator"]],[[24,"@indicatorRotate",0]],null,null,null,null))],null,function(t,e){t(e,0,0,e.component._getExpandedState())})}function __(t){return Io(2,[(t()(),ui(0,0,null,null,3,"span",[["class","mat-content"]],null,null,null,null,null)),bo(null,0),bo(null,1),bo(null,2),(t()(),li(16777216,null,null,1,null,v_)),Xi(5,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null)],function(t,e){t(e,5,0,e.component._showToggle())},null)}var b_=new G("Flex Layout token, collect all breakpoints into one provider",{providedIn:"root",factory:function(){return null}}),w_=[{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)"}],x_="(orientation: landscape) and (min-width: 960px) and (max-width: 1279px)",C_="(orientation: portrait) and (min-width: 600px) and (max-width: 839px)",E_="(orientation: portrait) and (min-width: 840px)",S_="(orientation: landscape) and (min-width: 1280px)",k_={HANDSET:"(orientation: portrait) and (max-width: 599px), (orientation: landscape) and (max-width: 959px)",TABLET:C_+" , "+x_,WEB:E_+", "+S_+" ",HANDSET_PORTRAIT:"(orientation: portrait) and (max-width: 599px)",TABLET_PORTRAIT:C_+" ",WEB_PORTRAIT:""+E_,HANDSET_LANDSCAPE:"(orientation: landscape) and (max-width: 959px)]",TABLET_LANDSCAPE:""+x_,WEB_LANDSCAPE:""+S_},O_=[{alias:"handset",mediaQuery:k_.HANDSET},{alias:"handset.landscape",mediaQuery:k_.HANDSET_LANDSCAPE},{alias:"handset.portrait",mediaQuery:k_.HANDSET_PORTRAIT},{alias:"tablet",mediaQuery:k_.TABLET},{alias:"tablet.landscape",mediaQuery:k_.TABLET},{alias:"tablet.portrait",mediaQuery:k_.TABLET_PORTRAIT},{alias:"web",mediaQuery:k_.WEB,overlapping:!0},{alias:"web.landscape",mediaQuery:k_.WEB_LANDSCAPE,overlapping:!0},{alias:"web.portrait",mediaQuery:k_.WEB_PORTRAIT,overlapping:!0}];function I_(t){for(var e=[],n=1;n0?t.charAt(0):"",n=t.length>1?t.slice(1):"";return e.toUpperCase()+n}var A_={addFlexToParent:!0,addOrientationBps:!1,disableDefaultBps:!1,disableVendorPrefixes:!1,serverLoaded:!1,useColumnBasisZero:!0},R_=new G("Flex Layout token, config options for the library",{providedIn:"root",factory:function(){return A_}}),D_=new G("Token (@angular/flex-layout) Breakpoints",{providedIn:"root",factory:function(){var t=jt(b_),e=jt(R_),n=[].concat.apply([],(t||[]).map(function(t){return Array.isArray(t)?t:[t]}));return function(t,e){void 0===e&&(e=[]);var n,r={};return t.forEach(function(t){r[t.alias]=t}),e.forEach(function(t){r[t.alias]?I_(r[t.alias],t):r[t.alias]=t}),(n=Object.keys(r).map(function(t){return r[t]})).forEach(function(t){t.suffix||(t.suffix=t.alias.replace(T_,"|").split("|").map(P_).join(""),t.overlapping=!!t.overlapping)}),n}((e.disableDefaultBps?[]:w_).concat(e.addOrientationBps?O_:[]),n)}}),j_=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}),e=this._registry.filter(function(t){return!0!==t.overlapping});return t.concat(e)},enumerable:!0,configurable:!0}),t.prototype.findByAlias=function(t){return this._registry.find(function(e){return e.alias==t})||null},t.prototype.findByQuery=function(t){return this._registry.find(function(e){return e.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=W({factory:function(){return new t(jt(D_))},token:t,providedIn:"root"}),t}(),M_=function(){function t(t,e,n,r){void 0===t&&(t=!1),void 0===e&&(e="all"),void 0===n&&(n=""),void 0===r&&(r=""),this.matches=t,this.mediaQuery=e,this.mqAlias=n,this.suffix=r}return t.prototype.clone=function(){return new t(this.matches,this.mediaQuery,this.mqAlias,this.suffix)},t}(),N_=function(){function t(t,e,n){this._zone=t,this._platformId=e,this._document=n,this._registry=new Map,this._source=new Cl(new M_(!0)),this._observable$=this._source.asObservable()}return t.prototype.isActive=function(t){var e=this._registry.get(t);return!!e&&e.matches},t.prototype.observe=function(t){return t&&this.registerQuery(t),this._observable$.pipe(Vl(function(e){return!t||e.mediaQuery===t}))},t.prototype.registerQuery=function(t){var e=this,n=function(t){return void 0===t?[]:"string"==typeof t?[t]:(e={},t.filter(function(t){return!e.hasOwnProperty(t)&&(e[t]=!0)}));var e}(t);n.length>0&&(this._prepareQueryCSS(n,this._document),n.forEach(function(t){var n=e._registry.get(t),r=function(n){e._zone.run(function(){var r=new M_(n.matches,t);e._source.next(r)})};n||((n=e._buildMQL(t)).addListener(r),e._registry.set(t,n)),n.matches&&r(n)}))},t.prototype._buildMQL=function(t){return Hu(this._platformId)&&window.matchMedia("all").addListener?window.matchMedia(t):{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}},t.prototype._prepareQueryCSS=function(t,e){var n=t.filter(function(t){return!L_[t]});if(n.length>0){var r=n.join(", ");try{var i=e.createElement("style");i.setAttribute("type","text/css"),i.styleSheet||i.appendChild(e.createTextNode("\n/*\n @angular/flex-layout - workaround for possible browser quirk with mediaQuery listeners\n see http://bit.ly/2sd4HMP\n*/\n@media "+r+" {.fx-query-test{ }}\n")),e.head.appendChild(i),n.forEach(function(t){return L_[t]=i})}catch(t){console.error(t)}}},t.ngInjectableDef=W({factory:function(){return new t(jt(De),jt(ce),jt(Vu))},token:t,providedIn:"root"}),t}(),L_={};function F_(t,e){return I_(t,e?{mqAlias:e.alias,suffix:e.suffix}:{})}var V_=function(){},z_=function(){function t(t,e){this.breakpoints=t,this.mediaWatcher=e,this.filterOverlaps=!0,this._registerBreakPoints(),this.observable$=this._buildObservable()}return t.prototype.isActive=function(t){var e=this._toMediaQuery(t);return this.mediaWatcher.isActive(e)},t.prototype.subscribe=function(t,e,n){return t&&"object"==typeof t?this.observable$.subscribe(t.next,t.error,t.complete):this.observable$.subscribe(t,e,n)},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,e=this;return this.mediaWatcher.observe().pipe(Vl(function(t){return!0===t.matches}),Vl(function(n){var r=t.breakpoints.findByQuery(n.mediaQuery);return!r||!(e.filterOverlaps&&r.overlapping)}),w(function(e){return F_(e,t._findByQuery(e.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 e=this._findByAlias(t)||this._findByQuery(t);return e?e.mediaQuery:t},t.ngInjectableDef=W({factory:function(){return new t(jt(j_),jt(N_))},token:t,providedIn:"root"}),t}(),B_=function(){},H_=function(){function t(){this.stylesheet=new Map}return t.prototype.addStyleToElement=function(t,e,n){var r=this.stylesheet.get(t);r?r.set(e,n):this.stylesheet.set(t,new Map([[e,n]]))},t.prototype.clearStyles=function(){this.stylesheet.clear()},t.prototype.getStyleForElement=function(t,e){var n=this.stylesheet.get(t),r="";if(n){var i=n.get(e);"number"!=typeof i&&"string"!=typeof i||(r=i+"")}return r},t.ngInjectableDef=W({factory:function(){return new t},token:t,providedIn:"root"}),t}(),U_=new G("FlexLayoutServerLoaded",{providedIn:"root",factory:function(){return!1}}),q_=["row","column","row-reverse","column-reverse"],Q_=function(){function t(t,e,n){this._options=t,this._mediaMonitor=e,this._onMediaChanges=n,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,e=[];return this._registryMap.forEach(function(n){t._keyInUse(n.key)&&e.push(t.mediaMonitor.observe(n.alias).pipe(w(function(e){return(e=e.clone()).property=t._options.baseKey,e})).subscribe(function(e){t._onMonitorEvents(e)}))}),e},t.prototype._buildRegistryMap=function(){var t=this;return this.mediaMonitor.breakpoints.map(function(e){return I_({},e,{baseKey:t._options.baseKey,key:t._options.baseKey+e.suffix})}).filter(function(e){return t._keyInUse(e.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 e=this._options.baseKey+t.suffix,n=this._activatedInputKey;return this._activatedInputKey=this._validateInputKey(n=t.matches?e:n==e?"":n),this.activatedInput},t.prototype._validateInputKey=function(t){var e=this,n=function(t){return!e._keyInUse(t)};return n(t)&&this.mediaMonitor.activeOverlaps.some(function(r){var i=e._options.baseKey+r.suffix;return!n(i)&&(t=i,!0)}),t},t.prototype._lookupKeyValue=function(t){return this._options.inputKeys[t]},t}(),K_=function(){function t(t,e,n){this._mediaMonitor=t,this._elementRef=e,this._styler=n,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 e,n,r="baseKey";this._mqActivation&&(n=this._inputMap[r=this._mqActivation.activatedInputKey],this._inputMap[r]=t);var i=new xn(n,t,!1);this.ngOnChanges(((e={})[r]=i,e))},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,e){var n=this._queryInput(t);return void 0!==n&&null!==n&&""!==n?n:e},t.prototype._getDisplayStyle=function(t){return void 0===t&&(t=this.nativeElement),this._styler.lookupStyle(t,"display")},t.prototype._getAttributeValue=function(t,e){return void 0===e&&(e=this.nativeElement),this._styler.lookupAttributeValue(e,t)},t.prototype._getFlexFlowDirection=function(t,e){var n;void 0===e&&(e=!1);var r="row";if(t&&(r=(n=this._styler.getFlowDirection(t))[0],!n[1]&&e)){var i=function(t){var e,n,r=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return q_.find(function(t){return t===n})||(n=q_[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(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}(r),!!i]}(t);return n=r[2],void 0===(e=r[1])&&(e=null),void 0===n&&(n=!1),{display:n?"inline-flex":"flex","box-sizing":"border-box","flex-direction":r[0],"flex-wrap":e||null}}(r);this._styler.applyStyleToElements(i,[t])}return r.trim()||"row"},t.prototype._applyStyleToElement=function(t,e,n){void 0===n&&(n=this.nativeElement),this._styler.applyStyleToElement(n,t,e)},t.prototype._applyStyleToElements=function(t,e){this._styler.applyStyleToElements(t,e)},t.prototype._cacheInput=function(t,e){if("object"==typeof e)for(var n in e)this._inputMap[n]=e[n];else t&&(this._inputMap[t]=e)},t.prototype._listenForMediaQueryChanges=function(t,e,n){if(!this._mqActivation){var r=new function(t,e,n){this.baseKey=t,this.defaultValue=e,this.inputKeys=n}(t,e,this._inputMap);this._mqActivation=new Q_(r,this._mediaMonitor,function(t){return n(t)})}return this._mqActivation},Object.defineProperty(t.prototype,"childrenNodes",{get:function(){for(var t=this.nativeElement.children,e=[],n=t.length;n--;)e[n]=t[n];return e},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}(),W_=function(){function t(t,e){this._breakpoints=t,this._matchMedia=e,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(e){return t._matchMedia.isActive(e.mediaQuery)})},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"active",{get:function(){var t=this,e=null;this.breakpoints.reverse().forEach(function(n){""!==n.alias&&!e&&t._matchMedia.isActive(n.mediaQuery)&&(e=n)});var n=this.breakpoints[0];return e||(this._matchMedia.isActive(n.mediaQuery)?n:null)},enumerable:!0,configurable:!0}),t.prototype.isActive=function(t){var e=this._breakpoints.findByAlias(t)||this._breakpoints.findByQuery(t);return this._matchMedia.isActive(e?e.mediaQuery:t)},t.prototype.observe=function(t){var e=this._breakpoints.findByAlias(t||"")||this._breakpoints.findByQuery(t||"");return this._matchMedia.observe(e?e.mediaQuery:t).pipe(w(function(t){return F_(t,e)}),Vl(function(t){return!e||""!==t.mqAlias}))},t.prototype._registerBreakpoints=function(){var t=this._breakpoints.sortedItems.map(function(t){return t.mediaQuery});this._matchMedia.registerQuery(t)},t.ngInjectableDef=W({factory:function(){return new t(jt(j_),jt(N_))},token:t,providedIn:"root"}),t}();function G_(t){for(var e in t){var n=t[e]||"";switch(e){case"display":t.display="flex"===n?["-webkit-flex","flex"]:"inline-flex"===n?["-webkit-inline-flex","inline-flex"]:n;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-"+e]=n;break;case"flex-direction":t["-webkit-flex-direction"]=n=n||"row",t["flex-direction"]=n;break;case"order":t.order=t["-webkit-"+e]=isNaN(n)?"0":n}}return t}var Y_=function(){function t(t,e,n,r){this._serverStylesheet=t,this._serverModuleLoaded=e,this._platformId=n,this.layoutConfig=r}return t.prototype.applyStyleToElement=function(t,e,n){var r={};"string"==typeof e&&(r[e]=n,e=r),r=this.layoutConfig.disableVendorPrefixes?e:G_(e),this._applyMultiValueStyleToElement(r,t)},t.prototype.applyStyleToElements=function(t,e){var n=this;void 0===e&&(e=[]);var r=this.layoutConfig.disableVendorPrefixes?t:G_(t);e.forEach(function(t){n._applyMultiValueStyleToElement(r,t)})},t.prototype.getFlowDirection=function(t){var e=this.lookupStyle(t,"flex-direction");e===Z_&&(e="");var n=this.lookupInlineStyle(t,"flex-direction")||Uu(this._platformId)&&this._serverModuleLoaded?e:"";return[e||"row",n]},t.prototype.lookupAttributeValue=function(t,e){return t.getAttribute(e)||""},t.prototype.lookupInlineStyle=function(t,e){return Hu(this._platformId)?t.style[e]:this._getServerStyle(t,e)},t.prototype.lookupStyle=function(t,e,n){void 0===n&&(n=!1);var r="";return t&&((r=this.lookupInlineStyle(t,e))||(Hu(this._platformId)?n||(r=getComputedStyle(t).getPropertyValue(e)):this._serverModuleLoaded&&(r=this._serverStylesheet.getStyleForElement(t,e)))),r?r.trim():Z_},t.prototype._applyMultiValueStyleToElement=function(t,e){var n=this;Object.keys(t).sort().forEach(function(r){var i=Array.isArray(t[r])?t[r]:[t[r]];i.sort();for(var o=0,a=i;o0){var a=o.indexOf(":");if(-1===a)throw new Error("Invalid CSS style: "+o);e[o.substr(0,a).trim()]=o.substr(a+1).trim()}}return e},t.prototype._writeStyleAttribute=function(t,e){var n="";for(var r in e)e[r]&&(n+=r+":"+e[r]+";");t.setAttribute("style",n)},t.ngInjectableDef=W({factory:function(){return new t(jt(H_,8),jt(U_,8),jt(ce),jt(R_))},token:t,providedIn:"root"}),t}(),Z_="block",X_=["false",!1,0];function $_(t){return""!==t&&("false"===t||0===t||!t)}var J_=function(t){function e(e,n,r,i,o,a){var s=t.call(this,e,r,i)||this;return s.layout=n,s.elRef=r,s.styleUtils=i,s.platformId=o,s.serverModuleLoaded=a,n&&(s._layoutWatcher=n.layout$.subscribe(function(){return s._updateWithValue()})),s}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"show",{set:function(t){this._cacheInput("show",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showXs",{set:function(t){this._cacheInput("showXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showSm",{set:function(t){this._cacheInput("showSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showMd",{set:function(t){this._cacheInput("showMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLg",{set:function(t){this._cacheInput("showLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showXl",{set:function(t){this._cacheInput("showXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtSm",{set:function(t){this._cacheInput("showLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtMd",{set:function(t){this._cacheInput("showLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtLg",{set:function(t){this._cacheInput("showLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showLtXl",{set:function(t){this._cacheInput("showLtXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtXs",{set:function(t){this._cacheInput("showGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtSm",{set:function(t){this._cacheInput("showGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtMd",{set:function(t){this._cacheInput("showGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showGtLg",{set:function(t){this._cacheInput("showGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hide",{set:function(t){this._cacheInput("show",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideXs",{set:function(t){this._cacheInput("showXs",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideSm",{set:function(t){this._cacheInput("showSm",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideMd",{set:function(t){this._cacheInput("showMd",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLg",{set:function(t){this._cacheInput("showLg",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideXl",{set:function(t){this._cacheInput("showXl",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtSm",{set:function(t){this._cacheInput("showLtSm",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtMd",{set:function(t){this._cacheInput("showLtMd",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtLg",{set:function(t){this._cacheInput("showLtLg",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideLtXl",{set:function(t){this._cacheInput("showLtXl",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtXs",{set:function(t){this._cacheInput("showGtXs",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtSm",{set:function(t){this._cacheInput("showGtSm",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtMd",{set:function(t){this._cacheInput("showGtMd",$_(t))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideGtLg",{set:function(t){this._cacheInput("showGtLg",$_(t))},enumerable:!0,configurable:!0}),e.prototype._getDisplayStyle=function(){return this.layout?"flex":t.prototype._getDisplayStyle.call(this)},e.prototype.ngOnChanges=function(t){this.hasInitialized&&(null!=t.show||this._mqActivation)&&this._updateWithValue()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._display=this._getDisplayStyle();var n=this._getDefaultVal("show",!0);this._listenForMediaQueryChanges("show",n,function(t){e._updateWithValue(t.value)}),this._updateWithValue()},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._layoutWatcher&&this._layoutWatcher.unsubscribe()},e.prototype._updateWithValue=function(t){t=t||this._getDefaultVal("show",!0),this._mqActivation&&(t=this._mqActivation.activatedInput);var e=this._validateTruthy(t);this._applyStyleToElement(this._buildCSS(e)),Uu(this.platformId)&&this.serverModuleLoaded&&this.nativeElement.style.setProperty("display","")},e.prototype._buildCSS=function(t){return{display:t?this._display:"none"}},e.prototype._validateTruthy=function(t){return-1==X_.indexOf(t)},e}(K_),tb=function(){},eb=function(){function t(t){this.api=t,this.expanded=!1}return t.prototype.ngOnInit=function(){},Object.defineProperty(t.prototype,"groupImage",{get:function(){return this.api.galleryImageURL(this.group.imageUuid)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasVisibleServices",{get:function(){return this.services.length>0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"sortedServices",{get:function(){return this.services.sort(function(t,e){return t.name>e.name?1:t.namee.group.id?1:t.group.id0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,gm(this._label.nativeElement,"transitionend").pipe(Zl(1)).subscribe(function(){t._showAlwaysAnimate=!1})),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach(function(r){if("start"===r.align){if(t||n.hintLabel)throw gb("start");t=r}else if("end"===r.align){if(e)throw gb("end");e=r}})},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find(function(t){return"start"===t.align}):null,n=this._hintChildren?this._hintChildren.find(function(t){return"end"===t.align}):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map(function(t){return t.id}));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&(!this._platform||this._platform.isBrowser))if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,r=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-start"),i=this._connectionContainerRef.nativeElement.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){for(var o=this._getStartEnd(this._connectionContainerRef.nativeElement.getBoundingClientRect()),a=this._getStartEnd(t.children[0].getBoundingClientRect()),s=0,l=0,u=t.children;l0?.75*s+10:0}for(var c=0;c enter",animation:[{type:6,styles:{opacity:0,transform:"translateY(-100%)"},offset:null},{type:4,styles:null,timings:"300ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Tb(t){return Io(0,[(t()(),ui(0,0,null,null,8,null,null,null,null,null,null,null)),(t()(),ui(1,0,null,null,3,"div",[["class","mat-form-field-outline"]],null,null,null,null,null)),(t()(),ui(2,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),ui(3,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),ui(4,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null)),(t()(),ui(5,0,null,null,3,"div",[["class","mat-form-field-outline mat-form-field-outline-thick"]],null,null,null,null,null)),(t()(),ui(6,0,null,null,0,"div",[["class","mat-form-field-outline-start"]],null,null,null,null,null)),(t()(),ui(7,0,null,null,0,"div",[["class","mat-form-field-outline-gap"]],null,null,null,null,null)),(t()(),ui(8,0,null,null,0,"div",[["class","mat-form-field-outline-end"]],null,null,null,null,null))],null,null)}function Pb(t){return Io(0,[(t()(),ui(0,0,null,null,1,"div",[["class","mat-form-field-prefix"]],null,null,null,null,null)),bo(null,0)],null,null)}function Ab(t){return Io(0,[(t()(),ui(0,0,null,null,2,null,null,null,null,null,null,null)),bo(null,2),(t()(),So(2,null,["",""]))],null,function(t,e){t(e,2,0,e.component._control.placeholder)})}function Rb(t){return Io(0,[bo(null,3),(t()(),li(0,null,null,0))],null,null)}function Db(t){return Io(0,[(t()(),ui(0,0,null,null,1,"span",[["aria-hidden","true"],["class","mat-placeholder-required mat-form-field-required-marker"]],null,null,null,null,null)),(t()(),So(-1,null,["\xa0*"]))],null,null)}function jb(t){return Io(0,[(t()(),ui(0,0,[[4,0],["label",1]],null,8,"label",[["class","mat-form-field-label"]],[[8,"id",0],[1,"for",0],[1,"aria-owns",0],[2,"mat-empty",null],[2,"mat-form-field-empty",null],[2,"mat-accent",null],[2,"mat-warn",null]],[[null,"cdkObserveContent"]],function(t,e,n){var r=!0;return"cdkObserveContent"===e&&(r=!1!==t.component.updateOutlineGap()&&r),r},null,null)),Xi(1,16384,null,0,Au,[],{ngSwitch:[0,"ngSwitch"]},null),Xi(2,1196032,null,0,kb,[Sb,on,De],null,{event:"cdkObserveContent"}),(t()(),li(16777216,null,null,1,null,Ab)),Xi(4,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),li(16777216,null,null,1,null,Rb)),Xi(6,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),li(16777216,null,null,1,null,Db)),Xi(8,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,1,0,n._hasLabel()),t(e,4,0,!1),t(e,6,0,!0),t(e,8,0,!n.hideRequiredMarker&&n._control.required&&!n._control.disabled)},function(t,e){var n=e.component;t(e,0,0,n._labelId,n._control.id,n._control.id,n._control.empty&&!n._shouldAlwaysFloat,n._control.empty&&!n._shouldAlwaysFloat,"accent"==n.color,"warn"==n.color)})}function Mb(t){return Io(0,[(t()(),ui(0,0,null,null,1,"div",[["class","mat-form-field-suffix"]],null,null,null,null,null)),bo(null,4)],null,null)}function Nb(t){return Io(0,[(t()(),ui(0,0,[[1,0],["underline",1]],null,1,"div",[["class","mat-form-field-underline"]],null,null,null,null,null)),(t()(),ui(1,0,null,null,0,"span",[["class","mat-form-field-ripple"]],[[2,"mat-accent",null],[2,"mat-warn",null]],null,null,null,null))],null,function(t,e){var n=e.component;t(e,1,0,"accent"==n.color,"warn"==n.color)})}function Lb(t){return Io(0,[(t()(),ui(0,0,null,null,1,"div",[],[[24,"@transitionMessages",0]],null,null,null,null)),bo(null,5)],null,function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function Fb(t){return Io(0,[(t()(),ui(0,0,null,null,1,"div",[["class","mat-hint"]],[[8,"id",0]],null,null,null,null)),(t()(),So(1,null,["",""]))],null,function(t,e){var n=e.component;t(e,0,0,n._hintLabelId),t(e,1,0,n.hintLabel)})}function Vb(t){return Io(0,[(t()(),ui(0,0,null,null,5,"div",[["class","mat-form-field-hint-wrapper"]],[[24,"@transitionMessages",0]],null,null,null,null)),(t()(),li(16777216,null,null,1,null,Fb)),Xi(2,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),bo(null,6),(t()(),ui(4,0,null,null,0,"div",[["class","mat-form-field-hint-spacer"]],null,null,null,null,null)),bo(null,7)],function(t,e){t(e,2,0,e.component.hintLabel)},function(t,e){t(e,0,0,e.component._subscriptAnimationState)})}function zb(t){return Io(2,[mo(671088640,1,{underlineRef:0}),mo(402653184,2,{_connectionContainerRef:0}),mo(402653184,3,{_inputContainerRef:0}),mo(671088640,4,{_label:0}),(t()(),ui(4,0,null,null,20,"div",[["class","mat-form-field-wrapper"]],null,null,null,null,null)),(t()(),ui(5,0,[[2,0],["connectionContainer",1]],null,11,"div",[["class","mat-form-field-flex"]],null,[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==(i._control.onContainerClick&&i._control.onContainerClick(n))&&r),r},null,null)),(t()(),li(16777216,null,null,1,null,Tb)),Xi(7,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),li(16777216,null,null,1,null,Pb)),Xi(9,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),ui(10,0,[[3,0],["inputContainer",1]],null,4,"div",[["class","mat-form-field-infix"]],null,null,null,null,null)),bo(null,1),(t()(),ui(12,0,null,null,2,"span",[["class","mat-form-field-label-wrapper"]],null,null,null,null,null)),(t()(),li(16777216,null,null,1,null,jb)),Xi(14,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),li(16777216,null,null,1,null,Mb)),Xi(16,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),li(16777216,null,null,1,null,Nb)),Xi(18,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),ui(19,0,null,null,5,"div",[["class","mat-form-field-subscript-wrapper"]],null,null,null,null,null)),Xi(20,16384,null,0,Au,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),li(16777216,null,null,1,null,Lb)),Xi(22,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),li(16777216,null,null,1,null,Vb)),Xi(24,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){var n=e.component;t(e,7,0,"outline"==n.appearance),t(e,9,0,n._prefixChildren.length),t(e,14,0,n._hasFloatingLabel()),t(e,16,0,n._suffixChildren.length),t(e,18,0,"outline"!=n.appearance),t(e,20,0,n._getDisplayedMessages()),t(e,22,0,"error"),t(e,24,0,"hint")},null)}function Bb(t){return new i.a(function(e){var n;try{n=t()}catch(t){return void e.error(t)}return(n?k(n):bl()).subscribe(e)})}var Hb=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new Ub(t,this.compare,this.keySelector))},t}(),Ub=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i.keySelector=r,i.hasKey=!1,"function"==typeof n&&(i.compare=n),i}return r.b(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=t;if(this.keySelector&&(e=Object(vm.a)(this.keySelector)(t))===_m.a)return this.destination.error(_m.a.e);var n=!1;if(this.hasKey){if((n=Object(vm.a)(this.compare)(this.key,e))===_m.a)return this.destination.error(_m.a.e)}else this.hasKey=!0;!1===Boolean(n)&&(this.key=e,this.destination.next(t))},e}(a.a),qb=0,Qb=new G("mat-select-scroll-strategy");function Kb(t){return function(){return t.scrollStrategies.reposition()}}var Wb=function(t){function e(e,n,r,i,o,a,s,l,u,c,p,h){var d=t.call(this,o,i,s,l,c)||this;return d._viewportRuler=e,d._changeDetectorRef=n,d._ngZone=r,d._dir=a,d._parentFormField=u,d.ngControl=c,d._scrollStrategyFactory=h,d._panelOpen=!1,d._required=!1,d._scrollTop=0,d._multiple=!1,d._compareWith=function(t,e){return t===e},d._uid="mat-select-"+qb++,d._destroy=new F,d._triggerFontSize=0,d._onChange=function(){},d._onTouched=function(){},d._optionIds="",d._transformOrigin="top",d._panelDoneAnimating=!1,d._panelDoneAnimatingStream=new F,d._scrollStrategy=d._scrollStrategyFactory(),d._offsetY=0,d._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],d._disableOptionCentering=!1,d._focused=!1,d.controlType="mat-select",d.ariaLabel="",d.optionSelectionChanges=Bb(function(){return d.options?R.apply(void 0,d.options.map(function(t){return t.onSelectionChange})):d._ngZone.onStable.asObservable().pipe(Zl(1),lm(function(){return d.optionSelectionChanges}))}),d.openedChange=new Re,d._openedStream=d.openedChange.pipe(Vl(function(t){return t}),w(function(){})),d._closedStream=d.openedChange.pipe(Vl(function(t){return!t}),w(function(){})),d.selectionChange=new Re,d.valueChange=new Re,d.ngControl&&(d.ngControl.valueAccessor=d),d.tabIndex=parseInt(p)||0,d.id=d.id,d}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=bf(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=bf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=bf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new h_(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe(function(t){return t.lift(new Hb(void 0,void 0))},om(this._destroy)).subscribe(function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t._panelDoneAnimating=!1,t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(om(this._destroy)).subscribe(function(t){t.added.forEach(function(t){return t.select()}),t.removed.forEach(function(t){return t.deselect()})}),this.options.changes.pipe(pm(null),om(this._destroy)).subscribe(function(){t._resetOptions(),t._initializeSelection()})},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement)["font-size"]),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Zl(1)).subscribe(function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")}))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map(function(t){return t.viewValue});return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode;13===e||32===e||(this.multiple||t.altKey)&&(40===e||38===e||37===e||39===e)?(t.preventDefault(),this.open()):this.multiple||this._keyManager.onKeydown(t)},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,r=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?r.setFirstItemActive():r.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!r.activeItem)if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var i=this.options.some(function(t){return!t.disabled&&!t.selected});this.options.forEach(function(t){t.disabled||(i?t.select():t.deselect())})}else{var o=r.activeItemIndex;r.onKeydown(t),this._multiple&&n&&t.shiftKey&&r.activeItem&&r.activeItemIndex!==o&&r.activeItem._selectViaInteraction()}else t.preventDefault(),r.activeItem._selectViaInteraction()},e.prototype._onFadeInDone=function(){this._panelDoneAnimating=this.panelOpen,this._changeDetectorRef.markForCheck()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Zl(1)).subscribe(function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop})},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then(function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value)})},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach(function(t){return e._selectValue(t)}),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n&&this._keyManager.setActiveItem(n)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find(function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(t){return We()&&console.warn(t),!1}});return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new Ef(this.options).withTypeAhead().withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._keyManager.tabOut.pipe(om(this._destroy)).subscribe(function(){t.focus(),t.close()}),this._keyManager.change.pipe(om(this._destroy)).subscribe(function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()})},e.prototype._resetOptions=function(){var t=this,e=R(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(om(e)).subscribe(function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())}),R.apply(void 0,this.options.map(function(t){return t._stateChanges})).pipe(om(e)).subscribe(function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()}),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){if(this.multiple){var t=this.options.toArray();this._selectionModel.sort(function(e,n){return t.indexOf(e)-t.indexOf(n)}),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map(function(t){return t.value}):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new function(t,e){this.source=t,this.value=e}(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map(function(t){return t.id}).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t,e,n,r=this._keyManager.activeItemIndex||0,i=nm(r,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=(n=(r+i)*(t=this._getItemHeight()))<(e=this.panel.nativeElement.scrollTop)?n:n+t>e+256?Math.max(0,n-256+t):e},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._getOptionIndex=function(t){return this.options.reduce(function(e,n,r){return void 0===e?t===n?r:void 0:e},void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),r=e*t-n,i=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);i+=nm(i,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(i,o,r),this._offsetY=this._calculateOverlayOffsetY(i,o,r),this._checkOverlayWithinViewport(r)},e.prototype._calculateOverlayScroll=function(t,e,n){var r=this._getItemHeight();return Math.min(Math.max(0,r*t-e+r/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),r=this._isRtl(),i=this.multiple?60:32;if(this.multiple)t=44;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}r||(t*=-1);var a=0-(e.left+t-(r?i:0)),s=e.right+t-n.width+(r?0:i);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var r,i=this._getItemHeight(),o=(i-this._triggerRect.height)/2,a=Math.floor(256/i);return this._disableOptionCentering?0:(r=0===this._scrollTop?t*i:this._scrollTop===n?(t-(this._getItemCount()-a))*i+(i-(this._getItemCount()*i-256)%i):e-i/2,Math.round(-1*r-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),r=this._triggerRect.top-8,i=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>i?this._adjustPanelUp(a,i):o>r?this._adjustPanelDown(o,r,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var r=Math.round(t-e);if(this._scrollTop+=r,this._offsetY+=r,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e}(Ff(function(t,e){return void 0===e&&(e=0),function(t){function n(){for(var n=[],r=0;rt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return Xb(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return Xb(t.value)?null:$b.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(Xb(e.value))return null;var n=e.value?e.value.length:0;return nt?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){return e?("string"==typeof e?(r="","^"!==e.charAt(0)&&(r+="^"),r+=e,"$"!==e.charAt(e.length-1)&&(r+="$"),n=new RegExp(r)):(r=e.toString(),n=e),function(t){if(Xb(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:r,actualValue:e}}}):t.nullValidator;var n,r},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(tw);return 0==e.length?null:function(t){return nw(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(tw);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r\n
\n \n
\n ')},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+ow)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+aw)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}();function lw(t,e){t||hw(e,"Cannot find control with"),e.valueAccessor||hw(e,"No value accessor for form control with"),t.validator=Jb.compose([t.validator,e.validator]),t.asyncValidator=Jb.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),function(t,e){e.valueAccessor.registerOnChange(function(n){t._pendingValue=n,t._pendingChange=!0,t._pendingDirty=!0,"change"===t.updateOn&&uw(t,e)})}(t,e),function(t,e){t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)})}(t,e),function(t,e){e.valueAccessor.registerOnTouched(function(){t._pendingTouched=!0,"blur"===t.updateOn&&t._pendingChange&&uw(t,e),"submit"!==t.updateOn&&t.markAsTouched()})}(t,e),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function uw(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function cw(t,e){null==t&&hw(e,"Cannot find control with"),t.validator=Jb.compose([t.validator,e.validator]),t.asyncValidator=Jb.composeAsync([t.asyncValidator,e.asyncValidator])}function pw(t){return hw(t,"There is no FormControl instance attached to form control element with")}function hw(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function dw(t){return null!=t?Jb.compose(t.map(rw)):null}function fw(t){return null!=t?Jb.composeAsync(t.map(iw)):null}function mw(t,e){t._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)})}function yw(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function gw(t){var e=_w(t)?t.validators:t;return Array.isArray(e)?dw(e):e||null}function vw(t,e){var n=_w(e)?e.asyncValidators:t;return Array.isArray(n)?fw(n):n||null}function _w(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var bw=function(){function t(t,e){this.validator=t,this.asyncValidator=e,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=gw(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=vw(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(e){e.disable(Object(r.a)({},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(e){e.enable(Object(r.a)({},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(e){return e._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 e=this;if(this.asyncValidator){this.status="PENDING";var n=ew(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this.errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return function(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(".")),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof xw?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof Cw&&t.at(e)||null},t))}(this,t)},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n.errors?n.errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},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 Re,this.statusChanges=new Re},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(e){return e.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){_w(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),ww=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,gw(n),vw(r,n))||this;return i._onChange=[],i._applyFormState(e),i._setUpdateStrategy(n),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return Object(r.b)(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this.value=this._pendingValue=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n.value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this.value,e),this._pendingChange=!1},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.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))},e.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},e}(bw),xw=function(t){function e(e,n,r){var i=t.call(this,gw(n),vw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof ww?e.value:e.getRawValue(),t})},e.prototype._syncPendingControls=function(){var t=this._reduceChildren(!1,function(t,e){return!!e._syncPendingControls()||t});return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.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+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this.value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.e)(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(bw),Cw=function(t){function e(e,n,r){var i=t.call(this,gw(n),vw(r,n))||this;return i.controls=e,i._initObservables(),i._setUpdateStrategy(n),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return Object(r.b)(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof ww?t.value:t.getRawValue()})},e.prototype._syncPendingControls=function(){var t=this.controls.reduce(function(t,e){return!!e._syncPendingControls()||t},!1);return t&&this.updateValueAndValidity({onlySelf:!0}),t},e.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)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this.value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=Object(r.e)(this.controls),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(e){t={error:e}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(bw),Ew=Promise.resolve(null),Sw=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new Re,r.form=new xw({},dw(e),fw(n)),r}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){this._setUpdateStrategy()},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;Ew.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),lw(t.control,t),t.control.updateValueAndValidity({emitEvent:!1}),e._directives.push(t)})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;Ew.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),yw(e._directives,t)})},e.prototype.addFormGroup=function(t){var e=this;Ew.then(function(){var n=e._findContainer(t.path),r=new xw({});cw(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;Ew.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;Ew.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this.submitted=!0,mw(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(Zb),kw=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r.submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new Re,r}return Object(r.b)(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return lw(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){yw(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);cw(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);cw(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,mw(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach(function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange(function(){return pw(e)}),e.valueAccessor.registerOnTouched(function(){return pw(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}(e.control,e),n&&lw(n,e),e.control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=dw(this._validators);this.form.validator=Jb.compose([this.form.validator,t]);var e=fw(this._asyncValidators);this.form.asyncValidator=Jb.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||sw.missingFormException()},e}(Zb),Ow=Dr({encapsulation:2,styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper,.mat-form-field-appearance-standard .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%}.mat-select-panel: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)}@media screen and (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],data:{animation:[{type:7,name:"transformPanel",definitions:[{type:0,name:"void",styles:{type:6,styles:{transform:"scaleY(0)",minWidth:"100%",opacity:0},offset:null},options:void 0},{type:0,name:"showing",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:0,name:"showing-multiple",styles:{type:6,styles:{opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"},offset:null},options:void 0},{type:1,expr:"void => *",animation:{type:3,steps:[{type:11,selector:"@fadeInContent",animation:{type:9,options:null},options:null},{type:4,styles:null,timings:"150ms cubic-bezier(0.25, 0.8, 0.25, 1)"}],options:null},options:null},{type:1,expr:"* => void",animation:[{type:4,styles:{type:6,styles:{opacity:0},offset:null},timings:"250ms 100ms linear"}],options:null}],options:{}},{type:7,name:"fadeInContent",definitions:[{type:0,name:"showing",styles:{type:6,styles:{opacity:1},offset:null},options:void 0},{type:1,expr:"void => showing",animation:[{type:6,styles:{opacity:0},offset:null},{type:4,styles:null,timings:"150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"}],options:null}],options:{}}]}});function Iw(t){return Io(0,[(t()(),ui(0,0,null,null,1,"span",[["class","mat-select-placeholder"]],null,null,null,null,null)),(t()(),So(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.placeholder||"\xa0")})}function Tw(t){return Io(0,[(t()(),ui(0,0,null,null,1,"span",[],null,null,null,null,null)),(t()(),So(1,null,["",""]))],null,function(t,e){t(e,1,0,e.component.triggerValue||"\xa0")})}function Pw(t){return Io(0,[bo(null,0),(t()(),li(0,null,null,0))],null,null)}function Aw(t){return Io(0,[(t()(),ui(0,0,null,null,5,"span",[["class","mat-select-value-text"]],null,null,null,null,null)),Xi(1,16384,null,0,Au,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),li(16777216,null,null,1,null,Tw)),Xi(3,16384,null,0,Du,[dn,hn,Au],null,null),(t()(),li(16777216,null,null,1,null,Pw)),Xi(5,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null)],function(t,e){t(e,1,0,!!e.component.customTrigger),t(e,5,0,!0)},null)}function Rw(t){return Io(0,[(t()(),ui(0,0,[[2,0],["panel",1]],null,3,"div",[],[[24,"@transformPanel",0],[4,"transformOrigin",null],[2,"mat-select-panel-done-animating",null],[4,"font-size","px"]],[[null,"@transformPanel.done"],[null,"keydown"]],function(t,e,n){var r=!0,i=t.component;return"@transformPanel.done"===e&&(r=!1!==i._panelDoneAnimatingStream.next(n.toState)&&r),"keydown"===e&&(r=!1!==i._handleKeydown(n)&&r),r},null,null)),Xi(1,278528,null,0,Cu,[Mn,Nn,on,rn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),(t()(),ui(2,0,null,null,1,"div",[["class","mat-select-content"]],[[24,"@fadeInContent",0]],[[null,"@fadeInContent.done"]],function(t,e,n){var r=!0;return"@fadeInContent.done"===e&&(r=!1!==t.component._onFadeInDone()&&r),r},null,null)),bo(null,1)],function(t,e){var n=e.component;t(e,1,0,ai(1,"mat-select-panel ",n._getPanelTheme(),""),n.panelClass)},function(t,e){var n=e.component;t(e,0,0,n.multiple?"showing-multiple":"showing",n._transformOrigin,n._panelDoneAnimating,n._triggerFontSize),t(e,2,0,"showing")})}function Dw(t){return Io(2,[mo(402653184,1,{trigger:0}),mo(671088640,2,{panel:0}),mo(402653184,3,{overlayDir:0}),(t()(),ui(3,0,[[1,0],["trigger",1]],null,9,"div",[["aria-hidden","true"],["cdk-overlay-origin",""],["class","mat-select-trigger"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.toggle()&&r),r},null,null)),Xi(4,16384,[["origin",4]],0,Xm,[on],null,null),(t()(),ui(5,0,null,null,5,"div",[["class","mat-select-value"]],null,null,null,null,null)),Xi(6,16384,null,0,Au,[],{ngSwitch:[0,"ngSwitch"]},null),(t()(),li(16777216,null,null,1,null,Iw)),Xi(8,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),li(16777216,null,null,1,null,Aw)),Xi(10,278528,null,0,Ru,[dn,hn,Au],{ngSwitchCase:[0,"ngSwitchCase"]},null),(t()(),ui(11,0,null,null,1,"div",[["class","mat-select-arrow-wrapper"]],null,null,null,null,null)),(t()(),ui(12,0,null,null,0,"div",[["class","mat-select-arrow"]],null,null,null,null,null)),(t()(),li(16777216,null,null,1,function(t,e,n){var r=!0,i=t.component;return"backdropClick"===e&&(r=!1!==i.close()&&r),"attach"===e&&(r=!1!==i._onAttached()&&r),"detach"===e&&(r=!1!==i.close()&&r),r},Rw)),Xi(14,671744,[[3,4]],0,$m,[Gm,hn,dn,Zm,[2,cy]],{origin:[0,"origin"],positions:[1,"positions"],offsetY:[2,"offsetY"],minWidth:[3,"minWidth"],backdropClass:[4,"backdropClass"],scrollStrategy:[5,"scrollStrategy"],open:[6,"open"],hasBackdrop:[7,"hasBackdrop"],lockPosition:[8,"lockPosition"]},{backdropClick:"backdropClick",attach:"attach",detach:"detach"})],function(t,e){var n=e.component;t(e,6,0,n.empty),t(e,8,0,!0),t(e,10,0,!1),t(e,14,0,Fi(e,4),n._positions,n._offsetY,null==n._triggerRect?null:n._triggerRect.width,"cdk-overlay-transparent-backdrop",n._scrollStrategy,n.panelOpen,"","")},null)}var jw=!!yf()&&{passive:!0},Mw=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return _l;var n=t instanceof on?t.nativeElement:t,r=this._monitoredElements.get(n);if(r)return r.subject.asObservable();var i=new F,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!1})})):(n.classList.add(o),e._ngZone.run(function(){return i.next({target:t.target,isAutofilled:!0})}))};return this._ngZone.runOutsideAngular(function(){n.addEventListener("animationstart",a,jw),n.classList.add("cdk-text-field-autofill-monitored")}),this._monitoredElements.set(n,{subject:i,unlisten:function(){n.removeEventListener("animationstart",a,jw)}}),i.asObservable()},t.prototype.stopMonitoring=function(t){var e=t instanceof on?t.nativeElement:t,n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach(function(e,n){return t.stopMonitoring(n)})},t.ngInjectableDef=W({factory:function(){return new t(jt(mf),jt(De))},token:t,providedIn:"root"}),t}(),Nw=function(){},Lw=["button","checkbox","file","hidden","image","radio","range","reset","submit"],Fw=0,Vw=function(t){function e(e,n,r,i,o,a,s,l,u){var c=t.call(this,a,i,o,r)||this;return c._elementRef=e,c._platform=n,c.ngControl=r,c._autofillMonitor=l,c._uid="mat-input-"+Fw++,c._isServer=!1,c.focused=!1,c.stateChanges=new F,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter(function(t){return vf().has(t)}),c._inputValueAccessor=s||c._elementRef.nativeElement,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&u.runOutsideAngular(function(){e.nativeElement.addEventListener("keyup",function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))})}),c._isServer=!c._platform.isBrowser,c}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=bf(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=bf(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&vf().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=bf(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe(function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()})},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(){this._elementRef.nativeElement.focus()},e.prototype._focusChanged=function(t){t===this.focused||this.readonly||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(Lw.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus()},e}(Vf(function(t,e,n,r){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=r})),zw=function(){},Bw=n("D8EZ"),Hw=Dr({encapsulation:0,styles:[[".login-container[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;justify-content:center;align-items:center}.login-brand[_ngcontent-%COMP%]{margin:1rem 0 0}.login-info[_ngcontent-%COMP%]{margin:1rem 0}.login-form[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;min-width:30%;padding:1rem;box-shadow:0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.12),0 1px 5px 0 rgba(0,0,0,.2);transition:.3s cubic-bezier(.25,.8,.25,1);flex:1 0 auto;justify-content:center;flex-flow:column wrap;align-items:center;display:flex}.login-field[_ngcontent-%COMP%]{width:80%;margin:.5rem}.login-button[_ngcontent-%COMP%]{margin:2rem}.mat-form-field[_ngcontent-%COMP%]{width:100%}"]],data:{}});function Uw(t){return Io(0,[(t()(),ui(0,0,null,null,2,"mat-option",[["class","mat-option"],["role","option"]],[[1,"tabindex",0],[2,"mat-selected",null],[2,"mat-option-multiple",null],[2,"mat-active",null],[8,"id",0],[1,"aria-selected",0],[1,"aria-disabled",0],[2,"mat-option-disabled",null]],[[null,"click"],[null,"keydown"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==Fi(t,1)._selectViaInteraction()&&r),"keydown"===e&&(r=!1!==Fi(t,1)._handleKeydown(n)&&r),r},db,pb)),Xi(1,8568832,[[22,4]],0,em,[on,fn,[2,tm],[2,$f]],{value:[0,"value"]},null),(t()(),So(2,0,[" "," "]))],function(t,e){t(e,1,0,e.context.$implicit.id)},function(t,e){t(e,0,0,Fi(e,1)._getTabIndex(),Fi(e,1).selected,Fi(e,1).multiple,Fi(e,1).active,Fi(e,1).id,Fi(e,1).selected.toString(),Fi(e,1).disabled.toString(),Fi(e,1).disabled),t(e,2,0,e.context.$implicit.name)})}function qw(t){return Io(0,[(t()(),ui(0,0,null,null,23,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),ui(1,0,null,null,22,"mat-form-field",[["appaerance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,zb,Ib)),Xi(2,7389184,null,7,xb,[on,fn,[2,im],[2,cy],[2,wb],mf,De,[2,Ov]],null,null),mo(335544320,15,{_control:0}),mo(335544320,16,{_placeholderChild:0}),mo(335544320,17,{_labelChild:0}),mo(603979776,18,{_errorChildren:1}),mo(603979776,19,{_hintChildren:1}),mo(603979776,20,{_prefixChildren:1}),mo(603979776,21,{_suffixChildren:1}),(t()(),ui(10,0,null,3,4,"mat-label",[],null,null,null,null,null)),Xi(11,16384,[[17,4]],0,vb,[],null,null),(t()(),ui(12,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Xi(13,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Authenticator"])),(t()(),ui(15,0,null,1,8,"mat-select",[["class","mat-select"],["role","listbox"]],[[1,"id",0],[1,"tabindex",0],[1,"aria-label",0],[1,"aria-labelledby",0],[1,"aria-required",0],[1,"aria-disabled",0],[1,"aria-invalid",0],[1,"aria-owns",0],[1,"aria-multiselectable",0],[1,"aria-describedby",0],[1,"aria-activedescendant",0],[2,"mat-select-disabled",null],[2,"mat-select-invalid",null],[2,"mat-select-required",null]],[[null,"selectionChange"],[null,"keydown"],[null,"focus"],[null,"blur"]],function(t,e,n){var r=!0,i=t.component;return"keydown"===e&&(r=!1!==Fi(t,17)._handleKeydown(n)&&r),"focus"===e&&(r=!1!==Fi(t,17)._onFocus()&&r),"blur"===e&&(r=!1!==Fi(t,17)._onBlur()&&r),"selectionChange"===e&&(r=!1!==i.changeAuth(n.value)&&r),r},Dw,Ow)),Ji(6144,null,tm,null,[Wb]),Xi(17,2080768,null,3,Wb,[km,fn,De,zf,on,[2,cy],[2,Sw],[2,kw],[2,xb],[8,null],[8,null],Qb],{value:[0,"value"]},{selectionChange:"selectionChange"}),mo(603979776,22,{options:1}),mo(603979776,23,{optionGroups:1}),mo(335544320,24,{customTrigger:0}),Ji(2048,[[15,4]],yb,null,[Wb]),(t()(),li(16777216,null,1,1,null,Uw)),Xi(23,278528,null,0,Su,[dn,hn,Mn],{ngForOf:[0,"ngForOf"]},null)],function(t,e){var n=e.component;t(e,13,0),t(e,17,0,n.auths[0].id),t(e,23,0,n.auths)},function(t,e){t(e,1,1,["standard"==Fi(e,2).appearance,"fill"==Fi(e,2).appearance,"outline"==Fi(e,2).appearance,"legacy"==Fi(e,2).appearance,Fi(e,2)._control.errorState,Fi(e,2)._canLabelFloat,Fi(e,2)._shouldLabelFloat(),Fi(e,2)._hideControlPlaceholder(),Fi(e,2)._control.disabled,Fi(e,2)._control.autofilled,Fi(e,2)._control.focused,"accent"==Fi(e,2).color,"warn"==Fi(e,2).color,Fi(e,2)._shouldForward("untouched"),Fi(e,2)._shouldForward("touched"),Fi(e,2)._shouldForward("pristine"),Fi(e,2)._shouldForward("dirty"),Fi(e,2)._shouldForward("valid"),Fi(e,2)._shouldForward("invalid"),Fi(e,2)._shouldForward("pending"),!Fi(e,2)._animationsEnabled]),t(e,15,1,[Fi(e,17).id,Fi(e,17).tabIndex,Fi(e,17)._getAriaLabel(),Fi(e,17)._getAriaLabelledby(),Fi(e,17).required.toString(),Fi(e,17).disabled.toString(),Fi(e,17).errorState,Fi(e,17).panelOpen?Fi(e,17)._optionIds:null,Fi(e,17).multiple,Fi(e,17)._ariaDescribedby||null,Fi(e,17)._getAriaActiveDescendant(),Fi(e,17).disabled,Fi(e,17).errorState,Fi(e,17).required])})}function Qw(t){return Io(0,[(t()(),ui(0,0,null,null,53,"form",[["id","loginform"],["method","post"]],null,null,null,null,null)),(t()(),ui(1,0,null,null,0,"input",[["id","token"],["name",""],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),ui(2,0,null,null,0,"input",[["id","id_logouturl"],["name","logouturl"],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),ui(3,0,null,null,0,"input",[["id","authenticator"],["name","authenticator"],["type","hidden"],["value",""]],null,null,null,null,null)),(t()(),ui(4,0,null,null,49,"div",[["class","login-container"]],null,null,null,null,null)),(t()(),ui(5,0,null,null,1,"div",[["class","login-brand"]],null,null,null,null,null)),(t()(),ui(6,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),ui(7,0,null,null,1,"div",[["class","login-info"]],null,null,null,null,null)),(t()(),So(8,null,[" "," "])),(t()(),ui(9,0,null,null,44,"div",[["class","login-form"]],null,null,null,null,null)),(t()(),ui(10,0,null,null,17,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),ui(11,0,null,null,16,"mat-form-field",[["appearance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,zb,Ib)),Xi(12,7389184,null,7,xb,[on,fn,[2,im],[2,cy],[2,wb],mf,De,[2,Ov]],{appearance:[0,"appearance"]},null),mo(335544320,1,{_control:0}),mo(335544320,2,{_placeholderChild:0}),mo(335544320,3,{_labelChild:0}),mo(603979776,4,{_errorChildren:1}),mo(603979776,5,{_hintChildren:1}),mo(603979776,6,{_prefixChildren:1}),mo(603979776,7,{_suffixChildren:1}),(t()(),ui(20,0,null,3,4,"mat-label",[],null,null,null,null,null)),Xi(21,16384,[[3,4]],0,vb,[],null,null),(t()(),ui(22,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Xi(23,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Username"])),(t()(),ui(25,0,null,1,2,"input",[["autofocus",""],["class","mat-input-element mat-form-field-autofill-control"],["id","id_user"],["matInput",""],["name","user"],["required",""],["value",""]],[[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"blur"],[null,"focus"],[null,"input"]],function(t,e,n){var r=!0;return"blur"===e&&(r=!1!==Fi(t,26)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==Fi(t,26)._focusChanged(!0)&&r),"input"===e&&(r=!1!==Fi(t,26)._onInput()&&r),r},null,null)),Xi(26,999424,null,0,Vw,[on,mf,[8,null],[2,Sw],[2,kw],zf,[8,null],Mw,De],{id:[0,"id"],required:[1,"required"],value:[2,"value"]},null),Ji(2048,[[1,4]],yb,null,[Vw]),(t()(),ui(28,0,null,null,17,"div",[["class","login-field"]],null,null,null,null,null)),(t()(),ui(29,0,null,null,16,"mat-form-field",[["appearance","standard"],["class","mat-form-field"]],[[2,"mat-form-field-appearance-standard",null],[2,"mat-form-field-appearance-fill",null],[2,"mat-form-field-appearance-outline",null],[2,"mat-form-field-appearance-legacy",null],[2,"mat-form-field-invalid",null],[2,"mat-form-field-can-float",null],[2,"mat-form-field-should-float",null],[2,"mat-form-field-hide-placeholder",null],[2,"mat-form-field-disabled",null],[2,"mat-form-field-autofilled",null],[2,"mat-focused",null],[2,"mat-accent",null],[2,"mat-warn",null],[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],[2,"_mat-animation-noopable",null]],null,null,zb,Ib)),Xi(30,7389184,null,7,xb,[on,fn,[2,im],[2,cy],[2,wb],mf,De,[2,Ov]],{appearance:[0,"appearance"]},null),mo(335544320,8,{_control:0}),mo(335544320,9,{_placeholderChild:0}),mo(335544320,10,{_labelChild:0}),mo(603979776,11,{_errorChildren:1}),mo(603979776,12,{_hintChildren:1}),mo(603979776,13,{_prefixChildren:1}),mo(603979776,14,{_suffixChildren:1}),(t()(),ui(38,0,null,3,4,"mat-label",[],null,null,null,null,null)),Xi(39,16384,[[10,4]],0,vb,[],null,null),(t()(),ui(40,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Xi(41,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Password"])),(t()(),ui(43,0,null,1,2,"input",[["class","form-control mat-input-element mat-form-field-autofill-control"],["data-eye",""],["id","id_password"],["matInput",""],["name","password"],["type","password"]],[[2,"mat-input-server",null],[1,"id",0],[1,"placeholder",0],[8,"disabled",0],[8,"required",0],[8,"readOnly",0],[1,"aria-describedby",0],[1,"aria-invalid",0],[1,"aria-required",0]],[[null,"blur"],[null,"focus"],[null,"input"]],function(t,e,n){var r=!0;return"blur"===e&&(r=!1!==Fi(t,44)._focusChanged(!1)&&r),"focus"===e&&(r=!1!==Fi(t,44)._focusChanged(!0)&&r),"input"===e&&(r=!1!==Fi(t,44)._onInput()&&r),r},null,null)),Xi(44,999424,null,0,Vw,[on,mf,[8,null],[2,Sw],[2,kw],zf,[8,null],Mw,De],{id:[0,"id"],type:[1,"type"]},null),Ji(2048,[[8,4]],yb,null,[Vw]),(t()(),li(16777216,null,null,1,null,qw)),Xi(47,16384,null,0,Ou,[dn,hn],{ngIf:[0,"ngIf"]},null),(t()(),ui(48,0,null,null,5,"div",[["class","login-button"]],null,null,null,null,null)),(t()(),ui(49,0,null,null,4,"button",[["color","primary"],["mat-stroked-button",""],["type","submit"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null]],null,null,Bv,zv)),Xi(50,180224,null,0,Fv,[on,mf,Af,[2,Ov]],{color:[0,"color"]},null),(t()(),ui(51,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(52,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Login"]))],function(t,e){var n=e.component;t(e,12,0,"standard"),t(e,23,0),t(e,26,0,"id_user","",""),t(e,30,0,"standard"),t(e,41,0),t(e,44,0,"id_password","password"),t(e,47,0,n.auths.length>1),t(e,50,0,"primary"),t(e,52,0)},function(t,e){var n=e.component;t(e,6,0,n.api.staticURL("modern/img/login-img.png")),t(e,8,0,n.title),t(e,11,1,["standard"==Fi(e,12).appearance,"fill"==Fi(e,12).appearance,"outline"==Fi(e,12).appearance,"legacy"==Fi(e,12).appearance,Fi(e,12)._control.errorState,Fi(e,12)._canLabelFloat,Fi(e,12)._shouldLabelFloat(),Fi(e,12)._hideControlPlaceholder(),Fi(e,12)._control.disabled,Fi(e,12)._control.autofilled,Fi(e,12)._control.focused,"accent"==Fi(e,12).color,"warn"==Fi(e,12).color,Fi(e,12)._shouldForward("untouched"),Fi(e,12)._shouldForward("touched"),Fi(e,12)._shouldForward("pristine"),Fi(e,12)._shouldForward("dirty"),Fi(e,12)._shouldForward("valid"),Fi(e,12)._shouldForward("invalid"),Fi(e,12)._shouldForward("pending"),!Fi(e,12)._animationsEnabled]),t(e,25,0,Fi(e,26)._isServer,Fi(e,26).id,Fi(e,26).placeholder,Fi(e,26).disabled,Fi(e,26).required,Fi(e,26).readonly,Fi(e,26)._ariaDescribedby||null,Fi(e,26).errorState,Fi(e,26).required.toString()),t(e,29,1,["standard"==Fi(e,30).appearance,"fill"==Fi(e,30).appearance,"outline"==Fi(e,30).appearance,"legacy"==Fi(e,30).appearance,Fi(e,30)._control.errorState,Fi(e,30)._canLabelFloat,Fi(e,30)._shouldLabelFloat(),Fi(e,30)._hideControlPlaceholder(),Fi(e,30)._control.disabled,Fi(e,30)._control.autofilled,Fi(e,30)._control.focused,"accent"==Fi(e,30).color,"warn"==Fi(e,30).color,Fi(e,30)._shouldForward("untouched"),Fi(e,30)._shouldForward("touched"),Fi(e,30)._shouldForward("pristine"),Fi(e,30)._shouldForward("dirty"),Fi(e,30)._shouldForward("valid"),Fi(e,30)._shouldForward("invalid"),Fi(e,30)._shouldForward("pending"),!Fi(e,30)._animationsEnabled]),t(e,43,0,Fi(e,44)._isServer,Fi(e,44).id,Fi(e,44).placeholder,Fi(e,44).disabled,Fi(e,44).required,Fi(e,44).readonly,Fi(e,44)._ariaDescribedby||null,Fi(e,44).errorState,Fi(e,44).required.toString()),t(e,49,0,Fi(e,50).disabled||null,"NoopAnimations"===Fi(e,50)._animationMode)})}var Kw=Oi("uds-login",Bw.a,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-login",[],null,null,null,Qw,Hw)),Xi(1,114688,null,0,Bw.a,[Hv.a],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Ww=function(){function t(t){this.api=t}return t.prototype.ngOnInit=function(){},t.prototype.download=function(t){window.location.href=t},t.prototype.img=function(t){return this.api.staticURL("modern/img/"+t+".png")},t}(),Gw=Dr({encapsulation:0,styles:[[".plugins-container[_ngcontent-%COMP%]{margin:0 2%}.banner[_ngcontent-%COMP%]{display:flex;justify-content:center;margin-bottom:2rem}.banner-text[_ngcontent-%COMP%] h1[_ngcontent-%COMP%]{font-size:3rem;text-align:center}.banner-text[_ngcontent-%COMP%] h2[_ngcontent-%COMP%]{font-size:1rem}.plugins[_ngcontent-%COMP%]{display:flex;flex-flow:row wrap;justify-content:center}.plugin[_ngcontent-%COMP%]{margin:0 1rem 2rem 0;padding:1rem;border-radius:1rem;box-shadow:0 1rem 2rem rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);transition:.3s cubic-bezier(.25,.8,.25,1);flex:1 0 21%}.plugin[_ngcontent-%COMP%]:hover{cursor:pointer;box-shadow:0 .1rem .2rem rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22)}.image[_ngcontent-%COMP%]{display:flex;justify-content:center}.platform[_ngcontent-%COMP%]{text-align:center;font-size:2rem}.description[_ngcontent-%COMP%]{display:flex;text-align:justify}"]],data:{}});function Yw(t){return Io(0,[(t()(),ui(0,0,null,null,6,"div",[["class","plugin"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.download(t.context.$implicit.url)&&r),r},null,null)),(t()(),ui(1,0,null,null,1,"div",[["class","image"]],null,null,null,null,null)),(t()(),ui(2,0,null,null,0,"img",[],[[8,"src",4]],null,null,null,null)),(t()(),ui(3,0,null,null,1,"div",[["class","platform"]],null,null,null,null,null)),(t()(),So(4,null,[" "," "])),(t()(),ui(5,0,null,null,1,"div",[["class","description"]],null,null,null,null,null)),(t()(),So(6,null,[" "," "]))],null,function(t,e){t(e,2,0,e.component.img(e.context.$implicit.name)),t(e,4,0,e.context.$implicit.name),t(e,6,0,e.context.$implicit.description)})}function Zw(t){return Io(0,[(t()(),ui(0,0,null,null,13,"div",[["class","plugins-container"]],null,null,null,null,null)),(t()(),ui(1,0,null,null,5,"div",[["class","banner"]],null,null,null,null,null)),(t()(),ui(2,0,null,null,4,"div",[["class","banner-text"]],null,null,null,null,null)),(t()(),ui(3,0,null,null,3,"h1",[],null,null,null,null,null)),(t()(),ui(4,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Xi(5,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["UDS Client"])),(t()(),ui(7,0,null,null,2,"div",[["class","plugins"]],null,null,null,null,null)),(t()(),li(16777216,null,null,1,null,Yw)),Xi(9,278528,null,0,Su,[dn,hn,Mn],{ngForOf:[0,"ngForOf"]},null),(t()(),ui(10,0,null,null,3,"div",[["class","info"]],null,null,null,null,null)),(t()(),ui(11,0,null,null,2,"uds-translate",[],null,null,null,null,null)),Xi(12,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Download UDS client for your platform"]))],function(t,e){var n=e.component;t(e,5,0),t(e,9,0,n.api.plugins),t(e,12,0)},null)}var Xw=Oi("uds-client-download",Ww,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-client-download",[],null,null,null,Zw,Gw)),Xi(1,114688,null,0,Ww,[Hv.a],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),$w=function(){function t(t){this.route=t,this.error=""}return t.prototype.ngOnInit=function(){this.getError()},t.prototype.getError=function(){var t=this.route.snapshot.paramMap.get("id");try{this.error=window.atob(t)}catch(t){this.error=django.gettext("Invalid error string")}},t}(),Jw=Dr({encapsulation:0,styles:[[".errorview[_ngcontent-%COMP%]{display:flex;flex-flow:column wrap;align-items:center;justify-content:center;height:100%;width:100%}.errorDialog[_ngcontent-%COMP%]{min-width:30%;min-height:30%;box-shadow:0 2px 3px rgba(0,0,0,.25),0 10px 10px rgba(0,0,0,.22);display:flex;flex-flow:column wrap;align-items:center;justify-content:center}.header[_ngcontent-%COMP%]{font-size:1rem}.message[_ngcontent-%COMP%]{font-size:1rem;height:30%}"]],data:{}});function tx(t){return Io(0,[(t()(),ui(0,0,null,null,7,"div",[["class","errorview"]],null,null,null,null,null)),(t()(),ui(1,0,null,null,6,"div",[["class","errorDialog"]],null,null,null,null,null)),(t()(),ui(2,0,null,null,2,"div",[["class","header"]],null,null,null,null,null)),(t()(),ui(3,0,null,null,1,"h1",[["class","mat-display-1"]],null,null,null,null,null)),(t()(),So(-1,null,["Error"])),(t()(),ui(5,0,null,null,2,"div",[["class","message"]],null,null,null,null,null)),(t()(),ui(6,0,null,null,1,"h2",[["class","mat-h2"]],null,null,null,null,null)),(t()(),So(7,null,["",""]))],null,function(t,e){t(e,7,0,e.component.error)})}var ex,nx=Oi("uds-error",$w,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-error",[],null,null,null,tx,Jw)),Xi(1,114688,null,0,$w,[vh],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),rx={},ix=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new ox(t,this.resultSelector))},t}(),ox=function(t){function e(e,n){var r=t.call(this,e)||this;return r.resultSelector=n,r.active=0,r.values=[],r.observables=[],r}return r.b(e,t),e.prototype._next=function(t){this.values.push(rx),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n 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 vx(t){return Io(2,[(t()(),ui(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,e,n){var r=!0,i=t.component;return"@state.start"===e&&(r=!1!==i._animationStart()&&r),"@state.done"===e&&(r=!1!==i._animationDone(n)&&r),r},null,null)),Xi(1,278528,null,0,Cu,[Mn,Nn,on,rn],{klass:[0,"klass"],ngClass:[1,"ngClass"]},null),$i(131072,Lu,[fn]),(t()(),So(3,null,["",""]))],function(t,e){t(e,1,0,"mat-tooltip",e.component.tooltipClass)},function(t,e){var n=e.component;t(e,0,0,Pr(e,0,0,Fi(e,2).transform(n._isHandset)).matches,n._visibility),t(e,3,0,n.message)})}var _x=Oi("mat-tooltip-component",mx,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"mat-tooltip-component",[["aria-hidden","true"]],[[4,"zoom",null]],[["body","click"]],function(t,e,n){var r=!0;return"body:click"===e&&(r=!1!==Fi(t,1)._handleBodyInteraction()&&r),r},vx,gx)),Xi(1,49152,null,0,mx,[fn,ux],null,null)],null,function(t,e){t(e,0,0,"visible"===Fi(e,1)._visibility?1:null)})},{},{},[]),bx=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 wx(){throw Error("Attempting to attach dialog content after content is already attached")}var xx=function(t){function e(e,n,r,i,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=r,a._document=i,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Re,a._ariaLabelledBy=null,a}return Object(r.b)(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&wx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&wx(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._trapFocus=function(){this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement)),this._config.autoFocus&&this._focusTrap.focusInitialElementWhenReady()},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},e.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()}))},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e}(zd),Cx=0,Ex=function(){function t(t,e,n,r){void 0===r&&(r="mat-dialog-"+Cx++);var i=this;this._overlayRef=t,this._containerInstance=e,this.id=r,this.disableClose=this._containerInstance._config.disableClose,this._afterOpen=new F,this._afterClosed=new F,this._beforeClose=new F,this._locationChanges=E.a.EMPTY,e._id=r,e._animationStateChanged.pipe(Vl(function(t){return"done"===t.phaseName&&"enter"===t.toState}),Zl(1)).subscribe(function(){i._afterOpen.next(),i._afterOpen.complete()}),e._animationStateChanged.pipe(Vl(function(t){return"done"===t.phaseName&&"exit"===t.toState}),Zl(1)).subscribe(function(){return i._overlayRef.dispose()}),t.detachments().subscribe(function(){i._beforeClose.next(i._result),i._beforeClose.complete(),i._locationChanges.unsubscribe(),i._afterClosed.next(i._result),i._afterClosed.complete(),i.componentInstance=null,i._overlayRef.dispose()}),t.keydownEvents().pipe(Vl(function(t){return t.keyCode===af&&!i.disableClose})).subscribe(function(){return i.close()}),n&&(this._locationChanges=n.subscribe(function(){i._containerInstance._config.closeOnNavigation&&i.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Vl(function(t){return"start"===t.phaseName}),Zl(1)).subscribe(function(){e._beforeClose.next(t),e._beforeClose.complete(),e._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 e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),Sx=new G("MatDialogData"),kx=new G("mat-dialog-default-options"),Ox=new G("mat-dialog-scroll-strategy");function Ix(t){return function(){return t.scrollStrategies.block()}}var Tx=function(){function t(t,e,n,r,i,o,a){var s=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=r,this._scrollStrategy=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new F,this._afterOpenAtThisLevel=new F,this._ariaHiddenElements=new Map,this.afterAllClosed=Bb(function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(pm(void 0))})}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,e){var n=this;if((e=function(t,e){return Object(r.a)({},e,t)}(e,this._defaultOptions||new bx)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),o=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,o,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe(function(){return n._removeOpenDialog(a)}),this.afterOpen.next(a),a},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(e){return e.id===t})},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new Tm({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&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new qd(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[bx,e]])),r=new Fd(xx,e.viewContainerRef,n);return t.attach(r).instance},t.prototype._attachDialogContent=function(t,e,n,r){var i=new Ex(n,e,this._location,r.id);if(r.hasBackdrop&&n.backdropClick().subscribe(function(){i.disableClose||i.close()}),t instanceof hn)e.attachTemplatePortal(new Vd(t,null,{$implicit:r.data,dialogRef:i}));else{var o=this._createInjector(r,i,e),a=e.attachComponentPortal(new Fd(t,void 0,o));i.componentInstance=a.instance}return i.updateSize(r.width,r.height).updatePosition(r.position),i},t.prototype._createInjector=function(t,e,n){var r=t&&t.viewContainerRef&&t.viewContainerRef.injector,i=new WeakMap([[xx,n],[Sx,t.data],[Ex,e]]);return!t.direction||r&&r.get(cy,null)||i.set(cy,{value:t.direction,change:xl()}),new qd(r||this._injector,i)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach(function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")}),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var r=e[n];r===t||"SCRIPT"===r.nodeName||"STYLE"===r.nodeName||r.hasAttribute("aria-live")||(this._ariaHiddenElements.set(r,r.getAttribute("aria-hidden")),r.setAttribute("aria-hidden","true"))}},t}(),Px=0,Ax=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.ariaLabel="Close dialog"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=Mx(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t}(),Rx=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+Px++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=Mx(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then(function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)})},t}(),Dx=function(){},jx=function(){};function Mx(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find(function(t){return t.id===n.id}):null}var Nx=function(){},Lx=Dr({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 Fx(t){return Io(0,[(t()(),li(0,null,null,0))],null,null)}function Vx(t){return Io(0,[mo(402653184,1,{_portalOutlet:0}),(t()(),li(16777216,null,null,1,null,Fx)),Xi(2,212992,[[1,4]],0,Hd,[Ce,dn],{portal:[0,"portal"]},null)],function(t,e){t(e,2,0,"")},null)}var zx=Oi("mat-dialog-container",xx,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"mat-dialog-container",[["aria-modal","true"],["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,e,n){var r=!0;return"component:@slideDialog.start"===e&&(r=!1!==Fi(t,1)._onAnimationStart(n)&&r),"component:@slideDialog.done"===e&&(r=!1!==Fi(t,1)._onAnimationDone(n)&&r),r},Vx,Lx)),Xi(1,49152,null,0,xx,[on,Pf,fn,[2,Vu],bx],null,null)],null,function(t,e){t(e,0,0,Fi(e,1)._id,Fi(e,1)._config.role,Fi(e,1)._config.ariaLabel?null:Fi(e,1)._ariaLabelledBy,Fi(e,1)._config.ariaLabel,Fi(e,1)._config.ariaDescribedBy||null,Fi(e,1)._state)})},{},{},[]),Bx=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t,e){return this.sanitizer.bypassSecurityTrustHtml(t)},t}(),Hx=n("YY/e"),Ux=Dr({encapsulation:0,styles:[[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]],data:{}});function qx(t){return Io(0,[$i(0,Bx,[qc]),(t()(),ui(1,0,null,null,2,"h4",[["class","mat-dialog-title"],["mat-dialog-title",""]],[[8,"innerHTML",1],[8,"id",0]],null,null,null,null)),Xi(2,81920,null,0,Rx,[[2,Ex],on,Tx],null,null),xo(3,1),(t()(),ui(4,0,null,null,2,"mat-dialog-content",[["class","mat-dialog-content"]],[[8,"innerHTML",1]],null,null,null,null)),Xi(5,16384,null,0,Dx,[],null,null),xo(6,1),(t()(),ui(7,0,null,null,8,"mat-dialog-actions",[["class","mat-dialog-actions"]],null,null,null,null,null)),Xi(8,16384,null,0,jx,[],null,null),(t()(),ui(9,0,null,null,6,"button",[["mat-dialog-close",""],["mat-raised-button",""],["type","button"]],[[8,"disabled",0],[2,"_mat-animation-noopable",null],[1,"aria-label",0]],[[null,"click"]],function(t,e,n){var r=!0,i=t.component;return"click"===e&&(r=!1!==Fi(t,11).dialogRef.close(Fi(t,11).dialogResult)&&r),"click"===e&&(r=!1!==i.close()&&r),r},Bv,zv)),Xi(10,180224,null,0,Fv,[on,mf,Af,[2,Ov]],null,null),Xi(11,606208,null,0,Ax,[[2,Ex],on,Tx],{dialogResult:[0,"dialogResult"]},null),(t()(),ui(12,0,null,0,2,"uds-translate",[],null,null,null,null,null)),Xi(13,81920,null,0,jv,[on],null,null),(t()(),So(-1,null,["Close"])),(t()(),So(15,0,["",""]))],function(t,e){t(e,2,0),t(e,11,0,""),t(e,13,0)},function(t,e){var n=e.component;t(e,1,0,Pr(e,1,0,t(e,3,0,Fi(e,0),n.data.title)),Fi(e,2).id),t(e,4,0,Pr(e,4,0,t(e,6,0,Fi(e,0),n.data.body))),t(e,9,0,Fi(e,10).disabled||null,"NoopAnimations"===Fi(e,10)._animationMode,Fi(e,11).ariaLabel),t(e,15,0,n.extra)})}var Qx=Oi("uds-modal",Hx.a,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-modal",[],null,null,null,qx,Ux)),Xi(1,114688,null,0,Hx.a,[Ex,Sx],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),Kx=function(t){function e(e,n,r){var i=t.call(this,e)||this;return i._platform=n,i._document=r,i}return Object(r.b)(e,t),e.prototype.ngAfterViewInit=function(){var t=this;We()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe(function(){return t._checkToolbarMixedModes()}))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&[].slice.call(this._elementRef.nativeElement.childNodes).filter(function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))}).filter(function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)}).some(function(t){return t.textContent.trim()})&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e}(Lf(function(t){this._elementRef=t})),Wx=function(){},Gx=Dr({encapsulation:2,styles:["@media screen and (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],data:{}});function Yx(t){return Io(2,[bo(null,0),bo(null,1)],null,null)}var Zx=function(t){function e(e,n){var r=t.call(this,e,n)||this;return r.scheduler=e,r.work=n,r}return r.b(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(Wd.a),Xx=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r.b(e,t),e}(Yd.a))(Zx),$x=function(t){function e(e,n,r){void 0===r&&(r=0);var i=t.call(this,e)||this;return i.scheduler=n,i.delay=r,i}return r.b(e,t),e.dispatch=function(t){t.notification.observe(t.destination),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new Jx(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(hm.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(hm.createError(t))},e.prototype._complete=function(){this.scheduleMessage(hm.createComplete())},e}(a.a),Jx=function(t,e){this.notification=t,this.destination=e},tC=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY);var i=t.call(this)||this;return i.scheduler=r,i._events=[],i._infiniteTimeWindow=!1,i._bufferSize=e<1?1:e,i._windowTime=n<1?1:n,n===Number.POSITIVE_INFINITY?(i._infiniteTimeWindow=!0,i.next=i.nextInfiniteTimeWindow):i.next=i.nextTimeWindow,i}return r.b(e,t),e.prototype.nextInfiniteTimeWindow=function(e){var n=this._events;n.push(e),n.length>this._bufferSize&&n.shift(),t.prototype.next.call(this,e)},e.prototype.nextTimeWindow=function(e){this._events.push(new eC(this._getNow(),e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._infiniteTimeWindow,r=n?this._events:this._trimBufferThenGetEvents(),i=this.scheduler,o=r.length;if(this.closed)throw new j;if(this.isStopped||this.hasError?e=E.a.EMPTY:(this.observers.push(t),e=new M(this,t)),i&&t.add(t=new $x(t,i)),n)for(var a=0;ae&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(F),eC=function(t,e){this.time=t,this.value=e},nC=["row","column","row-reverse","column-reverse"],rC=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i._announcer=new tC(1),i.layout$=i._announcer.asObservable(),i}return Object(r.b)(e,t),Object.defineProperty(e.prototype,"layout",{set:function(t){this._cacheInput("layout",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXs",{set:function(t){this._cacheInput("layoutXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutSm",{set:function(t){this._cacheInput("layoutSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutMd",{set:function(t){this._cacheInput("layoutMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLg",{set:function(t){this._cacheInput("layoutLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutXl",{set:function(t){this._cacheInput("layoutXl",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtXs",{set:function(t){this._cacheInput("layoutGtXs",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtSm",{set:function(t){this._cacheInput("layoutGtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtMd",{set:function(t){this._cacheInput("layoutGtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutGtLg",{set:function(t){this._cacheInput("layoutGtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtSm",{set:function(t){this._cacheInput("layoutLtSm",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtMd",{set:function(t){this._cacheInput("layoutLtMd",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtLg",{set:function(t){this._cacheInput("layoutLtLg",t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"layoutLtXl",{set:function(t){this._cacheInput("layoutLtXl",t)},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(null!=t.layout||this._mqActivation)&&this._updateWithDirection()},e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._listenForMediaQueryChanges("layout","row",function(t){e._updateWithDirection(t.value)})},e.prototype._updateWithDirection=function(t){t=t||this._queryInput("layout")||"row",this._mqActivation&&(t=this._mqActivation.activatedInput);var e=function(t){var e=function(t){var e=(t=t?t.toLowerCase():"").split(" "),n=e[0],r=e[1],i=e[2];return nC.find(function(t){return t===n})||(n=nC[0]),"inline"===r&&(r="inline"!==i?i:"",i="inline"),[n,function(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}(r),!!i]}(t);return function(t,n,r){return void 0===n&&(n=null),void 0===r&&(r=!1),{display:r?"inline-flex":"flex","box-sizing":"border-box","flex-direction":e[0],"flex-wrap":n||null}}(0,e[1],e[2])}(t||"");this._applyStyleToElement(e),this._announcer.next({direction:e["flex-direction"],wrap:!!e["flex-wrap"]&&"nowrap"!==e["flex-wrap"]})},e}(K_),iC=function(){},oC=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,r=t.config.available_languages;n0,0===Fi(e,58)._toolbarRows.length),t(e,60,0,Fi(e,62).disabled||null,"NoopAnimations"===Fi(e,62)._animationMode),t(e,63,0,n.api.staticURL("modern/img/udsicon.png")),t(e,69,0,Fi(e,71).disabled||null,"NoopAnimations"===Fi(e,71)._animationMode),t(e,75,0,Fi(e,77).disabled||null,"NoopAnimations"===Fi(e,77)._animationMode),t(e,83,0,Fi(e,84).disabled||null,"NoopAnimations"===Fi(e,84)._animationMode,Fi(e,85).menuOpen||null),t(e,86,0,n.lang.name),t(e,91,0,Fi(e,92).disabled||null,"NoopAnimations"===Fi(e,92)._animationMode,Fi(e,93).menuOpen||null)})}var hC=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),dC=Dr({encapsulation:0,styles:[[""]],data:{}});function fC(t){return Io(0,[(t()(),ui(0,0,null,null,3,"div",[],null,null,null,null,null)),(t()(),So(-1,null,["Copyright \xa9 2012-2018 "])),(t()(),ui(2,0,null,null,1,"a",[["href","https://www.udsenterprise.com"]],null,null,null,null,null)),(t()(),So(-1,null,["Virtual Cable S.L.U."]))],null,null)}var mC=Dr({encapsulation:0,styles:[[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:80%;margin:4rem auto 0}@media only screen and (max-width:744px){.content[_ngcontent-%COMP%]{width:100%}}"]],data:{}});function yC(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-navbar",[],null,null,null,pC,aC)),Xi(1,114688,null,0,oC,[Hv.a],null,null),(t()(),ui(2,0,null,null,6,"div",[["class","page"]],null,null,null,null,null)),(t()(),ui(3,0,null,null,2,"div",[["class","content"]],null,null,null,null,null)),(t()(),ui(4,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),Xi(5,212992,null,0,pd,[cd,dn,Ce,[8,null],fn],null,null),(t()(),ui(6,0,null,null,2,"div",[["class","footer"]],null,null,null,null,null)),(t()(),ui(7,0,null,null,1,"uds-footer",[],null,null,null,fC,dC)),Xi(8,114688,null,0,hC,[],null,null)],function(t,e){t(e,1,0),t(e,5,0),t(e,8,0)},null)}var gC=Oi("uds-root",vl,function(t){return Io(0,[(t()(),ui(0,0,null,null,1,"uds-root",[],null,null,null,yC,mC)),Xi(1,114688,null,0,vl,[],null,null)],function(t,e){t(e,1,0)},null)},{},{},[]),vC=function(){},_C=function(){},bC=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}: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 e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[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,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,Object(r.d)(n)),this.headers.set(e,i);break;case"d":var o=t.value;if(o){var a=this.headers.get(e);if(!a)return;0===(a=a.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,a)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),wC=function(){function t(){}return t.prototype.encodeKey=function(t){return xC(t)},t.prototype.encodeValue=function(t){return xC(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function xC(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 CC=function(){function t(t){void 0===t&&(t={});var e,n,i,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new wC,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=Object(r.c)(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),a=o[0],s=o[1],l=i.get(a)||[];l.push(s),i.set(a,l)}),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach(function(e){var n=t.fromObject[e];o.map.set(e,Array.isArray(n)?n:[n])})):this.map=null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[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,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},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(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function EC(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function SC(t){return"undefined"!=typeof Blob&&t instanceof Blob}function kC(t){return"undefined"!=typeof FormData&&t instanceof FormData}var OC=function(){function t(t,e,n,r){var i;if(this.url=e,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)||r?(this.body=void 0!==n?n:null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new bC),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),PC=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=IC.ResponseHeader,n}return Object(r.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(TC),AC=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=IC.Response,n.body=void 0!==e.body?e.body:null,n}return Object(r.b)(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({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})},e}(TC),RC=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.message=n.status>=200&&n.status<300?"Http failure during parsing for "+(e.url||"(unknown url)"):"Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return Object(r.b)(e,t),e}(TC);function DC(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var jC=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,i=this;if(void 0===n&&(n={}),t instanceof OC)r=t;else{var o;o=n.headers instanceof bC?n.headers:new bC(n.headers);var a=void 0;n.params&&(a=n.params instanceof CC?n.params:new CC({fromObject:n.params})),r=new OC(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=xl(r).pipe(kl(function(t){return i.handler.handle(t)}));if(t instanceof OC||"events"===n.observe)return s;var l=s.pipe(Vl(function(t){return t instanceof AC}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return l.pipe(w(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return l.pipe(w(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return l.pipe(w(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 l.pipe(w(function(t){return t.body}))}case"response":return l;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new CC).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,DC(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,DC(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,DC(n,e))},t}(),MC=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),NC=new G("HTTP_INTERCEPTORS"),LC=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),FC=/^\)\]\}',?\n/,VC=function(){},zC=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),BC=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new i.a(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEach(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,l=function(){if(null!==s)return s;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new bC(r.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(r)||t.url;return s=new PC({headers:i,status:e,statusText:n,url:o})},u=function(){var e=l(),i=e.headers,o=e.status,a=e.statusText,s=e.url,u=null;204!==o&&(u=void 0===r.response?r.responseText:r.response),0===o&&(o=u?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof u){var p=u;u=u.replace(FC,"");try{u=""!==u?JSON.parse(u):null}catch(t){u=p,c&&(c=!1,u={error:t,text:u})}}c?(n.next(new AC({body:u,headers:i,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new RC({error:u,headers:i,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=new RC({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,h=function(e){p||(n.next(l()),p=!0);var i={type:IC.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:IC.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",u),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",h),null!==a&&r.upload&&r.upload.addEventListener("progress",d)),r.send(a),n.next({type:IC.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",u),t.reportProgress&&(r.removeEventListener("progress",h),null!==a&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}(),HC=new G("XSRF_COOKIE_NAME"),UC=new G("XSRF_HEADER_NAME"),qC=function(){},QC=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,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=xu(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),KC=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}(),WC=function(){function t(t,e){this.backend=t,this.injector=e,this.chain=null}return t.prototype.handle=function(t){if(null===this.chain){var e=this.injector.get(NC,[]);this.chain=e.reduceRight(function(t,e){return new MC(t,e)},this.backend)}return this.chain.handle(t)},t}(),GC=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:KC,useClass:LC}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:HC,useValue:e.cookieName}:[],e.headerName?{provide:UC,useValue:e.headerName}:[]]}},t}(),YC=function(){},ZC=n("OPAf"),XC=function(){},$C=function(){},JC={float:"always"},tE=function(){},eE=function(){},nE=function(){function t(t,e){Uu(e)&&!t&&console.warn("Warning: Flex Layout loaded on the server without FlexLayoutServerModule")}return t.withConfig=function(e,n){return{ngModule:t,providers:Array.isArray(n)?e.serverLoaded?[{provide:R_,useValue:e},{provide:b_,useValue:n,multi:!0},{provide:U_,useValue:!0}]:[{provide:R_,useValue:e},{provide:b_,useValue:n,multi:!0}]:e.serverLoaded?[{provide:R_,useValue:e},{provide:U_,useValue:!0}]:[{provide:R_,useValue:e}]}},t}(),rE=function(t,e,n){return new Ma(gl,[vl],function(t){return function(t){for(var e={},n=[],r=!1,i=0;i",this._properties=e&&e.properties||{},this._zoneDelegate=new u(this,this._parent&&this._parent._zoneDelegate,e)}return e.assertZonePatched=function(){if(t.Promise!==E.ZoneAwarePromise)throw new Error("Zone.js has detected that ZoneAwarePromise `(window|global).Promise` has been overwritten.\nMost likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)")},Object.defineProperty(e,"root",{get:function(){for(var t=e.current;t.parent;)t=t.parent;return t},enumerable:!0,configurable:!0}),Object.defineProperty(e,"current",{get:function(){return O.zone},enumerable:!0,configurable:!0}),Object.defineProperty(e,"currentTask",{get:function(){return P},enumerable:!0,configurable:!0}),e.__load_patch=function(o,i){if(E.hasOwnProperty(o))throw Error("Already loaded patch: "+o);if(!t["__Zone_disable_"+o]){var a="Zone:"+o;n(a),E[o]=i(t,e,F),r(a,a)}},Object.defineProperty(e.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"name",{get:function(){return this._name},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var e=this.getZoneWith(t);if(e)return e._properties[t]},e.prototype.getZoneWith=function(t){for(var e=this;e;){if(e._properties.hasOwnProperty(t))return e;e=e._parent}return null},e.prototype.fork=function(t){if(!t)throw new Error("ZoneSpec required!");return this._zoneDelegate.fork(this,t)},e.prototype.wrap=function(t,e){if("function"!=typeof t)throw new Error("Expecting function got: "+t);var n=this._zoneDelegate.intercept(this,t,e),r=this;return function(){return r.runGuarded(n,this,arguments,e)}},e.prototype.run=function(t,e,n,r){void 0===e&&(e=void 0),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{return this._zoneDelegate.invoke(this,t,e,n,r)}finally{O=O.parent}},e.prototype.runGuarded=function(t,e,n,r){void 0===e&&(e=null),void 0===n&&(n=null),void 0===r&&(r=null),O={parent:O,zone:this};try{try{return this._zoneDelegate.invoke(this,t,e,n,r)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{O=O.parent}},e.prototype.runTask=function(t,e,n){if(t.zone!=this)throw new Error("A task can only be run in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");if(t.state!==y||t.type!==x){var r=t.state!=k;r&&t._transitionTo(k,b),t.runCount++;var o=P;P=t,O={parent:O,zone:this};try{t.type==w&&t.data&&!t.data.isPeriodic&&(t.cancelFn=null);try{return this._zoneDelegate.invokeTask(this,t,e,n)}catch(t){if(this._zoneDelegate.handleError(this,t))throw t}}finally{t.state!==y&&t.state!==S&&(t.type==x||t.data&&t.data.isPeriodic?r&&t._transitionTo(b,k):(t.runCount=0,this._updateTaskCount(t,-1),r&&t._transitionTo(y,k,y))),O=O.parent,P=o}}},e.prototype.scheduleTask=function(t){if(t.zone&&t.zone!==this)for(var e=this;e;){if(e===t.zone)throw Error("can not reschedule task to "+this.name+" which is descendants of the original zone "+t.zone.name);e=e.parent}t._transitionTo(m,y);var n=[];t._zoneDelegates=n,t._zone=this;try{t=this._zoneDelegate.scheduleTask(this,t)}catch(e){throw t._transitionTo(S,m,y),this._zoneDelegate.handleError(this,e),e}return t._zoneDelegates===n&&this._updateTaskCount(t,1),t.state==m&&t._transitionTo(b,m),t},e.prototype.scheduleMicroTask=function(t,e,n,r){return this.scheduleTask(new c(T,t,e,n,r,null))},e.prototype.scheduleMacroTask=function(t,e,n,r,o){return this.scheduleTask(new c(w,t,e,n,r,o))},e.prototype.scheduleEventTask=function(t,e,n,r,o){return this.scheduleTask(new c(x,t,e,n,r,o))},e.prototype.cancelTask=function(t){if(t.zone!=this)throw new Error("A task can only be cancelled in the zone of creation! (Creation: "+(t.zone||g).name+"; Execution: "+this.name+")");t._transitionTo(_,b,k);try{this._zoneDelegate.cancelTask(this,t)}catch(e){throw t._transitionTo(S,_),this._zoneDelegate.handleError(this,e),e}return this._updateTaskCount(t,-1),t._transitionTo(y,_),t.runCount=0,t},e.prototype._updateTaskCount=function(t,e){var n=t._zoneDelegates;-1==e&&(t._zoneDelegates=null);for(var r=0;r0,macroTask:n.macroTask>0,eventTask:n.eventTask>0,change:t})},t}(),c=function(){function e(n,r,o,i,a,u){this._zone=null,this.runCount=0,this._zoneDelegates=null,this._state="notScheduled",this.type=n,this.source=r,this.data=i,this.scheduleFn=a,this.cancelFn=u,this.callback=o;var c=this;this.invoke=n===x&&i&&i.useG?e.invokeTask:function(){return e.invokeTask.call(t,c,this,arguments)}}return e.invokeTask=function(t,e,n){t||(t=this),M++;try{return t.runCount++,t.zone.runTask(t,e,n)}finally{1==M&&d(),M--}},Object.defineProperty(e.prototype,"zone",{get:function(){return this._zone},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"state",{get:function(){return this._state},enumerable:!0,configurable:!0}),e.prototype.cancelScheduleRequest=function(){this._transitionTo(y,m)},e.prototype._transitionTo=function(t,e,n){if(this._state!==e&&this._state!==n)throw new Error(this.type+" '"+this.source+"': can not transition to '"+t+"', expecting state '"+e+"'"+(n?" or '"+n+"'":"")+", was '"+this._state+"'.");this._state=t,t==y&&(this._zoneDelegates=null)},e.prototype.toString=function(){return this.data&&void 0!==this.data.handleId?this.data.handleId:Object.prototype.toString.call(this)},e.prototype.toJSON=function(){return{type:this.type,state:this.state,source:this.source,zone:this.zone.name,runCount:this.runCount}},e}(),s=D("setTimeout"),f=D("Promise"),l=D("then"),p=[],h=!1;function v(e){0===M&&0===p.length&&(o||t[f]&&(o=t[f].resolve(0)),o?o[l](d):t[s](d,0)),e&&p.push(e)}function d(){if(!h){for(h=!0;p.length;){var t=p;p=[];for(var e=0;e=0;n--)"function"==typeof t[n]&&(t[n]=p(t[n],e+"_"+n));return t}function _(t){return!t||!1!==t.writable&&!("function"==typeof t.get&&void 0===t.set)}var S="undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope,T=!("nw"in y)&&void 0!==y.process&&"[object process]"==={}.toString.call(y.process),w=!T&&!S&&!(!d||!g.HTMLElement),x=void 0!==y.process&&"[object process]"==={}.toString.call(y.process)&&!S&&!(!d||!g.HTMLElement),E={},F=function(t){if(t=t||y.event){var e=E[t.type];e||(e=E[t.type]=v("ON_PROPERTY"+t.type));var n=(this||t.target||y)[e],r=n&&n.apply(this,arguments);return void 0==r||r||t.preventDefault(),r}};function O(n,r,o){var i=t(n,r);if(!i&&o&&t(o,r)&&(i={enumerable:!0,configurable:!0}),i&&i.configurable){delete i.writable,delete i.value;var a=i.get,u=i.set,c=r.substr(2),s=E[c];s||(s=E[c]=v("ON_PROPERTY"+c)),i.set=function(t){var e=this;e||n!==y||(e=y),e&&(e[s]&&e.removeEventListener(c,F),u&&u.apply(e,b),"function"==typeof t?(e[s]=t,e.addEventListener(c,F,!1)):e[s]=null)},i.get=function(){var t=this;if(t||n!==y||(t=y),!t)return null;var e=t[s];if(e)return e;if(a){var o=a&&a.call(this);if(o)return i.set.call(this,o),"function"==typeof t[m]&&t.removeAttribute(r),o}return null},e(n,r,i)}}function P(t,e,n){if(e)for(var r=0;r1?new u(e,n):new u(e),l=t(f,"onmessage");return l&&!1===l.configurable?(c=r(f),s=f,[i,a,"send","close"].forEach(function(t){c[t]=function(){var e=o.call(arguments);if(t===i||t===a){var n=e.length>0?e[0]:void 0;if(n){var r=Zone.__symbol__("ON_PROPERTY"+n);f[r]=c[r]}}return f[t].apply(f,e)}})):c=f,P(c,["close","error","message","open"],s),c};var c=n.WebSocket;for(var s in u)c[s]=u[s]}(0,c)}}var lt=v("unbound");Zone.__load_patch("util",function(t,e,n){n.patchOnProperties=P,n.patchMethod=D,n.bindArguments=k}),Zone.__load_patch("timers",function(t){V(t,"set","clear","Timeout"),V(t,"set","clear","Interval"),V(t,"set","clear","Immediate")}),Zone.__load_patch("requestAnimationFrame",function(t){V(t,"request","cancel","AnimationFrame"),V(t,"mozRequest","mozCancel","AnimationFrame"),V(t,"webkitRequest","webkitCancel","AnimationFrame")}),Zone.__load_patch("blocking",function(t,e){for(var n=["alert","prompt","confirm"],r=0;r=0&&"function"==typeof n[r.cbIdx]?h(r.name,n[r.cbIdx],r,i,null):t.apply(e,n)}})}()}),Zone.__load_patch("XHR",function(t,e){!function(e){var s=XMLHttpRequest.prototype,f=s[u],l=s[c];if(!f){var p=t.XMLHttpRequestEventTarget;if(p){var v=p.prototype;f=v[u],l=v[c]}}var d="readystatechange",g="scheduled";function y(t){XMLHttpRequest[i]=!1;var e=t.data,r=e.target,a=r[o];f||(f=r[u],l=r[c]),a&&l.call(r,d,a);var s=r[o]=function(){r.readyState===r.DONE&&!e.aborted&&XMLHttpRequest[i]&&t.state===g&&t.invoke()};return f.call(r,d,s),r[n]||(r[n]=t),_.apply(r,e.args),XMLHttpRequest[i]=!0,t}function m(){}function b(t){var e=t.data;return e.aborted=!0,S.apply(e.target,e.args)}var k=D(s,"open",function(){return function(t,e){return t[r]=0==e[2],t[a]=e[1],k.apply(t,e)}}),_=D(s,"send",function(){return function(t,e){return t[r]?_.apply(t,e):h("XMLHttpRequest.send",m,{target:t,url:t[a],isPeriodic:!1,delay:null,args:e,aborted:!1},y,b)}}),S=D(s,"abort",function(){return function(t){var e=t[n];if(e&&"string"==typeof e.type){if(null==e.cancelFn||e.data&&e.data.aborted)return;e.zone.cancelTask(e)}}})}();var n=v("xhrTask"),r=v("xhrSync"),o=v("xhrListener"),i=v("xhrScheduled"),a=v("xhrURL")}),Zone.__load_patch("geolocation",function(e){e.navigator&&e.navigator.geolocation&&function(e,n){for(var r=e.constructor.name,o=function(o){var i=n[o],a=e[i];if(a){if(!_(t(e,i)))return"continue";e[i]=function(t){var e=function(){return t.apply(this,k(arguments,r+"."+i))};return K(e,t),e}(a)}},i=0;is;)c.call(t,a=u[s++])&&e.push(a);return e}},"1TsA":function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},"1sa7":function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},"25dN":function(t,e,n){var r=n("XKFU");r(r.S,"Object",{is:n("g6HL")})},"2OiF":function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},"2Spj":function(t,e,n){var r=n("XKFU");r(r.P,"Function",{bind:n("8MEG")})},"2atp":function(t,e,n){var r=n("XKFU"),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},3:function(t,e,n){t.exports=n("hN/g")},"3Lyj":function(t,e,n){var r=n("KroJ");t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},"45Tv":function(t,e,n){var r=n("N6cJ"),o=n("y3w9"),i=n("OP3Y"),a=r.has,u=r.get,c=r.key,s=function(t,e,n){if(a(t,e,n))return u(t,e,n);var r=i(e);return null!==r?s(t,r,n):void 0};r.exp({getMetadata:function(t,e){return s(t,o(e),arguments.length<3?void 0:c(arguments[2]))}})},"49D4":function(t,e,n){var r=n("N6cJ"),o=n("y3w9"),i=r.key,a=r.set;r.exp({defineMetadata:function(t,e,n,r){a(t,e,o(n),i(r))}})},"4A4+":function(t,e,n){n("2Spj"),n("f3/d"),n("IXt9"),t.exports=n("g3g5").Function},"4LiD":function(t,e,n){"use strict";var r=n("dyZX"),o=n("XKFU"),i=n("KroJ"),a=n("3Lyj"),u=n("Z6vF"),c=n("SlkY"),s=n("9gX7"),f=n("0/R4"),l=n("eeVq"),p=n("XMVh"),h=n("fyDq"),v=n("Xbzi");t.exports=function(t,e,n,d,g,y){var m=r[t],b=m,k=g?"set":"add",_=b&&b.prototype,S={},T=function(t){var e=_[t];i(_,t,"delete"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(y||_.forEach&&!l(function(){(new b).entries().next()}))){var w=new b,x=w[k](y?{}:-0,1)!=w,E=l(function(){w.has(1)}),F=p(function(t){new b(t)}),O=!y&&l(function(){for(var t=new b,e=5;e--;)t[k](e,e);return!t.has(-0)});F||((b=e(function(e,n){s(e,b,t);var r=v(new m,e,b);return void 0!=n&&c(n,g,r[k],r),r})).prototype=_,_.constructor=b),(E||O)&&(T("delete"),T("has"),g&&T("get")),(O||x)&&T(k),y&&_.clear&&delete _.clear}else b=d.getConstructor(e,t,g,k),a(b.prototype,n),u.NEED=!0;return h(b,t),S[t]=b,o(o.G+o.W+o.F*(b!=m),S),y||d.setStrong(b,t,g),b}},"4R4u":function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},"5Pf0":function(t,e,n){var r=n("S/j/"),o=n("OP3Y");n("Xtr8")("getPrototypeOf",function(){return function(t){return o(r(t))}})},"6AQ9":function(t,e,n){"use strict";var r=n("XKFU"),o=n("8a7r");r(r.S+r.F*n("eeVq")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)o(n,t,arguments[t++]);return n.length=e,n}})},"6FMO":function(t,e,n){var r=n("0/R4"),o=n("EWmC"),i=n("K0xU")("species");t.exports=function(t){var e;return o(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!o(e.prototype)||(e=void 0),r(e)&&null===(e=e[i])&&(e=void 0)),void 0===e?Array:e}},"7Dlh":function(t,e,n){var r=n("N6cJ"),o=n("y3w9"),i=r.has,a=r.key;r.exp({hasOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},"7h0T":function(t,e,n){var r=n("XKFU");r(r.S,"Number",{isNaN:function(t){return t!=t}})},"8+KV":function(t,e,n){"use strict";var r=n("XKFU"),o=n("CkkT")(0),i=n("LyE8")([].forEach,!0);r(r.P+r.F*!i,"Array",{forEach:function(t){return o(this,t,arguments[1])}})},"84bF":function(t,e,n){"use strict";n("OGtf")("small",function(t){return function(){return t(this,"small","","")}})},"8MEG":function(t,e,n){"use strict";var r=n("2OiF"),o=n("0/R4"),i=n("MfQN"),a=[].slice,u={};t.exports=Function.bind||function(t){var e=r(this),n=a.call(arguments,1),c=function(){var r=n.concat(a.call(arguments));return this instanceof c?function(t,e,n){if(!(e in u)){for(var r=[],o=0;o0?arguments[0]:void 0)}},{get:function(t){var e=r.getEntry(o(this,"Map"),t);return e&&e.v},set:function(t,e){return r.def(o(this,"Map"),0===t?0:t,e)}},r,!0)},"9P93":function(t,e,n){var r=n("XKFU"),o=Math.imul;r(r.S+r.F*n("eeVq")(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(t,e){var n=+t,r=+e,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},"9VmF":function(t,e,n){"use strict";var r=n("XKFU"),o=n("ne8i"),i=n("0sh+"),a="".startsWith;r(r.P+r.F*n("UUeW")("startsWith"),"String",{startsWith:function(t){var e=i(this,t,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),r=String(t);return a?a.call(e,r,n):e.slice(n,n+r.length)===r}})},"9gX7":function(t,e){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},A2zW:function(t,e,n){"use strict";var r=n("XKFU"),o=n("RYi7"),i=n("vvmO"),a=n("l0Rn"),u=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,e){for(var n=-1,r=e;++n<6;)s[n]=(r+=t*s[n])%1e7,r=c(r/1e7)},p=function(t){for(var e=6,n=0;--e>=0;)s[e]=c((n+=s[e])/t),n=n%t*1e7},h=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==s[t]){var n=String(s[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},v=function(t,e,n){return 0===e?n:e%2==1?v(t,e-1,n*t):v(t*t,e/2,n)};r(r.P+r.F*(!!u&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("eeVq")(function(){u.call({})})),"Number",{toFixed:function(t){var e,n,r,u,c=i(this,f),s=o(t),d="",g="0";if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(d="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*v(2,69,1))-69)<0?c*v(2,-e,1):c/v(2,e,1),n*=4503599627370496,(e=52-e)>0){for(l(0,n),r=s;r>=7;)l(1e7,0),r-=7;for(l(v(10,r,1),0),r=e-1;r>=23;)p(1<<23),r-=23;p(1<0?d+((u=g.length)<=s?"0."+a.call("0",s-u)+g:g.slice(0,u-s)+"."+g.slice(u-s)):d+g}})},Afnz:function(t,e,n){"use strict";var r=n("LQAc"),o=n("XKFU"),i=n("KroJ"),a=n("Mukb"),u=n("hPIQ"),c=n("QaDb"),s=n("fyDq"),f=n("OP3Y"),l=n("K0xU")("iterator"),p=!([].keys&&"next"in[].keys()),h=function(){return this};t.exports=function(t,e,n,v,d,g,y){c(n,e,v);var m,b,k,_=function(t){if(!p&&t in x)return x[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",T="values"==d,w=!1,x=t.prototype,E=x[l]||x["@@iterator"]||d&&x[d],F=E||_(d),O=d?T?_("entries"):F:void 0,P="Array"==e&&x.entries||E;if(P&&(k=f(P.call(new t)))!==Object.prototype&&k.next&&(s(k,S,!0),r||"function"==typeof k[l]||a(k,l,h)),T&&E&&"values"!==E.name&&(w=!0,F=function(){return E.call(this)}),r&&!y||!p&&!w&&x[l]||a(x,l,F),u[e]=F,u[S]=h,d)if(m={values:T?F:_("values"),keys:g?F:_("keys"),entries:O},y)for(b in m)b in x||i(x,b,m[b]);else o(o.P+o.F*(p||w),e,m);return m}},AphP:function(t,e,n){"use strict";var r=n("XKFU"),o=n("S/j/"),i=n("apmT");r(r.P+r.F*n("eeVq")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=o(this),n=i(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},AvRE:function(t,e,n){var r=n("RYi7"),o=n("vhPU");t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},BC7C:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{fround:n("kcoS")})},"BJ/l":function(t,e,n){var r=n("XKFU");r(r.S,"Math",{log1p:n("1sa7")})},BP8U:function(t,e,n){var r=n("XKFU"),o=n("PKUr");r(r.S+r.F*(Number.parseInt!=o),"Number",{parseInt:o})},BqfV:function(t,e,n){var r=n("N6cJ"),o=n("y3w9"),i=r.get,a=r.key;r.exp({getOwnMetadata:function(t,e){return i(t,o(e),arguments.length<3?void 0:a(arguments[2]))}})},Btvt:function(t,e,n){"use strict";var r=n("I8a+"),o={};o[n("K0xU")("toStringTag")]="z",o+""!="[object z]"&&n("KroJ")(Object.prototype,"toString",function(){return"[object "+r(this)+"]"},!0)},"C/va":function(t,e,n){"use strict";var r=n("y3w9");t.exports=function(){var t=r(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},CkkT:function(t,e,n){var r=n("m0Pp"),o=n("Ymqv"),i=n("S/j/"),a=n("ne8i"),u=n("zRwo");t.exports=function(t,e){var n=1==t,c=2==t,s=3==t,f=4==t,l=6==t,p=5==t||l,h=e||u;return function(e,u,v){for(var d,g,y=i(e),m=o(y),b=r(u,v,3),k=a(m.length),_=0,S=n?h(e,k):c?h(e,0):void 0;k>_;_++)if((p||_ in m)&&(g=b(d=m[_],_,y),t))if(n)S[_]=g;else if(g)switch(t){case 3:return!0;case 5:return d;case 6:return _;case 2:S.push(d)}else if(f)return!1;return l?-1:s||f?f:S}}},CuTL:function(t,e,n){n("fyVe"),n("U2t9"),n("2atp"),n("+auO"),n("MtdB"),n("Jcmo"),n("nzyx"),n("BC7C"),n("x8ZO"),n("9P93"),n("eHKK"),n("BJ/l"),n("pp/T"),n("CyHz"),n("bBoP"),n("x8Yj"),n("hLT2"),t.exports=n("g3g5").Math},CyHz:function(t,e,n){var r=n("XKFU");r(r.S,"Math",{sign:n("lvtm")})},DNiP:function(t,e,n){"use strict";var r=n("XKFU"),o=n("eyMr");r(r.P+r.F*!n("LyE8")([].reduce,!0),"Array",{reduce:function(t){return o(this,t,arguments.length,arguments[1],!1)}})},DVgA:function(t,e,n){var r=n("zhAb"),o=n("4R4u");t.exports=Object.keys||function(t){return r(t,o)}},DW2E:function(t,e,n){var r=n("0/R4"),o=n("Z6vF").onFreeze;n("Xtr8")("freeze",function(t){return function(e){return t&&r(e)?t(o(e)):e}})},EK0E:function(t,e,n){"use strict";var r,o=n("CkkT")(0),i=n("KroJ"),a=n("Z6vF"),u=n("czNK"),c=n("ZD67"),s=n("0/R4"),f=n("eeVq"),l=n("s5qY"),p=a.getWeak,h=Object.isExtensible,v=c.ufstore,d={},g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(s(t)){var e=p(t);return!0===e?v(l(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return c.def(l(this,"WeakMap"),t,e)}},m=t.exports=n("4LiD")("WeakMap",g,y,c,!0,!0);f(function(){return 7!=(new m).set((Object.freeze||Object)(d),7).get(d)})&&(u((r=c.getConstructor(g,"WeakMap")).prototype,y),a.NEED=!0,o(["delete","has","get","set"],function(t){var e=m.prototype,n=e[t];i(e,t,function(e,o){if(s(e)&&!h(e)){this._f||(this._f=new r);var i=this._f[t](e,o);return"set"==t?this:i}return n.call(this,e,o)})}))},EWmC:function(t,e,n){var r=n("LZWt");t.exports=Array.isArray||function(t){return"Array"==r(t)}},EemH:function(t,e,n){var r=n("UqcF"),o=n("RjD/"),i=n("aCFj"),a=n("apmT"),u=n("aagx"),c=n("xpql"),s=Object.getOwnPropertyDescriptor;e.f=n("nh4g")?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},FEjr:function(t,e,n){"use strict";n("OGtf")("strike",function(t){return function(){return t(this,"strike","","")}})},FJW5:function(t,e,n){var r=n("hswa"),o=n("y3w9"),i=n("DVgA");t.exports=n("nh4g")?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},FLlr:function(t,e,n){var r=n("XKFU");r(r.P,"String",{repeat:n("l0Rn")})},FZcq:function(t,e,n){n("49D4"),n("zq+C"),n("45Tv"),n("uAtd"),n("BqfV"),n("fN/3"),n("iW+S"),n("7Dlh"),n("Opxb"),t.exports=n("g3g5").Reflect},FlsD:function(t,e,n){var r=n("0/R4");n("Xtr8")("isExtensible",function(t){return function(e){return!!r(e)&&(!t||t(e))}})},GNAe:function(t,e,n){var r=n("XKFU"),o=n("PKUr");r(r.G+r.F*(parseInt!=o),{parseInt:o})},H6hf:function(t,e,n){var r=n("y3w9");t.exports=function(t,e,n,o){try{return o?e(r(n)[0],n[1]):e(n)}catch(e){var i=t.return;throw void 0!==i&&r(i.call(t)),e}}},"HAE/":function(t,e,n){var r=n("XKFU");r(r.S+r.F*!n("nh4g"),"Object",{defineProperty:n("hswa").f})},HEwt:function(t,e,n){"use strict";var r=n("m0Pp"),o=n("XKFU"),i=n("S/j/"),a=n("H6hf"),u=n("M6Qj"),c=n("ne8i"),s=n("8a7r"),f=n("J+6e");o(o.S+o.F*!n("XMVh")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,o,l,p=i(t),h="function"==typeof this?this:Array,v=arguments.length,d=v>1?arguments[1]:void 0,g=void 0!==d,y=0,m=f(p);if(g&&(d=r(d,v>2?arguments[2]:void 0,2)),void 0==m||h==Array&&u(m))for(n=new h(e=c(p.length));e>y;y++)s(n,y,g?d(p[y],y):p[y]);else for(l=m.call(p),n=new h;!(o=l.next()).done;y++)s(n,y,g?a(l,d,[o.value,y],!0):o.value);return n.length=y,n}})},I78e:function(t,e,n){"use strict";var r=n("XKFU"),o=n("+rLv"),i=n("LZWt"),a=n("d/Gc"),u=n("ne8i"),c=[].slice;r(r.P+r.F*n("eeVq")(function(){o&&c.call(o)}),"Array",{slice:function(t,e){var n=u(this.length),r=i(this);if(e=void 0===e?n:e,"Array"==r)return c.call(this,t,e);for(var o=a(t,n),s=a(e,n),f=u(s-o),l=new Array(f),p=0;p1?arguments[1]:void 0)}}),n("nGyu")(i)},"IU+Z":function(t,e,n){"use strict";var r=n("Mukb"),o=n("KroJ"),i=n("eeVq"),a=n("vhPU"),u=n("K0xU");t.exports=function(t,e,n){var c=u(t),s=n(a,c,""[t]),f=s[0],l=s[1];i(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(o(String.prototype,t,f),r(RegExp.prototype,c,2==e?function(t,e){return l.call(t,this,e)}:function(t){return l.call(t,this)}))}},IXt9:function(t,e,n){"use strict";var r=n("0/R4"),o=n("OP3Y"),i=n("K0xU")("hasInstance"),a=Function.prototype;i in a||n("hswa").f(a,i,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=o(t);)if(this.prototype===t)return!0;return!1}})},Iw71:function(t,e,n){var r=n("0/R4"),o=n("dyZX").document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},"J+6e":function(t,e,n){var r=n("I8a+"),o=n("K0xU")("iterator"),i=n("hPIQ");t.exports=n("g3g5").getIteratorMethod=function(t){if(void 0!=t)return t[o]||t["@@iterator"]||i[r(t)]}},JCqj:function(t,e,n){"use strict";n("OGtf")("sup",function(t){return function(){return t(this,"sup","","")}})},Jcmo:function(t,e,n){var r=n("XKFU"),o=Math.exp;r(r.S,"Math",{cosh:function(t){return(o(t=+t)+o(-t))/2}})},JduL:function(t,e,n){n("Xtr8")("getOwnPropertyNames",function(){return n("e7yV").f})},JiEa:function(t,e){e.f=Object.getOwnPropertySymbols},K0xU:function(t,e,n){var r=n("VTer")("wks"),o=n("ylqs"),i=n("dyZX").Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},KKXr:function(t,e,n){n("IU+Z")("split",2,function(t,e,r){"use strict";var o=n("quPj"),i=r,a=[].push;if("c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length){var u=void 0===/()??/.exec("")[1];r=function(t,e){var n=String(this);if(void 0===t&&0===e)return[];if(!o(t))return i.call(n,t,e);var r,c,s,f,l,p=[],h=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),v=0,d=void 0===e?4294967295:e>>>0,g=new RegExp(t.source,h+"g");for(u||(r=new RegExp("^"+g.source+"$(?!\\s)",h));(c=g.exec(n))&&!((s=c.index+c[0].length)>v&&(p.push(n.slice(v,c.index)),!u&&c.length>1&&c[0].replace(r,function(){for(l=1;l1&&c.index=d));)g.lastIndex===c.index&&g.lastIndex++;return v===n.length?!f&&g.test("")||p.push(""):p.push(n.slice(v)),p.length>d?p.slice(0,d):p}}else"0".split(void 0,0).length&&(r=function(t,e){return void 0===t&&0===e?[]:i.call(this,t,e)});return[function(n,o){var i=t(this),a=void 0==n?void 0:n[e];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},r]})},KroJ:function(t,e,n){var r=n("dyZX"),o=n("Mukb"),i=n("aagx"),a=n("ylqs")("src"),u=Function.toString,c=(""+u).split("toString");n("g3g5").inspectSource=function(t){return u.call(t)},(t.exports=function(t,e,n,u){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]!==n&&(s&&(i(n,a)||o(n,a,t[e]?""+t[e]:c.join(String(e)))),t===r?t[e]=n:u?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||u.call(this)})},Kuth:function(t,e,n){var r=n("y3w9"),o=n("FJW5"),i=n("4R4u"),a=n("YTvA")("IE_PROTO"),u=function(){},c=function(){var t,e=n("Iw71")("iframe"),r=i.length;for(e.style.display="none",n("+rLv").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write(" + + + + + \ No newline at end of file diff --git a/server/src/uds/templates/500.html b/server/src/uds/templates/500.html index c9420236..c8ad64c6 100644 --- a/server/src/uds/templates/500.html +++ b/server/src/uds/templates/500.html @@ -1,17 +1,14 @@ -{% extends "uds/html5/templates/base.html" %} -{% load i18n static %} -{% block title %}{% trans 'Page not found' %}{% endblock %} -{% block css %} - -{% endblock %} -{% block body %} -
-

OoopsError 500

-
-

The server raised an unexpected error, either contact your webmaster or try again. Use your browsers Back button to navigate to the page you have prevously come from

-

Or you could just press this neat little button:

- Take Me Home -
-{% endblock %} +{% load i18n %} + + + + + + + + \ No newline at end of file diff --git a/server/src/uds/templatetags/uds.py b/server/src/uds/templatetags/uds.py index bc63e406..2ba03709 100644 --- a/server/src/uds/templatetags/uds.py +++ b/server/src/uds/templatetags/uds.py @@ -142,11 +142,17 @@ def udsJs(context): # Update bypass configuration with user information config['bypassPluginDetection'] = prefs.get('bypassPluginDetection') == '1' + errors = [] + if 'errors' in request.session: + errors = request.session['errors'] + del request.session['errors'] + uds = { 'profile': profile, 'config': config, 'plugins': plugins, 'actors': actors, + 'errors': errors } javascript = 'var udsData = ' + json.dumps(uds) + ';\n'; diff --git a/server/src/uds/urls.py b/server/src/uds/urls.py index d088dc02..a9c55039 100644 --- a/server/src/uds/urls.py +++ b/server/src/uds/urls.py @@ -46,13 +46,14 @@ js_info_dict = { urlpatterns = [ # Root url placeholder - path('', RedirectView.as_view(pattern_name='page.index', permanent=False), name='page.index.placeholder'), + path(r'', RedirectView.as_view(pattern_name='page.index', permanent=False), name='page.index.placeholder'), # Compat redirections - path('login/', RedirectView.as_view(pattern_name='page.login', permanent=False), name='page.login.placeholder'), + path(r'login/', RedirectView.as_view(pattern_name='page.login', permanent=False), name='page.login.compat'), + path(r'logout/', RedirectView.as_view(pattern_name='page.logut'), name='page.logout.compat'), # Javascript - path('uds/js', uds.web.views.modern.js, name="uds.js"), + path(r'uds/js', uds.web.views.modern.js, name="uds.js"), # Index path(r'uds/page/services/', uds.web.views.modern.index, name='page.index'), @@ -60,13 +61,13 @@ urlpatterns = [ # Login/logout path(r'uds/page/login/', uds.web.views.modern.login, name='page.login'), re_path(r'^uds/page/login/(?P.+)$', uds.web.views.modern.login, name='page.login.tag'), - path(r'uds/page/logout/', uds.web.views.logout, name='page.logout'), + path(r'uds/page/logout/', uds.web.views.modern.logout, name='page.logout'), # Error URL re_path(r'^uds/page/error/(?P.+)$', uds.web.views.error, name='page.error'), # This must be the last, so any patition will be managed by client in fact - re_path(r'uds/page/.*', uds.web.views.modern.index, name='page.plageholder'), + re_path(r'uds/page/.*', uds.web.views.modern.index, name='page.placeholder'), # WEB API path (not REST api, frontend) re_path(r'^uds/webapi/img/transport/(?P.+)$', uds.web.views.transportIcon, name='webapi.transportIcon'), @@ -92,7 +93,7 @@ urlpatterns = [ # re_path(r'^$', uds.web.views.index, name='uds.web.views.index'), # re_path(r'^login/$', uds.web.views.login, name='uds.web.views.login'), # re_path(r'^login/(?P.+)$', uds.web.views.login, name='uds.web.views.login'), - re_path(r'^logout$', uds.web.views.logout, name='uds.web.views.logout'), + # re_path(r'^logout$', uds.web.views.logout, name='uds.web.views.logout'), # Icons # re_path(r'^transicon/(?P.+)$', uds.web.views.transportIcon, name='uds.web.views.transportIcon'), diff --git a/server/src/uds/web/errors.py b/server/src/uds/web/errors.py index 3fa5af0f..704cfbe4 100644 --- a/server/src/uds/web/errors.py +++ b/server/src/uds/web/errors.py @@ -62,6 +62,8 @@ SERVICE_IN_MAINTENANCE = 12 SERVICE_NOT_READY = 13 SERVICE_IN_PREPARATION = 14 SERVICE_CALENDAR_DENIED = 15 +PAGE_NOT_FOUND = 16 +INTERNAL_SERVER_ERROR = 17 strings = [ _('Unknown error'), @@ -79,7 +81,9 @@ strings = [ _('The requested service is in maintenance mode'), _('The service is not ready.\nPlease, try again in a few moments.'), _('Preparing service'), - _('Service access denied by calendars') + _('Service access denied by calendars'), + _('Page not found'), + _('Unexpected error'), ] @@ -98,7 +102,7 @@ def errorView(request, error): if code != 0: errStr += ' (code {0:04X})'.format(code) - errStr = encoders.encode(str(errStr), 'base64', asText=True)[:-3] + errStr = encoders.encode(str(errStr), 'base64', asText=True)[:-1] return HttpResponseRedirect(reverse('page.error', kwargs={'error': errStr})) diff --git a/server/src/uds/web/views/__init__.py b/server/src/uds/web/views/__init__.py index c900e2ad..147be6f0 100644 --- a/server/src/uds/web/views/__init__.py +++ b/server/src/uds/web/views/__init__.py @@ -32,7 +32,7 @@ from __future__ import unicode_literals import logging -from .login import login, logout +# from .login import login, logout from .index import index, about from .prefs import prefs from .service import transportOwnLink, transportIcon, clientEnabler, serviceImage, release, reset @@ -44,6 +44,6 @@ from .images import image from .file_storage import file_storage from . import modern -__updated__ = '2018-09-12' +__updated__ = '2018-09-14' logger = logging.getLogger(__name__) diff --git a/server/src/uds/web/views/modern.py b/server/src/uds/web/views/modern.py index d7e24008..6fa2864d 100644 --- a/server/src/uds/web/views/modern.py +++ b/server/src/uds/web/views/modern.py @@ -34,9 +34,13 @@ import json from django.shortcuts import render from django.http import HttpResponse from django.urls import reverse +from uds.web.errors import errorView from uds.core.auths.auth import ( getUDSCookie, - denyNonAuthenticated + denyNonAuthenticated, + webLoginRequired, + authLogLogout, + webLogout, ) from uds.web.services import getServicesData @@ -44,8 +48,7 @@ logger = logging.getLogger(__name__) def index(request): - from uds.web.errors import errorView - return errorView(request, 1) + # return errorView(request, 1) response = render(request, 'uds/modern/index.html', {}) @@ -74,14 +77,26 @@ def login(request, tag=None): else: # If error is numeric, redirect... # Error, set error on session for process for js - request.session['errors'] = data - return HttpResponse(data); + if isinstance(data, int): + return errorView(request, data) + + request.session['errors'] = [data] + return index(request) else: response = index(request) return response +@webLoginRequired(admin=False) +def logout(request): + authLogLogout(request) + logoutUrl = request.user.logout() + if logoutUrl is None: + logoutUrl = request.session.get('logouturl', None) + return webLogout(request, logoutUrl) + + def js(request): return render(request, 'uds/js.js', content_type='text/javascript')