(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},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"},zUnb:function(t,e,n){"use strict";n.r(e);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 o(t,e){function n(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var i=function(){return(i=Object.assign||function(t){for(var e,n=1,r=arguments.length;n=0;u--)(o=t[u])&&(l=(i<3?o(l):i>3?o(e,n,l):o(e,n))||l);return i>3&&l&&Object.defineProperty(e,n,l),l}function u(t,e){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(t,e)}function a(t){var e="function"==typeof Symbol&&t[Symbol.iterator],n=0;return e?e.call(t):{next:function(){return t&&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,o,i=n.call(t),l=[];try{for(;(void 0===e||e-- >0)&&!(r=i.next()).done;)l.push(r.value)}catch(u){o={error:u}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(o)throw o.error}}return l}function c(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(X);function at(t){return t}function st(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),it(at,t)}function ct(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof o&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof N?t[0]:st(n)(rt(t,r))}function pt(){return function(t){return t.lift(new ft(t))}}var ft=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new ht(t,n),o=e.subscribe(r);return r.closed||(r.connection=n.connect()),o},t}(),ht=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._refCount;if(e<=0)this.connection=null;else if(t._refCount=e-1,e>1)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}(T),dt=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 o(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 w).add(this.source.subscribe(new vt(this.getSubject(),this))),t.closed?(this._connection=null,t=w.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return pt()(this)},e}(N).prototype,gt={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:dt._subscribe},_isComplete:{value:dt._isComplete,writable:!0},getSubject:{value:dt.getSubject},connect:{value:dt.connect},refCount:{value:dt.refCount}},vt=function(t){function e(e,n){var r=t.call(this,e)||this;return r.connectable=n,r}return o(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 yt(){return new U}function mt(){return function(t){return pt()((e=yt,function(t){var n;n="function"==typeof e?e:function(){return e};var r=Object.create(t,gt);return r.source=t,r.subjectFactory=n,r})(t));var e}}function bt(t){for(var e in t)if(t[e]===bt)return e;throw Error("Could not find renamed property on target object.")}function wt(t,e){for(var n in e)e.hasOwnProperty(n)&&!t.hasOwnProperty(n)&&(t[n]=e[n])}var _t=bt({ngComponentDef:bt}),Ct=bt({ngInjectableDef:bt}),St=bt({ngInjectorDef:bt}),xt=bt({ngModuleDef:bt}),Et=bt({ngBaseDef:bt}),kt=bt({__NG_ELEMENT_ID__:bt});function Tt(t){return{providedIn:t.providedIn||null,factory:t.factory,value:void 0}}function It(t){return t.hasOwnProperty(Ct)?t[Ct]:null}function At(t){return t.hasOwnProperty(St)?t[St]:null}var Pt=function(){function t(t,e){this._desc=t,this.ngMetadataName="InjectionToken",this.ngInjectableDef=void 0!==e?Tt({providedIn:e.providedIn||"root",factory:e.factory}):void 0}return t.prototype.toString=function(){return"InjectionToken "+this._desc},t}(),Ot="__parameters__",Rt="__prop__metadata__";function Nt(t){return function(){for(var e=[],n=0;n=pe?n:n[ye]}function Ge(t){return t[He]}function Ze(t){var e=Ge(t);return e?Array.isArray(e)?e:e.lViewData:null}function We(t){return 32767&t}function Qe(t,e){for(var n=t>>16,r=e;n>0;)r=r[ke],n--;return r}var Ke,$e,Ye,Je,Xe,tn,en,nn,rn=("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Ht);function on(){return Ke}function ln(){return $e}function un(){return Ye}function an(t){Ye=t}function sn(t,e){Ye=t,nn=e}function cn(){return Je}function pn(t){Je=t}function fn(){return Xe}function hn(){return en}function dn(){return nn}var gn=!1;function vn(){return gn}function yn(t){gn=t}var mn=!0;function bn(t){mn=t}function wn(t,e){var n=nn;return Xe=t&&t[fe],en=t&&1==(1&t[he]),mn=t&&Xe.firstTemplatePass,Ke=t&&t[Se],Ye=e,Je=!0,nn=t,n&&(n[ve]=tn),tn=t&&t[ve],n}function _n(t,e){e||(gn||Pe(nn,Xe.viewHooks,Xe.viewCheckHooks,en),nn[he]&=-6),nn[he]|=16,nn[be]=Xe.bindingStartIndex,wn(t,null)}var Cn=!1;function Sn(t){var e=Cn;return Cn=t,e}var xn=255,En=0;function kn(t,e){var n=In(t,e);if(-1!==n)return n;var r=e[fe];r.firstTemplatePass&&(t.injectorIndex=e.length,Tn(r.data,t),Tn(e,null),Tn(r.blueprint,null));var o=An(t,e),i=We(o),l=Qe(o,e),u=t.injectorIndex;if(o!==ae)for(var a=l[fe].data,s=0;s<8;s++)e[u+s]=l[i+s]|a[i+s];return e[u+le]=o,u}function Tn(t,e){t.push(0,0,0,0,0,0,0,0,e)}function In(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+le]?-1:t.injectorIndex}function An(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[me],r=1;n&&-1===n.injectorIndex;)n=(e=e[ke])[me],r++;return n?n.injectorIndex|r<<16|(n&&3===n.type?32768:0):-1}var Pn={};function On(t,e,n,r){var o=e[fe],i=o.data[t+ie],l=i.flags,u=i.providerIndexes,a=o.data,s=!1;(null==r&&function(t){return 4096==(4096&t.flags)}(i)&&Cn||null!=r&&r!=o&&(null==o.node||3===o.node.type))&&(s=!0);for(var c=65535&u,p=l>>16,f=4095&l,h=s?c:c+(u>>16);h=p&&d.type===n)return Rn(a,e,h,i)}return Pn}function Rn(t,e,n,r){var o,i=e[n];if(null!=(o=i)&&"object"==typeof o&&Object.getPrototypeOf(o)==ce){var l=i;if(l.resolving)throw new Error("Circular dep for "+Fe(t[n]));var u=Sn(l.canSeeViewProviders);l.resolving=!0;var a=void 0;l.injectImpl&&(a=ee(l.injectImpl));var s=un(),c=dn();sn(r,e);try{i=e[n]=l.factory(null,t,e,r)}finally{l.injectImpl&&ee(a),Sn(u),l.resolving=!1,sn(s,c)}}return i}function Nn(t,e,n){var r=64&t,o=32&t;return!!((128&t?r?o?n[e+7]:n[e+6]:o?n[e+5]:n[e+4]:r?o?n[e+3]:n[e+2]:o?n[e+1]:n[e])&1< ");else if("object"==typeof e){var o=[];for(var i in e)if(e.hasOwnProperty(i)){var l=e[i];o.push(i+":"+("string"==typeof l?JSON.stringify(l):Zt(l)))}r="{"+o.join(", ")+"}"}return"StaticInjectorError"+(n?"("+n+")":"")+"["+r+"]: "+t.replace(tr,"\n ")}function ir(t,e){return new Error(or(t,e))}var lr=function(){return function(){}}(),ur=function(){return function(){}}(),ar="ngProjectAs";function sr(t){return!!t.listen}var cr={createRenderer:function(t,e){return document}},pr=[];function fr(t){for(var e=t[me];e&&2===e.type;)e=(t=t[de])[me];return t}function hr(t,e,n,r,o){0===t?sr(e)?e.insertBefore(n,r,o):n.insertBefore(r,o,!0):1===t?sr(e)?e.removeChild(n,r):n.removeChild(r):2===t&&e.destroyNode(r)}function dr(t){var e=t[fe].childIndex;return-1===e?null:t[e]}function gr(t,e){var n;return t.length>=pe&&(n=t[me])&&2===n.type?function(e,n){if(-1===e.index){var r=t[Ee];return r>-1?t[de][r]:null}return t[de][e.parent.index]}(n):t[de]===e?null:t[de]}function vr(t){if(t.length>=pe){var e=t;!function(t){var e=t[fe].cleanup;if(null!=e){for(var n=0;n=pe?e[fe].childIndex>-1&&(n=dr(e)):e[Le].length&&(n=e[Le][0]),null==n){for(;e&&!e[ge]&&e!==t;)vr(e),e=gr(e,t);vr(e||t),n=e&&e[ge]}e=n}}(t),t[he]|=32},t.prototype.onDestroy=function(t){var e,n;n=t,function(t){return t[we]||(t[we]=[])}(e=this._view).push(n),e[fe].firstTemplatePass&&function(t){return t[fe].cleanup||(t[fe].cleanup=[])}(e).push(e[we].length-1,null)},t.prototype.markForCheck=function(){!function(t){for(var e=t;e&&!(64&e[he]);)e[he]|=4,e=e[de];var n,r,o;e[he]|=4,o=0===(n=e[_e]).flags,n.flags|=1,o&&n.clean==mr&&(n.clean=new Promise(function(t){return r=t}),n.scheduler(function(){if(1&n.flags&&(n.flags&=-2,Rr(n)),2&n.flags){n.flags&=-3;var t=n.playerHandler;t&&t.flushPlayers()}n.clean=mr,r(null)}))}(this._view)},t.prototype.detach=function(){this._view[he]&=-9},t.prototype.reattach=function(){this._view[he]|=8},t.prototype.detectChanges=function(){var t=ln();t.begin&&t.begin(),Nr(this.context),t.end&&t.end()},t.prototype.checkNoChanges=function(){!function(t){yn(!0);try{Nr(t)}finally{yn(!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.prototype._lookUpContext=function(){return this._context=this._view[de][this._componentIndex]},t}());function Ur(t,e,n,r,o){var i=n[fe],l=function(t,e,n){var r=un();t.firstTemplatePass&&(n.providersResolver&&n.providersResolver(n),function(t,e,n){var o=-(r.index-pe),i=t.data.length-(65535&r.providerIndexes);(t.expandoInstructions||(t.expandoInstructions=[])).push(o,i,1)}(t),function(t,e,n,r){t.data.push(n);var o=new se(r,function(t){return null!==t.template}(n),null);t.blueprint.push(o),e.push(o),function(t,e){t.expandoInstructions.push(e.hostBindings||Mn),e.hostVars&&t.expandoInstructions.push(e.hostVars)}(t,n)}(t,e,n,n.factory));var o=Rn(t.data,e,e.length-1,r);return function(t,e,n,r){var o=Be(e,t);Vn(n,t),o&&Vn(o,t),null!=r.attributes&&3==e.type&&function(t,e){for(var n=on(),r=sr(n),o=0;o>16,r=n+(4095&t),o=n;o',!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(r){return null}var e=new XMLHttpRequest;e.responseType="document",e.open("GET","data:text/html;charset=utf-8,"+t,!1),e.send(void 0);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(n){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"),!0},t.prototype.endElement=function(t){var e=t.nodeName.toLowerCase();Uo.hasOwnProperty(e)&&!jo.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(Zo(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}(),qo=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Go=/([^\#-~ |!])/g;function Zo(t){return t.replace(/&/g,"&").replace(qo,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Go,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(//g,">")}function Wo(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Qo={provide:io,useFactory:function(){return new yo},deps:[]},Ko=function(t){function e(e,n){var r=t.call(this)||this;return r._bootstrapComponents=[],r.destroyCbs=[],r._bootstrapComponents=(e[xt]||null).bootstrap,r.injector=function(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),e=e||Wr(),new Qr(t,n,e)}(e,n,[Qo,{provide:lr,useValue:r}]),r.instance=r.injector.get(e),r.componentFactoryResolver=new yo,r}return o(e,t),e.prototype.destroy=function(){this.destroyCbs.forEach(function(t){return t()}),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(lr);!function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,n}o(e,t),e.prototype.create=function(t){return new Ko(this.moduleType,t)}}(ur);var $o=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return o(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var o,i=function(t){return null},l=function(){return null};e&&"object"==typeof e?(o=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(i=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(l=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()})):(o=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(i=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(l=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()}));var u=t.prototype.subscribe.call(this,o,i,l);return e instanceof w&&e.add(u),u},e}(U),Yo=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return Jo(t,ao)},t}(),Jo=Mn,Xo=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}({}),ti=function(){return function(){}}(),ei=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"),ni=/^url\(([^)]+)\)$/,ri=jt("Input",function(t){return{bindingPropertyName:t}},void 0,function(t){return function(t,e){for(var n=[],r=2;r0&&(o=setTimeout(function(){r._callbacks=r._callbacks.filter(function(t){return t.timeoutId!==o}),t(r._didWork,r.getPendingTasks())},e)),this._callbacks.push({doneCb:t,timeoutId:o,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}(),zi=function(){function t(){this._applications=new Map,Bi.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),Bi.findTestabilityInTree(this,t,e)},l([u("design:paramtypes",[])],t)}(),Bi=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),qi=new Pt("AllowMultipleToken"),Gi=function(){return function(t,e){this.name=t,this.token=e}}();function Zi(t,e,n){void 0===n&&(n=[]);var r="Platform: "+e,o=new Pt(r);return function(e){void 0===e&&(e=[]);var i=Wi();if(!i||i.injector.get(qi,!1))if(t)t(n.concat(e).concat({provide:o,useValue:!0}));else{var l=n.concat(e).concat({provide:o,useValue:!0});!function(t){if(Ui&&!Ui.destroyed&&!Ui.injector.get(qi,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Ui=t.get(Qi);var e=t.get(bi,null);e&&e.forEach(function(t){return t()})}(Zn.create({providers:l,name:r}))}return function(t){var e=Wi();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}(o)}}function Wi(){return Ui&&!Ui.destroyed?Ui:null}var Qi=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,o="noop"===(n=e?e.ngZone:void 0)?new Hi:("zone.js"===n?void 0:n)||new Ni({enableLongStackTrace:To()}),i=[{provide:Ni,useValue:o}];return o.run(function(){var e=Zn.create({providers:i,parent:r.injector,name:t.moduleType.name}),n=t.create(e),l=n.injector.get(pi,null);if(!l)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy(function(){return Yi(r._modules,n)}),o.runOutsideAngular(function(){return o.onError.subscribe({next:function(t){l.handleError(t)}})}),function(t,e,o){try{var i=((l=n.injector.get(gi)).runInitializers(),l.donePromise.then(function(){return r._moduleDoBootstrap(n),n}));return fi(i)?i.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):i}catch(u){throw e.runOutsideAngular(function(){return t.handleError(u)}),u}var l}(l,o)})},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var r=Ki({},e);return function(t,e,n){return t.get(Ti).createCompiler([e]).compileModuleAsync(n)}(this.injector,r,t).then(function(t){return n.bootstrapModuleFactory(t,r)})},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get($i);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Zt(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 Ki(t,e){return Array.isArray(e)?e.reduce(Ki,t):i({},t,e)}var $i=function(){function t(t,e,n,r,o,i){var l=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=r,this._componentFactoryResolver=o,this._initStatus=i,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=To(),this._zone.onMicrotaskEmpty.subscribe({next:function(){l._zone.run(function(){l.tick()})}});var u=new N(function(t){l._stable=l._zone.isStable&&!l._zone.hasPendingMacrotasks&&!l._zone.hasPendingMicrotasks,l._zone.runOutsideAngular(function(){t.next(l._stable),t.complete()})}),a=new N(function(t){var e;l._zone.runOutsideAngular(function(){e=l._zone.onStable.subscribe(function(){Ni.assertNotInAngularZone(),qt(function(){l._stable||l._zone.hasPendingMacrotasks||l._zone.hasPendingMicrotasks||(l._stable=!0,t.next(!0))})})});var n=l._zone.onUnstable.subscribe(function(){Ni.assertInAngularZone(),l._stable&&(l._stable=!1,l._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});this.isStable=ct(u,a.pipe(mt()))}var e;return e=t,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 eo?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var o=n instanceof uo?null:this._injector.get(lr),i=n.create(Zn.NULL,[],e||n.selector,o);i.onDestroy(function(){r._unloadComponent(i)});var l=i.injector.get(Fi,null);return l&&i.injector.get(zi).registerApplication(i.location.nativeElement,l),this._loadComponent(i),To()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),i},t.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(r){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(r)})}finally{this._runningTick=!1,Ri(n)}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;Yi(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(_i,[]).concat(this._bootstrapListeners).forEach(function(e){return e(t)})},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),Yi(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=Oi("ApplicationRef#tick()"),t}();function Yi(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var Ji=function(){return function(){}}(),Xi=function(){function t(){this.dirty=!0,this._results=[],this.changes=new $o,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[Bt()]=function(){return this._results[Bt()]()},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}(),tl=function(){return function(){}}(),el={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},nl=function(){function t(t,e){this._compiler=t,this._config=e||el}return t.prototype.load=function(t){return this._compiler instanceof ki?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=s(t.split("#"),2),o=r[0],i=r[1];return void 0===i&&(i="default"),n("crnd")(o).then(function(t){return t[i]}).then(function(t){return rl(t,o,i)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),r=e[0],o=e[1],i="NgFactory";return void 0===o&&(o="default",i=""),n("crnd")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[o+i]}).then(function(t){return rl(t,r,o)})},t}();function rl(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var ol,il=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return ll(t,ao)},t}(),ll=Mn,ul=function(){function t(){}return t.__NG_ELEMENT_ID__=function(){return al()},t}(),al=function(){for(var t=[],e=0;e-1}(r)||"root"===o.providedIn&&r._def.isRoot))){var c=t._providers.length;return t._def.providersByKey[e.tokenKey]={flags:5120,value:u.factory,deps:[],index:c,token:e.token},t._providers[c]=Nu,t._providers[c]=Uu(t,t._def.providersByKey[e.tokenKey])}return 4&e.flags?n:t._parent.get(e.token,n)}finally{te(i)}}function Uu(t,e){var n;switch(201347067&e.flags){case 512:n=function(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Lu(t,n[0]));case 2:return new e(Lu(t,n[0]),Lu(t,n[1]));case 3:return new e(Lu(t,n[0]),Lu(t,n[1]),Lu(t,n[2]));default:for(var o=new Array(r),i=0;i=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,qu(n,e),Bl.dirtyParentQueries(r),zu(r),r}function Fu(t,e,n){var r=e?su(e,e.def.lastRenderRootNode):t.renderElement,o=n.renderer.parentNode(r),i=n.renderer.nextSibling(r);yu(n,2,o,i,void 0)}function zu(t){yu(t,3,null,null,void 0)}function Bu(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function qu(t,e){e>=t.length-1?t.pop():t.splice(e,1)}var Gu=new Object;function Zu(t,e,n,r,o,i){return new Wu(t,e,n,r,o,i)}var Wu=function(t){function e(e,n,r,o,i,l){var u=t.call(this)||this;return u.selector=e,u.componentType=n,u._inputs=o,u._outputs=i,u.ngContentSelectors=l,u.viewDefFactory=r,u}return o(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 o=vu(this.viewDefFactory),i=o.nodes[0].element.componentProvider.nodeIndex,l=Bl.createRootView(t,e||[],n,o,r,Gu),u=Hl(l,i).instance;return n&&l.renderer.setAttribute(Ul(l,0).renderElement,"ng-version",vo.full),new Qu(l,new Ju(l),u)},e}(eo),Qu=function(t){function e(e,n,r){var o=t.call(this)||this;return o._view=e,o._viewRef=n,o._component=r,o._elDef=o._view.def.nodes[0],o.hostView=n,o.changeDetectorRef=n,o.instance=r,o}return o(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new ao(Ul(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new na(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}(to);function Ku(t,e,n){return new $u(t,e,n)}var $u=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 ao(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new na(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=au(t),t=t.parent;return t?new na(t,e):new na(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length-1;t>=0;t--){var e=Hu(this._data,t);Bl.destroyView(e)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Ju(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,o){var i=n||this.parentInjector;o||t instanceof uo||(o=i.get(lr));var l=t.create(i,r,void 0,o);return this.insert(l.hostView,e),l},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n,r,o,i,l=t;return i=(n=this._data).viewContainer._embeddedViews,null==(r=e)&&(r=i.length),(o=l._view).viewContainerParent=this._view,Bu(i,r,o),function(t,e){var n=uu(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,o),Bl.dirtyParentQueries(o),Fu(n,r>0?i[r-1]:null,o),l.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,o,i,l,u=this._embeddedViews.indexOf(t._view);return o=e,l=(i=(n=this._data).viewContainer._embeddedViews)[r=u],qu(i,r),null==o&&(o=i.length),Bu(i,o,l),Bl.dirtyParentQueries(l),zu(l),Fu(n,o>0?i[o-1]:null,l),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Hu(this._data,t);e&&Bl.destroyView(e)},t.prototype.detach=function(t){var e=Hu(this._data,t);return e?new Ju(e):null},t}();function Yu(t){return new Ju(t)}var Ju=function(){function t(t){this._view=t,this._viewContainerRef=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return yu(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(){ou(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{Bl.checkAndUpdateView(this._view)}finally{t.end&&t.end()}},t.prototype.checkNoChanges=function(){Bl.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)),Bl.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,zu(this._view),Bl.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 Xu(t,e){return new ta(t,e)}var ta=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return o(e,t),e.prototype.createEmbeddedView=function(t){return new Ju(Bl.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new ao(Ul(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Yo);function ea(t,e){return new na(t,e)}var na=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){return void 0===e&&(e=Zn.THROW_IF_NOT_FOUND),Bl.resolveDep(this.view,this.elDef,!!this.elDef&&0!=(33554432&this.elDef.flags),{flags:0,token:t,tokenKey:Kl(t)},e)},t}();function ra(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Ul(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Ll(t,n.nodeIndex).renderText;if(20240&n.flags)return Hl(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function oa(t){return new ia(t.renderer)}var ia=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=s(Su(e),2),r=this.delegate.createElement(n[1],n[0]);return t&&this.delegate.appendChild(t,r),r},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,r=e.provider;switch(201347067&e.flags){case 512:return xa(t,e.parent,n,r.value,r.deps);case 1024:return function(t,e,n,r,o){var i=o.length;switch(i){case 0:return r();case 1:return r(ka(t,e,n,o[0]));case 2:return r(ka(t,e,n,o[0]),ka(t,e,n,o[1]));case 3:return r(ka(t,e,n,o[0]),ka(t,e,n,o[1]),ka(t,e,n,o[2]));default:for(var l=Array(i),u=0;u0)s=g,za(g)||(c=g);else for(;s&&d===s.nodeIndex+s.childCount;){var m=s.parent;m&&(m.childFlags|=s.childFlags,m.childMatchedQueries|=s.childMatchedQueries),c=(s=m)&&za(s)?s.renderParent:s}}return{factory:null,nodeFlags:l,rootNodeFlags:u,nodeMatchedQueries:a,flags:t,nodes:e,updateDirectives:n||Wl,updateRenderer:r||Wl,handleEvent:function(t,n,r,o){return e[n].element.handleEvent(t,r,o)},bindingCount:o,outputCount:i,lastRenderRootNode:h}}function za(t){return 0!=(1&t.flags)&&null===t.element.name}function Ba(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 o=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=o&&e.nodeIndex+e.childCount>o)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function qa(t,e,n,r){var o=Wa(t.root,t.renderer,t,e,n);return Qa(o,t.component,r),Ka(o),o}function Ga(t,e,n){var r=Wa(t,t.renderer,null,null,e);return Qa(r,n,n),Ka(r),r}function Za(t,e,n,r){var o,i=e.element.componentRendererType;return o=i?t.root.rendererFactory.createRenderer(r,i):t.root.renderer,Wa(t.root,o,t,e.element.componentProvider,n)}function Wa(t,e,n,r,o){var i=new Array(o.nodes.length),l=o.outputCount?new Array(o.outputCount):null;return{def:o,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:i,state:13,root:t,renderer:e,oldValues:new Array(o.bindingCount),disposables:l,initIndex:-1}}function Qa(t,e,n){t.component=e,t.context=n}function Ka(t){var e;cu(t)&&(e=Ul(t.parent,t.parentNodeDef.parent.nodeIndex).renderElement);for(var n=t.def,r=t.nodes,o=0;o0&&Ru(t,e,0,n)&&(h=!0),f>1&&Ru(t,e,1,r)&&(h=!0),f>2&&Ru(t,e,2,o)&&(h=!0),f>3&&Ru(t,e,3,i)&&(h=!0),f>4&&Ru(t,e,4,l)&&(h=!0),f>5&&Ru(t,e,5,u)&&(h=!0),f>6&&Ru(t,e,6,a)&&(h=!0),f>7&&Ru(t,e,7,s)&&(h=!0),f>8&&Ru(t,e,8,c)&&(h=!0),f>9&&Ru(t,e,9,p)&&(h=!0),h}(t,e,n,r,o,i,l,u,a,s,c,p);case 2:return function(t,e,n,r,o,i,l,u,a,s,c,p){var f=!1,h=e.bindings,d=h.length;if(d>0&&nu(t,e,0,n)&&(f=!0),d>1&&nu(t,e,1,r)&&(f=!0),d>2&&nu(t,e,2,o)&&(f=!0),d>3&&nu(t,e,3,i)&&(f=!0),d>4&&nu(t,e,4,l)&&(f=!0),d>5&&nu(t,e,5,u)&&(f=!0),d>6&&nu(t,e,6,a)&&(f=!0),d>7&&nu(t,e,7,s)&&(f=!0),d>8&&nu(t,e,8,c)&&(f=!0),d>9&&nu(t,e,9,p)&&(f=!0),f){var g=e.text.prefix;d>0&&(g+=Ha(n,h[0])),d>1&&(g+=Ha(r,h[1])),d>2&&(g+=Ha(o,h[2])),d>3&&(g+=Ha(i,h[3])),d>4&&(g+=Ha(l,h[4])),d>5&&(g+=Ha(u,h[5])),d>6&&(g+=Ha(a,h[6])),d>7&&(g+=Ha(s,h[7])),d>8&&(g+=Ha(c,h[8])),d>9&&(g+=Ha(p,h[9]));var v=Ll(t,e.nodeIndex).renderText;t.renderer.setValue(v,g)}return f}(t,e,n,r,o,i,l,u,a,s,c,p);case 16384:return function(t,e,n,r,o,i,l,u,a,s,c,p){var f=Hl(t,e.nodeIndex),h=f.instance,d=!1,g=void 0,v=e.bindings.length;return v>0&&eu(t,e,0,n)&&(d=!0,g=Ia(t,f,e,0,n,g)),v>1&&eu(t,e,1,r)&&(d=!0,g=Ia(t,f,e,1,r,g)),v>2&&eu(t,e,2,o)&&(d=!0,g=Ia(t,f,e,2,o,g)),v>3&&eu(t,e,3,i)&&(d=!0,g=Ia(t,f,e,3,i,g)),v>4&&eu(t,e,4,l)&&(d=!0,g=Ia(t,f,e,4,l,g)),v>5&&eu(t,e,5,u)&&(d=!0,g=Ia(t,f,e,5,u,g)),v>6&&eu(t,e,6,a)&&(d=!0,g=Ia(t,f,e,6,a,g)),v>7&&eu(t,e,7,s)&&(d=!0,g=Ia(t,f,e,7,s,g)),v>8&&eu(t,e,8,c)&&(d=!0,g=Ia(t,f,e,8,c,g)),v>9&&eu(t,e,9,p)&&(d=!0,g=Ia(t,f,e,9,p,g)),g&&h.ngOnChanges(g),65536&e.flags&&Ml(t,256,e.nodeIndex)&&h.ngOnInit(),262144&e.flags&&h.ngDoCheck(),d}(t,e,n,r,o,i,l,u,a,s,c,p);case 32:case 64:case 128:return function(t,e,n,r,o,i,l,u,a,s,c,p){var f=e.bindings,h=!1,d=f.length;if(d>0&&nu(t,e,0,n)&&(h=!0),d>1&&nu(t,e,1,r)&&(h=!0),d>2&&nu(t,e,2,o)&&(h=!0),d>3&&nu(t,e,3,i)&&(h=!0),d>4&&nu(t,e,4,l)&&(h=!0),d>5&&nu(t,e,5,u)&&(h=!0),d>6&&nu(t,e,6,a)&&(h=!0),d>7&&nu(t,e,7,s)&&(h=!0),d>8&&nu(t,e,8,c)&&(h=!0),d>9&&nu(t,e,9,p)&&(h=!0),h){var g=Fl(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(f.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=o),d>3&&(v[3]=i),d>4&&(v[4]=l),d>5&&(v[5]=u),d>6&&(v[6]=a),d>7&&(v[7]=s),d>8&&(v[8]=c),d>9&&(v[9]=p);break;case 64:v={},d>0&&(v[f[0].name]=n),d>1&&(v[f[1].name]=r),d>2&&(v[f[2].name]=o),d>3&&(v[f[3].name]=i),d>4&&(v[f[4].name]=l),d>5&&(v[f[5].name]=u),d>6&&(v[f[6].name]=a),d>7&&(v[f[7].name]=s),d>8&&(v[f[8].name]=c),d>9&&(v[f[9].name]=p);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,o);break;case 4:v=y.transform(r,o,i);break;case 5:v=y.transform(r,o,i,l);break;case 6:v=y.transform(r,o,i,l,u);break;case 7:v=y.transform(r,o,i,l,u,a);break;case 8:v=y.transform(r,o,i,l,u,a,s);break;case 9:v=y.transform(r,o,i,l,u,a,s,c);break;case 10:v=y.transform(r,o,i,l,u,a,s,c,p)}}g.value=v}return h}(t,e,n,r,o,i,l,u,a,s,c,p);default:throw"unreachable"}}(t,e,r,o,i,l,u,a,s,p,f,h):function(t,e,n){switch(201347067&e.flags){case 1:return function(t,e,n){for(var r=!1,o=0;o0&&ru(t,e,0,n),f>1&&ru(t,e,1,r),f>2&&ru(t,e,2,o),f>3&&ru(t,e,3,i),f>4&&ru(t,e,4,l),f>5&&ru(t,e,5,u),f>6&&ru(t,e,6,a),f>7&&ru(t,e,7,s),f>8&&ru(t,e,8,c),f>9&&ru(t,e,9,p)}(t,e,r,o,i,l,u,a,s,c,p,f):function(t,e,n){for(var r=0;r0){var i=new Set(t.modules);ys.forEach(function(e,r){if(i.has(It(r).providedIn)){var o={token:r,flags:e.flags|(n?4096:0),deps:hu(e.deps),value:e.value,index:t.providers.length};t.providers.push(o),t.providersByKey[Kl(r)]=o}})}}(t=t.factory(function(){return Wl})),t):t}(r))}var vs=new Map,ys=new Map,ms=new Map;function bs(t){var e;vs.set(t.token,t),"function"==typeof t.token&&(e=It(t.token))&&"function"==typeof e.providedIn&&ys.set(t.token,t)}function ws(t,e){var n=vu(e.viewDefFactory),r=vu(n.nodes[0].element.componentView);ms.set(t,r)}function _s(){vs.clear(),ys.clear(),ms.clear()}function Cs(t){if(0===vs.size)return t;var e=function(t){for(var e=[],n=null,r=0;r0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=sc.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+sc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+sc.normalizeQueryParams(r));0==o.length&&(o=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(uc),fc=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 o(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 sc.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+sc.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var o=this.prepareExternalUrl(n+sc.normalizeQueryParams(r));this._platformLocation.pushState(t,e,o)},e.prototype.replaceState=function(t,e,n,r){var o=this.prepareExternalUrl(n+sc.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,o)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(uc),hc=void 0,dc=["en",[["a","p"],["AM","PM"],hc],[["AM","PM"],hc,hc],[["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"]],hc,[["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"]],hc,[["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}",hc,"{1} 'at' {0}",hc],[".",",",";","%","+","-","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}],gc={},vc=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}({}),yc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),mc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),bc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),wc=function(t){return t[t.Decimal=0]="Decimal",t[t.Group=1]="Group",t[t.List=2]="List",t[t.PercentSign=3]="PercentSign",t[t.PlusSign=4]="PlusSign",t[t.MinusSign=5]="MinusSign",t[t.Exponential=6]="Exponential",t[t.SuperscriptingExponent=7]="SuperscriptingExponent",t[t.PerMille=8]="PerMille",t[t[1/0]=9]="Infinity",t[t.NaN=10]="NaN",t[t.TimeSeparator=11]="TimeSeparator",t[t.CurrencyDecimal=12]="CurrencyDecimal",t[t.CurrencyGroup=13]="CurrencyGroup",t}({});function _c(t,e){return kc(Ic(t)[10],e)}function Cc(t,e){return kc(Ic(t)[11],e)}function Sc(t,e){return kc(Ic(t)[12],e)}function xc(t,e){var n=Ic(t),r=n[13][e];if(void 0===r){if(e===wc.CurrencyDecimal)return n[13][wc.Decimal];if(e===wc.CurrencyGroup)return n[13][wc.Group]}return r}function Ec(t){if(!t[19])throw new Error('Missing extra locale data for the locale "'+t[0]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function kc(t,e){for(var n=e;n>-1;n--)if(void 0!==t[n])return t[n];throw new Error("Locale data API: locale data undefined")}function Tc(t){var e=s(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}function Ic(t){var e=t.toLowerCase().replace(/_/g,"-"),n=gc[e];if(n)return n;var r=e.split("-")[0];if(n=gc[r])return n;if("en"===r)return dc;throw new Error('Missing locale data for the locale "'+t+'".')}var Ac=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Pc={},Oc=/((?:[^GyMLwWdEabBhHmsSzZO']+)|(?:'(?:[^']|'')*')|(?:G{1,5}|y{1,4}|M{1,5}|L{1,5}|w{1,2}|W{1}|d{1,2}|E{1,6}|a{1,5}|b{1,5}|B{1,5}|h{1,2}|H{1,2}|m{1,2}|s{1,2}|S{1,3}|z{1,4}|Z{1,5}|O{1,4}))([\s\S]*)/,Rc=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),Nc=function(t){return t[t.FullYear=0]="FullYear",t[t.Month=1]="Month",t[t.Date=2]="Date",t[t.Hours=3]="Hours",t[t.Minutes=4]="Minutes",t[t.Seconds=5]="Seconds",t[t.FractionalSeconds=6]="FractionalSeconds",t[t.Day=7]="Day",t}({}),Dc=function(t){return t[t.DayPeriods=0]="DayPeriods",t[t.Days=1]="Days",t[t.Months=2]="Months",t[t.Eras=3]="Eras",t}({});function jc(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,function(t,n){return null!=e&&n in e?e[n]:t})),t}function Vc(t,e,n,r,o){void 0===n&&(n="-");var i="";(t<0||o&&t<=0)&&(o?t=1-t:(t=-t,i=n));for(var l=String(t);l.length0||a>-n)&&(a+=n),t===Nc.Hours)0===a&&-12===n&&(a=12);else if(t===Nc.FractionalSeconds)return u=e,Vc(a,3).substr(0,u);var s=xc(l,wc.MinusSign);return Vc(a,e,s,r,o)}}function Lc(t,e,n,r){return void 0===n&&(n=yc.Format),void 0===r&&(r=!1),function(o,i){return function(t,e,n,r,o,i){switch(n){case Dc.Months:return function(t,e,n){var r=Ic(t),o=kc([r[5],r[6]],e);return kc(o,n)}(e,o,r)[t.getMonth()];case Dc.Days:return function(t,e,n){var r=Ic(t),o=kc([r[3],r[4]],e);return kc(o,n)}(e,o,r)[t.getDay()];case Dc.DayPeriods:var l=t.getHours(),u=t.getMinutes();if(i){var a,s=function(t){var e=Ic(t);return Ec(e),(e[19][2]||[]).map(function(t){return"string"==typeof t?Tc(t):[Tc(t[0]),Tc(t[1])]})}(e),c=function(t,e,n){var r=Ic(t);Ec(r);var o=kc([r[19][0],r[19][1]],e)||[];return kc(o,n)||[]}(e,o,r);if(s.forEach(function(t,e){if(Array.isArray(t)){var n=t[0],r=t[1],o=r.hours;l>=n.hours&&u>=n.minutes&&(l0?Math.floor(o/60):Math.ceil(o/60);switch(t){case Rc.Short:return(o>=0?"+":"")+Vc(l,2,i)+Vc(Math.abs(o%60),2,i);case Rc.ShortGMT:return"GMT"+(o>=0?"+":"")+Vc(l,1,i);case Rc.Long:return"GMT"+(o>=0?"+":"")+Vc(l,2,i)+":"+Vc(Math.abs(o%60),2,i);case Rc.Extended:return 0===r?"Z":(o>=0?"+":"")+Vc(l,2,i)+":"+Vc(Math.abs(o%60),2,i);default:throw new Error('Unknown zone width "'+t+'"')}}}var Hc=0,Fc=4;function zc(t,e){return void 0===e&&(e=!1),function(n,r){var o,i,l,u;if(e){var a=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,s=n.getDate();o=1+Math.floor((s+a)/7)}else{var c=(l=n.getFullYear(),u=new Date(l,Hc,1).getDay(),new Date(l,0,1+(u<=Fc?Fc:Fc+7)-u)),p=(i=n,new Date(i.getFullYear(),i.getMonth(),i.getDate()+(Fc-i.getDay()))).getTime()-c.getTime();o=1+Math.round(p/6048e5)}return Vc(o,t,xc(r,wc.MinusSign))}}var Bc={};function qc(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function Gc(t){return t instanceof Date&&!isNaN(t.valueOf())}var Zc=new Pt("UseV4Plurals"),Wc=function(){return function(){}}(),Qc=function(t){function e(e,n){var r=t.call(this)||this;return r.locale=e,r.deprecatedPluralFn=n,r}return o(e,t),e.prototype.getPluralCategory=function(t,e){switch(this.deprecatedPluralFn?this.deprecatedPluralFn(e||this.locale,t):function(t){return Ic(t)[18]}(e||this.locale)(t)){case vc.Zero:return"zero";case vc.One:return"one";case vc.Two:return"two";case vc.Few:return"few";case vc.Many:return"many";default:return"other"}},e}(Wc);function Kc(t,e){var n,r;e=encodeURIComponent(e);try{for(var o=a(t.split(";")),i=o.next();!i.done;i=o.next()){var l=i.value,u=l.indexOf("="),c=s(-1==u?[l,""]:[l.slice(0,u),l.slice(u+1)],2),p=c[1];if(c[0].trim()===e)return decodeURIComponent(p)}}catch(f){n={error:f}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}var $c=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}(),Yc=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){To()&&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(r){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,o){if(null==t.previousIndex){var i=e._viewContainer.createEmbeddedView(e._template,new $c(null,e._ngForOf,-1,-1),o),l=new Jc(t,i);n.push(l)}else null==o?e._viewContainer.remove(r):(i=e._viewContainer.get(r),e._viewContainer.move(i,o),l=new Jc(t,i),n.push(l))});for(var r=0;r0){var r=t.slice(0,n),o=r.toLowerCase(),i=t.slice(n+1).trim();e.maybeSetNormalizedName(r,o),e.headers.has(o)?e.headers.get(o).push(i):e.headers.set(o,[i])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],o=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(o,r),e.maybeSetNormalizedName(n,o))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var 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 r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,c(n)),this.headers.set(e,r);break;case"d":var o=t.value;if(o){var i=this.headers.get(e);if(!i)return;0===(i=i.filter(function(t){return-1===o.indexOf(t)})).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,i)}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}(),pp=function(){function t(){}return t.prototype.encodeKey=function(t){return fp(t)},t.prototype.encodeValue=function(t){return fp(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function fp(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 hp=function(){function t(t){void 0===t&&(t={});var e,n,r,o=this;if(this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new pp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,r=new Map,e.length>0&&e.split("&").forEach(function(t){var e=t.indexOf("="),o=s(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),i=o[0],l=o[1],u=r.get(i)||[];u.push(l),r.set(i,u)}),r)}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)||[],o=r.indexOf(e.value);-1!==o&&r.splice(o,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}();function dp(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function gp(t){return"undefined"!=typeof Blob&&t instanceof Blob}function vp(t){return"undefined"!=typeof FormData&&t instanceof FormData}var yp=function(){function t(t,e,n,r){var o;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,o=r):o=n,o&&(this.reportProgress=!!o.reportProgress,this.withCredentials=!!o.withCredentials,o.responseType&&(this.responseType=o.responseType),o.headers&&(this.headers=o.headers),o.params&&(this.params=o.params)),this.headers||(this.headers=new cp),this.params){var i=this.params.toString();if(0===i.length)this.urlWithParams=e;else{var l=e.indexOf("?");this.urlWithParams=e+(-1===l?"?":l=200&&this.status<300}}(),wp=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=mp.ResponseHeader,n}return o(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}(bp),_p=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=mp.Response,n.body=void 0!==e.body?e.body:null,n}return o(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}(bp),Cp=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 o(e,t),e}(bp);function Sp(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var xp=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r,o=this;if(void 0===n&&(n={}),t instanceof yp)r=t;else{var i;i=n.headers instanceof cp?n.headers:new cp(n.headers);var l=void 0;n.params&&(l=n.params instanceof hp?n.params:new hp({fromObject:n.params})),r=new yp(t,e,void 0!==n.body?n.body:null,{headers:i,params:l,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var u=tc(r).pipe(ec(function(t){return o.handler.handle(t)}));if(t instanceof yp||"events"===n.observe)return u;var a=u.pipe(nc(function(t){return t instanceof _p}));switch(n.observe||"body"){case"body":switch(r.responseType){case"arraybuffer":return a.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body}));case"blob":return a.pipe(tt(function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body}));case"text":return a.pipe(tt(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 a.pipe(tt(function(t){return t.body}))}case"response":return a;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 hp).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,Sp(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,Sp(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,Sp(n,e))},t}(),Ep=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}(),kp=new Pt("HTTP_INTERCEPTORS"),Tp=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}(),Ip=/^\)\]\}',?\n/,Ap=function(){return function(){}}(),Pp=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}(),Op=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 N(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 o=t.detectContentTypeHeader();null!==o&&r.setRequestHeader("Content-Type",o)}if(t.responseType){var i=t.responseType.toLowerCase();r.responseType="json"!==i?i:"text"}var l=t.serializeBody(),u=null,a=function(){if(null!==u)return u;var e=1223===r.status?204:r.status,n=r.statusText||"OK",o=new cp(r.getAllResponseHeaders()),i=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 u=new wp({headers:o,status:e,statusText:n,url:i})},s=function(){var e=a(),o=e.headers,i=e.status,l=e.statusText,u=e.url,s=null;204!==i&&(s=void 0===r.response?r.responseText:r.response),0===i&&(i=s?200:0);var c=i>=200&&i<300;if("json"===t.responseType&&"string"==typeof s){var p=s;s=s.replace(Ip,"");try{s=""!==s?JSON.parse(s):null}catch(f){s=p,c&&(c=!1,s={error:f,text:s})}}c?(n.next(new _p({body:s,headers:o,status:i,statusText:l,url:u||void 0})),n.complete()):n.error(new Cp({error:s,headers:o,status:i,statusText:l,url:u||void 0}))},c=function(t){var e=new Cp({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,f=function(e){p||(n.next(a()),p=!0);var o={type:mp.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(o.total=e.total),"text"===t.responseType&&r.responseText&&(o.partialText=r.responseText),n.next(o)},h=function(t){var e={type:mp.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",s),r.addEventListener("error",c),t.reportProgress&&(r.addEventListener("progress",f),null!==l&&r.upload&&r.upload.addEventListener("progress",h)),r.send(l),n.next({type:mp.Sent}),function(){r.removeEventListener("error",c),r.removeEventListener("load",s),t.reportProgress&&(r.removeEventListener("progress",f),null!==l&&r.upload&&r.upload.removeEventListener("progress",h)),r.abort()}})},t}(),Rp=new Pt("XSRF_COOKIE_NAME"),Np=new Pt("XSRF_HEADER_NAME"),Dp=function(){return function(){}}(),jp=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=Kc(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}(),Vp=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}(),Mp=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(kp,[]);this.chain=e.reduceRight(function(t,e){return new Ep(t,e)},this.backend)}return this.chain.handle(t)},t}(),Lp=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:Vp,useClass:Tp}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:Rp,useValue:t.cookieName}:[],t.headerName?{provide:Np,useValue:t.headerName}:[]]}},t}(),Up=function(){return function(){}}(),Hp=function(){function t(t){this.http=t}return t.prototype.load=function(){var e=this,n="assets/config/config.json";return new Promise(function(r,o){e.http.get(n).toPromise().then(function(e){t.settings=e,r()}).catch(function(t){o("Could not load file '"+n+"': "+JSON.stringify(t))})})},t.ngInjectableDef=Tt({factory:function(){return new t(ne(xp))},token:t,providedIn:"root"}),t}(),Fp=function(){function t(t,e,n){void 0===e&&(e="/assets/i18n/"),void 0===n&&(n=".json"),this.http=t,this.prefix=e,this.suffix=n}return t.prototype.getTranslation=function(t){return this.http.get(""+this.prefix+t+this.suffix)},t}();function zp(t){return new Fp(t,"assets/config/",".json")}var Bp=function(){return function(){}}(),qp=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return o(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new V;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(U),Gp=function(){return function(){}}();function Zp(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}Zp.prototype=Object.create(Error.prototype);var Wp=Zp,Qp={},Kp=function(){function t(t){this.resultSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new $p(t,this.resultSelector))},t}(),$p=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 o(e,t),e.prototype._next=function(t){this.values.push(Qp),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;n0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,o=0;o=2;return function(r){return r.pipe(t?nc(function(e,n){return t(e,n,r)}):at,ef(1),n?cf(e):af(function(){return new Wp}))}}function df(t){return function(e){var n=new gf(t),r=e.lift(n);return n.caught=r}}var gf=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new vf(t,this.selector,this.caught))},t}(),vf=function(t){function e(e,n,r){var o=t.call(this,e)||this;return o.selector=n,o.caught=r,o}return o(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(o){return void t.prototype.error.call(this,o)}this._unsubscribeAndRecycle();var r=new z(this,void 0,void 0);this.add(r),J(this,n,void 0,void 0,r)}},e}(X);function yf(t){return function(e){return 0===t?Js():e.lift(new mf(t))}}var mf=function(){function t(t){if(this.total=t,this.total<0)throw new tf}return t.prototype.call=function(t,e){return e.subscribe(new bf(t,this.total))},t}(),bf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.total=n,r.count=0,r}return o(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}(T);function wf(t,e){var n=arguments.length>=2;return function(r){return r.pipe(t?nc(function(e,n){return t(e,n,r)}):at,yf(1),n?cf(e):af(function(){return new Wp}))}}var _f=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 Cf(t,this.predicate,this.thisArg,this.source))},t}(),Cf=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.predicate=n,i.thisArg=r,i.source=o,i.index=0,i.thisArg=r||i,i}return o(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(n){return void this.destination.error(n)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(T);function Sf(t,e){return"function"==typeof e?function(n){return n.pipe(Sf(function(n,r){return ot(t(n,r)).pipe(tt(function(t,o){return e(n,t,r,o)}))}))}:function(e){return e.lift(new xf(t))}}var xf=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new Ef(t,this.project))},t}(),Ef=function(t){function e(e,n){var r=t.call(this,e)||this;return r.project=n,r.index=0,r}return o(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(r){return void this.destination.error(r)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe();var o=new z(this,void 0,void 0);this.destination.add(o),this.innerSubscription=J(this,t,e,n,o)},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this),this.unsubscribe()},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.destination.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,o){this.destination.next(e)},e}(X);function kf(){for(var t=[],e=0;e=2&&(n=!0),function(r){return r.lift(new If(t,e,n))}}var If=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 Af(t,this.accumulator,this.seed,this.hasSeed))},t}(),Af=function(t){function e(e,n,r,o){var i=t.call(this,e)||this;return i.accumulator=n,i._seed=r,i.hasSeed=o,i.index=0,i}return o(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(r){this.destination.error(r)}this.seed=e,this.destination.next(e)},e}(T);function Pf(t,e){return arguments.length>=2?function(n){return O(Tf(t,e),ef(1),cf(e))(n)}:function(e){return O(Tf(function(e,n,r){return t(e,n,r+1)}),ef(1))(e)}}var Of=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new Rf(t,this.callback))},t}(),Rf=function(t){function e(e,n){var r=t.call(this,e)||this;return r.add(new w(n)),r}return o(e,t),e}(T),Nf=null;function Df(){return Nf}var jf,Vf={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},Mf={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},Lf={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};Ht.Node&&(jf=Ht.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var Uf,Hf=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return o(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){var t;t=new e,Nf||(Nf=t)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){var r;(r=t)[e].apply(r,c(n))},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return Vf},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return jf.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=this.getDefaultDocument().createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=this.getDefaultDocument().createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&this.isTemplateElement(t)?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),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;l||(l=t[i]=[]);var a=wh(e)?Zone.root:Zone.current;if(0===l.length)l.push({zone:a,handler:o});else{for(var s=!1,c=0;c-1},e}(Xf),Ih=["alt","control","meta","shift"],Ah={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Ph=function(t){function e(e){return t.call(this,e)||this}var n;return o(e,t),n=e,e.prototype.supports=function(t){return null!=n.parseEventName(t)},e.prototype.addEventListener=function(t,e,r){var o=n.parseEventName(e),i=n.eventCallback(o.fullKey,r,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return Df().onAndCancel(t,o.domEventName,i)})},e.parseEventName=function(t){var e=t.toLowerCase().split("."),r=e.shift();if(0===e.length||"keydown"!==r&&"keyup"!==r)return null;var o=n._normalizeKey(e.pop()),i="";if(Ih.forEach(function(t){var n=e.indexOf(t);n>-1&&(e.splice(n,1),i+=t+".")}),i+=o,0!=e.length||0===o.length)return null;var l={};return l.domEventName=r,l.fullKey=i,l},e.getEventFullKey=function(t){var e="",n=Df().getEventKey(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ih.forEach(function(r){r!=n&&(0,Ah[r])(t)&&(e+=r+".")}),e+=n},e.eventCallback=function(t,e,r){return function(o){n.getEventFullKey(o)===t&&r.runGuarded(function(){return e(o)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(Xf),Oh=function(){return function(){}}(),Rh=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return o(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Xo.NONE:return e;case Xo.HTML:return e instanceof Dh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),function(t,e){var n=null;try{Do=Do||new Io(t);var r=e?String(e):"";n=Do.getInertBodyElement(r);var o=5,i=r;do{if(0===o)throw new Error("Failed to sanitize html because the input is unstable");o--,r=i,i=n.innerHTML,n=Do.getInertBodyElement(r)}while(r!==i);var l=new Bo,u=l.sanitizeChildren(Wo(n)||n);return To()&&l.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),u}finally{if(n)for(var a=Wo(n)||n;a.firstChild;)a.removeChild(a.firstChild)}}(this._doc,String(e)));case Xo.STYLE:return e instanceof jh?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),function(t){if(!(t=String(t).trim()))return"";var e=t.match(ni);return e&&Oo(e[1])===e[1]||t.match(ei)&&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 wd(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function _d(t){return hi(t)?t:fi(t)?ot(Promise.resolve(t)):tc(t)}function Cd(t,e,n){return n?function(t,e){return yd(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!kd(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,o){if(n.segments.length>o.length)return!!kd(l=n.segments.slice(0,o.length),o)&&!r.hasChildren();if(n.segments.length===o.length){if(!kd(n.segments,o))return!1;for(var i in r.children){if(!n.children[i])return!1;if(!t(n.children[i],r.children[i]))return!1}return!0}var l=o.slice(0,n.segments.length),u=o.slice(n.segments.length);return!!kd(n.segments,l)&&!!n.children[ld]&&e(n.children[ld],r,u)}(e,n,n.segments)}(t.root,e.root)}var Sd=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=ad(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Pd.serialize(this)},t}(),xd=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,wd(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 Od(this)},t}(),Ed=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=ad(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Md(this)},t}();function kd(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function Td(t,e){var n=[];return wd(t.children,function(t,r){r===ld&&(n=n.concat(e(t,r)))}),wd(t.children,function(t,r){r!==ld&&(n=n.concat(e(t,r)))}),n}var Id=function(){return function(){}}(),Ad=function(){function t(){}return t.prototype.parse=function(t){var e=new zd(t);return new Sd(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return Od(e);if(n){var r=e.children[ld]?t(e.children[ld],!1):"",o=[];return wd(e.children,function(e,n){n!==ld&&o.push(n+":"+t(e,!1))}),o.length>0?r+"("+o.join("//")+")":r}var i=Td(e,function(n,r){return r===ld?[t(e.children[ld],!1)]:[r+":"+t(n,!1)]});return Od(e)+"/("+i.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 Nd(t)+"="+Nd(e)}).join("&"):Nd(t)+"="+Nd(n)})).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Pd=new Ad;function Od(t){return t.segments.map(function(t){return Md(t)}).join("/")}function Rd(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function Nd(t){return Rd(t).replace(/%3B/gi,";")}function Dd(t){return Rd(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function jd(t){return decodeURIComponent(t)}function Vd(t){return jd(t.replace(/\+/g,"%20"))}function Md(t){return""+Dd(t.path)+(e=t.parameters,Object.keys(e).map(function(t){return";"+Dd(t)+"="+Dd(e[t])}).join(""));var e}var Ld=/^[^\/()?;=#]+/;function Ud(t){var e=t.match(Ld);return e?e[0]:""}var Hd=/^[^=?&#]+/,Fd=/^[^?&#]+/,zd=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 xd([],{}):new xd([],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[ld]=new xd(t,e)),n},t.prototype.parseSegment=function(){var t=Ud(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ed(jd(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=Ud(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=Ud(this.remaining);r&&this.capture(n=r)}t[jd(e)]=jd(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(Hd))?e[0]:"";if(n){this.capture(n);var r="";if(this.consumeOptional("=")){var o=function(t){var e=t.match(Fd);return e?e[0]:""}(this.remaining);o&&this.capture(r=o)}var i=Vd(n),l=Vd(r);if(t.hasOwnProperty(i)){var u=t[i];Array.isArray(u)||(t[i]=u=[u]),u.push(l)}else t[i]=l}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=Ud(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var o=void 0;n.indexOf(":")>-1?(o=n.substr(0,n.indexOf(":")),this.capture(o),this.capture(":")):t&&(o=ld);var i=this.parseChildren();e[o]=1===Object.keys(i).length?i[ld]:new xd([],i),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}(),Bd=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=qd(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=qd(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=Gd(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 Gd(t,this._root).map(function(t){return t.value})},t}();function qd(t,e){var n,r;if(t===e.value)return e;try{for(var o=a(e.children),i=o.next();!i.done;i=o.next()){var l=qd(t,i.value);if(l)return l}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return null}function Gd(t,e){var n,r;if(t===e.value)return[e];try{for(var o=a(e.children),i=o.next();!i.done;i=o.next()){var l=Gd(t,i.value);if(l.length)return l.unshift(e),l}}catch(u){n={error:u}}finally{try{i&&!i.done&&(r=o.return)&&r.call(o)}finally{if(n)throw n.error}}return[]}var Zd=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function Wd(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}var Qd=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,tg(r,e),r}return o(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(Bd);function Kd(t,e){var n=function(t,e){var n=new Jd([],{},{},"",{},ld,e,null,t.root,-1,{});return new Xd("",new Zd(n,[]))}(t,e),r=new qp([new Ed("",{})]),o=new qp({}),i=new qp({}),l=new qp({}),u=new qp(""),a=new $d(r,o,l,u,i,ld,e,n.root);return a.snapshot=n.root,new Qd(new Zd(a,[]),n)}var $d=function(){function t(t,e,n,r,o,i,l,u){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this._futureSnapshot=u}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(tt(function(t){return ad(t)}))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(tt(function(t){return ad(t)}))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Yd(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,r=0;if("always"!==e)for(r=n.length-1;r>=1;){var o=n[r],l=n[r-1];if(o.routeConfig&&""===o.routeConfig.path)r--;else{if(l.component)break;r--}}return function(t){return t.reduce(function(t,e){return{params:i({},t.params,e.params),data:i({},t.data,e.data),resolve:i({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}(n.slice(r))}var Jd=function(){function t(t,e,n,r,o,i,l,u,a,s,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=o,this.outlet=i,this.component=l,this.routeConfig=u,this._urlSegment=a,this._lastPathIndex=s,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=ad(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=ad(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}(),Xd=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,tg(r,n),r}return o(e,t),e.prototype.toString=function(){return eg(this._root)},e}(Bd);function tg(t,e){e.value._routerState=t,e.children.forEach(function(e){return tg(t,e)})}function eg(t){var e=t.children.length>0?" { "+t.children.map(eg).join(", ")+" } ":"";return""+t.value+e}function ng(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,yd(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),yd(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&og(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!==bd(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}(),ug=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function ag(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ld]:""+t}function sg(t,e,n){if(t||(t=new xd([],{})),0===t.segments.length&&t.hasChildren())return cg(t,e,n);var r=function(t,e,n){for(var r=0,o=e,i={match:!1,pathIndex:0,commandIndex:0};o=n.length)return i;var l=t.segments[o],u=ag(n[r]),a=r0&&void 0===u)break;if(u&&a&&"object"==typeof a&&void 0===a.outlets){if(!dg(u,a,l))return i;r+=2}else{if(!dg(u,{},l))return i;r++}o++}return{match:!0,pathIndex:o,commandIndex:r}}(t,e,n),o=n.slice(r.commandIndex);if(r.match&&r.pathIndex0?new xd([],((r={})[ld]=t,r)):t;return new Sd(o,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(tt(function(t){return new xd([],t)})):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return function(n,o){if(0===Object.keys(n).length)return tc({});var i=[],l=[],u={};return wd(n,function(n,o){var a,s,c=(a=o,s=n,r.expandSegmentGroup(t,e,s,a)).pipe(tt(function(t){return u[o]=t}));o===ld?i.push(c):l.push(c)}),tc.apply(null,i.concat(l)).pipe(Jp(),hf(),tt(function(){return u}))}(n.children)},t.prototype.expandSegment=function(t,e,n,r,o,i){var l=this;return tc.apply(void 0,c(n)).pipe(tt(function(u){return l.expandSegmentAgainstRoute(t,e,n,u,r,o,i).pipe(df(function(t){if(t instanceof bg)return tc(null);throw t}))}),Jp(),wf(function(t){return!!t}),df(function(t,n){if(t instanceof Wp||"EmptyError"===t.name){if(l.noLeftoversInUrl(e,r,o))return tc(new xd([],{}));throw new bg(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,o,i,l){return Ig(r)!==i?_g(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,o):l&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i):_g(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,i):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,o,i)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var o=this,i=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Cg(i):this.lineralizeSegments(n,i).pipe(it(function(n){var i=new xd(n,{});return o.expandSegment(t,i,e,n,r,!1)}))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,o,i){var l=this,u=Eg(e,r,o),a=u.consumedSegments,s=u.lastChild,c=u.positionalParamSegments;if(!u.matched)return _g(e);var p=this.applyRedirectCommands(a,r.redirectTo,c);return r.redirectTo.startsWith("/")?Cg(p):this.lineralizeSegments(r,p).pipe(it(function(r){return l.expandSegment(t,e,n,r.concat(o.slice(s)),i,!1)}))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var o=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(tt(function(t){return n._loadedConfig=t,new xd(r,{})})):tc(new xd(r,{}));var l=Eg(e,n,r),u=l.consumedSegments,s=l.lastChild;if(!l.matched)return _g(e);var c=r.slice(s);return this.getChildConfig(t,n,r).pipe(it(function(t){var n=t.module,r=t.routes,l=function(t,e,n,r){return n.length>0&&function(t,e,n){return r.some(function(n){return Tg(t,e,n)&&Ig(n)!==ld})}(t,n)?{segmentGroup:kg(new xd(e,function(t,e){var n,r,o={};o[ld]=e;try{for(var i=a(t),l=i.next();!l.done;l=i.next()){var u=l.value;""===u.path&&Ig(u)!==ld&&(o[Ig(u)]=new xd([],{}))}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return o}(r,new xd(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return r.some(function(n){return Tg(t,e,n)})}(t,n)?{segmentGroup:kg(new xd(t.segments,function(t,e,n,r){var o,l,u={};try{for(var s=a(n),c=s.next();!c.done;c=s.next()){var p=c.value;Tg(t,e,p)&&!r[Ig(p)]&&(u[Ig(p)]=new xd([],{}))}}catch(f){o={error:f}}finally{try{c&&!c.done&&(l=s.return)&&l.call(s)}finally{if(o)throw o.error}}return i({},r,u)}(t,n,r,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,r),s=l.segmentGroup,p=l.slicedSegments;return 0===p.length&&s.hasChildren()?o.expandChildren(n,r,s).pipe(tt(function(t){return new xd(u,t)})):0===r.length&&0===p.length?tc(new xd(u,{})):o.expandSegment(n,s,r,p,ld,!0).pipe(tt(function(t){return new xd(u.concat(t.segments),t.children)}))}))},t.prototype.getChildConfig=function(t,e,n){var r=this;return e.children?tc(new fd(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?tc(e._loadedConfig):function(t,e,n){var r,o=e.canLoad;return o&&0!==o.length?ot(o).pipe(tt(function(r){var o,i=t.get(r);if(function(t){return t&&yg(t.canLoad)}(i))o=i.canLoad(e,n);else{if(!yg(i))throw new Error("Invalid CanLoad guard");o=i(e,n)}return _d(o)})).pipe(Jp(),(r=function(t){return!0===t},function(t){return t.lift(new _f(r,void 0,t))})):tc(!0)}(t.injector,e,n).pipe(it(function(n){return n?r.configLoader.load(t.injector,e).pipe(tt(function(t){return e._loadedConfig=t,t})):function(t){return new N(function(e){return e.error(cd("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}(e)})):tc(new fd([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return tc(n);if(r.numberOfChildren>1||!r.children[ld])return Sg(t.redirectTo);r=r.children[ld]}},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 o=this.createSegmentGroup(t,e.root,n,r);return new Sd(o,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return wd(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var o=t.substring(1);n[r]=e[o]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var o=this,i=this.createSegments(t,e.segments,n,r),l={};return wd(e.children,function(e,i){l[i]=o.createSegmentGroup(t,e,n,r)}),new xd(i,l)},t.prototype.createSegments=function(t,e,n,r){var o=this;return e.map(function(e){return e.path.startsWith(":")?o.findPosParam(t,e,r):o.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,r,o=0;try{for(var i=a(e),l=i.next();!l.done;l=i.next()){var u=l.value;if(u.path===t.path)return e.splice(o),u;o++}}catch(s){n={error:s}}finally{try{l&&!l.done&&(r=i.return)&&r.call(i)}finally{if(n)throw n.error}}return t},t}();function Eg(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||pd)(n,t,e);return r?{matched:!0,consumedSegments:r.consumed,lastChild:r.consumed.length,positionalParamSegments:r.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function kg(t){if(1===t.numberOfChildren&&t.children[ld]){var e=t.children[ld];return new xd(t.segments.concat(e.segments),e.children)}return t}function Tg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Ig(t){return t.outlet||ld}var Ag=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),Pg=function(){return function(t,e){this.component=t,this.route=e}}();function Og(t,e,n){var r=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(r?r.module.injector:n).get(t)}function Rg(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=Wd(e);return t.children.forEach(function(t){!function(t,e,n,r,o){void 0===o&&(o={canDeactivateChecks:[],canActivateChecks:[]});var i=t.value,l=e?e.value:null,u=n?n.getContext(t.value.outlet):null;if(l&&i.routeConfig===l.routeConfig){var a=function(t,e,n){switch(n){case"pathParamsChange":return!kd(t.url,e.url);case"always":return!0;case"paramsOrQueryParamsChange":return!rg(t,e)||!yd(t.queryParams,e.queryParams);case"paramsChange":default:return!rg(t,e)}}(l,i,i.routeConfig.runGuardsAndResolvers);a?o.canActivateChecks.push(new Ag(r)):(i.data=l.data,i._resolvedData=l._resolvedData),Rg(t,e,i.component?u?u.children:null:n,r,o),a&&o.canDeactivateChecks.push(new Pg(u&&u.outlet&&u.outlet.component||null,l))}else l&&Ng(e,u,o),o.canActivateChecks.push(new Ag(r)),Rg(t,null,i.component?u?u.children:null:n,r,o)}(t,i[t.value.outlet],n,r.concat([t.value]),o),delete i[t.value.outlet]}),wd(i,function(t,e){return Ng(t,n.getContext(e),o)}),o}function Ng(t,e,n){var r=Wd(t),o=t.value;wd(r,function(t,r){Ng(t,o.component?e?e.children.getContext(r):null:e,n)}),n.canDeactivateChecks.push(new Pg(o.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,o))}var Dg=Symbol("INITIAL_VALUE");function jg(){return Sf(function(t){return(function(){for(var t=[],e=0;e0?rt(t,n):Js(n):Xs(t[0]),e)}}(Dg))}))).pipe(Tf(function(t,e){var n=!1;return e.reduce(function(t,r,o){if(t!==Dg)return t;if(r===Dg&&(n=!0),!n){if(!1===r)return r;if(o===e.length-1||mg(r))return r}return t},t)},Dg),nc(function(t){return t!==Dg}),tt(function(t){return mg(t)?t:!0===t}),yf(1))})}function Vg(t,e){return null!==t&&e&&e(new nd(t)),tc(!0)}function Mg(t,e){return null!==t&&e&&e(new td(t)),tc(!0)}function Lg(t,e,n){var r=e.routeConfig?e.routeConfig.canActivate:null;return r&&0!==r.length?tc(r.map(function(r){return Yp(function(){var o,i=Og(r,e,n);if(function(t){return t&&yg(t.canActivate)}(i))o=_d(i.canActivate(e,t));else{if(!yg(i))throw new Error("Invalid CanActivate guard");o=_d(i(e,t))}return o.pipe(wf())})})).pipe(jg()):tc(!0)}function Ug(t,e,n){var r=e[e.length-1],o=e.slice(0,e.length-1).reverse().map(function(t){return function(t){var e=t.routeConfig?t.routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null}(t)}).filter(function(t){return null!==t}).map(function(e){return Yp(function(){return tc(e.guards.map(function(o){var i,l=Og(o,e.node,n);if(function(t){return t&&yg(t.canActivateChild)}(l))i=_d(l.canActivateChild(r,t));else{if(!yg(l))throw new Error("Invalid CanActivateChild guard");i=_d(l(r,t))}return i.pipe(wf())})).pipe(jg())})});return tc(o).pipe(jg())}var Hg=function(){return function(){}}(),Fg=function(){function t(t,e,n,r,o,i){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r,this.paramsInheritanceStrategy=o,this.relativeLinkResolution=i}return t.prototype.recognize=function(){try{var t=qg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,ld),n=new Jd([],Object.freeze({}),Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,{},ld,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new Zd(n,e),o=new Xd(this.url,r);return this.inheritParamsAndData(o._root),tc(o)}catch(l){return new N(function(t){return t.error(l)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=Yd(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,o=Td(e,function(e,n){return r.processSegmentGroup(t,e,n)});return n={},o.forEach(function(t){var e=n[t.value.outlet];if(e){var r=e.url.map(function(t){return t.toString()}).join("/"),o=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+o+"'.")}n[t.value.outlet]=t.value}),o.sort(function(t,e){return t.value.outlet===ld?-1:e.value.outlet===ld?1:t.value.outlet.localeCompare(e.value.outlet)}),o},t.prototype.processSegment=function(t,e,n,r){var o,i;try{for(var l=a(t),u=l.next();!u.done;u=l.next()){var s=u.value;try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(c){if(!(c instanceof Hg))throw c}}}catch(p){o={error:p}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}if(this.noLeftoversInUrl(e,n,r))return[];throw new Hg},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new Hg;if((t.outlet||ld)!==r)throw new Hg;var o,l=[],u=[];if("**"===t.path){var a=n.length>0?bd(n).parameters:{};o=new Jd(n,a,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Wg(t),r,t.component,t,zg(e),Bg(e)+n.length,Qg(t))}else{var s=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new Hg;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=(e.matcher||pd)(n,t,e);if(!r)throw new Hg;var o={};wd(r.posParams,function(t,e){o[e]=t.path});var l=r.consumed.length>0?i({},o,r.consumed[r.consumed.length-1].parameters):o;return{consumedSegments:r.consumed,lastChild:r.consumed.length,parameters:l}}(e,t,n);l=s.consumedSegments,u=n.slice(s.lastChild),o=new Jd(l,s.parameters,Object.freeze(i({},this.urlTree.queryParams)),this.urlTree.fragment,Wg(t),r,t.component,t,zg(e),Bg(e)+l.length,Qg(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),p=qg(e,l,u,c,this.relativeLinkResolution),f=p.segmentGroup,h=p.slicedSegments;if(0===h.length&&f.hasChildren()){var d=this.processChildren(c,f);return[new Zd(o,d)]}if(0===c.length&&0===h.length)return[new Zd(o,[])];var g=this.processSegment(c,f,h,ld);return[new Zd(o,g)]},t}();function zg(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function Bg(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 qg(t,e,n,r,o){if(n.length>0&&function(t,e,n){return r.some(function(n){return Gg(t,e,n)&&Zg(n)!==ld})}(t,n)){var l=new xd(e,function(t,e,n,r){var o,i,l={};l[ld]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;try{for(var u=a(n),s=u.next();!s.done;s=u.next()){var c=s.value;if(""===c.path&&Zg(c)!==ld){var p=new xd([],{});p._sourceSegment=t,p._segmentIndexShift=e.length,l[Zg(c)]=p}}}catch(f){o={error:f}}finally{try{s&&!s.done&&(i=u.return)&&i.call(u)}finally{if(o)throw o.error}}return l}(t,e,r,new xd(n,t.children)));return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return r.some(function(n){return Gg(t,e,n)})}(t,n)){var u=new xd(t.segments,function(t,e,n,r,o,l){var u,s,c={};try{for(var p=a(r),f=p.next();!f.done;f=p.next()){var h=f.value;if(Gg(t,n,h)&&!o[Zg(h)]){var d=new xd([],{});d._sourceSegment=t,d._segmentIndexShift="legacy"===l?t.segments.length:e.length,c[Zg(h)]=d}}}catch(g){u={error:g}}finally{try{f&&!f.done&&(s=p.return)&&s.call(p)}finally{if(u)throw u.error}}return i({},o,c)}(t,e,n,r,t.children,o));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var s=new xd(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Gg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function Zg(t){return t.outlet||ld}function Wg(t){return t.data||{}}function Qg(t){return t.resolve||{}}function Kg(t,e,n,r){var o=Og(t,e,r);return _d(o.resolve?o.resolve(e,n):o(e,n))}function $g(t){return function(e){return e.pipe(Sf(function(e){var n=t(e);return n?ot(n).pipe(tt(function(){return e})):ot([e])}))}}var Yg=function(){return function(){}}(),Jg=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}(),Xg=new Pt("ROUTES"),tv=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(tt(function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var o=r.create(t);return new fd(md(o.injector.get(Xg)).map(vd),o)}))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?ot(this.loader.load(t)):_d(t()).pipe(it(function(t){return t instanceof ur?tc(t):ot(e.compiler.compileModuleAsync(t))}))},t}(),ev=function(){return function(){}}(),nv=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 rv(t){throw t}function ov(t,e,n){return e.parse("/")}function iv(t,e){return tc(null)}var lv=function(){function t(t,e,n,r,o,i,l,u){var a=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=u,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new U,this.errorHandler=rv,this.malformedUriErrorHandler=ov,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:iv,afterPreactivation:iv},this.urlHandlingStrategy=new nv,this.routeReuseStrategy=new Jg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=o.get(lr),this.console=o.get(Ci);var s=o.get(Ni);this.isNgZoneEnabled=s instanceof Ni,this.resetConfig(u),this.currentUrlTree=new Sd(new xd([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.configLoader=new tv(i,l,function(t){return a.triggerEvent(new Jh(t))},function(t){return a.triggerEvent(new Xh(t))}),this.routerState=Kd(this.currentUrlTree,this.rootComponentType),this.transitions=new qp({id:0,currentUrlTree:this.currentUrlTree,currentRawUrl:this.currentUrlTree,extractedUrl:this.urlHandlingStrategy.extract(this.currentUrlTree),urlAfterRedirects:this.urlHandlingStrategy.extract(this.currentUrlTree),rawUrl:this.currentUrlTree,extras:{},resolve:null,reject:null,promise:Promise.resolve(!0),source:"imperative",state:null,currentSnapshot:this.routerState.snapshot,targetSnapshot:null,currentRouterState:this.routerState,targetRouterState:null,guards:{canActivateChecks:[],canDeactivateChecks:[]},guardsResult:null}),this.navigations=this.setupNavigations(this.transitions),this.processNavigations()}return t.prototype.setupNavigations=function(t){var e=this,n=this.events;return t.pipe(nc(function(t){return 0!==t.id}),tt(function(t){return i({},t,{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})}),Sf(function(t){var r,o,l,u,s=!1,c=!1;return tc(t).pipe(Sf(function(t){var r,o,l,u,a=!e.navigated||t.extractedUrl.toString()!==e.currentUrlTree.toString();if(("reload"===e.onSameUrlNavigation||a)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return tc(t).pipe(of(function(t){return"eager"===e.urlUpdateStrategy&&!t.extras.skipLocationChange&&e.setBrowserUrl(t.rawUrl,!!t.extras.replaceUrl,t.id)}),Sf(function(t){var r=e.transitions.getValue();return n.next(new Bh(t.id,e.serializeUrl(t.extractedUrl),t.source,t.state)),r!==e.transitions.getValue()?Ys:[t]}),Sf(function(t){return Promise.resolve(t)}),(r=e.ngModule.injector,o=e.configLoader,l=e.urlSerializer,u=e.config,function(t){return t.pipe(Sf(function(t){return function(e,n,r,o,i){return new xg(e,n,r,t.extractedUrl,i).apply()}(r,o,l,0,u).pipe(tt(function(e){return i({},t,{urlAfterRedirects:e})}))}))}),function(t,n,r,o,l){return function(r){return r.pipe(it(function(r){return function(t,e,n,r,o,i){return void 0===o&&(o="emptyOnly"),void 0===i&&(i="legacy"),new Fg(t,e,n,r,o,i).recognize()}(t,n,r.urlAfterRedirects,(u=r.urlAfterRedirects,e.serializeUrl(u)),o,l).pipe(tt(function(t){return i({},r,{targetSnapshot:t})}));var u}))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),of(function(t){var r=new Wh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(r)}));if(a&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var s=t.extractedUrl,c=t.source,p=t.state,f=t.extras,h=new Bh(t.id,e.serializeUrl(s),c,p);n.next(h);var d=Kd(s,e.rootComponentType).snapshot;return tc(i({},t,{targetSnapshot:d,urlAfterRedirects:s,extras:i({},f,{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,t.resolve(null),Ys}),$g(function(t){var n=t.extras;return e.hooks.beforePreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),of(function(t){var n=new Qh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),tt(function(t){return i({},t,{guards:(n=t.targetSnapshot,r=t.currentSnapshot,o=e.rootContexts,l=n._root,Rg(l,r?r._root:null,o,[l.value]))});var n,r,o,l}),function(t,e){return function(n){return n.pipe(it(function(n){var r=n.targetSnapshot,o=n.currentSnapshot,l=n.guards,u=l.canActivateChecks,a=l.canDeactivateChecks;return 0===a.length&&0===u.length?tc(i({},n,{guardsResult:!0})):function(t,e,n,r){return ot(a).pipe(it(function(t){return function(t,e,n,r,o){var i=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return i&&0!==i.length?tc(i.map(function(i){var l,u=Og(i,e,o);if(function(t){return t&&yg(t.canDeactivate)}(u))l=_d(u.canDeactivate(t,e,n,r));else{if(!yg(u))throw new Error("Invalid CanDeactivate guard");l=_d(u(t,e,n,r))}return l.pipe(wf())})).pipe(jg()):tc(!0)}(t.component,t.route,n,e,r)}),wf(function(t){return!0!==t},!0))}(0,r,o,t).pipe(it(function(n){return n&&"boolean"==typeof n?function(t,e,n,r){return ot(u).pipe(ec(function(e){return ot([Mg(e.route.parent,r),Vg(e.route,r),Ug(t,e.path,n),Lg(t,e.route,n)]).pipe(Jp(),wf(function(t){return!0!==t},!0))}),wf(function(t){return!0!==t},!0))}(r,0,t,e):tc(n)}),tt(function(t){return i({},n,{guardsResult:t})}))}))}}(e.ngModule.injector,function(t){return e.triggerEvent(t)}),of(function(t){if(mg(t.guardsResult)){var n=cd('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}}),of(function(t){var n=new Kh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)}),nc(function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var r=new Gh(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(r),t.resolve(!1),!1}return!0}),$g(function(t){if(t.guards.canActivateChecks.length)return tc(t).pipe(of(function(t){var n=new $h(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}),(n=e.paramsInheritanceStrategy,r=e.ngModule.injector,function(t){return t.pipe(it(function(t){var e=t.targetSnapshot,o=t.guards.canActivateChecks;return o.length?ot(o).pipe(ec(function(t){return function(t,n,r,o){return function(t,e,n,r){var o=Object.keys(t);if(0===o.length)return tc({});if(1===o.length){var i=o[0];return Kg(t[i],e,n,r).pipe(tt(function(t){var e;return(e={})[i]=t,e}))}var l={};return ot(o).pipe(it(function(o){return Kg(t[o],e,n,r).pipe(tt(function(t){return l[o]=t,t}))})).pipe(hf(),tt(function(){return l}))}(t._resolve,t,e,o).pipe(tt(function(e){return t._resolvedData=e,t.data=i({},t.data,Yd(t,r).resolve),null}))}(t.route,0,n,r)}),Pf(function(t,e){return t}),tt(function(e){return t})):tc(t)}))}),of(function(t){var n=new Yh(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)}));var n,r}),$g(function(t){var n=t.extras;return e.hooks.afterPreactivation(t.targetSnapshot,{navigationId:t.id,appliedUrlTree:t.extractedUrl,rawUrlTree:t.rawUrl,skipLocationChange:!!n.skipLocationChange,replaceUrl:!!n.replaceUrl})}),tt(function(t){var n,r,o,l=(o=function t(e,n,r){if(r&&e.shouldReuseRoute(n.value,r.value.snapshot)){(s=r.value)._futureSnapshot=n.value;var o=function(e,n,r){return n.children.map(function(n){var o,i;try{for(var l=a(r.children),u=l.next();!u.done;u=l.next()){var s=u.value;if(e.shouldReuseRoute(s.value.snapshot,n.value))return t(e,n,s)}}catch(c){o={error:c}}finally{try{u&&!u.done&&(i=l.return)&&i.call(l)}finally{if(o)throw o.error}}return t(e,n)})}(e,n,r);return new Zd(s,o)}var i=e.retrieve(n.value);if(i){var l=i.route;return function t(e,n){if(e.value.routeConfig!==n.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(e.children.length!==n.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");n.value._futureSnapshot=e.value;for(var r=0;ru;){if(a-=u,!(l=l.parent))throw new Error("Invalid number of '../'");u=l.segments.length}return new ug(l,!1,u-a)}()}(i,0,t),u=l.processChildren?cg(l.segmentGroup,l.index,i.commands):sg(l.segmentGroup,l.index,i.commands);return ig(l.segmentGroup,u,e,r,o)}(s,this.currentUrlTree,t,f,p)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),To()&&this.isNgZoneEnabled&&!Ni.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=mg(t)?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;e150?e.context.$implicit.description.value.substring(0,150)+" ... ":e.context.$implicit.description.value;t(e,10,0,r)})}function zy(t){return Fa(0,[(t()(),Iu(0,0,null,null,2,"div",[["class","list-group"],["style","height: 500px; overflow-y: auto; padding-right:5px"]],null,null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,Fy)),va(2,278528,null,0,Yc,[il,Yo,El],{ngForOf:[0,"ngForOf"]},null)],function(t,e){t(e,2,0,e.component.feeds)},null)}function By(t){return Fa(0,[(t()(),Iu(0,0,null,null,3,"div",[["class","alert alert-warning"],["role","alert"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),La(2,null,["",""])),ya(131072,ey,[ty,ul])],null,function(t,e){t(e,2,0,$l(e,2,0,ra(e,3).transform("nonews")))})}function qy(t){return Fa(0,[(t()(),Iu(0,0,null,null,3,"div",[["class","alert alert-danger"],["role","alert"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,2,"p",[],null,null,null,null,null)),(t()(),La(2,null,["",""])),ya(131072,ey,[ty,ul])],null,function(t,e){t(e,2,0,$l(e,2,0,ra(e,3).transform("tecnicalProblemNews")))})}function Gy(t){return Fa(0,[(t()(),Iu(0,0,null,null,23,"div",[["class","modal fade bd-example-modal-lg"],["id","exampleModal"],["role","dialog"],["tabindex","-1"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,22,"div",[["class","modal-dialog"],["role","document"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,21,"div",[["class","modal-content"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,10,"div",[["class","modal-header"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(5,0,null,null,5,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),Iu(6,0,null,null,1,"h5",[["class","modal-title"]],null,null,null,null,null)),(t()(),La(7,null,["",""])),(t()(),Iu(8,0,null,null,2,"small",[],null,null,null,null,null)),(t()(),La(9,null,["",""])),Ma(10,2),(t()(),Iu(11,0,null,null,2,"button",[["aria-label","Close"],["class","close"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(t()(),Iu(12,0,null,null,1,"span",[["aria-hidden","true"]],null,null,null,null,null)),(t()(),La(-1,null,["\xd7"])),(t()(),Iu(14,0,null,null,2,"div",[["class","modal-body"]],null,null,null,null,null)),(t()(),Iu(15,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),La(16,null,["",""])),(t()(),Iu(17,0,null,null,6,"div",[["class","modal-footer"]],null,null,null,null,null)),(t()(),Iu(18,0,null,null,2,"button",[["class","btn btn-primary"],["data-dismiss","modal"],["type","button"]],null,null,null,null,null)),(t()(),La(19,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(21,0,null,null,2,"a",[["class","btn btn-success"],["target","_blank"]],[[8,"href",4]],null,null,null,null)),(t()(),La(22,null,["",""])),ya(131072,ey,[ty,ul])],null,function(t,e){var n=e.component;t(e,7,0,n.selected_news.title);var r=$l(e,9,0,t(e,10,0,ra(e.parent,0),n.selected_news.publishedDate,"dd/MM/yyyy HH:mm"));t(e,9,0,r),t(e,16,0,n.selected_news.description.value),t(e,19,0,$l(e,19,0,ra(e,20).transform("chiudi"))),t(e,21,0,Eu(1,"",n.selected_news.link,"")),t(e,22,0,$l(e,22,0,ra(e,23).transform("chiudi_def")))})}function Zy(t){return Fa(0,[ya(0,np,[Ol]),(t()(),Iu(1,0,null,null,17,"div",[["class","card"],["style","position:absolute; bottom:0px; top:0px; right:15px"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,16,"div",[["class","card-body"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,8,"table",[["border","0"],["width","99%"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,7,"tbody",[],null,null,null,null,null)),(t()(),Iu(5,0,null,null,6,"tr",[],null,null,null,null,null)),(t()(),Iu(6,0,null,null,1,"td",[["valign","top"],["width","80px"]],null,null,null,null,null)),(t()(),Iu(7,0,null,null,0,"i",[["class","fas fa-rss fa-3x"],["style","color:#0066CC"]],null,null,null,null,null)),(t()(),Iu(8,0,null,null,3,"td",[],null,null,null,null,null)),(t()(),Iu(9,0,null,null,2,"h3",[["class","text-anpal"]],null,null,null,null,null)),(t()(),La(10,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(12,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,zy)),va(14,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Tu(16777216,null,null,1,null,By)),va(16,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Tu(16777216,null,null,1,null,qy)),va(18,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Iu(19,0,null,null,0,"button",[["class","btn btn-primary"],["data-target","#exampleModal"],["data-toggle","modal"],["id","openNewsButton"],["type","button"]],[[8,"hidden",0]],null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,Gy)),va(21,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,14,0,n.news_loaded),t(e,16,0,n.unavailable),t(e,18,0,n.server_error),t(e,21,0,n.selected_news)},function(t,e){t(e,10,0,$l(e,10,0,ra(e,11).transform("newnInEvidenza"))),t(e,19,0,!0)})}var Wy=function(){function t(t,e){this.authenticationService=t,this.router=e}return t.prototype.ngOnInit=function(){},t.prototype.login=function(){var t=this;this.authenticationService.isAuthenticated()?console.log("autenticazione non necessaria, utente autenticato"):(console.log("non autenticato, redirect alla pagina dell'IdP"),this.authenticationService.login().subscribe(function(e){return t.handleTokenSuccess(e)},function(e){return t.handleTokenError(e)}))},t.prototype.handleTokenError=function(t){this.router.navigate([""])},t.prototype.handleTokenSuccess=function(t){console.log("token ricevuto"),this.authenticationService.setAuthenticatedUser(t)},t}(),Qy=Xl({encapsulation:0,styles:[[""]],data:{}});function Ky(t){return Fa(0,[(t()(),Iu(0,0,null,null,1,"app-user-disclaimer",[],null,null,null,yy,py)),va(1,114688,null,0,cy,[Nv,sy],null,null),(t()(),Iu(2,0,null,null,16,"div",[["class","row main-content"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,12,"div",[["class","col-8"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(5,0,null,null,2,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),Iu(6,0,null,null,1,"app-application-list",[],null,null,null,Oy,Cy)),va(7,2211840,null,0,_y,[sy,by,lv,Nv,wy],null,null),(t()(),Iu(8,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(9,0,null,null,6,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(10,0,null,null,2,"div",[["class","col-6"]],null,null,null,null,null)),(t()(),Iu(11,0,null,null,1,"app-manuali",[],null,null,null,Dy,Ny)),va(12,114688,null,0,Ry,[],null,null),(t()(),Iu(13,0,null,null,2,"div",[["class","col-6"]],null,null,null,null,null)),(t()(),Iu(14,0,null,null,1,"app-faq",[],null,null,null,My,Vy)),va(15,114688,null,0,jy,[],null,null),(t()(),Iu(16,0,null,null,2,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(17,0,null,null,1,"app-news-feed",[],null,null,null,Zy,Hy)),va(18,114688,null,0,Uy,[Ly],null,null)],function(t,e){t(e,1,0),t(e,7,0),t(e,12,0),t(e,15,0),t(e,18,0)},null)}function $y(t){return Fa(0,[(t()(),Iu(0,0,null,null,1,"app-dashboard-page",[],null,null,null,Ky,Qy)),va(1,114688,null,0,Wy,[Nv,lv],null,null)],function(t,e){t(e,1,0)},null)}var Yy=Zu("app-dashboard-page",Wy,$y,{},{},[]),Jy=function(t){function e(e,n){var r=t.call(this,e)||this;r.sources=n,r.completed=0,r.haveValues=0;var o=n.length;r.values=new Array(o);for(var i=0;it?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return tm(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return tm(t.value)?null:em.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(tm(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(tm(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(rm);return 0==e.length?null:function(t){return im(function(t,n){return e.map(function(e){return e(t)})}(t))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(rm);return 0==e.length?null:function(t){return function t(){for(var e,n=[],r=0;r=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&t[0]._parent===e._control._parent&&t[1].name===e.name},t}();function sm(t,e){t._pendingDirty&&t.markAsDirty(),t.setValue(t._pendingValue,{emitModelToViewChange:!1}),e.viewToModelUpdate(t._pendingValue),t._pendingChange=!1}function cm(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 pm(t){return null!=t?nm.compose(t.map(lm)):null}function fm(t){return null!=t?nm.composeAsync(t.map(um)):null}var hm=function(t){function e(e){return t.call(this,e)||this}return o(e,t),e}(function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}());function dm(t){var e=vm(t)?t.validators:t;return Array.isArray(e)?pm(e):e||null}function gm(t,e){var n=vm(e)?e.asyncValidators:t;return Array.isArray(n)?fm(n):n||null}function vm(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var ym=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=dm(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=gm(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(i({},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(i({},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=om(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 bm?t.controls.hasOwnProperty(e)?t.controls[e]:null:t instanceof wm&&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 $o,this.statusChanges=new $o},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){vm(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t}(),mm=function(t){function e(e,n,r){void 0===e&&(e=null);var o=t.call(this,dm(n),gm(r,n))||this;return o._onChange=[],o._applyFormState(e),o._setUpdateStrategy(n),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o._initObservables(),o}return o(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}(ym),bm=function(t){function e(e,n,r){var o=t.call(this,dm(n),gm(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(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 mm?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,o){n=n||e.contains(o)&&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=a(Object.keys(this.controls)),r=n.next();!r.done;r=n.next())if(this.controls[r.value].enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.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}(ym),wm=function(t){function e(e,n,r){var o=t.call(this,dm(n),gm(r,n))||this;return o.controls=e,o._initObservables(),o._setUpdateStrategy(n),o._setUpControls(),o.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),o}return o(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 mm?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=a(this.controls),r=n.next();!r.done;r=n.next())if(r.value.enabled)return!1}catch(o){t={error:o}}finally{try{r&&!r.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}(ym),_m=Promise.resolve(null),Cm=function(t){function e(e,n){var r=t.call(this)||this;return r.submitted=!1,r._directives=[],r.ngSubmit=new $o,r.form=new bm({},pm(e),fm(n)),r}return o(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;_m.then(function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),function(t,e){t||cm(e,"Cannot find control with"),e.valueAccessor||cm(e,"No value accessor for form control with"),t.validator=nm.compose([t.validator,e.validator]),t.asyncValidator=nm.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&&sm(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&&sm(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()})})}(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;_m.then(function(){var n,r,o=e._findContainer(t.path);o&&o.removeControl(t.name),(r=(n=e._directives).indexOf(t))>-1&&n.splice(r,1)})},e.prototype.addFormGroup=function(t){var e=this;_m.then(function(){var n=e._findContainer(t.path),r=new bm({});(function(t,e){null==t&&cm(e,"Cannot find control with"),t.validator=nm.compose([t.validator,e.validator]),t.asyncValidator=nm.composeAsync([t.asyncValidator,e.asyncValidator])})(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;_m.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;_m.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,e=this._directives,this.form._syncPendingControls(),e.forEach(function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}),this.ngSubmit.emit(t),!1;var e},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}(Xy),Sm=new Pt("NgFormSelectorWarning"),xm=function(){return function(){}}(),Em=function(){return function(){}}(),km=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:Sm,useValue:t.warnOnDeprecatedNgFormSelector}]}},t}(),Tm=function(){function t(t){this.http=t}return t.prototype.getLastMessages=function(t,e){return this.http.get("/"+$s.backend_name+"/messages/last")},t.prototype.getAllMessages=function(t){return this.http.get("/"+$s.backend_name+"/messages/all")},t.prototype.countAllMessages=function(t){return this.http.get("/"+$s.backend_name+"/messages/all/count")},t.prototype.getCountUnreadMessages=function(t){return this.http.get("/"+$s.backend_name+"/messages/unreaded/count")},t.prototype.getMessage=function(t){return this.http.get("/"+$s.backend_name+"/messages/"+t)},t.prototype.markAsRead=function(t){var e=(new cp).set("Content-Type","application/json");return this.http.put("/"+$s.backend_name+"/markasread/"+t,null,{headers:e}).subscribe(function(e){return console.log("message "+t)})},t.ngInjectableDef=Tt({factory:function(){return new t(ne(xp))},token:t,providedIn:"root"}),t}(),Im=function(){function t(t,e){this.messageService=t,this.authenticationService=e}return t.prototype.ngOnInit=function(){var t=this;this.messageService.getCountUnreadMessages(this.authenticationService.currentUserValue.userid).subscribe(function(e){return t.unread_count=e}),this.messageService.getAllMessages(this.authenticationService.currentUserValue.userid).subscribe(function(e){return t.last_messages=e}),this.messageService.countAllMessages(this.authenticationService.currentUserValue.userid).subscribe(function(e){return t.all_count=e})},t.prototype.openMessage=function(t){var e=this;this.messageService.getMessage(t).subscribe(function(t){e.selected_message=t})},t.prototype.backToMessages=function(){this.selected_message=void 0},t}(),Am=Xl({encapsulation:0,styles:[[""]],data:{}});function Pm(t){return Fa(0,[(t()(),Iu(0,0,null,null,8,"div",[["class","list-group-item list-group-item-action flex-column align-items-start"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,5,"div",[["class","d-flex w-100 justify-content-between"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,1,"span",[["class","link"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.openMessage(t.context.$implicit.id)&&r),r},null,null)),(t()(),La(3,null,["",""])),(t()(),Iu(4,0,null,null,2,"small",[],null,null,null,null,null)),(t()(),La(5,null,["",""])),Ma(6,2),(t()(),Iu(7,0,null,null,1,"p",[["class","mb-1"]],null,null,null,null,null)),(t()(),La(8,null,["",""]))],null,function(t,e){t(e,3,0,e.context.$implicit.subject);var n=$l(e,5,0,t(e,6,0,ra(e.parent.parent,0),e.context.$implicit.creationDate,"medium"));t(e,5,0,n),t(e,8,0,e.context.$implicit.body)})}function Om(t){return Fa(0,[(t()(),Iu(0,0,null,null,35,"div",[["class","col-8"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,34,"div",[["class","card"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,13,"div",[["class","card-body"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,9,"table",[["border","0"],["width","99%"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,8,"tbody",[],null,null,null,null,null)),(t()(),Iu(5,0,null,null,7,"tr",[],null,null,null,null,null)),(t()(),Iu(6,0,null,null,1,"td",[["valign","top"],["width","80px"]],null,null,null,null,null)),(t()(),Iu(7,0,null,null,0,"i",[["class","far fa-comment fa-3x"],["style","color:#0066CC"]],null,null,null,null,null)),(t()(),Iu(8,0,null,null,4,"td",[],null,null,null,null,null)),(t()(),Iu(9,0,null,null,1,"h3",[["class","text-anpal"]],null,null,null,null,null)),(t()(),La(-1,null,["I tuoi messaggi"])),(t()(),Iu(11,0,null,null,1,"p",[["class","text-anpal"]],null,null,null,null,null)),(t()(),La(12,null,["Hai "," messaggi nuovi da leggere su un totale di "," messaggi"])),(t()(),Iu(13,0,null,null,2,"div",[["class","list-group"]],null,null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,Pm)),va(15,278528,null,0,Yc,[il,Yo,El],{ngForOf:[0,"ngForOf"]},null),(t()(),Iu(16,0,null,null,19,"div",[["class","card-footer text-center"]],null,null,null,null,null)),(t()(),Iu(17,0,null,null,1,"p",[],null,null,null,null,null)),(t()(),La(-1,null,["Stai visualizzando 2 messaggi su un totale di 20 pagine"])),(t()(),Iu(19,0,null,null,16,"nav",[["aria-label","Page navigation example"]],null,null,null,null,null)),(t()(),Iu(20,0,null,null,15,"ul",[["class","pagination justify-content-center"]],null,null,null,null,null)),(t()(),Iu(21,0,null,null,2,"li",[["class","page-item disabled"]],null,null,null,null,null)),(t()(),Iu(22,0,null,null,1,"a",[["class","page-link"],["href","#"],["tabindex","-1"]],null,null,null,null,null)),(t()(),La(-1,null,["Previous"])),(t()(),Iu(24,0,null,null,2,"li",[["class","page-item"]],null,null,null,null,null)),(t()(),Iu(25,0,null,null,1,"a",[["class","page-link"],["href","#"]],null,null,null,null,null)),(t()(),La(-1,null,["1"])),(t()(),Iu(27,0,null,null,2,"li",[["class","page-item"]],null,null,null,null,null)),(t()(),Iu(28,0,null,null,1,"a",[["class","page-link"],["href","#"]],null,null,null,null,null)),(t()(),La(-1,null,["2"])),(t()(),Iu(30,0,null,null,2,"li",[["class","page-item"]],null,null,null,null,null)),(t()(),Iu(31,0,null,null,1,"a",[["class","page-link"],["href","#"]],null,null,null,null,null)),(t()(),La(-1,null,["3"])),(t()(),Iu(33,0,null,null,2,"li",[["class","page-item"]],null,null,null,null,null)),(t()(),Iu(34,0,null,null,1,"a",[["class","page-link"],["href","#"]],null,null,null,null,null)),(t()(),La(-1,null,["Next"]))],function(t,e){t(e,15,0,e.component.last_messages)},function(t,e){var n=e.component;t(e,12,0,n.unread_count,n.all_count)})}function Rm(t){return Fa(0,[(t()(),Iu(0,0,null,null,33,"div",[["class","col-8"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,32,"div",[["class","card"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,21,"div",[["class","card-body"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,7,"table",[["border","0"],["width","99%"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,6,"tbody",[],null,null,null,null,null)),(t()(),Iu(5,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Iu(6,0,null,null,1,"td",[["valign","top"],["width","80px"]],null,null,null,null,null)),(t()(),Iu(7,0,null,null,0,"i",[["class","far fa-envelope-open fa-3x"],["style","color:#0066CC"]],null,null,null,null,null)),(t()(),Iu(8,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Iu(9,0,null,null,1,"h3",[["class","text-anpal"]],null,null,null,null,null)),(t()(),La(10,null,["",""])),(t()(),Iu(11,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(12,0,null,null,8,"div",[],null,null,null,null,null)),(t()(),Iu(13,0,null,null,7,"p",[],null,null,null,null,null)),(t()(),Iu(14,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),La(-1,null,["Inviato da : "])),(t()(),La(16,null,[""," \xa0 "])),(t()(),Iu(17,0,null,null,1,"strong",[],null,null,null,null,null)),(t()(),La(-1,null,["Il : "])),(t()(),La(19,null,["",""])),Ma(20,2),(t()(),Iu(21,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Iu(22,0,null,null,1,"p",[["class","card-text"]],null,null,null,null,null)),(t()(),La(23,null,[" "," "])),(t()(),Iu(24,0,null,null,9,"div",[["class","card-footer"]],null,null,null,null,null)),(t()(),Iu(25,0,null,null,8,"p",[["class","card-text"]],null,null,null,null,null)),(t()(),Iu(26,0,null,null,1,"button",[["class","btn btn-danger"]],null,null,null,null,null)),(t()(),La(-1,null,["Sposta nel cestino"])),(t()(),La(-1,null,[" \xa0 "])),(t()(),Iu(29,0,null,null,1,"button",[["class","btn btn-primary"]],null,null,null,null,null)),(t()(),La(-1,null,["Archivia"])),(t()(),La(-1,null,[" \xa0 "])),(t()(),Iu(32,0,null,null,1,"button",[["class","btn btn-success"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.backToMessages()&&r),r},null,null)),(t()(),La(-1,null,["Torna ai messaggi"]))],null,function(t,e){var n=e.component;t(e,10,0,n.selected_message.subject),t(e,16,0,n.selected_message.senderIdentifier);var r=$l(e,19,0,t(e,20,0,ra(e.parent,0),n.selected_message.creationDate,"medium"));t(e,19,0,r),t(e,23,0,n.selected_message.body)})}function Nm(t){return Fa(0,[ya(0,np,[Ol]),(t()(),Iu(1,0,null,null,6,"div",[["class","row main-content-sn"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,5,"nav",[["aria-label","breadcrumb"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,4,"ol",[["class","breadcrumb"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,1,"li",[["aria-current","page"],["class","breadcrumb-item"]],null,null,null,null,null)),(t()(),La(-1,null,["Home"])),(t()(),Iu(6,0,null,null,1,"li",[["aria-current","page"],["class","breadcrumb-item active"]],null,null,null,null,null)),(t()(),La(-1,null,["Messaggi"])),(t()(),Iu(8,0,null,null,44,"div",[["class","row main-content"]],null,null,null,null,null)),(t()(),Iu(9,0,null,null,39,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(10,0,null,null,38,"div",[["class","card"]],null,null,null,null,null)),(t()(),Iu(11,0,null,null,37,"div",[["class","card-body"]],null,null,null,null,null)),(t()(),Iu(12,0,null,null,7,"table",[["border","0"],["width","99%"]],null,null,null,null,null)),(t()(),Iu(13,0,null,null,6,"tbody",[],null,null,null,null,null)),(t()(),Iu(14,0,null,null,5,"tr",[],null,null,null,null,null)),(t()(),Iu(15,0,null,null,1,"td",[["valign","top"],["width","80px"]],null,null,null,null,null)),(t()(),Iu(16,0,null,null,0,"i",[["class","fas fa-search fa-3x"],["style","color:#0066CC"]],null,null,null,null,null)),(t()(),Iu(17,0,null,null,2,"td",[],null,null,null,null,null)),(t()(),Iu(18,0,null,null,1,"h3",[["class","text-anpal"]],null,null,null,null,null)),(t()(),La(-1,null,["Ricerca"])),(t()(),Iu(20,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Iu(21,0,null,null,27,"form",[["novalidate",""]],[[2,"ng-untouched",null],[2,"ng-touched",null],[2,"ng-pristine",null],[2,"ng-dirty",null],[2,"ng-valid",null],[2,"ng-invalid",null],[2,"ng-pending",null]],[[null,"submit"],[null,"reset"]],function(t,e,n){var r=!0;return"submit"===e&&(r=!1!==ra(t,23).onSubmit(n)&&r),"reset"===e&&(r=!1!==ra(t,23).onReset()&&r),r},null,null)),va(22,16384,null,0,xm,[],null,null),va(23,4210688,null,0,Cm,[[8,null],[8,null]],null,null),(e=Xy,n=[Cm],ma(-1,2048,null,0,e,null,n)),va(25,16384,null,0,hm,[[4,Xy]],null,null),(t()(),Iu(26,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Iu(27,0,null,null,1,"label",[["for","exampleFormControlInput1"]],null,null,null,null,null)),(t()(),La(-1,null,["Mittente"])),(t()(),Iu(29,0,null,null,0,"input",[["class","form-control"],["id","exampleFormControlInput1"],["placeholder","Adr"],["type","email"]],null,null,null,null,null)),(t()(),Iu(30,0,null,null,3,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Iu(31,0,null,null,1,"label",[["for","exampleFormControlInput1"]],null,null,null,null,null)),(t()(),La(-1,null,["Testo del messaggio"])),(t()(),Iu(33,0,null,null,0,"input",[["class","form-control"],["id","exampleFormControlInput1"],["placeholder","inserisci il testo da cercare"],["type","email"]],null,null,null,null,null)),(t()(),Iu(34,0,null,null,3,"div",[["class","form-check"]],null,null,null,null,null)),(t()(),Iu(35,0,null,null,0,"input",[["class","form-check-input"],["id","defaultCheck1"],["type","checkbox"],["value",""]],null,null,null,null,null)),(t()(),Iu(36,0,null,null,1,"label",[["class","form-check-label"],["for","defaultCheck1"]],null,null,null,null,null)),(t()(),La(-1,null,[" Mostra solo messaggi non letti "])),(t()(),Iu(38,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(39,0,null,null,6,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),La(-1,null,[" Cerca per Data "])),(t()(),Iu(41,0,null,null,4,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(42,0,null,null,1,"div",[["class","col"]],null,null,null,null,null)),(t()(),Iu(43,0,null,null,0,"input",[["class","form-control"],["placeholder","dal: 10/01/2019"],["type","text"]],null,null,null,null,null)),(t()(),Iu(44,0,null,null,1,"div",[["class","col"]],null,null,null,null,null)),(t()(),Iu(45,0,null,null,0,"input",[["class","form-control"],["placeholder","al: 20/01/2019"],["type","text"]],null,null,null,null,null)),(t()(),Iu(46,0,null,null,2,"div",[["class","form-group"]],null,null,null,null,null)),(t()(),Iu(47,0,null,null,1,"button",[["class","btn btn-primary"]],null,null,null,null,null)),(t()(),La(-1,null,["Cerca"])),(t()(),Tu(16777216,null,null,1,null,Om)),va(50,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Tu(16777216,null,null,1,null,Rm)),va(52,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null)],function(t,e){var n=e.component;t(e,50,0,void 0===n.selected_message),t(e,52,0,void 0!==n.selected_message)},function(t,e){t(e,21,0,ra(e,25).ngClassUntouched,ra(e,25).ngClassTouched,ra(e,25).ngClassPristine,ra(e,25).ngClassDirty,ra(e,25).ngClassValid,ra(e,25).ngClassInvalid,ra(e,25).ngClassPending)});var e,n}function Dm(t){return Fa(0,[(t()(),Iu(0,0,null,null,1,"app-messages",[],null,null,null,Nm,Am)),va(1,114688,null,0,Im,[Tm,Nv],null,null)],function(t,e){t(e,1,0)},null)}var jm=Zu("app-messages",Im,Dm,{},{},[]),Vm=function(){function t(t,e,n){this.loc=t,this.authenticationService=e,this.router=n}return t.prototype.ngOnInit=function(){var t=this;-1!==this.loc.path().indexOf("?login=ok")&&(console.log("autenticazione ok"),this.authenticationService.login().subscribe(function(e){return t.handleTokenSuccess(e)},function(e){return t.handleTokenError(e)})),-1===this.loc.path().indexOf("public")&&this.auto_login?(console.log("not a public page, check for authentication"),this.authenticationService.isAuthenticated()?console.log("autenticazione non necessaria, utente autenticato"):(console.log("non autenticato, redirect alla pagina dell'IdP"),this.authenticationService.login().subscribe(function(e){return t.handleTokenSuccess(e)},function(e){return t.handleTokenError(e)}))):console.log("public area site, ignoring authentication")},t.prototype.handleTokenError=function(t){setTimeout(function(){return window.location.replace("/"+$s.backend_name+"/saml/login")},10)},t.prototype.handleTokenSuccess=function(t){var e=this;console.log("token ricevuto dopo loginok"),this.authenticationService.setAuthenticatedUser(t),setTimeout(function(){return e.router.navigate(["dashboard"])},10)},t}(),Mm=Xl({encapsulation:0,styles:[[""]],data:{}});function Lm(t){return Fa(0,[],null,null)}var Um=function(){function t(t,e,n,r){this.authenticationService=t,this.router=e,this.translate=n,this.localeService=r}return t.prototype.ngOnInit=function(){},t.prototype.switchLanguage=function(t,e){e.preventDefault(),this.localeService.setLocale(t),this.translate.use(t)},t.prototype.logout=function(){sessionStorage.removeItem($s.sessionUserVariableName),setTimeout(function(){return window.location.replace("/"+$s.backend_name+"/saml/logout")},10)},t.prototype.login=function(){var t=this;this.authenticationService.isAuthenticated()?console.log("autenticazione non necessaria, utente autenticato"):(console.log("non autenticato, redirect alla pagina dell'IdP"),this.authenticationService.login().subscribe(function(e){return t.handleTokenSuccess(e)},function(e){return t.handleTokenError(e)}))},t.prototype.handleTokenError=function(t){setTimeout(function(){return window.location.replace("/"+$s.backend_name+"/saml/login")},10)},t.prototype.handleTokenSuccess=function(t){console.log("token ricevuto"),this.authenticationService.setAuthenticatedUser(t)},t}(),Hm=Xl({encapsulation:0,styles:[[""]],data:{}});function Fm(t){return Fa(0,[(t()(),Iu(0,0,null,null,15,"div",[["class","navbar-text"],["style","vertical-align: middle; color:white;"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,1,"a",[["href",""]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.switchLanguage("it",n)&&r),r},null,null)),(t()(),Iu(2,0,null,null,0,"img",[["src","assets/images/italy-flag-icon-64.png"],["width","32px"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0\xa0 "])),(t()(),Iu(4,0,null,null,1,"a",[["href",""]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.switchLanguage("de",n)&&r),r},null,null)),(t()(),Iu(5,0,null,null,0,"img",[["src","assets/images/germany-flag-icon.png"],["width","32px"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0\xa0 "])),(t()(),Iu(7,0,null,null,2,"a",[["href","http://testelearning.anpal.gov.it/login/index.php"],["target","_blank"]],null,null,null,null,null)),(t()(),La(8,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),La(-1,null,[" \xa0|\xa0 "])),(t()(),Iu(11,0,null,null,0,"i",[["class","far fa-user"]],null,null,null,null,null)),(t()(),La(12,null,["\xa0\xa0 "," ","\xa0 \xa0\xa0"])),(t()(),Iu(13,0,null,null,2,"button",[["class","btn btn-primary btn-sm "],["style","font-weight: bold"],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.logout()&&r),r},null,null)),(t()(),La(14,null,["",""])),ya(131072,ey,[ty,ul])],null,function(t,e){var n=e.component;t(e,8,0,$l(e,8,0,ra(e,9).transform("fol"))),t(e,12,0,n.authenticationService.currentUserValue.firstname,n.authenticationService.currentUserValue.lastname),t(e,14,0,$l(e,14,0,ra(e,15).transform("esci")))})}function zm(t){return Fa(0,[(t()(),Iu(0,0,null,null,9,"div",[["class","navbar-text"],["style","vertical-align: middle"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,1,"a",[["href",""]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.switchLanguage("it",n)&&r),r},null,null)),(t()(),Iu(2,0,null,null,0,"img",[["src","assets/images/italy-flag-icon-64.png"],["width","32px"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0\xa0 "])),(t()(),Iu(4,0,null,null,1,"a",[["href",""]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.switchLanguage("de",n)&&r),r},null,null)),(t()(),Iu(5,0,null,null,0,"img",[["src","assets/images/germany-flag-icon.png"],["width","32px"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0\xa0 "])),(t()(),Iu(7,0,null,null,2,"button",[["class","btn btn-primary btn-sm "],["type","button"]],null,[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==t.component.login()&&r),r},null,null)),(t()(),La(8,null,["",""])),ya(131072,ey,[ty,ul])],null,function(t,e){t(e,8,0,$l(e,8,0,ra(e,9).transform("accedi")))})}function Bm(t){return Fa(0,[(t()(),Iu(0,0,null,null,7,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,6,"div",[["class","col-sm"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,5,"nav",[["class","navbar navbar-dark bg-dark"],["style","padding-top: 0px; padding-bottom: 0px"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,0,"h4",[["class","navbar-brand"]],null,null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,Fm)),va(5,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Tu(16777216,null,null,1,null,zm)),va(7,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Iu(8,0,null,null,10,"div",[["class","row"],["style","padding: 24px; margin-left: 100px; margin-right: 100px"]],null,null,null,null,null)),(t()(),Iu(9,0,null,null,1,"div",[["class","col-6"]],null,null,null,null,null)),(t()(),Iu(10,0,null,null,0,"img",[["alt",""],["src","assets/images/logo-anpal.png"]],null,null,null,null,null)),(t()(),Iu(11,0,null,null,7,"div",[["class","col-6"],["style","padding-top: 10px;position: absolute; right:150px; text-align:right"]],null,null,null,null,null)),(t()(),Iu(12,0,null,null,0,"img",[["height","40px"],["src","assets/images/nul_header.png"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0 "])),(t()(),Iu(14,0,null,null,0,"img",[["alt",""],["height","40px"],["src","assets/images/emblema_repubblica.gif"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0 "])),(t()(),Iu(16,0,null,null,0,"img",[["alt",""],["height","40px"],["src","assets/images/logo_FSE.png"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0 "])),(t()(),Iu(18,0,null,null,0,"img",[["alt",""],["height","50px"],["src","assets/images/logo_PES.png"]],null,null,null,null,null))],function(t,e){var n=e.component;t(e,5,0,n.authenticationService.isAuthenticated()),t(e,7,0,!n.authenticationService.isAuthenticated())},null)}var qm=function(){function t(t){this.authService=t}return t.prototype.ngOnInit=function(){this.test_console_enabled=Hp.settings.console_enabled},t}(),Gm=Xl({encapsulation:0,styles:[[""]],data:{}});function Zm(t){return Fa(0,[(t()(),Iu(0,0,null,null,10,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,9,"nav",[["class","navbar navbar-expand-lg navbar-dark"],["style","background-color: #013366; padding-left:65px; padding-top: 0px;padding-bottom: 0px"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,8,"div",[["class","collapse navbar-collapse"],["id","navbarSupportedContent"],["style","margin-left: 70px; margin-right: 70px"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,7,"ul",[["class","navbar-nav mr-auto"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,6,"li",[["class","nav-item active"]],null,null,null,null,null)),(t()(),Iu(5,0,null,null,5,"a",[["class","nav-link"],["href","#"],["routerLink","/dashboard"]],[[1,"target",0],[8,"href",4]],[[null,"click"]],function(t,e,n){var r=!0;return"click"===e&&(r=!1!==ra(t,6).onClick(n.button,n.ctrlKey,n.metaKey,n.shiftKey)&&r),r},null,null)),va(6,671744,null,0,uv,[lv,$d,uc],{routerLink:[0,"routerLink"]},null),(t()(),La(7,null,[""," "])),ya(131072,ey,[ty,ul]),(t()(),Iu(9,0,null,null,1,"span",[["class","sr-only"]],null,null,null,null,null)),(t()(),La(-1,null,["(current)"]))],function(t,e){t(e,6,0,"/dashboard")},function(t,e){t(e,5,0,ra(e,6).target,ra(e,6).href),t(e,7,0,$l(e,7,0,ra(e,8).transform("scrivania")))})}function Wm(t){return Fa(0,[(t()(),Iu(0,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),Tu(16777216,null,null,1,null,Zm)),va(2,16384,null,0,Xc,[il,Yo],{ngIf:[0,"ngIf"]},null),(t()(),Iu(3,0,null,null,3,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,0,"div",[["class","col-4 u-background-green"],["style","height: 10px"]],null,null,null,null,null)),(t()(),Iu(5,0,null,null,0,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(6,0,null,null,0,"div",[["class","col-4 u-background-red"]],null,null,null,null,null))],function(t,e){t(e,2,0,e.component.authService.isAuthenticated())},null)}var Qm=function(){function t(){}return t.prototype.ngOnInit=function(){},t}(),Km=Xl({encapsulation:0,styles:[[""]],data:{}});function $m(t){return Fa(0,[(t()(),Iu(0,0,null,null,73,"div",[["class","main-content footer"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,8,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(2,0,null,null,7,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),Iu(3,0,null,null,0,"img",[["alt",""],["src","assets/images/logo-anpalFooter.png"]],null,null,null,null,null)),(t()(),Iu(4,0,null,null,2,"p",[["class","footer-sitename"]],null,null,null,null,null)),(t()(),La(5,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(7,0,null,null,2,"p",[["class","footer-hightligh"]],null,null,null,null,null)),(t()(),La(8,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(10,0,null,null,48,"div",[["class","row footer-subblock"]],null,null,null,null,null)),(t()(),Iu(11,0,null,null,9,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(12,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Iu(13,0,null,null,2,"h3",[["class","footer-subtitle"]],null,null,null,null,null)),(t()(),La(14,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(16,0,null,null,4,"address",[],null,null,null,null,null)),(t()(),Iu(17,0,null,null,1,"p",[["class","footer-text"]],null,null,null,null,null)),(t()(),La(-1,null,[" Via Fornovo 8 "])),(t()(),Iu(19,0,null,null,1,"p",[["class","footer-text"]],null,null,null,null,null)),(t()(),La(-1,null,["00192, Roma"])),(t()(),Iu(21,0,null,null,16,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(22,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Iu(23,0,null,null,2,"h3",[["class","footer-subtitle"]],null,null,null,null,null)),(t()(),La(24,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(26,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(27,0,null,null,0,"img",[["src","assets/images/nul_footer.png"]],null,null,null,null,null)),(t()(),Iu(28,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(29,0,null,null,0,"br",[],null,null,null,null,null)),(t()(),Iu(30,0,null,null,7,"address",[],null,null,null,null,null)),(t()(),Iu(31,0,null,null,2,"p",[["class","footer-text"]],null,null,null,null,null)),(t()(),La(32,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(34,0,null,null,3,"p",[["class","footer-text"]],null,null,null,null,null)),(t()(),La(-1,null,["Email: "])),(t()(),Iu(36,0,null,null,1,"a",[["class","footer-link"],["href","mailto:info@anpal.gov.it"]],null,null,null,null,null)),(t()(),La(-1,null,["info@anpal.gov.it"])),(t()(),Iu(38,0,null,null,20,"div",[["class","col-4"]],null,null,null,null,null)),(t()(),Iu(39,0,null,null,0,"hr",[],null,null,null,null,null)),(t()(),Iu(40,0,null,null,2,"h3",[["class","footer-subtitle"]],null,null,null,null,null)),(t()(),La(41,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),Iu(43,0,null,null,2,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(44,0,null,null,1,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),La(-1,null,["\xa0"])),(t()(),Iu(46,0,null,null,12,"div",[["class","row"],["style","width:240px"]],null,null,null,null,null)),(t()(),Iu(47,0,null,null,2,"div",[["class","col-3"]],null,null,null,null,null)),(t()(),Iu(48,0,null,null,1,"a",[["href","https://it-it.facebook.com/ANPALgov/"],["target","_blank"]],null,null,null,null,null)),(t()(),Iu(49,0,null,null,0,"i",[["class","fab fa-facebook-square fa-3x"],["style","color:#00C5CA"]],null,null,null,null,null)),(t()(),Iu(50,0,null,null,2,"div",[["class","col-3"]],null,null,null,null,null)),(t()(),Iu(51,0,null,null,1,"a",[["href","https://it.linkedin.com/company/anpal"],["target","_blank"]],null,null,null,null,null)),(t()(),Iu(52,0,null,null,0,"i",[["class","fab fa-linkedin-in fa-3x"],["style","color:#00C5CA"]],null,null,null,null,null)),(t()(),Iu(53,0,null,null,2,"div",[["class","col-3"]],null,null,null,null,null)),(t()(),Iu(54,0,null,null,1,"a",[["href","https://twitter.com/anpalgov?lang=it"],["target","_blank"]],null,null,null,null,null)),(t()(),Iu(55,0,null,null,0,"i",[["class","fab fa-twitter fa-3x"],["style","color:#00C5CA"]],null,null,null,null,null)),(t()(),Iu(56,0,null,null,2,"div",[["class","col-3"]],null,null,null,null,null)),(t()(),Iu(57,0,null,null,1,"a",[["href","https://www.youtube.com/channel/UCHXeufbPWdfZrE0uyFSrOsw"],["target","_blank"]],null,null,null,null,null)),(t()(),Iu(58,0,null,null,0,"i",[["class","fab fa-youtube fa-3x"],["style","color:#00C5CA"]],null,null,null,null,null)),(t()(),Iu(59,0,null,null,14,"div",[["class","row"]],null,null,null,null,null)),(t()(),Iu(60,0,null,null,13,"div",[["class","col-12"]],null,null,null,null,null)),(t()(),Iu(61,0,null,null,12,"p",[["class","footer-text"]],null,null,null,null,null)),(t()(),Iu(62,0,null,null,2,"a",[["class","footer-link"],["href","http://www.anpal.gov.it/Contatti/Pagine/default.aspx"],["target","_blank"]],null,null,null,null,null)),(t()(),La(63,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),La(-1,null,["\xa0\xa0\xa0 "])),(t()(),Iu(66,0,null,null,2,"a",[["class","footer-link"],["href","http://www.anpal.gov.it/privacy/Pagine/default.aspx"],["target","_blank"]],null,null,null,null,null)),(t()(),La(67,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),La(-1,null,["\xa0\xa0\xa0 "])),(t()(),Iu(70,0,null,null,2,"a",[["class","footer-link"],["href","http://www.anpal.gov.it/Pagine/SiteMap.aspx"],["target","_blank"]],null,null,null,null,null)),(t()(),La(71,null,["",""])),ya(131072,ey,[ty,ul]),(t()(),La(-1,null,["\xa0\xa0\xa0 "]))],null,function(t,e){t(e,5,0,$l(e,5,0,ra(e,6).transform("footer_anpal"))),t(e,8,0,$l(e,8,0,ra(e,9).transform("footer_ammtrasp"))),t(e,14,0,$l(e,14,0,ra(e,15).transform("sede"))),t(e,24,0,$l(e,24,0,ra(e,25).transform("contatti"))),t(e,32,0,$l(e,32,0,ra(e,33).transform("footer_orario"))),t(e,41,0,$l(e,41,0,ra(e,42).transform("seguici_su"))),t(e,63,0,$l(e,63,0,ra(e,64).transform("crediti"))),t(e,67,0,$l(e,67,0,ra(e,68).transform("legal"))),t(e,71,0,$l(e,71,0,ra(e,72).transform("mappa_sito")))})}var Ym=Xl({encapsulation:0,styles:[[""]],data:{}});function Jm(t){return Fa(0,[(t()(),Iu(0,0,null,null,10,"div",[["class","container-fluid"],["style","padding-left: 0px; padding-right: 0px"]],null,null,null,null,null)),(t()(),Iu(1,0,null,null,1,"app-authentication",[],null,null,null,Lm,Mm)),va(2,114688,null,0,Vm,[sc,Nv,lv],{auto_login:[0,"auto_login"]},null),(t()(),Iu(3,0,null,null,1,"app-header",[],null,null,null,Bm,Hm)),va(4,114688,null,0,Um,[Nv,lv,ty,wy],null,null),(t()(),Iu(5,0,null,null,1,"app-main-menu",[],null,null,null,Wm,Gm)),va(6,114688,null,0,qm,[Nv],null,null),(t()(),Iu(7,16777216,null,null,1,"router-outlet",[],null,null,null,null,null)),va(8,212992,null,0,pv,[cv,il,io,[8,null],ul],null,null),(t()(),Iu(9,0,null,null,1,"app-footer",[],null,null,null,$m,Km)),va(10,114688,null,0,Qm,[],null,null)],function(t,e){t(e,2,0,!1),t(e,4,0),t(e,6,0),t(e,8,0),t(e,10,0)},null)}function Xm(t){return Fa(0,[(t()(),Iu(0,0,null,null,1,"app-root",[],null,null,null,Jm,Ym)),va(1,49152,null,0,Dv,[Nv,ty],null,null)],null,null)}var tb=Zu("app-root",Dv,Xm,{},{},[]),eb=function(){function t(t){this.authenticationService=t}return t.prototype.intercept=function(t,e){return e.handle(t)},t.ngInjectableDef=Tt({factory:function(){return new t(ne(Nv))},token:t,providedIn:"root"}),t}(),nb=function(){function t(t){this.authenticationService=t}return t.prototype.intercept=function(t,e){var n=this.authenticationService.currentUserValue;return n&&n.token&&(t=t.clone({setHeaders:{Authorization:"Bearer "+n.token}})),e.handle(t)},t}(),rb=function(){function t(){}return t.prototype.intercept=function(t,e){return t.url.includes("http")||t.url.includes("assets")?e.handle(t):e.handle(t.clone({url:Hp.settings.backend_url+t.url}))},t.ngInjectableDef=Tt({factory:function(){return new t},token:t,providedIn:"root"}),t}(),ob=function(){function t(t,e){this.authenticationService=t,this.router=e}return t.prototype.intercept=function(t,e){var n=this;return e.handle(t).pipe(of(function(t){},function(t){401===t.status&&(sessionStorage.removeItem($s.sessionUserVariableName),n.router.navigate([""]))}))},t}(),ib=function(){function t(t){this.authenticationService=t}return t.prototype.canActivate=function(t,e){return this.authenticationService.isAuthenticated()},t.ngInjectableDef=Tt({factory:function(){return new t(ne(Nv))},token:t,providedIn:"root"}),t}(),lb=function(){return function(){}}(),ub=Qs(Bp,[Dv],function(t){return function(t){for(var e={},n=[],r=!1,o=0;o