diff --git a/server/src/uds/core/ui/user_interface.py b/server/src/uds/core/ui/user_interface.py index 8357b06b..e248f192 100644 --- a/server/src/uds/core/ui/user_interface.py +++ b/server/src/uds/core/ui/user_interface.py @@ -443,12 +443,13 @@ class gui: def processValue(self, valueName: str, options: typing.Dict[str, typing.Any]) -> None: val = options.get(valueName, '') - if val == '' and valueName == 'defvalue': + if not val and valueName == 'defvalue': val = datetime.date.today() elif val == datetime.date.min: val = datetime.date(2000, 1, 1) elif val == datetime.date.max: - val = datetime.date(2099, 12, 31) + # val = datetime.date(2099, 12, 31) + val = datetime.date.today() options[valueName] = val diff --git a/server/src/uds/static/admin/main.js b/server/src/uds/static/admin/main.js index 8a6f6cb7..fc14068b 100644 --- a/server/src/uds/static/admin/main.js +++ b/server/src/uds/static/admin/main.js @@ -1 +1 @@ -(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},KKCa:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},MCLT:function(t,e,n){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),u=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&e._extend(i,n),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),c(i,t,i.depth)}function u(t,e){var n=s.styles[e];return n?"\x1b["+s.colors[n][0]+"m"+t+"\x1b["+s.colors[n][1]+"m":t}function l(t,e){return t}function c(t,n,i){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return y(r)||(r=c(t,r,i)),r}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return g(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(x(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var u,l="",_=!1,k=["{","}"];return h(n)&&(_=!0,k=["[","]"]),x(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(l=" "+RegExp.prototype.toString.call(n)),w(n)&&(l=" "+Date.prototype.toUTCString.call(n)),C(n)&&(l=" "+d(n)),0!==a.length||_&&0!=n.length?i<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=_?function(t,e,n,i,r){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,l,k)):k[0]+l+k[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,i,r,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),A(i,r)||(a="["+r+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(n)?c(t,u.value,null):c(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function y(t){return"string"==typeof t}function v(t){return void 0===t}function b(t){return _(t)&&"[object RegExp]"===k(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===k(t)}function C(t){return _(t)&&("[object Error]"===k(t)||t instanceof Error)}function x(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=process.pid;a[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else a[t]=function(){};return a[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=b,e.isObject=_,e.isDate=w,e.isError=C,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],o=0;o=200&&e.status<=299}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=i.URL||i.webkitURL,u=document.createElement("a");u.download=e=e||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin!==location.origin?o(u.href)?r(t,e,n):a(u,u.target="_blank"):a(u)):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){a(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(o(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){a(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var a="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,d=c.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout((function(){c.revokeObjectURL(d)}),4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";n.r(e);var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function u(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(H);function X(t){return t}function Q(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),K(X,t)}function J(t,e){return e?G(t,e):new D(F(t))}function tt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof D?t[0]:Q(n)(J(t,i))}function et(){return function(t){return t.lift(new nt(t))}}var nt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new it(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),it=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(_),rt=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return r(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 h).add(this.source.subscribe(new at(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t},e.prototype.refCount=function(){return et()(this)},e}(D),ot=function(){var t=rt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),at=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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}(I);function st(){return new P}var ut="__parameters__";function lt(t,e,n){var i=function(t){return function(){for(var e=[],n=0;n=t.length?t.push(n):t.splice(e,0,n)}function ce(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function de(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function he(t,e){var n=fe(t,e);if(n>=0)return t[1|n]}function fe(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var me=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ge=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});function ye(t){return""+{toString:t}}var ve={},be=[],_e=0;function we(t){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===me.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||be,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ge.Emulated,id:"c",styles:t.styles||be,_:null,setInput:null,schemas:t.schemas||null,tView:null};return r._=ye((function(){var e=t.directives,n=t.features,o=t.pipes;r.id+=_e++,r.inputs=De(t.inputs,i),r.outputs=De(t.outputs),n&&n.forEach((function(t){return t(r)})),r.directiveDefs=e?function(){return("function"==typeof e?e():e).map(Ce)}:null,r.pipeDefs=o?function(){return("function"==typeof o?o():o).map(xe)}:null})),r}function Ce(t){return Oe(t)||function(t){return t[Vt]||null}(t)}function xe(t){return function(t){return t[zt]||null}(t)}var ke={};function Se(t){var e={type:t.type,bootstrap:t.bootstrap||be,declarations:t.declarations||be,imports:t.imports||be,exports:t.exports||be,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ye((function(){ke[t.id]=t.type})),e}function De(t,e){if(null==t)return ve;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var Ee=we;function Ae(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Oe(t){return t[Bt]||null}function Ie(t,e){return t.hasOwnProperty(qt)?t[qt]:null}function Pe(t,e){var n=t[Ht]||null;if(!n&&!0===e)throw new Error("Type "+Et(t)+" does not have '\u0275mod' property.");return n}function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function Re(t){return Array.isArray(t)&&!0===t[1]}function Me(t){return 0!=(8&t.flags)}function Fe(t){return 2==(2&t.flags)}function Le(t){return 1==(1&t.flags)}function je(t){return null!==t.template}function Ne(t){return 0!=(512&t[2])}var Be={lFrame:un(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ve(){return Be.bindingsEnabled}function ze(){return Be.lFrame.lView}function He(){return Be.lFrame.tView}function Ue(t){Be.lFrame.contextLView=t}function qe(){return Be.lFrame.previousOrParentTNode}function We(t,e){Be.lFrame.previousOrParentTNode=t,Be.lFrame.isParent=e}function Ge(){return Be.lFrame.isParent}function Ye(){Be.lFrame.isParent=!1}function Ke(){return Be.checkNoChangesMode}function Ze(t){Be.checkNoChangesMode=t}function $e(){var t=Be.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xe(){return Be.lFrame.bindingIndex}function Qe(){return Be.lFrame.bindingIndex++}function Je(t){var e=Be.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function tn(t,e){var n=Be.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function en(){return Be.lFrame.currentQueryIndex}function nn(t){Be.lFrame.currentQueryIndex=t}function rn(t,e){var n=sn();Be.lFrame=n,n.previousOrParentTNode=e,n.lView=t}var on=ln;function an(t,e){var n=sn(),i=t[1];Be.lFrame=n,n.previousOrParentTNode=e,n.isParent=!0,n.lView=t,n.tView=i,n.selectedIndex=0,n.contextLView=t,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.currentSanitizer=null,n.bindingRootIndex=-1,n.bindingIndex=i.bindingStartIndex,n.currentQueryIndex=0}function sn(){var t=Be.lFrame,e=null===t?null:t.child;return null===e?un(t):e}function un(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function ln(){Be.lFrame=Be.lFrame.parent}function cn(){return Be.lFrame.selectedIndex}function dn(t){Be.lFrame.selectedIndex=t}function pn(){Be.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function hn(){Be.lFrame.currentNamespace=null}function fn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>10>16&&(3&t[2])===e&&(t[2]+=1024,o.call(a)):o.call(a)}var _n=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}(),wn=void 0;function Cn(){return void 0!==wn?wn:"undefined"!=typeof document?document:void 0}function xn(t){return!!t.listen}var kn={createRenderer:function(t,e){return Cn()}};function Sn(t,e,n){for(var i=xn(t),r=0;re){a=o-1;break}}}for(;o>16}function Rn(t,e){for(var n=Tn(t),i=e;n>0;)i=i[15],n--;return i}function Mn(t){return"string"==typeof t?t:null==t?"":""+t}function Fn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Mn(t)}var Ln=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt)}();function jn(t){return{name:"body",target:t.ownerDocument.body}}function Nn(t){return t instanceof Function?t():t}var Bn=!0;function Vn(t){var e=Bn;return Bn=t,e}var zn=0;function Hn(t,e){var n=qn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Un(i.data,t),Un(e,null),Un(i.blueprint,null));var r=Wn(t,e),o=t.injectorIndex;if(In(r))for(var a=Pn(r),s=Rn(r,e),u=s[1].data,l=0;l<8;l++)e[o+l]=s[a+l]|u[a+l];return e[o+8]=r,o}function Un(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Wn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Gn(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[Wt]:n.charCodeAt(0)||0;null==i&&(i=n[Wt]=zn++);var r=255&i,o=1<0?255&e:e}(n);if("function"==typeof o){rn(e,t);try{var a=o();if(null!=a||i&ft.Optional)return a;throw new Error("No provider for "+Fn(n)+"!")}finally{on()}}else if("number"==typeof o){if(-1===o)return new ti(t,e);var s=null,u=qn(t,e),l=-1,c=i&ft.Host?e[16][6]:null;for((-1===u||i&ft.SkipSelf)&&(l=-1===u?Wn(t,e):e[u+8],Jn(i,!1)?(s=e[1],u=Pn(l),e=Rn(l,e)):u=-1);-1!==u;){l=e[u+8];var d=e[1];if(Qn(o,u,d.data)){var p=Zn(u,e,n,s,i,c);if(p!==Kn)return p}Jn(i,e[1].data[u+8]===c)&&Qn(o,u,e)?(s=d,u=Pn(l),e=Rn(l,e)):u=-1}}}if(i&ft.Optional&&void 0===r&&(r=null),0==(i&(ft.Self|ft.Host))){var h=e[9],f=Jt(void 0);try{return h?h.get(n,r,i&ft.Optional):ie(n,r,i&ft.Optional)}finally{Jt(f)}}if(i&ft.Optional)return r;throw new Error("NodeInjector: NOT_FOUND ["+Fn(n)+"]")}var Kn={};function Zn(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],u=$n(s,a,n,null==i?Fe(s)&&Bn:i!=a&&3===s.type,r&ft.Host&&o===s);return null!==u?Xn(e,a,u,s):Kn}function $n(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,u=t.directiveStart,l=o>>16,c=r?s+l:t.directiveEnd,d=i?s:s+l;d=u&&p.type===n)return d}if(r){var h=a[u];if(h&&je(h)&&h.type===n)return u}return null}function Xn(t,e,n,i){var r=t[n],o=e.data;if(r instanceof _n){var a=r;if(a.resolving)throw new Error("Circular dep for "+Fn(o[n]));var s=Vn(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Jt(a.injectImpl)),rn(t,i);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,o=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&Jt(u),Vn(s),a.resolving=!1,on()}}return r}function Qn(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.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(i){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");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},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();Oi.hasOwnProperty(e)&&!Si.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(ji(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}(),Fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Li=/([^\#-~ |!])/g;function ji(t){return t.replace(/&/g,"&").replace(Fi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Li,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function Ni(t,e){var n=null;try{ki=ki||new vi(t);var i=e?String(e):"";n=ki.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ki.getInertBodyElement(i)}while(i!==o);var a=new Mi,s=a.sanitizeChildren(Bi(n)||n);return yi()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=Bi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Bi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Vi=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}({}),zi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Hi=/^url\(([^)]+)\)$/;function Ui(t){var e=Wi();return e?e.sanitize(Vi.HTML,t)||"":hi(t,"HTML")?pi(t):Ni(Cn(),Mn(t))}function qi(t){var e=Wi();return e?e.sanitize(Vi.URL,t)||"":hi(t,"URL")?pi(t):wi(Mn(t))}function Wi(){var t=ze();return t&&t[12]}function Gi(t){for(;Array.isArray(t);)t=t[0];return t}function Yi(t,e){return Gi(e[t+19])}function Ki(t,e){return Gi(e[t.index])}function Zi(t,e){return t.data[e+19]}function $i(t,e){return t[e+19]}function Xi(t,e){var n=e[t];return Te(n)?n:n[0]}function Qi(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ji(t){return 4==(4&t[2])}function tr(t){return 128==(128&t[2])}function er(t,e){return null===t||null==e?null:t[e]}function nr(t){t[18]=0}function ir(t,e){t.__ngContext__=e}function rr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function or(){throw new Error("Cannot mix multi providers and regular providers")}function ar(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var o=e.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}n=r+1}}function sr(t,e,n){for(var i=0;io?"":r[c+1].toLowerCase();var p=8&i?d:null;if(p&&-1!==ar(p,l,0)||2&i&&l!==d){if(cr(i))return!1;a=!0}}}}else{if(!a&&!cr(i)&&!cr(u))return!1;if(a&&cr(u))continue;a=!1,i=u|1&i}}return cr(i)||a}function cr(t){return 0==(1&t)}function dr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||cr(a)||(e+=fr(o,r),r=""),i=a,o=o||!cr(i);n++}return""!==r&&(e+=fr(o,r)),e}var gr={};function yr(t){var e=t[3];return Re(e)?e[3]:e}function vr(t){br(He(),ze(),cn()+t,Ke())}function br(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&mn(e,r,n)}else{var o=t.preOrderHooks;null!==o&&gn(e,o,0,n)}dn(n)}function _r(t,e){return t<<17|e<<2}function wr(t){return t>>17&32767}function Cr(t){return 2|t}function xr(t){return(131068&t)>>2}function kr(t,e){return-131069&t|e<<2}function Sr(t){return 1|t}function Dr(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i>1==-1){for(var i=9;i19&&br(t,e,0,Ke()),n(i,r)}finally{dn(o)}}function Mr(t,e,n){if(Me(e))for(var i=e.directiveEnd,r=e.directiveStart;r0&&(t[n-1][4]=i[4]);var o=ce(t,9+e);_o(i[1],i,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function xo(t,e){if(!(256&e[2])){var n=e[11];xn(n)&&n.destroyNode&&Fo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return So(t[1],t);for(;e;){var n=null;if(Te(e))n=e[13];else{var i=e[9];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&So(e[1],e),e=ko(e,t);null===e&&(e=t),Te(e)&&So(e[1],e),n=e&&e[4]}e=n}}(e)}}function ko(t,e){var n;return Te(t)&&(n=t[6])&&2===n.type?yo(n,t):t[3]===e?null:t[3]}function So(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&xn(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Re(e[3])){i!==e[3]&&wo(i,e);var r=e[5];null!==r&&r.detachView(t)}}}function Do(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?vo(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ki(e,n).parentNode;if(2&i.flags){var o=t.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==ge.ShadowDom&&a!==ge.Native)return null}return Ki(i,n)}function Eo(t,e,n,i){xn(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Ao(t,e,n){xn(t)?t.appendChild(e,n):e.appendChild(n)}function Oo(t,e,n,i){null!==i?Eo(t,e,n,i):Ao(t,e,n)}function Io(t,e){return xn(t)?t.parentNode(e):e.parentNode}function Po(t,e){if(2===t.type){var n=yo(t,e);return null===n?null:Ro(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ki(t,e):null}function To(t,e,n,i){var r=Do(t,i,e);if(null!=r){var o=e[11],a=Po(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}xo(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,i;e=this._lView[1],i=t,co(n=this._lView).push(i),e.firstCreatePass&&po(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){oo(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){ao(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){Ze(!0);try{ao(t,e,n)}finally{Ze(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,Fo(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),Uo=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return r(e,t),e.prototype.detectChanges=function(){so(this._view)},e.prototype.checkNoChanges=function(){!function(t){Ze(!0);try{so(t)}finally{Ze(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Ho);function qo(t,e,n){return Bo||(Bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(t)),new Bo(Ki(e,n))}function Wo(t,e,n,i){return Vo||(Vo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._declarationView=e,r._declarationTContainer=n,r.elementRef=i,r}return r(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Ar(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(e)),Ir(e,n,t);var r=new Ho(n);return r._tViewNode=n[6],r},e}(t)),0===n.type?new Vo(i,n,qo(e,n,i)):null}function Go(t,e,n,i){var o;zo||(zo=function(t){function n(e,n,i){var r=t.call(this)||this;return r._lContainer=e,r._hostTNode=n,r._hostView=i,r}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return qo(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new ti(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=Wn(this._hostTNode,this._hostView),e=Rn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Tn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return In(t)&&null!=n?new ti(n,e):new ti(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-9},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},n.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(ae,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s},n.prototype.insert=function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Re(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new zo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=9+i,o=n.length;i>0&&(n[r-1][4]=e),i ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Et(s)))}r="{"+o.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+t.replace(Zt,"\n ")}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Qt(r)}},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(Et(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var i=this;if(!(t=Pt(t)))return!1;var r=wt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=wt(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{ue(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,r=e.providers;ue(r,(function(t){return i.processProvider(t,n,r||Jo)}))},c=0;c0){var n=de(e,"?");throw new Error("Can't resolve all parameters for "+Et(t)+": ("+n.join(", ")+").")}var i=function(t){var e=t&&(t[Ct]||t[St]||t[kt]&&t[kt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function oa(t,e,n){var i,r=void 0;if(ua(t))return ra(Pt(t));if(sa(t))r=function(){return Pt(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,u(re(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return ee(Pt(t.useExisting))};else{var o=Pt(t&&(t.useClass||t.provide));if(o||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Et(t)+"'"+i)}(e,n,t),!function(t){return!!t.deps}(t))return ra(o);r=function(){return new(o.bind.apply(o,u([void 0],re(t.deps))))}}return r}function aa(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function sa(t){return null!==t&&"object"==typeof t&&$t in t}function ua(t){return"function"==typeof t}var la=function(t,e,n){return na({name:n},e,t,n)},ca=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?la(t,e,""):la(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=Kt,t.NULL=new oe,t.\u0275prov=yt({token:t,providedIn:"any",factory:function(){return ee(Yt)}}),t.__NG_ELEMENT_ID__=-1,t}(),da=new Gt("AnalyzeForEntryComponents"),pa=new Map,ha=new Set;function fa(t){return"string"==typeof t?t:t.text()}function ma(t,e){for(var n=t.styles,i=t.classes,r=0,o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=Ka(i,e,o,!1);var v=n.listen(h.name||f,r,o);c.push(o,v),l&&l.push(r,g,m,m+1)}}else o=Ka(i,e,o,!0),f.addEventListener(r,o,a),c.push(o),l&&l.push(r,g,m,a)}var b,_=i.outputs;if(d&&null!==_&&(b=_[r])){var w=b.length;if(w)for(var C=0;C0;)e=e[15],t--;return e}(t,Be.lFrame.contextLView))[8]}(t)}function $a(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r=0}var rs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function os(t){return t.substring(rs.key,rs.keyEnd)}function as(t,e){var n=rs.textEnd;return n===e?-1:(e=rs.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,rs.key=e,n),ss(t,e,n))}function ss(t,e,n){for(;e=0;n=as(e,n))pe(t,os(e),!0)}function ds(t,e,n,i){var r,o=ze(),a=He(),s=Je(2);if(a.firstUpdatePass&&hs(a,t,s,i),e!==gr&&ka(o,s,e)){var u=void 0;null==n&&(u=null===(r=Be.lFrame)?null:r.currentSanitizer)&&(n=u),gs(a,a.data[cn()+19],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Et(pi(t)))),t}(e,n),i,s)}}function ps(t,e){return e>=t.expandoStartIndex}function hs(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[cn()+19],a=ps(t,n);bs(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=function(t){var e=Be.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ms(n=fs(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=fs(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==xr(i))return t[wr(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=ms(s=fs(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):l=n,r)if(0!==u){var d=wr(t[s+1]);t[i+1]=_r(d,s),0!==d&&(t[d+1]=kr(t[d+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=_r(s,0),0!==s&&(t[s+1]=kr(t[s+1],i)),s=i;else t[i+1]=_r(u,0),0===s?s=i:t[u+1]=kr(t[u+1],i),u=i;c&&(t[i+1]=Cr(t[i+1])),ns(t,l,i,!0),ns(t,l,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&fe(o,e)>=0&&(n[i+1]=Sr(n[i+1]))}(e,l,t,i,o),a=_r(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function fs(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=t[r],l=Array.isArray(u),c=l?u[1]:u,d=null===c,p=n[r+1];p===gr&&(p=d?es:void 0);var h=d?he(p,i):c===i?p:void 0;if(l&&!vs(h)&&(h=he(u,i)),vs(h)&&(s=h,a))return s;var f=t[r+1];r=a?wr(f):xr(f)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=he(m,i))}return s}function vs(t){return void 0!==t}function bs(t,e){return 0!=(t.flags&(e?16:32))}function _s(t,e){void 0===e&&(e="");var n=ze(),i=He(),r=t+19,o=i.firstCreatePass?Or(i,n[6],t,3,null,null):i.data[r],a=n[r]=function(t,e){return xn(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);To(i,n,a,o),We(o,!1)}function ws(t){return Cs("",t,""),ws}function Cs(t,e,n){var i=ze(),r=Ea(i,t,e,n);return r!==gr&&go(i,cn(),r),Cs}function xs(t,e,n,i,r){var o=ze(),a=function(t,e,n,i,r,o){var a=Sa(t,Xe(),n,r);return Je(2),a?e+Mn(n)+i+Mn(r)+o:gr}(o,t,e,n,i,r);return a!==gr&&go(o,cn(),a),xs}function ks(t,e,n){var i=ze();if(ka(i,Qe(),e)){var r=cn();zr(He(),i,r,t,e,n,!0)}return ks}function Ss(t,e,n){var i=ze();if(ka(i,Qe(),e)){var r=cn();zr(He(),i,r,t,e,n,!0,ho)}return Ss}function Ds(t,e){var n=Qi(t)[1],i=n.data.length-1;fn(n,{directiveStart:i,directiveEnd:i+1})}function Es(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(je(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=As(t.inputs),o.declaredInputs=As(t.declaredInputs),o.outputs=As(t.outputs);var a=r.hostBindings;a&&Ps(t,a);var s=r.viewQuery,u=r.contentQueries;s&&Os(t,s),u&&Is(t,u),gt(t.inputs,r.inputs),gt(t.declaredInputs,r.declaredInputs),gt(t.outputs,r.outputs),o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=t.afterContentInit||r.afterContentInit,o.afterViewChecked=t.afterViewChecked||r.afterViewChecked,o.afterViewInit=t.afterViewInit||r.afterViewInit,o.doCheck=t.doCheck||r.doCheck,o.onDestroy=t.onDestroy||r.onDestroy,o.onInit=t.onInit||r.onInit}var l=r.features;if(l)for(var c=0;c=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=An(r.hostAttrs,n=An(n,r.hostAttrs))}}(i)}function As(t){return t===ve?{}:t===be?[]:t}function Os(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Is(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ps(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Ts=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Rs(){return Ms.ngInherit=!0,Ms}function Ms(t){t.type.prototype.ngOnChanges&&(t.setInput=Fs,t.onChanges=function(){var t=Ls(this),e=t&&t.current;if(e){var n=t.previous;if(n===ve)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function Fs(t,e,n,i){var r=Ls(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ve,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ts(u&&u.currentValue,e,a===ve),t[i]=e}function Ls(t){return t.__ngSimpleChanges__||null}function js(t,e,n,i,r){if(t=Pt(t),Array.isArray(t))for(var o=0;o>16;if(t.useClass||ua(t)){var f=(t.useClass||t).prototype.ngOnDestroy;f&&(a.destroyHooks||(a.destroyHooks=[])).push(e.length,f)}if(ua(t)||!t.multi){var m=new _n(l,r,Ia),g=Bs(u,e,r?d:d+h,p);-1==g?(Gn(Hn(c,s),a,u),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(m),s.push(m)):(n[g]=m,s[g]=m)}else{var y=Bs(u,e,d+h,p),v=Bs(u,e,d,d+h),b=v>=0&&n[v];r&&!b||!r&&!(y>=0&&n[y])?(Gn(Hn(c,s),a,u),m=function(t,e,n,i,r){var o=new _n(t,n,Ia);return o.multi=[],o.index=e,o.componentProviders=0,Ns(o,r,i&&!n),o}(r?zs:Vs,n.length,r,i,l),!r&&b&&(n[v].providerFactory=m),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(m),s.push(m)):Ns(n[r?v:y],l,!r&&i),!r&&i&&b&&n[v].componentProviders++}}}function Ns(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Bs(t,e,n,i){for(var r=n;r null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Fu=new Map,Lu={provide:Ys,useClass:xu,deps:[ae]},ju=function(t){function e(e,n){var i=t.call(this)||this;i._parent=n,i._bootstrapComponents=[],i.injector=i,i.destroyCbs=[];var r=Pe(e),o=e[Ut]||null;return o&&Mu(o),i._bootstrapComponents=Nn(r.bootstrap),i._r3Injector=na(e,n,[{provide:ae,useValue:i},Lu],Et(e)),i.instance=i.get(e),i}return r(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=ca.THROW_IF_NOT_FOUND),void 0===n&&(n=ft.Default),t===ca||t===ae||t===Yt?this:this._r3Injector.get(t,e,n)},Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Ys)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ae),Nu=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Pe(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+Et(e)+" vs "+Et(e.name))})(n,Fu.get(n),e),Fu.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(e),n}return r(e,t),e.prototype.create=function(t){return new ju(this.moduleType,t)},e}(se);function Bu(t,e,n){var i=$e()+t,r=ze();return r[i]===gr?Ca(r,i,n?e.call(n):e()):xa(r,i)}function Vu(t,e,n,i){return Hu(ze(),$e(),t,e,n,i)}function zu(t,e,n,i,r){return Uu(ze(),$e(),t,e,n,i,r)}function Hu(t,e,n,i,r,o){var a=e+n;return ka(t,a,r)?Ca(t,a+1,o?i.call(o,r):i(r)):xa(t,a+1)}function Uu(t,e,n,i,r,o,a){var s=e+n;return Sa(t,s,r,o)?Ca(t,s+2,a?i.call(a,r,o):i(r,o)):xa(t,s+2)}function qu(t,e){var n,i=He(),r=t+19;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '"+t+"' could not be found!")}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=(n.factory||(n.factory=Ie(n.type)))();return function(t,e,n,i){var r=n+19;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,ze(),t,o),o}function Wu(t,e,n){var i=ze(),r=$i(i,t);return Ku(i,Yu(i,t)?Hu(i,$e(),e,r.transform,n,r):r.transform(n))}function Gu(t,e,n,i){var r=ze(),o=$i(r,t);return Ku(r,Yu(r,t)?Uu(r,$e(),e,o.transform,n,i,o):o.transform(n,i))}function Yu(t,e){return t[1].data[e+19].pure}function Ku(t,e){return ba.isWrapped(e)&&(e=ba.unwrap(e),t[Xe()]=gr),e}var Zu=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,i){var r,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),i&&(a=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var s=t.prototype.subscribe.call(this,r,o,a);return e instanceof h&&e.add(s),s},e}(P);function $u(){return this._results[ya()]()}var Xu=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Zu,this.length=0;var e=ya(),n=t.prototype;n[e]||(n[e]=$u)}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.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0)r.push(s[u/2]);else{for(var c=a[u+1],d=n[-l],p=9;p0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,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.\u0275fac=function(e){return new(e||t)(ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),$l=function(){function t(){this._applications=new Map,Xl.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),Xl.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Xl=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ql=function(t,e,n){var i=new Nu(n);if(0===pa.size)return Promise.resolve(i);var r,o,a=(r=t.get(jl,[]).concat(e).map((function(t){return t.providers})),o=[],r.forEach((function(t){return t&&o.push.apply(o,u(t))})),o);if(0===a.length)return Promise.resolve(i);var s=function(){var t=Nt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),l=ca.create({providers:a}).get(s.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=i.then(fa))}return e}return pa.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),r.push(i(e).then((function(i){a[s+n]=i,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(r).then((function(){return function(t){ha.delete(t)}(n)}));e.push(u)})),pa=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},Jl=new Gt("AllowMultipleToken"),tc=function(){return function(t,e){this.name=t,this.token=e}}();function ec(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new Gt(i);return function(e){void 0===e&&(e=[]);var o=nc();if(!o||o.injector.get(Jl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:$o,useValue:"platform"});!function(t){if(Yl&&!Yl.destroyed&&!Yl.injector.get(Jl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yl=t.get(ic);var e=t.get(xl,null);e&&e.forEach((function(t){return t()}))}(ca.create({providers:a,name:i}))}return function(t){var e=nc();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}(r)}}function nc(){return Yl&&!Yl.destroyed?Yl:null}var ic=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i,r=this,o=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new Kl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:yi(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run((function(){var e=ca.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(oi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return ac(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var o=((a=n.injector.get(bl)).runInitializers(),a.donePromise.then((function(){return Mu(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return Ha(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(i,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=rc({},e);return Ql(this.injector,i,t).then((function(t){return n.bootstrapModuleFactory(t,i)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(oc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Et(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.\u0275fac=function(e){return new(e||t)(ee(ca))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function rc(t,e){return Array.isArray(e)?e.reduce(rc,t):o(o({},t),e)}var oc=function(){function t(t,e,n,i,r,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=yi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new D((function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){t.next(a._stable),t.complete()}))})),u=new D((function(t){var e;a._zone.runOutsideAngular((function(){e=a._zone.onStable.subscribe((function(){Vl.assertNotInAngularZone(),Bl((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Vl.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=tt(s,u.pipe((function(t){return et()((e=st,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,ot);return i.source=t,i.subjectFactory=n,i})(t));var e})))}return t.prototype.bootstrap=function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Ws?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ae),o=n.create(ca.NULL,[],e||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(Zl,null);return a&&o.injector.get($l).registerApplication(o.location.nativeElement,a),this._loadComponent(o),yi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,i,r=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=a(this._views),s=o.next();!s.done;s=o.next())s.value.detectChanges()}catch(c){t={error:c}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var u=a(this._views),l=u.next();!l.done;l=u.next())l.value.checkNoChanges()}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(p){this._zone.runOutsideAngular((function(){return r._exceptionHandler.handleError(p)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;ac(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ac(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.\u0275fac=function(e){return new(e||t)(ee(Vl),ee(Dl),ee(ca),ee(oi),ee(Ys),ee(bl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function ac(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var sc=function(){return function(){}}(),uc=function(){return function(){}}(),lc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},cc=function(){function t(t,e){this._compiler=t,this._config=e||lc}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=s(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then((function(t){return t[o]})).then((function(t){return dc(t,r,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+o]})).then((function(t){return dc(t,i,r)}))},t.\u0275fac=function(e){return new(e||t)(ee(Ll),ee(uc,8))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function dc(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var pc=ec(null,"core",[{provide:kl,useValue:"unknown"},{provide:ic,deps:[ca]},{provide:$l,deps:[]},{provide:Dl,deps:[]}]),hc=[{provide:oc,useClass:oc,deps:[Vl,Dl,ca,oi,Ys,bl]},{provide:Su,deps:[Vl],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:bl,useClass:bl,deps:[[new dt,vl]]},{provide:Ll,useClass:Ll,deps:[]},wl,{provide:hu,useFactory:function(){return gu},deps:[]},{provide:fu,useFactory:function(){return yu},deps:[]},{provide:El,useFactory:function(t){return Mu(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new ct(El),new dt,new ht]]},{provide:Al,useValue:"USD"}],fc=function(){function t(t){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)(ee(oc))},providers:hc}),t}(),mc=null;function gc(){return mc}var yc=function(){return function(){}}(),vc=new Gt("DocumentToken"),bc=function(){function t(){}return t.\u0275prov=yt({factory:_c,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function _c(){return ee(Cc)}var wc=new Gt("Location Initialized"),Cc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this.location=gc().getLocation(),this._history=gc().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return gc().getBaseHref(this._doc)},e.prototype.onPopState=function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){xc()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){xc()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=yt({factory:kc,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(ee(vc))},e}(bc);function xc(){return!!window.history.pushState}function kc(){return new Cc(ee(vc))}function Sc(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Dc(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Ec(t){return t&&"?"!==t[0]?"?"+t:t}var Ac=function(){function t(){}return t.\u0275prov=yt({factory:Oc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function Oc(t){var e=ee(vc).location;return new Pc(ee(bc),e&&e.origin||"")}var Ic=new Gt("appBaseHref"),Pc=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._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 i._baseHref=n,i}return r(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(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ee(bc),ee(Ic,8))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Ac),Tc=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return r(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Sc(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ee(bc),ee(Ic,8))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Ac),Rc=function(){function t(t,e){var n=this;this._subject=new Zu,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Dc(Fc(i)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+Ec(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Fc(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ec(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ec(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=Ec,t.joinWithSlash=Sc,t.stripTrailingSlash=Dc,t.\u0275prov=yt({factory:Mc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Ac),ee(bc))},t}();function Mc(){return new Rc(ee(Ac),ee(bc))}function Fc(t){return t.replace(/\/index.html$/,"")}var Lc={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},jc=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),Nc=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}({}),Bc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Vc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),zc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Hc=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 Uc(t,e){return Zc(Pu(t)[Ru.DateFormat],e)}function qc(t,e){return Zc(Pu(t)[Ru.TimeFormat],e)}function Wc(t,e){return Zc(Pu(t)[Ru.DateTimeFormat],e)}function Gc(t,e){var n=Pu(t),i=n[Ru.NumberSymbols][e];if(void 0===i){if(e===Hc.CurrencyDecimal)return n[Ru.NumberSymbols][Hc.Decimal];if(e===Hc.CurrencyGroup)return n[Ru.NumberSymbols][Hc.Group]}return i}function Yc(t,e){return Pu(t)[Ru.NumberFormats][e]}function Kc(t){if(!t[Ru.ExtraData])throw new Error('Missing extra locale data for the locale "'+t[Ru.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Zc(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 $c(t){var e=s(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Xc=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},Jc=/((?:[^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]*)/,td=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),ed=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}({}),nd=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 id(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function rd(t,e,n,i,r){void 0===n&&(n="-");var o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=n));for(var a=String(t);a.length0||u>-n)&&(u+=n),t===ed.Hours)0===u&&-12===n&&(u=12);else if(t===ed.FractionalSeconds)return s=e,rd(u,3).substr(0,s);var l=Gc(a,Hc.MinusSign);return rd(u,e,l,i,r)}}function ad(t,e,n,i){return void 0===n&&(n=Bc.Format),void 0===i&&(i=!1),function(r,o){return function(t,e,n,i,r,o){switch(n){case nd.Months:return function(t,e,n){var i=Pu(t),r=Zc([i[Ru.MonthsFormat],i[Ru.MonthsStandalone]],e);return Zc(r,n)}(e,r,i)[t.getMonth()];case nd.Days:return function(t,e,n){var i=Pu(t),r=Zc([i[Ru.DaysFormat],i[Ru.DaysStandalone]],e);return Zc(r,n)}(e,r,i)[t.getDay()];case nd.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=Pu(t);return Kc(e),(e[Ru.ExtraData][2]||[]).map((function(t){return"string"==typeof t?$c(t):[$c(t[0]),$c(t[1])]}))}(e),c=function(t,e,n){var i=Pu(t);Kc(i);var r=Zc([i[Ru.ExtraData][0],i[Ru.ExtraData][1]],e)||[];return Zc(r,n)||[]}(e,r,i);if(l.forEach((function(t,e){if(Array.isArray(t)){var n=t[0],i=t[1],r=i.hours;a>=n.hours&&s>=n.minutes&&(a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case td.Short:return(r>=0?"+":"")+rd(a,2,o)+rd(Math.abs(r%60),2,o);case td.ShortGMT:return"GMT"+(r>=0?"+":"")+rd(a,1,o);case td.Long:return"GMT"+(r>=0?"+":"")+rd(a,2,o)+":"+rd(Math.abs(r%60),2,o);case td.Extended:return 0===i?"Z":(r>=0?"+":"")+rd(a,2,o)+":"+rd(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}function ud(t,e){return void 0===e&&(e=!1),function(n,i){var r,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+u)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,0,1).getDay(),new Date(a,0,1+(s<=4?4:11)-s)),d=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-c.getTime();r=1+Math.round(d/6048e5)}return rd(r,t,Gc(i,Hc.MinusSign))}}var ld={};function cd(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function dd(t){return t instanceof Date&&!isNaN(t.valueOf())}var pd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function hd(t,e,n,i,r,o,a){void 0===a&&(a=!1);var s="",u=!1;if(isFinite(t)){var l=function(t){var e,n,i,r,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;"0"===a.charAt(i);i++);if(i===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(a.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var c=e.minInt,d=e.minFrac,p=e.maxFrac;if(o){var h=o.match(pd);if(null===h)throw new Error(o+" is not a valid digit info");var f=h[1],m=h[3],g=h[5];null!=f&&(c=md(f)),null!=m&&(d=md(m)),null!=g?p=md(g):null!=m&&d>p&&(p=d)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(e,r),n),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=p?i.pop():d=!1),e>=10?1:0}),0);h&&(i.unshift(h),t.integerLen++)}(l,d,p);var y=l.digits,v=l.integerLen,b=l.exponent,_=[];for(u=y.every((function(t){return!t}));v0?_=y.splice(v,y.length):(_=y,y=[0]);var w=[];for(y.length>=e.lgSize&&w.unshift(y.splice(-e.lgSize,y.length).join(""));y.length>e.gSize;)w.unshift(y.splice(-e.gSize,y.length).join(""));y.length&&w.unshift(y.join("")),s=w.join(Gc(n,i)),_.length&&(s+=Gc(n,r)+_.join("")),b&&(s+=Gc(n,Hc.Exponential)+"+"+b)}else s=Gc(n,Hc.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function fd(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var vd=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return r(e,t),e.prototype.getPluralCategory=function(t,e){switch(function(t){return Pu(t)[Ru.PluralCase]}(e||this.locale)(t)){case Nc.Zero:return"zero";case Nc.One:return"one";case Nc.Two:return"two";case Nc.Few:return"few";case Nc.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(ee(El))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(gd);function bd(t,e){var n,i;e=encodeURIComponent(e);try{for(var r=a(t.split(";")),o=r.next();!o.done;o=r.next()){var u=o.value,l=u.indexOf("="),c=s(-1==l?[u,""]:[u.slice(0,l),u.slice(l+1)],2),d=c[1];if(c[0].trim()===e)return decodeURIComponent(d)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}var _d=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(_a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Et(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(Ia(hu),Ia(fu),Ia(Ks),Ia(Qs))},t.\u0275dir=Ee({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),wd=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ae);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(Ys)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.\u0275fac=function(e){return new(e||t)(Ia(_u))},t.\u0275dir=Ee({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Rs()]}),t}(),Cd=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),xd=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,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){yi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((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,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Cd(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new kd(t,o);n.push(a)}else null==r?e._viewContainer.remove(null===i?void 0:i):null!==i&&(o=e._viewContainer.get(i),e._viewContainer.move(o,r),a=new kd(t,o),n.push(a))}));for(var i=0;i-1&&(e.splice(n,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Tp.hasOwnProperty(e)&&(e=Tp[e]))}return Pp[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ip.forEach((function(i){i!=n&&(0,Rp[i])(t)&&(e+=i+".")})),e+=n},e.eventCallback=function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(ee(vc))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(mp),Fp=function(){function t(){}return t.\u0275prov=yt({factory:function(){return ee(Lp)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),Lp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Vi.NONE:return e;case Vi.HTML:return hi(e,"HTML")?pi(e):Ni(this._doc,String(e));case Vi.STYLE:return hi(e,"Style")?pi(e):function(t){if(!(t=String(t).trim()))return"";var e=t.match(Hi);return e&&wi(e[1])===e[1]||t.match(zi)&&function(t){for(var e=!0,n=!0,i=0;i0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,u(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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}(),Kp=function(){function t(){}return t.prototype.encodeKey=function(t){return Zp(t)},t.prototype.encodeValue=function(t){return Zp(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Zp(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 $p=function(){function t(t){var e,n,i,r=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Kp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),r=s(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],u=i.get(o)||[];u.push(a),i.set(o,u)})),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];r.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("&")})).filter((function(t){return""!==t})).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 i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function Xp(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qp(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jp(t){return"undefined"!=typeof FormData&&t instanceof FormData}var th=function(){function t(t,e,n,i){var r;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)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Yp),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),ih=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=eh.ResponseHeader,n}return r(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}(nh),rh=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=eh.Response,n.body=void 0!==e.body?e.body:null,n}return r(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}(nh),oh=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 r(e,t),e}(nh);function ah(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var sh=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof th)i=t;else{var o;o=n.headers instanceof Yp?n.headers:new Yp(n.headers);var a=void 0;n.params&&(a=n.params instanceof $p?n.params:new $p({fromObject:n.params})),i=new th(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=Vp(i).pipe(zp((function(t){return r.handler.handle(t)})));if(t instanceof th||"events"===n.observe)return s;var u=s.pipe(Hp((function(t){return t instanceof rh})));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(U((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 u.pipe(U((function(t){return t.body})))}case"response":return u;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 $p).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,ah(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,ah(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,ah(n,e))},t.\u0275fac=function(e){return new(e||t)(ee(Wp))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),uh=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}(),lh=new Gt("HTTP_INTERCEPTORS"),ch=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),dh=/^\)\]\}',?\n/,ph=function(){return function(){}}(),hh=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),fh=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 D((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Yp(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new ih({headers:r,status:e,statusText:n,url:o})},l=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var d=l;l=l.replace(dh,"");try{l=""!==l?JSON.parse(l):null}catch(p){l=d,c&&(c=!1,l={error:p,text:l})}}c?(n.next(new rh({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new oh({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,r=new oh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},d=!1,p=function(e){d||(n.next(u()),d=!0);var r={type:eh.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},h=function(t){var e={type:eh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",l),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",p),null!==a&&i.upload&&i.upload.addEventListener("progress",h)),i.send(a),n.next({type:eh.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),t.reportProgress&&(i.removeEventListener("progress",p),null!==a&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}}))},t.\u0275fac=function(e){return new(e||t)(ee(ph))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),mh=new Gt("XSRF_COOKIE_NAME"),gh=new Gt("XSRF_HEADER_NAME"),yh=function(){return function(){}}(),vh=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=bd(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(ee(vc),ee(kl),ee(mh))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),bh=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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(ee(yh),ee(gh))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),_h=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(lh,[]);this.chain=e.reduceRight((function(t,e){return new uh(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(ee(Gp),ee(ca))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),wh=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:bh,useClass:ch}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:mh,useValue:t.cookieName}:[],t.headerName?{provide:gh,useValue:t.headerName}:[]]}},t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[bh,{provide:lh,useExisting:bh,multi:!0},{provide:yh,useClass:vh},{provide:mh,useValue:"XSRF-TOKEN"},{provide:gh,useValue:"X-XSRF-TOKEN"}]}),t}(),Ch=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[sh,{provide:Wp,useClass:_h},fh,{provide:Gp,useExisting:fh},hh,{provide:ph,useExisting:hh}],imports:[[wh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),xh=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r(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 A;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(P),kh=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Sh={};function Dh(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(t?Hp((function(e,n){return t(e,n,i)})):X,Mh(1),n?zh(e):jh((function(){return new kh})))}}function Wh(t){return function(e){var n=new Gh(t),i=e.lift(n);return n.caught=i}}var Gh=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Yh(t,this.selector,this.caught))},t}(),Yh=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle();var i=new M(this,void 0,void 0);this.add(i),z(this,n,void 0,void 0,i)}},e}(H);function Kh(t){return function(e){return 0===t?Ih():e.lift(new Zh(t))}}var Zh=function(){function t(t){if(this.total=t,this.total<0)throw new Rh}return t.prototype.call=function(t,e){return e.subscribe(new $h(t,this.total))},t}(),$h=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(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}(_);function Xh(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Hp((function(e,n){return t(e,n,i)})):X,Kh(1),n?zh(e):jh((function(){return new kh})))}}var Qh=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 Jh(t,this.predicate,this.thisArg,this.source))},t}(),Jh=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return r(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}(_);function tf(t,e){return"function"==typeof e?function(n){return n.pipe(tf((function(n,i){return Y(t(n,i)).pipe(U((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new ef(t))}}var ef=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new nf(t,this.project))},t}(),nf=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new M(this,void 0,void 0);this.destination.add(r),this.innerSubscription=z(this,t,e,n,r)},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,i,r){this.destination.next(e)},e}(H);function rf(){for(var t=[],e=0;e=2&&(n=!0),function(i){return i.lift(new sf(t,e,n))}}var sf=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 uf(t,this.accumulator,this.seed,this.hasSeed))},t}(),uf=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return r(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(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(_);function lf(t,e,n){return function(i){return i.lift(new cf(t,e,n))}}var cf=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new df(t,this.nextOrObserver,this.error,this.complete))},t}(),df=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._tapNext=x,o._tapError=x,o._tapComplete=x,o._tapError=i||x,o._tapComplete=r||x,d(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||x,o._tapError=n.error||x,o._tapComplete=n.complete||x),o}return r(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_),pf=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new hf(t,this.callback))},t}(),hf=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new h(n)),i}return r(e,t),e}(_),ff=function(){return function(t,e){this.id=t,this.url=e}}(),mf=function(t){function e(e,n,i,r){void 0===i&&(i="imperative"),void 0===r&&(r=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=i,o.restoredState=r,o}return r(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(ff),gf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.urlAfterRedirects=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(ff),yf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.reason=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(ff),vf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.error=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(ff),bf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),_f=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),wf=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=i,a.state=r,a.shouldActivate=o,a}return r(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(ff),Cf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),xf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),kf=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Sf=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Df=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ef=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Af=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Of=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),If=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Pf=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ja(0,"router-outlet")},directives:function(){return[Ng]},encapsulation:2}),t}(),Tf=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Rf(t){return new Tf(t)}function Mf(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ff(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length-1})):t===e}function Uf(t){return Array.prototype.concat.apply([],t)}function qf(t){return t.length>0?t[t.length-1]:null}function Wf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Gf(t){return Ua(t)?t:Ha(t)?Y(Promise.resolve(t)):Vp(t)}function Yf(t,e,n){return n?function(t,e){return zf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Xf(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))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 Hf(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!Xf(a=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Xf(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Xf(n.segments,a)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var Kf=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=Rf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return em.serialize(this)},t}(),Zf=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Wf(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 nm(this)},t}(),$f=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Rf(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return um(this)},t}();function Xf(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Qf(t,e){var n=[];return Wf(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),Wf(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Jf=function(){return function(){}}(),tm=function(){function t(){}return t.prototype.parse=function(t){var e=new hm(t);return new Kf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return nm(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return Wf(e.children,(function(e,n){"primary"!==n&&r.push(n+":"+t(e,!1))})),r.length>0?i+"("+r.join("//")+")":i}var o=Qf(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:[i+":"+t(n,!1)]}));return nm(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return rm(t)+"="+rm(e)})).join("&"):rm(t)+"="+rm(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),em=new tm;function nm(t){return t.segments.map((function(t){return um(t)})).join("/")}function im(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rm(t){return im(t).replace(/%3B/gi,";")}function om(t){return im(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function am(t){return decodeURIComponent(t)}function sm(t){return am(t.replace(/\+/g,"%20"))}function um(t){return""+om(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+om(t)+"="+om(e[t])})).join(""));var e}var lm=/^[^\/()?;=#]+/;function cm(t){var e=t.match(lm);return e?e[0]:""}var dm=/^[^=?&#]+/,pm=/^[^?&#]+/,hm=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 Zf([],{}):new Zf([],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.primary=new Zf(t,e)),n},t.prototype.parseSegment=function(){var t=cm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $f(am(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=cm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=cm(this.remaining);i&&this.capture(n=i)}t[am(e)]=am(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(dm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(pm);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var o=sm(n),a=sm(i);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=cm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Zf([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),fm=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=mm(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=mm(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=gm(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 gm(t,this._root).map((function(t){return t.value}))},t}();function mm(t,e){var n,i;if(t===e.value)return e;try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=mm(t,o.value);if(s)return s}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}function gm(t,e){var n,i;if(t===e.value)return[e];try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=gm(t,o.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return[]}var ym=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function vm(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var bm=function(t){function e(e,n){var i=t.call(this,e)||this;return i.snapshot=n,Sm(i,e),i}return r(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(fm);function _m(t,e){var n=function(t,e){var n=new xm([],{},{},"",{},"primary",e,null,t.root,-1,{});return new km("",new ym(n,[]))}(t,e),i=new xh([new $f("",{})]),r=new xh({}),o=new xh({}),a=new xh({}),s=new xh(""),u=new wm(i,r,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new bm(new ym(u,[]),n)}var wm=function(){function t(t,e,n,i,r,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(U((function(t){return Rf(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U((function(t){return Rf(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Cm(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce((function(t,e){return{params:o(o({},t.params),e.params),data:o(o({},t.data),e.data),resolve:o(o({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var xm=function(){function t(t,e,n,i,r,o,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,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=Rf(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Rf(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}(),km=function(t){function e(e,n){var i=t.call(this,n)||this;return i.url=e,Sm(i,n),i}return r(e,t),e.prototype.toString=function(){return Dm(this._root)},e}(fm);function Sm(t,e){e.value._routerState=t,e.children.forEach((function(e){return Sm(t,e)}))}function Dm(t){var e=t.children.length>0?" { "+t.children.map(Dm).join(", ")+" } ":"";return""+t.value+e}function Em(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,zf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),zf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Om(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==qf(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}(),Tm=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Rm(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Mm(t,e,n){if(t||(t=new Zf([],{})),0===t.segments.length&&t.hasChildren())return Fm(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=Rm(n[i]),u=i0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Bm(s,u,a))return o;i+=2}else{if(!Bm(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Zf([],((i={}).primary=t,i)):t;return new Kf(r,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(U((function(t){return new Zf([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)},t.prototype.expandChildren=function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Vp({});var o=[],a=[],s={};return Wf(n,(function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(t,e,l,u)).pipe(U((function(t){return s[r]=t})));"primary"===r?o.push(c):a.push(c)})),Vp.apply(null,o.concat(a)).pipe(Th(),qh(),U((function(){return s})))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,r,o){var a=this;return Vp.apply(void 0,u(n)).pipe(U((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(Wh((function(t){if(t instanceof qm)return Vp(null);throw t})))})),Th(),Xh((function(t){return!!t})),Wh((function(t,n){if(t instanceof kh||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,i,r))return Vp(new Zf([],{}));throw new qm(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,i,r,o,a){return Jm(i)!==o?Gm(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):Gm(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ym(o):this.lineralizeSegments(n,o).pipe(K((function(n){var o=new Zf(n,{});return r.expandSegment(t,o,e,n,i,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){var a=this,s=$m(e,i,r),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Gm(e);var d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ym(d):this.lineralizeSegments(i,d).pipe(K((function(i){return a.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(U((function(t){return n._loadedConfig=t,new Zf(i,{})}))):Vp(new Zf(i,{}));var s=$m(e,n,i),u=s.consumedSegments,l=s.lastChild;if(!s.matched)return Gm(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(K((function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return Qm(t,e,n)&&"primary"!==Jm(n)}))}(t,n,i)?{segmentGroup:Xm(new Zf(e,function(t,e){var n,i,r={};r.primary=e;try{for(var o=a(t),s=o.next();!s.done;s=o.next()){var u=s.value;""===u.path&&"primary"!==Jm(u)&&(r[Jm(u)]=new Zf([],{}))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r}(i,new Zf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Qm(t,e,n)}))}(t,n,i)?{segmentGroup:Xm(new Zf(t.segments,function(t,e,n,i){var r,s,u={};try{for(var l=a(n),c=l.next();!c.done;c=l.next()){var d=c.value;Qm(t,e,d)&&!i[Jm(d)]&&(u[Jm(d)]=new Zf([],{}))}}catch(p){r={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(r)throw r.error}}return o(o({},i),u)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,i),l=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&l.hasChildren()?r.expandChildren(n,i,l).pipe(U((function(t){return new Zf(u,t)}))):0===i.length&&0===d.length?Vp(new Zf(u,{})):r.expandSegment(n,l,i,d,"primary",!0).pipe(U((function(t){return new Zf(u.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var i=this;return e.children?Vp(new Lf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Vp(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?Y(r).pipe(U((function(i){var r,o=t.get(i);if(function(t){return t&&Hm(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!Hm(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Gf(r)}))).pipe(Th(),(i=function(t){return!0===t},function(t){return t.lift(new Qh(i,void 0,t))})):Vp(!0)}(t.injector,e,n).pipe(K((function(n){return n?i.configLoader.load(t.injector,e).pipe(U((function(t){return e._loadedConfig=t,t}))):function(t){return new D((function(e){return e.error(Mf("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Vp(new Lf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Vp(n);if(i.numberOfChildren>1||!i.children.primary)return Km(t.redirectTo);i=i.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Kf(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Wf(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return Wf(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)})),new Zf(o,a)},t.prototype.createSegments=function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i},t.prototype.findOrReturn=function(t,e){var n,i,r=0;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var u=s.value;if(u.path===t.path)return e.splice(r),u;r++}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return t},t}();function $m(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 i=(e.matcher||Ff)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Xm(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Zf(t.segments.concat(e.segments),e.children)}return t}function Qm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Jm(t){return t.outlet||"primary"}var tg=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),eg=function(){return function(t,e){this.component=t,this.route=e}}();function ng(t,e,n){var i=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(i?i.module.injector:n).get(t)}function ig(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=vm(e);return t.children.forEach((function(t){!function(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Xf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Xf(t.url,e.url)||!zf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Am(t,e)||!zf(t.queryParams,e.queryParams);case"paramsChange":default:return!Am(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new tg(i)):(o.data=a.data,o._resolvedData=a._resolvedData),ig(t,e,o.component?s?s.children:null:n,i,r),u&&r.canDeactivateChecks.push(new eg(s&&s.outlet&&s.outlet.component||null,a))}else a&&rg(e,s,r),r.canActivateChecks.push(new tg(i)),ig(t,null,o.component?s?s.children:null:n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),Wf(o,(function(t,e){return rg(t,n.getContext(e),r)})),r}function rg(t,e,n){var i=vm(t),r=t.value;Wf(i,(function(t,i){rg(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new eg(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var og=Symbol("INITIAL_VALUE");function ag(){return tf((function(t){return Dh.apply(void 0,u(t.map((function(t){return t.pipe(Kh(1),of(og))})))).pipe(af((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==og)return t;if(i===og&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||Um(i))return i}return t}),t)}),og),Hp((function(t){return t!==og})),U((function(t){return Um(t)?t:!0===t})),Kh(1))}))}function sg(t,e){return null!==t&&e&&e(new Af(t)),Vp(!0)}function ug(t,e){return null!==t&&e&&e(new Df(t)),Vp(!0)}function lg(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Vp(i.map((function(i){return Ph((function(){var r,o=ng(i,e,n);if(function(t){return t&&Hm(t.canActivate)}(o))r=Gf(o.canActivate(e,t));else{if(!Hm(o))throw new Error("Invalid CanActivate guard");r=Gf(o(e,t))}return r.pipe(Xh())}))}))).pipe(ag()):Vp(!0)}function cg(t,e,n){var i=e[e.length-1],r=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 Ph((function(){return Vp(e.guards.map((function(r){var o,a=ng(r,e.node,n);if(function(t){return t&&Hm(t.canActivateChild)}(a))o=Gf(a.canActivateChild(i,t));else{if(!Hm(a))throw new Error("Invalid CanActivateChild guard");o=Gf(a(i,t))}return o.pipe(Xh())}))).pipe(ag())}))}));return Vp(r).pipe(ag())}var dg=function(){return function(){}}(),pg=function(){function t(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=mg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new xm([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ym(n,e),r=new km(this.url,i);return this.inheritParamsAndData(r._root),Vp(r)}catch(a){return new D((function(t){return t.error(a)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,i=Cm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.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,i=this,r=Qf(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r},t.prototype.processSegment=function(t,e,n,i){var r,o;try{for(var s=a(t),u=s.next();!u.done;u=s.next()){var l=u.value;try{return this.processSegmentAgainstRoute(l,e,n,i)}catch(c){if(!(c instanceof dg))throw c}}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new dg},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new dg;if((t.outlet||"primary")!==i)throw new dg;var r,a=[],s=[];if("**"===t.path){var u=n.length>0?qf(n).parameters:{};r=new xm(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),i,t.component,t,hg(e),fg(e)+n.length,bg(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new dg;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||Ff)(n,t,e);if(!i)throw new dg;var r={};Wf(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?o(o({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),r=new xm(a,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),i,t.component,t,hg(e),fg(e)+a.length,bg(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),d=mg(e,a,s,c,this.relativeLinkResolution),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new ym(r,f)]}if(0===c.length&&0===h.length)return[new ym(r,[])];var m=this.processSegment(c,p,h,"primary");return[new ym(r,m)]},t}();function hg(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function fg(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 mg(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return gg(t,e,n)&&"primary"!==yg(n)}))}(t,n,i)){var s=new Zf(e,function(t,e,n,i){var r,o,s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var u=a(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&"primary"!==yg(c)){var d=new Zf([],{});d._sourceSegment=t,d._segmentIndexShift=e.length,s[yg(c)]=d}}}catch(p){r={error:p}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s}(t,e,i,new Zf(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return gg(t,e,n)}))}(t,n,i)){var u=new Zf(t.segments,function(t,e,n,i,r,s){var u,l,c={};try{for(var d=a(i),p=d.next();!p.done;p=d.next()){var h=p.value;if(gg(t,n,h)&&!r[yg(h)]){var f=new Zf([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[yg(h)]=f}}}catch(m){u={error:m}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(u)throw u.error}}return o(o({},r),c)}(t,e,n,i,t.children,r));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var l=new Zf(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function gg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function yg(t){return t.outlet||"primary"}function vg(t){return t.data||{}}function bg(t){return t.resolve||{}}function _g(t,e,n,i){var r=ng(t,e,i);return Gf(r.resolve?r.resolve(e,n):r(e,n))}function wg(t){return function(e){return e.pipe(tf((function(e){var n=t(e);return n?Y(n).pipe(U((function(){return e}))):Y([e])})))}}var Cg=function(){return function(){}}(),xg=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}(),kg=new Gt("ROUTES"),Sg=function(){function t(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(U((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Lf(Uf(r.injector.get(kg)).map(Vf),r)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Y(this.loader.load(t)):Gf(t()).pipe(K((function(t){return t instanceof se?Vp(t):Y(e.compiler.compileModuleAsync(t))})))},t}(),Dg=function(){return function(){}}(),Eg=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 Ag(t){throw t}function Og(t,e,n){return e.parse("/")}function Ig(t,e){return Vp(null)}var Pg=function(){function t(t,e,n,i,r,o,a,s){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new P,this.errorHandler=Ag,this.malformedUriErrorHandler=Og,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ig,afterPreactivation:Ig},this.urlHandlingStrategy=new Eg,this.routeReuseStrategy=new xg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(ae),this.console=r.get(Dl);var l=r.get(Vl);this.isNgZoneEnabled=l instanceof Vl,this.resetConfig(s),this.currentUrlTree=new Kf(new Zf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sg(o,a,(function(t){return u.triggerEvent(new kf(t))}),(function(t){return u.triggerEvent(new Sf(t))})),this.routerState=_m(this.currentUrlTree,this.rootComponentType),this.transitions=new xh({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",restoredState: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(Hp((function(t){return 0!==t.id})),U((function(t){return o(o({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),tf((function(t){var i,r,s,u,l=!1,c=!1;return Vp(t).pipe(lf((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?o(o({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),tf((function(t){var i,r,a,s,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Vp(t).pipe(tf((function(t){var i=e.transitions.getValue();return n.next(new mf(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Oh:[t]})),tf((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,r=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe(tf((function(t){return function(t,e,n,i,r){return new Zm(t,e,n,i,r).apply()}(i,r,a,t.extractedUrl,s).pipe(U((function(e){return o(o({},t),{urlAfterRedirects:e})})))})))}),lf((function(t){e.currentNavigation=o(o({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,r,a){return function(i){return i.pipe(K((function(i){return function(t,e,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new pg(t,e,n,i,r,o).recognize()}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),r,a).pipe(U((function(t){return o(o({},i),{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),lf((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),lf((function(t){var i=new bf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,d=t.restoredState,p=t.extras,h=new mf(t.id,e.serializeUrl(l),c,d);n.next(h);var f=_m(l,e.rootComponentType).snapshot;return Vp(o(o({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:o(o({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Oh})),wg((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})})),lf((function(t){var n=new _f(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),U((function(t){return o(o({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,ig(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(K((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?Vp(o(o({},n),{guardsResult:!0})):function(t,e,n,i){return Y(t).pipe(K((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Vp(o.map((function(o){var a,s=ng(o,e,r);if(function(t){return t&&Hm(t.canDeactivate)}(s))a=Gf(s.canDeactivate(t,e,n,i));else{if(!Hm(s))throw new Error("Invalid CanDeactivate guard");a=Gf(s(t,e,n,i))}return a.pipe(Xh())}))).pipe(ag()):Vp(!0)}(t.component,t.route,n,e,i)})),Xh((function(t){return!0!==t}),!0))}(u,i,r,t).pipe(K((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Y(e).pipe(zp((function(e){return Y([ug(e.route.parent,i),sg(e.route,i),cg(t,e.path,n),lg(t,e.route,n)]).pipe(Th(),Xh((function(t){return!0!==t}),!0))})),Xh((function(t){return!0!==t}),!0))}(i,s,t,e):Vp(n)})),U((function(t){return o(o({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),lf((function(t){if(Um(t.guardsResult)){var n=Mf('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),lf((function(t){var n=new wf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Hp((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new yf(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),wg((function(t){if(t.guards.canActivateChecks.length)return Vp(t).pipe(lf((function(t){var n=new Cf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(K((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?Y(r).pipe(zp((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Vp({});if(1===r.length){var o=r[0];return _g(t[o],e,n,i).pipe(U((function(t){var e;return(e={})[o]=t,e})))}var a={};return Y(r).pipe(K((function(r){return _g(t[r],e,n,i).pipe(U((function(t){return a[r]=t,t})))}))).pipe(qh(),U((function(){return a})))}(t._resolve,t,e,i).pipe(U((function(e){return t._resolvedData=e,t.data=o(o({},t.data),Cm(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return k(af(t,e),Mh(1),zh(e))(n)}:function(e){return k(af((function(e,n,i){return t(e,n,i+1)})),Mh(1))(e)}}((function(t,e){return t})),U((function(e){return t}))):Vp(t)})))}),lf((function(t){var n=new xf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),wg((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})})),U((function(t){var n,i,r,s=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(l=i.value)._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map((function(n){var r,o;try{for(var s=a(i.children),u=s.next();!u.done;u=s.next()){var l=u.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){r={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return t(e,n)}))}(e,n,i);return new ym(l,r)}var o=e.retrieve(n.value);if(o){var s=o.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 i=0;ir;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Tm(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Fm(a.segmentGroup,a.index,o.commands):Mm(a.segmentGroup,a.index,o.commands);return Im(a.segmentGroup,s,e,i,r)}(c,this.currentUrlTree,t,p,d)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),yi()&&this.isNgZoneEnabled&&!Vl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Um(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Uy=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(h)),qy=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Wy=function(t){function e(n,i){void 0===i&&(i=qy.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return r(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(qy),Gy=1,Yy={},Ky=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return r(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=(r=e.flush.bind(e,null),o=Gy++,Yy[o]=r,Promise.resolve().then((function(){return function(t){var e=Yy[t];e&&e()}(o)})),o)));var r,o},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(delete Yy[n],e.scheduled=void 0)},e}(Uy),Zy=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function iv(t,e,n){void 0===t&&(t=0);var i=-1;return nv(e)?i=Number(e)<1?1:Number(e):R(e)&&(n=e),R(n)||(n=Jy),new D((function(e){var r=nv(t)?t:+t-n.now();return n.schedule(rv,r,{index:0,period:i,subscriber:e})}))}function rv(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function ov(t,e){return void 0===e&&(e=Jy),n=function(){return iv(t,e)},function(t){return t.lift(new tv(n))};var n}function av(t){return function(e){return e.lift(new sv(t))}}var sv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new uv(t),i=z(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),uv=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(H);function lv(t,e){return new D(e?function(n){return e.schedule(cv,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function cv(t){t.subscriber.error(t.error)}var dv,pv=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Vp(this.value);case"E":return lv(this.error);case"C":return Ih()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{dv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(yB){dv=!1}var hv,fv,mv,gv=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!dv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=yt({factory:function(){return new t(ee(kl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(kl,8))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),yv=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),vv=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function bv(){if(hv)return hv;if("object"!=typeof document||!document)return hv=new Set(vv);var t=document.createElement("input");return hv=new Set(vv.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function _v(t){return function(){if(null==fv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fv=!0}}))}finally{fv=fv||!1}return fv}()?t:!!t.capture}var wv=function(){return function(){}}();function Cv(t){return t&&"function"==typeof t.connect}var xv=function(){function t(t,e,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new P,this.onChange=this.changed,e&&e.length&&(t?e.forEach((function(t){return i._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),kv=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,i=this._listeners;n0?e._scrolled.pipe(ov(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Vp()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Hp((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Hy(window.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=yt({factory:function(){return new t(ee(Vl),ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Vl),ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Dv=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[Fy,yv],Fy]}),t}(),Ev=function(){function t(t,e){var n=this;this._platform=t,e.runOutsideAngular((function(){n._change=t.isBrowser?tt(Hy(window,"resize"),Hy(window,"orientationchange")):Vp(),n._invalidateCache=n.change().subscribe((function(){return n._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(ov(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Av=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vy(-this._previousScrollPosition.left),t.style.top=Vy(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Ov(){return Error("Scroll strategy has already been attached.")}var Iv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw Ov();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Pv=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function Tv(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function Rv(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var Mv=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Ov();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Tv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Fv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Pv},this.close=function(t){return new Iv(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new Av(r._viewportRuler,r._document)},this.reposition=function(t){return new Mv(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.ngInjectableDef=yt({factory:function(){return new t(ee(Sv),ee(Ev),ee(Vl),ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Sv),ee(Ev),ee(Vl),ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Lv=function(){return function(t){if(this.scrollStrategy=new Pv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var e=0,n=Object.keys(t);e-1;i--)if(n[i]._keydownEventSubscriptions>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.ngInjectableDef=yt({factory:function(){return new t(ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Hv=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){for(var t=this._document.getElementsByClassName("cdk-overlay-container"),e=0;ep&&(p=g,d=m)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Wv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),d=this._subtractOverflows(e.height,u,l),p=c*d;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),u=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=o.width?l||-a:t.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-d/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)a=t.x,o=u.right-t.x;else{c=Math.min(u.right-t.x+u.left,t.x);var p=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-p/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Vy(n.height),i.top=Vy(n.top),i.bottom=Vy(n.bottom),i.width=Vy(n.width),i.left=Vy(n.left),i.right=Vy(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Vy(r)),o&&(i.maxWidth=Vy(o))}this._lastBoundingBoxSize=n,Wv(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){Wv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Wv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};if(this._hasExactPosition()){var i=this._viewportRuler.getViewportScrollPosition();Wv(n,this._getExactOverlayY(e,t,i)),Wv(n,this._getExactOverlayX(e,t,i))}else n.position="static";var r="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(r+="translateX("+o+"px) "),a&&(r+="translateY("+a+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Wv(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var i={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Vy(r.y),i},t.prototype._getExactOverlayX=function(t,e,n){var i={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Vy(r.x),i},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Rv(t,n),isOriginOutsideView:Tv(t,n),isOverlayClipped:Rv(e,n),isOverlayOutsideView:Tv(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(lf((function(t){return e._pressedLetters.push(t)})),rb(t),Hp((function(){return e._pressedLetters.length>0})),U((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Py(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof Xu?this._items.toArray():this._items},t}(),vb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(yb),bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return r(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(yb),_b=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(yB){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Cb(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),o=Cb(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||wb(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function wb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Cb(t){if(!wb(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var xb=function(){function t(t,e,n,i,r){var o=this;void 0===r&&(r=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe(t)},t}(),kb=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new xb(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=yt({factory:function(){return new t(ee(_b),ee(Vl),ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(_b),ee(Vl),ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Sb=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(kb),Ia(vc))},t.\u0275dir=Ee({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t}(),Db=new Gt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Eb=new Gt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ab=function(){function t(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e=this,n=[],i=1;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],a=r[2],s=r[3];e.push(k_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(k_(s,o))}(t,r,i)})):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:I_(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return __(n,t,e)})),options:I_(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map((function(t){e.currentTime=i;var o=__(n,t,e);return r=Math.max(r,e.currentTime),o}));return e.currentTime=r,{type:3,steps:o,options:I_(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return P_(r_(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=P_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return P_((n=n||r_(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:dy({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=dy(s)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(O_(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[i],d=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),d=!1),o=c.startTime),d&&(l[i]={startTime:o,endTime:r}),e.options&&(a=e.errors,s=e.options.params||{},(u=h_(t[i])).length&&u.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=t.steps.map((function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(O_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(O_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==p?1:d*r:o[r],s=a*m;e.currentTime=h+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)})),i},t.prototype.visitReference=function(t,e){return{type:8,animation:__(this,d_(t.animation),e),options:I_(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:I_(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:I_(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=s(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(S_,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,zb(e.collectedStyles,e.currentQuerySelector,{});var u=__(this,d_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:u,originalSelector:t.selector,options:I_(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:r_(t.timings,e.errors,!0);return{type:12,animation:__(this,d_(t.animation),e),timings:n,options:null}},t}(),A_=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function O_(t){return!Array.isArray(t)&&"object"==typeof t}function I_(t){var e;return t?(t=o_(t)).params&&(t.params=(e=t.params)?o_(e):null):t={},t}function P_(t,e,n){return{duration:t,delay:e,easing:n}}function T_(t,e,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var R_=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,u(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),M_=new RegExp(":enter","g"),F_=new RegExp(":leave","g");function L_(t,e,n,i,r,o,a,s,u,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new j_).buildKeyframes(t,e,n,i,r,o,a,s,u,l)}var j_=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,a,s,u,l){void 0===l&&(l=[]),u=u||new R_;var c=new B_(t,e,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),__(this,n,c);var d=c.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(a).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,c.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[T_(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?n_(n.duration):null,o=null!=n.delay?n_(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),__(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=N_);var a=n_(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return __(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?n_(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),__(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return r_(e.params?f_(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?n_(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=N_);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(u=s.currentTimeline),__(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;__(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)},t}(),N_={},B_=function(){function t(t,e,n,i,r,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=N_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new V_(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=n_(i.duration)),null!=i.delay&&(r.delay=n_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=f_(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=N_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new z_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(M_,"."+this._enterClassName)).replace(F_,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,u(s))}return r||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),V_=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):a_(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=f_(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=a_(o,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=a/t.duration),r.push(s)}));var o=e.size?m_(e.values()):[],a=n.size?m_(n.values()):[];if(i){var s=r[0],u=o_(s);s.offset=0,u.offset=1,r=[s,u]}return T_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)},t}(),z_=function(t){function e(e,n,i,r,o,a,s){void 0===s&&(s=!1);var u=t.call(this,e,n,a.delay)||this;return u.element=n,u.keyframes=i,u.preStyleProps=r,u.postStyleProps=o,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=a_(t[0],!1);u.offset=0,o.push(u);var l=a_(t[0],!1);l.offset=H_(s),o.push(l);for(var c=t.length-1,d=1;d<=c;d++){var p=a_(t[d],!1);p.offset=H_((n+p.offset*i)/a),o.push(p)}i=a,n=0,r="",t=o}return T_(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(V_);function H_(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var U_=function(){return function(){}}(),q_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return y_(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(W_[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(U_),W_=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function G_(t,e,n,i,r,o,a,s,u,l,c,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:p}}var Y_={},K_=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,r,a,s,u,l,c){var d=[],p=this.ast.options&&this.ast.options.params||Y_,h=this.buildStyles(n,s&&s.params||Y_,d),f=u&&u.params||Y_,m=this.buildStyles(i,f,d),g=new Set,y=new Map,v=new Map,b="void"===i,_={params:o(o({},p),f)},w=c?[]:L_(t,e,this.ast.animation,r,a,h,m,_,l,d),C=0;if(w.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),d.length)return G_(e,this._triggerName,n,i,b,h,m,[],[],y,v,C,d);w.forEach((function(t){var n=t.element,i=zb(y,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=zb(v,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&g.add(n)}));var x=m_(g.values());return G_(e,this._triggerName,n,i,b,h,m,w,x,y,v,C)},t}(),Z_=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=o_(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var o=r[t];o.length>1&&(o=f_(o,i,e)),n[t]=o}))}})),n},t}(),$_=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new Z_(t.style,t.options&&t.options.params||{})})),X_(this.states,"true","1"),X_(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new K_(t,e,n.states))})),this.fallbackTransition=new K_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function X_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Q_=new R_,J_=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=D_(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=jb(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],a=this._animations[t],s=new Map;if(a?(r=L_(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Q_,o)).forEach((function(t){var e=zb(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var u=Lb(r.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return i.destroy(t)})),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=Vb(e,"","","");return Nb(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),tw=[],ew={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},iw=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){var r=o_(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),rw=new iw("void"),ow=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,pw(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=zb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var u=zb(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(pw(t,"ng-trigger"),pw(t,"ng-trigger-"+e),u[e]=rw),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),a=new sw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(pw(t,"ng-trigger"),pw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new iw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=rw),"void"===l.value||u.value!==l.value){var c=zb(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=o.matchTransition(u.value,l.value,t,l.params),p=!1;if(!d){if(!i)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:u,toState:l,player:a,isFallbackTransition:p}),p||(pw(t,"ng-animate-queued"),a.onStart((function(){hw(t,"ng-animate-queued")}))),a.onDone((function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),pw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hw(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,i){if(uw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return uw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return Lb(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=ew,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(k.push(e),n.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var u=!h||!n.driver.containsElement(h,o),p=C.get(o),f=g.get(o),m=n._buildInstruction(t,i,f,p,u);if(m.errors&&m.errors.length)S.push(m);else{if(u)return e.onStart((function(){return c_(o,m.fromStyles)})),e.onDestroy((function(){return l_(o,m.toStyles)})),void r.push(e);if(t.isFallbackTransition)return e.onStart((function(){return c_(o,m.fromStyles)})),e.onDestroy((function(){return l_(o,m.toStyles)})),void r.push(e);m.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach((function(t){return zb(l,t,[]).push(e)})),m.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=c.get(e);i||c.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),m.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=d.get(e);i||d.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(S.length){var E=[];S.forEach((function(t){E.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return E.push("- "+t+"\n")}))})),k.forEach((function(t){return t.destroy()})),this.reportError(E)}var A=new Map,O=new Map;s.forEach((function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){zb(A,e,[]).push(t),t.destroy()}))}));var I=v.filter((function(t){return mw(t,c,d)})),P=new Map;cw(P,this.driver,_,d,"*").forEach((function(t){mw(t,c,d)&&I.push(t)}));var T=new Map;m.forEach((function(t,e){cw(T,n.driver,new Set(t),c,"!")})),I.forEach((function(t){var e=P.get(t),n=T.get(t);P.set(t,o(o({},e),n))}));var R=[],M=[],F={};s.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(p.has(e))return o.onDestroy((function(){return l_(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=F;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}c.push(l)}c.forEach((function(t){return O.set(t,u)}))}var h=n._buildAnimation(o.namespaceId,s,A,a,T,P);if(o.setRealPlayer(h),u===F)R.push(o);else{var f=n.playersByElement.get(u);f&&f.length&&(o.parentPlayer=Lb(f)),r.push(o)}}else c_(e,s.fromStyles),o.onDestroy((function(){return l_(e,s.toStyles)})),M.push(o),p.has(e)&&r.push(o)})),M.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=Lb(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var L=0;L0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new vy(t.duration,t.delay)},t}(),sw=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new vy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Nb(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){zb(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function uw(t){return t&&1===t.nodeType}function lw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function cw(t,e,n,i,r){var o=[];n.forEach((function(t){return o.push(lw(t))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=nw,a.push(i))})),t.set(i,o)}));var s=0;return n.forEach((function(t){return lw(t,o[s++])})),a}function dw(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function pw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function hw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function fw(t,e,n){Lb(n).onDone((function(){return t.processLeaveNode(e)}))}function mw(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var gw=function(){function t(t,e,n){var i=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new aw(t,e,n),this._timelineEngine=new J_(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],u=D_(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new $_(t,e)}(i,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var r=s(Hb(n),2);this._timelineEngine.command(r[0],e,r[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,r){if("@"==n.charAt(0)){var o=s(Hb(n),2);return this._timelineEngine.listen(o[0],e,o[1],r)}return this._transitionEngine.listen(t,e,n,i,r)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function yw(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=bw(e[0]),e.length>1&&(i=bw(e[e.length-1]))):e&&(n=bw(e)),n||i?new vw(t,n,i):null}var vw=function(){function t(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return t.prototype.start=function(){this._state<1&&(this._startStyles&&l_(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(l_(this._element,this._initialStyles),this._endStyles&&(l_(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(c_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(c_(this._element,this._endStyles),this._endStyles=null),l_(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function bw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Sw(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=kw(n=Ew(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Dw(t,"",n.join(","))))},t}();function Cw(t,e,n){Dw(t,"PlayState",n,xw(t,e))}function xw(t,e){var n=Ew(t,"");return n.indexOf(",")>0?kw(n.split(","),e):kw([n],e)}function kw(t,e){for(var n=0;n=0)return n;return-1}function Sw(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Dw(t,e,n,i){var r="animation"+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function Ew(t,e){return t.style["animation"+e]}var Aw=function(){function t(t,e,n,i,r,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new ww(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:w_(t.element,i))}))}this.currentSnapshot=e},t}(),Ow=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._startingStyles={},i.__initialized=!1,i._styles=Jb(n),i}return r(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,t.prototype.destroy.call(this))},e}(vy),Iw=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Zb(t)},t.prototype.matchesElement=function(t,e){return $b(t,e)},t.prototype.containsElement=function(t,e){return Xb(t,e)},t.prototype.query=function(t,e,n){return Qb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return Jb(t)}));var i="@keyframes "+e+" {\n",r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof Aw})),u={};v_(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=b_(t,e,u));if(0==n)return new Ow(t,l);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(d);var p=yw(t,e),h=new Aw(t,e,c,n,i,r,l,p);return h.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Pw=function(){function t(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:w_(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Tw=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Rw().toString()),this._cssKeyframesDriver=new Iw}return t.prototype.validateStyleProperty=function(t){return Zb(t)},t.prototype.matchesElement=function(t,e){return $b(t,e)},t.prototype.containsElement=function(t,e){return Xb(t,e)},t.prototype.query=function(t,e,n){return Qb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter((function(t){return t instanceof Pw}));v_(n,i)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var c=yw(t,e=b_(t,e=e.map((function(t){return a_(t,!1)})),u));return new Pw(t,e,s,c)},t}();function Rw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Mw=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ge.None,styles:[],data:{animation:[]}}),i}return r(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?cy(t):t;return jw(this._renderer,null,e,"register",[n]),new Fw(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(ee($s),ee(vc))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(oy),Fw=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return r(e,t),e.prototype.create=function(t,e){return new Lw(this._id,t,e||{},this._renderer)},e}(ay),Lw=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t0?n:t},t}(),cC=new Gt("mat-date-formats");try{sC="undefined"!=typeof Intl}catch(yB){sC=!1}var dC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},pC=mC(31,(function(t){return String(t+1)})),hC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},fC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function mC(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(sC){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=o({},e,{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(fC.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e.\u0275fac=function(t){return new(t||e)(ee(uC,8),ee(gv))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(lC),yC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:lC,useClass:gC}],imports:[[yv]]}),t}(),vC={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},bC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:cC,useValue:vC}],imports:[[yC]]}),t}(),_C=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),wC=new Gt("MAT_HAMMER_OPTIONS"),CC=["longpress","slide","slidestart","slideend","slideright","slideleft"],xC={on:function(){},off:function(){}},kC=function(t){function e(e,n){var i=t.call(this)||this;return i._hammerOptions=e,i.events=CC,n&&n._checkHammerIsAvailable(),i}return r(e,t),e.prototype.buildHammer=function(t){var e="undefined"!=typeof window?window.Hammer:null;if(!e)return xC;var n=new e(t,this._hammerOptions||void 0),i=new e.Pan,r=new e.Swipe,o=new e.Press,a=this._createRecognizer(i,{event:"slide",threshold:0},r),s=this._createRecognizer(o,{event:"longpress",time:500});return i.recognizeWith(r),s.recognizeWith(a),n.add([r,o,i,a,s]),n},e.prototype._createRecognizer=function(t,e){for(var n=[],i=2;in+i?Math.max(0,r-i+e):n}var UC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[TC,op,MC]]}),t}(),qC=new Gt("mat-label-global-options");function WC(t,e){}var GC=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}(),YC=[py("void, exit",dy({opacity:0,transform:"scale(0.7)"})),py("enter",dy({transform:"none"})),fy("* => enter",uy("150ms cubic-bezier(0, 0, 0.2, 1)",dy({transform:"none",opacity:1}))),fy("* => void, * => exit",uy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",dy({opacity:0})))],KC={dialogContainer:sy("dialogContainer",YC),slideDialog:sy("slideDialog",YC)};function ZC(){throw Error("Attempting to attach dialog content after content is already attached")}var $C=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=i,a._document=r,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Zu,a._ariaLabelledBy=o.ariaLabelledBy||null,a}return r(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&ZC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&ZC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._trapFocus=function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},e.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(kb),Ia(Ko),Ia(vc,8),Ia(GC))},e.\u0275cmp=we({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&sl(Ey,!0),2&t&&al(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Wa("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(Da("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Ss("@dialogContainer",e._state))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,WC,0,0,"ng-template",0)},directives:[Ey],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[KC.dialogContainer]}}),e}(ky),XC=0,QC=function(){function t(t,e,n,i){var r=this;void 0===i&&(i="mat-dialog-"+XC++),this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new P,this._afterClosed=new P,this._beforeClosed=new P,this._state=0,e._id=i,e._animationStateChanged.pipe(Hp((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Kh(1)).subscribe((function(){r._afterOpened.next(),r._afterOpened.complete()})),e._animationStateChanged.pipe(Hp((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Kh(1)).subscribe((function(){clearTimeout(r._closeFallbackTimeout),r._overlayRef.dispose()})),t.detachments().subscribe((function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()})),t.keydownEvents().pipe(Hp((function(t){return 27===t.keyCode&&!r.disableClose&&!Py(t)}))).subscribe((function(t){t.preventDefault(),r.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Hp((function(t){return"start"===t.phaseName})),Kh(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1},t.prototype.afterOpened=function(){return this._afterOpened.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype.addPanelClass=function(t){return this._overlayRef.addPanelClass(t),this},t.prototype.removePanelClass=function(t){return this._overlayRef.removePanelClass(t),this},t.prototype.afterOpen=function(){return this.afterOpened()},t.prototype.beforeClose=function(){return this.beforeClosed()},t.prototype.getState=function(){return this._state},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),JC=new Gt("MatDialogData"),tx=new Gt("mat-dialog-default-options"),ex=new Gt("mat-dialog-scroll-strategy"),nx={provide:ex,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},ix=function(){function t(t,e,n,i,r,o,a){var s=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P,this._afterOpenedAtThisLevel=new P,this._ariaHiddenElements=new Map,this.afterAllClosed=Ph((function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(of(void 0))})),this._scrollStrategy=r}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this.afterOpened},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return o({},e,t)}(e,this._defaultOptions||new GC)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a},t.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},t.prototype.getDialogById=function(t){return this.openDialogs.find((function(e){return e.id===t}))},t.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new Lv({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new Iy(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[GC,e]])),i=new Cy($C,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance},t.prototype._attachDialogContent=function(t,e,n,i){var r=new QC(n,e,this._location,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof vu)e.attachTemplatePortal(new xy(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new Cy(t,void 0,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r},t.prototype._createInjector=function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap([[$C,n],[JC,t.data],[QC,e]]);return!t.direction||i&&i.get(Ry,null)||r.set(Ry,{value:t.direction,change:Vp()}),new Iy(i||this._injector,r)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t.\u0275fac=function(e){return new(e||t)(ee($v),ee(ca),ee(Rc,8),ee(tx,8),ee(ex),ee(t,12),ee(Hv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),rx=0,ox=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=lx(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.\u0275fac=function(e){return new(e||t)(Ia(QC,8),Ia(Ks),Ia(ix))},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e.dialogRef.close(e.dialogResult)})),2&t&&Da("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Rs()]}),t}(),ax=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+rx++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=lx(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))},t.\u0275fac=function(e){return new(e||t)(Ia(QC,8),Ia(Ks),Ia(ix))},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&ks("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),sx=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),ux=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function lx(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var cx=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[ix,nx],imports:[[op,nb,Oy,tC],tC]}),t}();function dx(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var px=["mat-button",""],hx=["*"],fx=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],mx=function(t){function e(e,n,i){var r=t.call(this,e)||this;r._focusMonitor=n,r._animationMode=i,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");for(var o=0,a=fx;o*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(nC(eC(iC(function(){return function(t){this._elementRef=t}}())))),gx=function(t){function e(e,n,i){return t.call(this,n,e,i)||this}return r(e,t),e.prototype._haltDisabledEvents=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},e.\u0275fac=function(t){return new(t||e)(Ia(Pb),Ia(Ks),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostVars:5,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(Da("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Es],attrs:px,ngContentSelectors:hx,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Xa(),Fa(0,"span",0),Qa(1),La(),ja(2,"div",1),ja(3,"div",2)),2&t&&(vr(2),ls("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Ra("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[PC],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:#fff}}@media (-ms-high-contrast:black-on-white){.mat-button-focus-overlay{background-color:#000}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(mx),yx=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,TC,tC],tC]}),t}(),vx=function(){function t(t){this.el=t}return t.prototype.ngOnInit=function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())},t.\u0275fac=function(e){return new(e||t)(Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["uds-translate"]]}),t}(),bx=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t,e){return this.sanitizer.bypassSecurityTrustHtml(t)},t.\u0275fac=function(e){return new(e||t)(Ia(Fp))},t.\u0275pipe=Ae({name:"safeHtml",type:t,pure:!0}),t}();function _x(t,e){if(1&t){var n=za();Fa(0,"button",4),qa("click",(function(t){return Ue(n),Za().close()})),Fa(1,"uds-translate"),_s(2,"Close"),La(),_s(3),La()}if(2&t){var i=Za();vr(3),ws(i.extra)}}function wx(t,e){if(1&t){var n=za();Fa(0,"button",5),qa("click",(function(t){return Ue(n),Za().yes()})),Fa(1,"uds-translate"),_s(2,"Yes"),La(),La()}2&t&&Ra("color",Za().yesColor)}function Cx(t,e){if(1&t){var n=za();Fa(0,"button",5),qa("click",(function(t){return Ue(n),Za().no()})),Fa(1,"uds-translate"),_s(2,"No"),La(),La()}2&t&&Ra("color",Za().noColor)}var xx=function(t){return t[t.alert=0]="alert",t[t.yesno=1]="yesno",t}({}),kx=function(){function t(t,e){var n=this;this.dialogRef=t,this.data=e,this.yesColor="primary",this.noColor="warn",this.subscription=null,this.resetCallbacks(),this.yesno=new D((function(t){n.yes=function(){t.next(!0),t.complete()},n.no=function(){t.next(!1),t.complete()},n.close=function(){n.doClose(),t.next(!1),t.complete()};var e=n;return{unsubscribe:function(){e.resetCallbacks()}}}))}return t.prototype.resetCallbacks=function(){var t=this;this.yes=this.no=function(){t.close()},this.close=function(){t.doClose()}},t.prototype.closed=function(){null!==this.subscription&&this.subscription.unsubscribe()},t.prototype.doClose=function(){this.dialogRef.close()},t.prototype.setExtra=function(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "},t.prototype.initAlert=function(){var t,e,n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe((function(t){n.closed()})),this.setExtra(this.data.autoclose),this.subscription=(t=1e3,void 0===t&&(t=0),void 0===e&&(e=Jy),(!nv(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Jy),new D((function(n){return n.add(e.schedule(dx,t,{subscriber:n,counter:0,period:t})),n}))).subscribe((function(t){var e=n.data.autoclose-1e3*(t+1);n.setExtra(e),e<=0&&n.close()})))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===xx.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(ja(0,"h4",0),qu(1,"safeHtml"),ja(2,"mat-dialog-content",1),qu(3,"safeHtml"),Fa(4,"mat-dialog-actions"),Aa(5,_x,4,1,"button",2),Aa(6,wx,3,1,"button",3),Aa(7,Cx,3,1,"button",3),La()),2&t&&(Ra("innerHtml",Wu(1,5,e.data.title),Ui),vr(2),Ra("innerHTML",Wu(3,7,e.data.body),Ui),vr(3),Ra("ngIf",0==e.data.type),vr(1),Ra("ngIf",1==e.data.type),vr(1),Ra("ngIf",1==e.data.type))},directives:[ax,sx,ux,Sd,mx,ox,vx],pipes:[bx],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),Sx=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),Dx=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find((function(e){return e.id===t}));if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function Ex(t,e){1&t&&Qa(0)}var Ax=["*"];function Ox(t,e){}var Ix=function(t){return{animationDuration:t}},Px=function(t,e){return{value:t,params:e}},Tx=["tabBodyWrapper"],Rx=["tabHeader"];function Mx(t,e){}function Fx(t,e){1&t&&Aa(0,Mx,0,0,"ng-template",9),2&t&&Ra("cdkPortalOutlet",Za().$implicit.templateLabel)}function Lx(t,e){1&t&&_s(0),2&t&&ws(Za().$implicit.textLabel)}function jx(t,e){if(1&t){var n=za();Fa(0,"div",6),qa("click",(function(t){Ue(n);var i=e.$implicit,r=e.index,o=Za(),a=Oa(1);return o._handleClick(i,a,r)})),Fa(1,"div",7),Aa(2,Fx,1,1,"ng-template",8),Aa(3,Lx,1,1,"ng-template",8),La(),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za();ls("mat-tab-label-active",o.selectedIndex==r),Ra("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Da("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),vr(2),Ra("ngIf",i.templateLabel),vr(1),Ra("ngIf",!i.templateLabel)}}function Nx(t,e){if(1&t){var n=za();Fa(0,"mat-tab-body",10),qa("_onCentered",(function(t){return Ue(n),Za()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return Ue(n),Za()._setTabBodyWrapperHeight(t)})),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za();ls("mat-tab-body-active",o.selectedIndex==r),Ra("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Da("aria-labelledby",o._getTabLabelId(r))}}var Bx=["tabListContainer"],Vx=["tabList"],zx=["nextPaginator"],Hx=["previousPaginator"],Ux=["mat-tab-nav-bar",""],qx=new Gt("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),Wx=function(){function t(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl),Ia(qx),Ia(Hw,8))},t.\u0275dir=Ee({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ls("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Gx=function(){function t(t){this.template=t}return t.\u0275fac=function(e){return new(e||t)(Ia(vu))},t.\u0275dir=Ee({type:t,selectors:[["","matTabContent",""]]}),t}(),Yx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Es]});var n=ei(e);return e}(Dy),Kx=function(t){function e(e){var n=t.call(this)||this;return n._viewContainerRef=e,n.textLabel="",n._contentPortal=null,n._stateChanges=new P,n.position=null,n.origin=null,n.isActive=!1,n}return r(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.prototype.ngOnInit=function(){this._contentPortal=new xy(this._explicitContent||this._implicitContent,this._viewContainerRef)},e.\u0275fac=function(t){return new(t||e)(Ia(_u))},e.\u0275cmp=we({type:e,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,Yx,!0),dl(n,Gx,!0,vu)),2&t&&(al(i=hl())&&(e.templateLabel=i.first),al(i=hl())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&sl(vu,!0),2&t&&al(n=hl())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Es,Rs()],ngContentSelectors:Ax,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Aa(0,Ex,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(eC(function(){return function(){}}())),Zx={translateTab:sy("translateTab",[py("center, void, left-origin-center, right-origin-center",dy({transform:"none"})),py("left",dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),py("right",dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),fy("* => left, * => right, left => center, right => center",uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),fy("void => left-origin-center",[dy({transform:"translate3d(-100%, 0, 0)"}),uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),fy("void => right-origin-center",[dy({transform:"translate3d(100%, 0, 0)"}),uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},$x=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r._host=i,r._centeringSub=h.EMPTY,r._leavingSub=h.EMPTY,r}return r(e,t),e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._centeringSub=this._host._beforeCentering.pipe(of(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(Ia(Ys),Ia(_u),Ia(It((function(){return Xx}))))},e.\u0275dir=Ee({type:e,selectors:[["","matTabBodyHost",""]],features:[Es]}),e}(Ey),Xx=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ry,8),Ia(Ko))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&ul(Ay,!0),2&t&&al(n=hl())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Es],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(Fa(0,"div",0,1),qa("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),Aa(2,Ox,0,0,"ng-template",2),La()),2&t&&Ra("@translateTab",zu(3,Px,e._position,Vu(1,Ix,e.animationDuration)))},directives:[$x],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:2,data:{animation:[Zx.translateTab]},changeDetection:0}),e}(function(){function t(t,e,n){var i=this;this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.EMPTY,this._translateTabComplete=new P,this._onCentering=new Zu,this._beforeCentering=new Zu,this._afterLeavingCenter=new Zu,this._onCentered=new Zu(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe((function(t){i._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe($y((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){i._isCenterPosition(t.toState)&&i._isCenterPosition(i._position)&&i._onCentered.emit(),i._isCenterPosition(t.fromState)&&!i._isCenterPosition(i._position)&&i._afterLeavingCenter.emit()}))}return Object.defineProperty(t.prototype,"position",{set:function(t){this._positionIndex=t,this._computePositionAnimationState()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin())},t.prototype.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.prototype._computePositionAnimationState=function(t){void 0===t&&(t=this._getLayoutDirection()),this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"},t.prototype._computePositionFromOrigin=function(){var t=this._getLayoutDirection();return"ltr"==t&&this.origin<=0||"rtl"==t&&this.origin>0?"left-origin-center":"right-origin-center"},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Ry,8),Ia(Ko))},t.\u0275dir=Ee({type:t,selectors:[["do-not-use-abstract-mat-tab-body-base"]],inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}()),Qx=0,Jx=function(){return function(){}}(),tk=new Gt("MAT_TABS_CONFIG"),ek=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(tk,8),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,Kx,!1),2&t&&al(i=hl())&&(e._tabs=i)},viewQuery:function(t,e){var n;1&t&&(ul(Tx,!0),ul(Rx,!0)),2&t&&(al(n=hl())&&(e._tabBodyWrapper=n.first),al(n=hl())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Es],decls:6,vars:6,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Fa(0,"mat-tab-header",0,1),qa("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),Aa(2,jx,4,14,"div",2),La(),Fa(3,"div",3,4),Aa(5,Nx,1,8,"mat-tab-body",5),La()),2&t&&(Ra("selectedIndex",e.selectedIndex)("disableRipple",e.disableRipple),vr(2),Ra("ngForOf",e._tabs),vr(1),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode),vr(2),Ra("ngForOf",e._tabs))},directives:function(){return[ok,xd,nk,PC,Tb,Sd,Ey,Xx]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-high-contrast:active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media (-ms-high-contrast:active){.mat-tab-label{opacity:1}}@media (max-width:599px){.mat-tab-label{padding:0 12px}}@media (max-width:959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2,changeDetection:0}),e}(function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._changeDetectorRef=n,o._animationMode=r,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=h.EMPTY,o._tabLabelSubscription=h.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Zu,o.focusChange=new Zu,o.animationDone=new Zu,o.selectedTabChange=new Zu(!0),o._groupId=Qx++,o.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",o}return r(e,t),Object.defineProperty(e.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=jy(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},e.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;nl&&(this.scrollDistance+=i-l+60)}},t.prototype._checkPaginationEnabled=function(){var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t},t.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()},t.prototype._stopInterval=function(){this._stopScrolling.next()},t.prototype._handlePaginatorPress=function(t){var e=this;this._stopInterval(),iv(650,100).pipe(av(tt(this._stopScrolling,this._destroyed))).subscribe((function(){var n=e._scrollHeader(t),i=n.distance;(0===i||i>=n.maxScrollDistance)&&e._stopInterval()}))},t.prototype._scrollTo=function(t){var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},t.\u0275dir=Ee({type:t,selectors:[["do-not-use-abstract-mat-paginated-tab-header"]]}),t}(),ok=function(t){function e(e,n,i,r,o,a,s){return t.call(this,e,n,i,r,o,a,s)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,nk,!1),2&t&&al(i=hl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(sl(Wx,!0),sl(Bx,!0),sl(Vx,!0),ul(zx,!0),ul(Hx,!0)),2&t&&(al(n=hl())&&(e._inkBar=n.first),al(n=hl())&&(e._tabListContainer=n.first),al(n=hl())&&(e._tabList=n.first),al(n=hl())&&(e._nextPaginator=n.first),al(n=hl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Es],ngContentSelectors:Ax,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Xa(),Fa(0,"div",0,1),qa("click",(function(t){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before")}))("touchend",(function(t){return e._stopInterval()})),ja(2,"div",2),La(),Fa(3,"div",3,4),qa("keydown",(function(t){return e._handleKeydown(t)})),Fa(5,"div",5,6),qa("cdkObserveContent",(function(t){return e._onContentChanges()})),Fa(7,"div",7),Qa(8),La(),ja(9,"mat-ink-bar"),La(),La(),Fa(10,"div",8,9),qa("mousedown",(function(t){return e._handlePaginatorPress("after")}))("click",(function(t){return e._handlePaginatorClick("after")}))("touchend",(function(t){return e._stopInterval()})),ja(12,"div",2),La()),2&t&&(ls("mat-tab-header-pagination-disabled",e._disableScrollBefore),Ra("matRippleDisabled",e._disableScrollBefore||e.disableRipple),vr(5),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode),vr(5),ls("mat-tab-header-pagination-disabled",e._disableScrollAfter),Ra("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[PC,cb,Wx],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media (-ms-high-contrast:active){.mat-ink-bar{outline:solid 2px;height:0}}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-high-contrast:active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media (-ms-high-contrast:active){.mat-tab-label{opacity:1}}@media (max-width:599px){.mat-tab-label{min-width:72px}}"],encapsulation:2,changeDetection:0}),e}(function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i,r,o,a,s)||this;return u._disableRipple=!1,u}return r(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Ly(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(t){t.preventDefault()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},e.\u0275dir=Ee({type:e,selectors:[["do-not-use-abstract-mat-tab-header-base"]],inputs:{disableRipple:"disableRipple"},features:[Es]}),e}(rk)),ak=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,r,o,n,i,a,s)||this;return u._disableRipple=!1,u.color="primary",u}return r(e,t),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Ly(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this._items.changes.pipe(of(null),av(this._destroyed)).subscribe((function(){e.updateActiveLink()})),t.prototype.ngAfterContentInit.call(this)},e.prototype.updateActiveLink=function(t){if(this._items){for(var e=this._items.toArray(),n=0;n1)("ngIfElse",n)}},directives:[Sd,ek,xd,Kx,Yx,Ck],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function Pk(t,e){if(1&t){var n=za();Fa(0,"button",9),qa("click",(function(t){return Ue(n),Za().customButtonClicked()})),_s(1),La()}if(2&t){var i=Za();vr(1),ws(i.data.customButton)}}var Tk,Rk=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Zu(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach((function(n){var i=void 0!==n.values?n.values:n.value;console.log(i,n.gui,typeof i),n.gui.required&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i})),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-modal-form"]],decls:16,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(ja(0,"h4",0),qu(1,"safeHtml"),Fa(2,"mat-dialog-content",null,1),Fa(4,"uds-form",2),qa("changed",(function(t){return e.changed(t)})),La(),La(),Fa(5,"mat-dialog-actions"),Fa(6,"div",3),Fa(7,"div",4),Aa(8,Pk,2,1,"button",5),La(),Fa(9,"div",6),Fa(10,"button",7),qa("click",(function(t){return e.dialogRef.close()})),Fa(11,"uds-translate"),_s(12,"Discard & close"),La(),La(),Fa(13,"button",8),qa("click",(function(t){return e.save()})),Fa(14,"uds-translate"),_s(15,"Save"),La(),La(),La(),La(),La()),2&t&&(Ra("innerHtml",Wu(1,5,e.data.title),Ui),vr(4),Ra("fields",e.data.guiFields),vr(4),Ra("ngIf",null!=e.data.customButton),vr(2),Ra("disabled",e.saving),vr(3),Ra("disabled",e.saving))},directives:[ax,sx,Ik,ux,Sd,mx,vx,_d],pipes:[bx],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),Mk=function(){function t(t){this.gui=t}return t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var o=new Array;e.gui.fills.parameters.forEach((function(t){o.push(t+"="+encodeURIComponent(n[t].value))})),t.table.rest.callback(e.gui.fills.callbackName,o.join("&")).subscribe((function(e){var o=new Array;e.forEach((function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&o.push(e),e.gui.values.length=0,t.values.forEach((function(t){return e.gui.values.push(t)})),e.value||(e.value=t.values.length>0?t.values[0].id:""))})),o.forEach((function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))}))}))},t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort((function(t,e){return t.gui.order>e.gui.order?1:-1}));var r=null!=n;n=r?n:{},e.forEach((function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===Sx.TEXT&&t.gui.multiline&&(t.gui.type=Sx.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach((function(e){return t.values.push(e)}))):t.value=e)}));var o=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(Rk,{position:{top:"64px"},width:o,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,o,a){var s=this;a=a||{};var u=new Zu,l=n?"test":void 0,c={},d={},p=function(e){d.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return a.snack||(a.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(o).subscribe((function(n){a.snack.dismiss(),void 0!==i&&i.forEach((function(t){n.push(t)})),n.forEach((function(t){c[t.name]=t,void 0!==t.gui.fills&&(d[t.name]=t.gui.fills)})),s.modalForm(e,n,r,l).subscribe((function(e){switch(e.data&&(e.data.data_type=o),e.type){case l:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(o,e.data).subscribe((function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})}));break;case"changed":case"init":if(null===e.data)for(var i=0,d=n;i"+i.join(", ")+"";this.gui.yesno(e,o,!0).subscribe((function(e){if(e){var i=r.length,o=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach((function(e){t.table.rest.delete(e).subscribe((function(t){0==--i&&o()}),(function(t){0==--i&&o()}))}))}}))},t}(),Fk=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new Mk(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(kx,{width:r,data:{title:t,body:e,autoclose:n,type:xx.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(kx,{width:i,data:{title:t,body:e,type:xx.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),Lk=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),jk=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),Nk={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Bk=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+Nk[t]+"",type:jk.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach((function(t){return i=i[t]})),!i)throw new Error("not going :)");return i};try{switch(t){case"provider":this.gotoProvider(i(0));break;case"service":this.gotoService(i(0),i(1));break;case"pool":this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case"user":this.gotoUser(i(0),i(1));break;case"group":this.gotoGroup(i(0),i(1));break;case"transport":this.gotoTransport(i(0));break;case"osmanager":this.gotoOSManager(i(0));break;case"calendar":this.gotoCalendar(i(0));break;case"poolgroup":this.gotoPoolGroup(i(0))}}catch(r){}},t}(),Vk=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new zk(t,this.total))},t}(),zk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(_),Hk=new Set,Uk=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qk}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function(t){if(!Hk.has(t))try{Tk||((Tk=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Tk)),Tk.sheet&&(Tk.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),Hk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function qk(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Wk=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new P}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return Gk(By(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=Dh(Gk(By(t)).map((function(t){return e._registerQuery(t).observable})));return(n=rf(n.pipe(Kh(1)),n.pipe((function(t){return t.lift(new Vk(1))}),rb(0)))).pipe(U((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new D((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(of(n),U((function(e){return{query:t,matches:e.matches}})),av(this._destroySubject)),mql:n};return this._queries.set(t,i),i},t.ngInjectableDef=yt({factory:function(){return new t(ee(Uk),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Uk),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function Gk(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}function Yk(t,e){if(1&t){var n=za();Fa(0,"div",1),Fa(1,"button",2),qa("click",(function(t){return Ue(n),Za().action()})),_s(2),La(),La()}if(2&t){var i=Za();vr(2),ws(i.data.action)}}function Kk(t,e){}var Zk=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterDismissed=new P,this._afterOpened=new P,this._onAction=new P,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),$k=new Gt("MatSnackBarData"),Xk=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),Qk=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(Ia(Zk),Ia($k))},t.\u0275cmp=we({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(Fa(0,"span"),_s(1),La(),Aa(2,Yk,3,1,"div",0)),2&t&&(vr(1),ws(e.data.message),vr(1),Ra("ngIf",e.hasAction))},directives:[Sd,mx],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],encapsulation:2,changeDetection:0}),t}(),Jk={snackBarState:sy("state",[py("void, hidden",dy({transform:"scale(0.8)",opacity:0})),py("visible",dy({transform:"scale(1)",opacity:1})),fy("* => visible",uy("150ms cubic-bezier(0, 0, 0.2, 1)")),fy("* => void, * => hidden",uy("75ms cubic-bezier(0.4, 0.0, 1, 1)",dy({opacity:0})))])},tS=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=i,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new P,o._onEnter=new P,o._animationState="void",o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return r(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Kh(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e.\u0275fac=function(t){return new(t||e)(Ia(Vl),Ia(Ks),Ia(Ko),Ia(Xk))},e.\u0275cmp=we({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&sl(Ey,!0),2&t&&al(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&Wa("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(Da("role",e._role),Ss("@state",e._animationState))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,Kk,0,0,"ng-template",0)},directives:[Ey],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Jk.snackBarState]}}),e}(ky),eS=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[nb,Oy,op,yx,tC],tC]}),t}(),nS=new Gt("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Xk}}),iS=function(){function t(t,e,n,i,r,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var i=o({},this._defaultConfig,n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(Qk,i)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new Iy(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Xk,e]])),i=new Cy(tS,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance},t.prototype._attach=function(t,e){var n=o({},new Xk,this._defaultConfig,e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),a=new Zk(r,i);if(t instanceof vu){var s=new xy(t,null,{$implicit:n.data,snackBarRef:a});a.instance=r.attachTemplatePortal(s)}else{var u=this._createInjector(n,a),l=(s=new Cy(t,void 0,u),r.attachComponentPortal(s));a.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(av(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new Lv;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new Iy(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Zk,e],[$k,t.data]]))},t.ngInjectableDef=yt({factory:function(){return new t(ee($v),ee(Ab),ee(Yt),ee(Wk),ee(t,12),ee(nS))},token:t,providedIn:eS}),t.\u0275fac=function(e){return new(e||t)(ee($v),ee(Ab),ee(ca),ee(Wk),ee(t,12),ee(nS))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:eS}),t}(),rS=function(){function t(t,e,n,i,r,o){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=o,this.user=new ry(udsData.profile),this.navigation=new Bk(this.router),this.gui=new Fk(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!0,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(sh),ee(Pg),ee(ix),ee(iS),ee(Fp),ee(lC))},providedIn:"root"}),t}(),oS=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(rS))},providedIn:"root"}),t}(),aS=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),sS=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Yp).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),lv(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Wh((function(t){return n.handleError(t,!0)})))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Wh((function(t){return n.handleError(t)})))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.permision=function(){return this.api.user.isAdmin?aS.ALL:aS.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,o=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(o,{perm:i},{headers:this.headers}).pipe(Wh((function(t){return r.handleError(t)})))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new uS(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t}(),uS=function(t){function e(e,n,i,r){var o=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return o.parentModel=e,o.parentId=n,o.model=i,o.perm=r,o}return r(e,t),e.prototype.permision=function(){return this.perm||aS.ALL},e}(sS),lS=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return r(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(sS),cS=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return r(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(sS),dS=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return r(e,t),e}(sS),pS=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return r(e,t),e}(sS),hS=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return r(e,t),e}(sS),fS=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return r(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(sS),mS=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return r(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(sS),gS=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return r(e,t),e}(sS),yS=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return r(e,t),e}(sS),vS=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return r(e,t),e}(sS),bS=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return r(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t){return this.get("stats/"+t)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(sS),_S=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return r(e,t),e.prototype.types=function(){return Vp([])},e}(sS),wS=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return r(e,t),e}(sS),CS=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return r(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(sS),xS=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return r(e,t),e}(sS),kS=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return r(e,t),e}(sS),SS=function(){function t(t){this.api=t,this.providers=new lS(t),this.authenticators=new cS(t),this.osManagers=new dS(t),this.transports=new pS(t),this.networks=new hS(t),this.servicesPools=new fS(t),this.metaPools=new mS(t),this.gallery=new yS(t),this.servicesPoolGroups=new vS(t),this.calendars=new wS(t),this.accounts=new CS(t),this.proxy=new xS(t),this.system=new bS(t),this.configuration=new gS(t),this.actorToken=new kS(t),this.reports=new _S(t)}return t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(rS))},providedIn:"root"}),t}();function DS(t,e){if(1&t&&(Fa(0,"div",17),Fa(1,"div",11),ja(2,"img",3),Fa(3,"div",12),_s(4),La(),La(),Fa(5,"div",13),Fa(6,"a",15),Fa(7,"uds-translate"),_s(8,"View service pools"),La(),La(),La(),La()),2&t){var n=Za(2);vr(2),Ra("src",n.api.staticURL("admin/img/icons/logs.png"),qi),vr(2),Cs(" ",n.data.restrained," ")}}function ES(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"div",8),Fa(2,"div",9),Fa(3,"div",10),Fa(4,"div",11),ja(5,"img",3),Fa(6,"div",12),_s(7),La(),La(),Fa(8,"div",13),Fa(9,"a",14),Fa(10,"uds-translate"),_s(11,"View authenticators"),La(),La(),La(),La(),Fa(12,"div",10),Fa(13,"div",11),ja(14,"img",3),Fa(15,"div",12),_s(16),La(),La(),Fa(17,"div",13),Fa(18,"a",15),Fa(19,"uds-translate"),_s(20,"View service pools"),La(),La(),La(),La(),Fa(21,"div",10),Fa(22,"div",11),ja(23,"img",3),Fa(24,"div",12),_s(25),La(),La(),Fa(26,"div",13),Fa(27,"a",15),Fa(28,"uds-translate"),_s(29,"View service pools"),La(),La(),La(),La(),Aa(30,DS,9,2,"div",16),La(),La(),La()),2&t){var n=Za();vr(5),Ra("src",n.api.staticURL("admin/img/icons/authenticators.png"),qi),vr(2),Cs(" ",n.data.users," "),vr(7),Ra("src",n.api.staticURL("admin/img/icons/pools.png"),qi),vr(2),Cs(" ",n.data.pools," "),vr(7),Ra("src",n.api.staticURL("admin/img/icons/services.png"),qi),vr(2),Cs(" ",n.data.user_services," "),vr(5),Ra("ngIf",n.data.restrained)}}function AS(t,e){1&t&&(Fa(0,"div",18),Fa(1,"div",19),Fa(2,"p"),Fa(3,"uds-translate"),_s(4,"You are accessing UDS Administration as staff member."),La(),La(),Fa(5,"p"),Fa(6,"uds-translate"),_s(7,"This means that you have restricted access to elements."),La(),La(),Fa(8,"p"),Fa(9,"uds-translate"),_s(10,"In order to increase your access privileges, please contact your local UDS administrator."),La(),La(),ja(11,"br"),Fa(12,"p"),Fa(13,"uds-translate"),_s(14,"Thank you."),La(),La(),La(),La())}var OS=function(){function t(t,e){this.api=t,this.rest=e,this.data={}}return t.prototype.ngOnInit=function(){var t=this;this.api.user.isAdmin&&this.rest.system.information().subscribe((function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-summary"]],decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"info-panel","info-danger"],[1,"staff"],[1,"content"]],template:function(t,e){if(1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"div",2),ja(3,"img",3),Fa(4,"uds-translate"),_s(5,"Dashboard"),La(),La(),ja(6,"div",4),La(),Fa(7,"div",5),Aa(8,ES,31,7,"div",6),Aa(9,AS,15,0,"ng-template",null,7,yl),La(),La()),2&t){var n=Oa(10);vr(3),Ra("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),qi),vr(5),Ra("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[vx,Sd,gx,Rg],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff[_ngcontent-%COMP%]{display:flex;justify-content:center}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:0 1px 4px 0 rgba(0,0,0,.14);box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#f83600 0,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:#4682b4}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}"]}),t}(),IS=["underline"],PS=["connectionContainer"],TS=["inputContainer"],RS=["label"];function MS(t,e){1&t&&(Na(0),Fa(1,"div",14),ja(2,"div",15),ja(3,"div",16),ja(4,"div",17),La(),Fa(5,"div",18),ja(6,"div",15),ja(7,"div",16),ja(8,"div",17),La(),Ba())}function FS(t,e){1&t&&(Fa(0,"div",19),Qa(1,1),La())}function LS(t,e){if(1&t&&(Na(0),Qa(1,2),Fa(2,"span"),_s(3),La(),Ba()),2&t){var n=Za(2);vr(3),ws(n._control.placeholder)}}function jS(t,e){1&t&&Qa(0,3,["*ngSwitchCase","true"])}function NS(t,e){1&t&&(Fa(0,"span",23),_s(1," *"),La())}function BS(t,e){if(1&t){var n=za();Fa(0,"label",20,21),qa("cdkObserveContent",(function(t){return Ue(n),Za().updateOutlineGap()})),Aa(2,LS,4,1,"ng-container",12),Aa(3,jS,1,0,void 0,12),Aa(4,NS,2,0,"span",22),La()}if(2&t){var i=Za();ls("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ra("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Da("for",i._control.id)("aria-owns",i._control.id),vr(2),Ra("ngSwitchCase",!1),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function VS(t,e){1&t&&(Fa(0,"div",24),Qa(1,4),La())}function zS(t,e){if(1&t&&(Fa(0,"div",25,26),ja(2,"span",27),La()),2&t){var n=Za();vr(2),ls("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function HS(t,e){1&t&&(Fa(0,"div"),Qa(1,5),La()),2&t&&Ra("@transitionMessages",Za()._subscriptAnimationState)}function US(t,e){if(1&t&&(Fa(0,"div",31),_s(1),La()),2&t){var n=Za(2);Ra("id",n._hintLabelId),vr(1),ws(n.hintLabel)}}function qS(t,e){if(1&t&&(Fa(0,"div",28),Aa(1,US,2,2,"div",29),Qa(2,6),ja(3,"div",30),Qa(4,7),La()),2&t){var n=Za();Ra("@transitionMessages",n._subscriptAnimationState),vr(1),Ra("ngIf",n.hintLabel)}}var WS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],GS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],YS=0,KS=function(){function t(){this.id="mat-error-"+YS++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Da("id",e.id)},inputs:{id:"id"}}),t}(),ZS={transitionMessages:sy("transitionMessages",[py("enter",dy({opacity:1,transform:"translateY(0%)"})),fy("void => enter",[dy({opacity:0,transform:"translateY(-100%)"}),uy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$S=function(){return function(){}}();function XS(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var QS=0,JS=function(){function t(){this.align="start",this.id="mat-hint-"+QS++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Da("id",e.id)("align",null),ls("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),tD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-label"]]}),t}(),eD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-placeholder"]]}),t}(),nD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matPrefix",""]]}),t}(),iD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matSuffix",""]]}),t}(),rD=0,oD=nC(function(){return function(t){this._elementRef=t}}(),"primary"),aD=new Gt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sD=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;return l._elementRef=e,l._changeDetectorRef=n,l._dir=r,l._defaults=o,l._platform=a,l._ngZone=s,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new P,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+rD++,l._labelId="mat-form-field-label-"+rD++,l._previousDirection="ltr",l._labelOptions=i||{},l.floatLabel=l._labelOptions.float||"auto",l._animationsEnabled="NoopAnimations"!==u,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return r(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(of(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(av(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(av(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),tt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(of(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(of(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(av(this._destroyed)).subscribe((function(){t.updateOutlineGap(),t._previousDirection=t._dir.value}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Hy(this._label.nativeElement,"transitionend").pipe(Kh(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw XS("start");t=i}else if("end"===i.align){if(e)throw XS("end");e=i}}))},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=this._getStartEnd(t.children[0].getBoundingClientRect()),l=0,c=0,d=t.children;c0?.75*l+10:0}for(var p=0;pt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return xD(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return xD(t.value)?null:DD.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(xD(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?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(xD(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(AD);return 0==e.length?null:function(t){return ID(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(AD);return 0==e.length?null:function(t){return function(){for(var t=[],e=0;e=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.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),jD=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(bD),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks),Ia(LD),Ia(ca))},t.\u0275dir=Ee({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange()}))("blur",(function(t){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([FD])]}),t}(),ND={provide:cD,useExisting:It((function(){return BD})),multi:!0},BD=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[Us([ND])]}),t}(),VD='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',zD='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',HD='\n
\n
\n \n
\n
',UD=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+VD)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+zD+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+HD)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+VD)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+zD)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),qD={provide:cD,useExisting:It((function(){return GD})),multi:!0};function WD(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var GD=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=va}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=WD(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var i=a(Array.from(this._optionMap.keys())),r=i.next();!r.done;r=i.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Us([qD])]}),t}(),YD=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(WD(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Qs),Ia(GD,9))},t.\u0275dir=Ee({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t}(),KD={provide:cD,useExisting:It((function(){return $D})),multi:!0};function ZD(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var $D=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=va}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function rE(t){return null!=t?ED.compose(t.map(PD)):null}function oE(t){return null!=t?ED.composeAsync(t.map(TD)):null}function aE(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!va(e,n.currentValue)}var sE=[pD,BD,MD,GD,$D,jD];function uE(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function lE(t,e){if(!e)return null;Array.isArray(e)||iE(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var o;e.constructor===mD?n=e:(o=e,sE.some((function(t){return o.constructor===t}))?(i&&iE(t,"More than one built-in value accessor matches form control with"),i=e):(r&&iE(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(iE(t,"No valid value accessor for form control with"),null)}function cE(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function dE(t,e,n,i){yi()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(UD.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function pE(t){var e=fE(t)?t.validators:t;return Array.isArray(e)?rE(e):e||null}function hE(t,e){var n=fE(e)?e.asyncValidators:t;return Array.isArray(n)?oE(n):n||null}function fE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var mE=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=pE(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=hE(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.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},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={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(o(o({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(o(o({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||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=OD(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){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof yE?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof vE&&i.at(t)||null})),i}(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 Zu,this.statusChanges=new Zu},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){fE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),gE=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,pE(n),hE(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return r(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}(mE),yE=function(t){function e(e,n,i){var r=t.call(this,pE(n),hE(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(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(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{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(i){n.controls[i]&&n.controls[i].patchValue(t[i],{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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof gE?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(i,r){n=n||e.contains(r)&&t(i)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(mE),vE=function(t){function e(e,n,i){var r=t.call(this,pE(n),hE(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(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,i){n._throwIfControlMissing(i),n.at(i).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,i){n.at(i)&&n.at(i).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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof gE?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},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),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(mE),bE={provide:yD,useExisting:It((function(){return wE}))},_E=function(){return Promise.resolve(null)}(),wE=function(t){function e(e,n){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new Zu,i.form=new yE({},rE(e),oE(n)),i}return r(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;_E.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),JD(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;_E.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),cE(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;_E.then((function(){var n=e._findContainer(t.path),i=new yE({});eE(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;_E.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;_E.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,uE(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bE]),Es]}),e}(yD),CE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,features:[Es]});var n=ei(e);return e}(yD),xE=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+VD+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+zD+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+HD)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+zD+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+HD)},t}(),kE={provide:yD,useExisting:It((function(){return SE}))},SE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}var n;return r(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof wE||xE.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,5),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Us([kE]),Es]}),e}(CE),DE={provide:bD,useExisting:It((function(){return AE}))},EE=function(){return Promise.resolve(null)}(),AE=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.control=new gE,o._registered=!1,o.update=new Zu,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=lE(o,r),o}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),aE(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?QD(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){JD(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof SE)&&this._parent instanceof CE?xE.formGroupNameException():this._parent instanceof SE||this._parent instanceof wE||xE.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xE.missingNameException()},e.prototype._updateValue=function(t){var e=this;EE.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;EE.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(Ia(yD,9),Ia(kD,10),Ia(SD,10),Ia(cD,10))},e.\u0275dir=Ee({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([DE]),Es,Rs()]}),e}(bD),OE=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),IE=new Gt("NgModelWithFormControlWarning"),PE={provide:bD,useExisting:It((function(){return TE}))},TE=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngModelWarningConfig=r,o.update=new Zu,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=lE(o,i),o}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){UD.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(JD(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),aE(t,this.viewModel)&&(dE("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10),Ia(cD,10),Ia(IE,8))},e.\u0275dir=Ee({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Us([PE]),Es,Rs()]}),e}(bD),RE={provide:yD,useExisting:It((function(){return ME}))},ME=function(t){function e(e,n){var i=t.call(this)||this;return i._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Zu,i}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return JD(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){cE(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);eE(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);eE(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,uE(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return nE(e)})),e.valueAccessor.registerOnTouched((function(){return nE(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&JD(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=rE(this._validators);this.form.validator=ED.compose([this.form.validator,t]);var e=oE(this._asyncValidators);this.form.asyncValidator=ED.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||UD.missingFormException()},e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([RE]),Es,Rs()]}),e}(yD),FE={provide:yD,useExisting:It((function(){return LE}))},LE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype._checkParentType=function(){BE(this._parent)&&UD.groupParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Us([FE]),Es]}),e}(CE),jE={provide:yD,useExisting:It((function(){return NE}))},NE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){BE(this._parent)&&UD.arrayParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Us([jE]),Es]}),e}(yD);function BE(t){return!(t instanceof LE||t instanceof ME||t instanceof NE)}var VE={provide:bD,useExisting:It((function(){return zE}))},zE=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a._added=!1,a.update=new Zu,a._ngModelWarningSent=!1,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=lE(a,r),a}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){UD.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),aE(t,this.viewModel)&&(dE("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof LE)&&this._parent instanceof CE?UD.ngModelGroupException():this._parent instanceof LE||this._parent instanceof ME||this._parent instanceof NE||UD.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10),Ia(cD,10),Ia(IE,8))},e.\u0275dir=Ee({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Us([VE]),Es,Rs()]}),e}(bD),HE={provide:kD,useExisting:It((function(){return qE})),multi:!0},UE={provide:kD,useExisting:It((function(){return WE})),multi:!0},qE=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?ED.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Da("required",e.required?"":null)},inputs:{required:"required"},features:[Us([HE])]}),t}(),WE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.validate=function(t){return this.required?ED.requiredTrue(t):null},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("required",e.required?"":null)},features:[Us([UE]),Es]});var n=ei(e);return e}(qE),GE={provide:kD,useExisting:It((function(){return YE})),multi:!0},YE=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?ED.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Us([GE])]}),t}(),KE={provide:kD,useExisting:It((function(){return ZE})),multi:!0},ZE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[Us([KE]),Rs()]}),t}(),$E={provide:kD,useExisting:It((function(){return XE})),multi:!0},XE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Us([$E]),Rs()]}),t}(),QE={provide:kD,useExisting:It((function(){return JE})),multi:!0},JE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.pattern(this.pattern)},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[Us([QE]),Rs()]}),t}(),tA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),eA=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new yE(n,{asyncValidators:r,updateOn:o,validators:i})},t.prototype.control=function(t,e,n){return new gE(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new vE(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n},t.prototype._createControl=function(t){return t instanceof gE||t instanceof yE||t instanceof vE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),nA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[LD],imports:[tA]}),t}(),iA=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:IE,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[eA,LD],imports:[tA]}),t}(),rA=["trigger"],oA=["panel"];function aA(t,e){if(1&t&&(Fa(0,"span",8),_s(1),La()),2&t){var n=Za();vr(1),ws(n.placeholder||"\xa0")}}function sA(t,e){if(1&t&&(Fa(0,"span"),_s(1),La()),2&t){var n=Za(2);vr(1),ws(n.triggerValue||"\xa0")}}function uA(t,e){1&t&&Qa(0,0,["*ngSwitchCase","true"])}function lA(t,e){1&t&&(Fa(0,"span",9),Aa(1,sA,2,1,"span",10),Aa(2,uA,1,0,void 0,11),La()),2&t&&(Ra("ngSwitch",!!Za().customTrigger),vr(2),Ra("ngSwitchCase",!0))}function cA(t,e){if(1&t){var n=za();Fa(0,"div",12),Fa(1,"div",13,14),qa("@transformPanel.done",(function(t){return Ue(n),Za()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return Ue(n),Za()._handleKeydown(t)})),Qa(3,1),La(),La()}if(2&t){var i=Za();Ra("@transformPanelWrap",void 0),vr(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(t,e,n,i){var r=He(),o=Je(2);r.firstUpdatePass&&hs(r,null,o,!0);var a=ze();if(n!==gr&&ka(a,o,n)){var s=r.data[cn()+19];bs(s,!0)&&!ps(r,o)?("string"==typeof n&&(n=At(s.classes,n)),Ma(r,s,a,n,!0)):function(t,e,n,i,r,o,a,s){r===gr&&(r=es);for(var u=0,l=0,c=0 void",gy("@transformPanel",[my()],{optional:!0}))]),transformPanel:sy("transformPanel",[py("void",dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),py("showing",dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),py("showing-multiple",dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),fy("void => *",uy("120ms cubic-bezier(0, 0, 0.2, 1)")),fy("* => void",uy("100ms 25ms linear",dy({opacity:0})))]),fadeInContent:sy("fadeInContent",[py("showing",dy({opacity:1})),fy("void => showing",[dy({opacity:0}),uy("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fA=0,mA=new Gt("mat-select-scroll-strategy"),gA={provide:mA,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},yA=function(){return function(t,e){this.source=t,this.value=e}}(),vA=iC(rC(eC(oC(function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}())))),bA=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-select-trigger"]]}),t}(),_A=function(t){function e(e,n,i,r,o,a,s,u,l,c,d,p,h){var f=t.call(this,o,r,s,u,c)||this;return f._viewportRuler=e,f._changeDetectorRef=n,f._ngZone=i,f._dir=a,f._parentFormField=l,f.ngControl=c,f._liveAnnouncer=h,f._panelOpen=!1,f._required=!1,f._scrollTop=0,f._multiple=!1,f._compareWith=function(t,e){return t===e},f._uid="mat-select-"+fA++,f._destroy=new P,f._triggerFontSize=0,f._onChange=function(){},f._onTouched=function(){},f._optionIds="",f._transformOrigin="top",f._panelDoneAnimatingStream=new P,f._offsetY=0,f._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],f._disableOptionCentering=!1,f._focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=Ph((function(){var t=f.options;return t?t.changes.pipe(of(t),tf((function(){return tt.apply(void 0,t.map((function(t){return t.onSelectionChange})))}))):f._ngZone.onStable.asObservable().pipe(Kh(1),tf((function(){return f.optionSelectionChanges})))})),f.openedChange=new Zu,f._openedStream=f.openedChange.pipe(Hp((function(t){return t})),U((function(){}))),f._closedStream=f.openedChange.pipe(Hp((function(t){return!t})),U((function(){}))),f.selectionChange=new Zu,f.valueChange=new Zu,f.ngControl&&(f.ngControl.valueAccessor=f),f._scrollStrategyFactory=p,f._scrollStrategy=f._scrollStrategyFactory(),f.tabIndex=parseInt(d)||0,f.id=f.id,f}return r(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new xv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($y(),av(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(av(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(av(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(of(null),av(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=this._keyManager;if((13===e||32===e)&&!Py(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t);var o=this.selected;this._liveAnnouncer&&o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,i=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?i.setFirstItemActive():i.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!i.activeItem||Py(t))if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?t.select():t.deselect())}))}else{var o=i.activeItemIndex;i.onKeydown(t),this._multiple&&n&&t.shiftKey&&i.activeItem&&i.activeItemIndex!==o&&i.activeItem._selectViaInteraction()}else t.preventDefault(),i.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Kh(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return yi()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new vb(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(av(this._destroy)).subscribe((function(){t.focus(),t.close()})),this._keyManager.change.pipe(av(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))},e.prototype._resetOptions=function(){var t=this,e=tt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(av(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),tt.apply(void 0,this.options.map((function(t){return t._stateChanges}))).pipe(av(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new yA(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t=this._keyManager.activeItemIndex||0,e=zC(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=HC(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._getOptionIndex=function(t){return this.options.reduce((function(e,n,i){return void 0===e?t===n?i:void 0:e}),void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=zC(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(Ia(Ev),Ia(Ko),Ia(Vl),Ia(_C),Ia(Ks),Ia(Ry,8),Ia(wE,8),Ia(ME,8),Ia(sD,8),Ia(bD,10),Pa("tabindex"),Ia(mA),Ia(Ab))},e.\u0275cmp=we({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,bA,!0),cl(n,VC,!0),cl(n,LC,!1)),2&t&&(al(i=hl())&&(e.customTrigger=i.first),al(i=hl())&&(e.options=i),al(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(ul(rA,!0),ul(oA,!0),ul(tb,!0)),2&t&&(al(n=hl())&&(e.trigger=n.first),al(n=hl())&&(e.panel=n.first),al(n=hl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(t){return e._onFocus()}))("blur",(function(t){return e._onBlur()})),2&t&&(Da("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ls("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",id:"id",panelClass:"panelClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Us([{provide:$S,useExisting:e},{provide:BC,useExisting:e}]),Es,Rs()],ngContentSelectors:pA,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Xa(dA),Fa(0,"div",0,1),qa("click",(function(t){return e.toggle()})),Fa(3,"div",2),Aa(4,aA,2,1,"span",3),Aa(5,lA,3,2,"span",4),La(),Fa(6,"div",5),ja(7,"div",6),La(),La(),Aa(8,cA,4,10,"ng-template",7),qa("backdropClick",(function(t){return e.close()}))("attach",(function(t){return e._onAttached()}))("detach",(function(t){return e.close()}))),2&t){var n=Oa(1);vr(3),Ra("ngSwitch",e.empty),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1),vr(3),Ra("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Jv,Od,Id,tb,Pd,_d],styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform .4s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}@media (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],encapsulation:2,data:{animation:[hA.transformPanelWrap,hA.transformPanel]},changeDetection:0}),e}(vA),wA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[gA],imports:[[op,nb,UC,tC],uD,UC,tC]}),t}(),CA={tooltipState:sy("state",[py("initial, void, hidden",dy({opacity:0,transform:"scale(0)"})),py("visible",dy({transform:"scale(1)"})),fy("* => visible",uy("200ms cubic-bezier(0, 0, 0.2, 1)",hy([dy({opacity:0,transform:"scale(0)",offset:0}),dy({opacity:.5,transform:"scale(0.99)",offset:.5}),dy({opacity:1,transform:"scale(1)",offset:1})]))),fy("* => hidden",uy("100ms cubic-bezier(0, 0, 0.2, 1)",dy({opacity:0})))])};function xA(t){return Error('Tooltip position "'+t+'" is invalid.')}var kA=new Gt("mat-tooltip-scroll-strategy"),SA={provide:kA,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},DA=new Gt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),EA=function(){function t(t,e,n,i,r,o,a,s,u,l,c,d){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._ariaDescriber=a,this._focusMonitor=s,this._dir=l,this._defaultOptions=c,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this._message="",this._manualListeners=new Map,this._destroyed=new P,this._scrollStrategy=u;var h=e.nativeElement,f="undefined"==typeof window||window.Hammer||d;o.IOS||o.ANDROID?f||this._manualListeners.set("touchstart",(function(){return p.show()})):this._manualListeners.set("mouseenter",(function(){return p.show()})).set("mouseleave",(function(){return p.hide()})),this._manualListeners.forEach((function(t,e){return h.addEventListener(e,t)})),s.monitor(e).pipe(av(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),c&&c.position&&(this.position=c.position)}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement,e=t.style;"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||(e.webkitUserSelect=e.userSelect=e.msUserSelect=""),t.draggable&&"none"===e.webkitUserDrag&&(e.webkitUserDrag="")},t.prototype.ngOnDestroy=function(){var t=this;this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._manualListeners.forEach((function(e,n){t._elementRef.nativeElement.removeEventListener(n,e)})),this._manualListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Cy(AA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(av(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._handleKeydown=function(t){this._isTooltipVisible()&&27===t.keyCode&&!Py(t)&&(t.preventDefault(),t.stopPropagation(),this.hide(0))},t.prototype._handleTouchend=function(){this.hide(this._defaultOptions.touchendHideDelay)},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(av(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(av(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([o({},e.main,n.main),o({},e.fallback,n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw xA(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw xA(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Kh(1),av(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.\u0275fac=function(e){return new(e||t)(Ia($v),Ia(Ks),Ia(Sv),Ia(_u),Ia(Vl),Ia(gv),Ia(gb),Ia(Pb),Ia(kA),Ia(Ry,8),Ia(DA,8),Ia(Ap,8))},t.\u0275dir=Ee({type:t,selectors:[["","matTooltip",""]],hostBindings:function(t,e){1&t&&qa("longpress",(function(t){return e.show()}))("keydown",(function(t){return e._handleKeydown(t)}))("touchend",(function(t){return e._handleTouchend()}))},inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),AA=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new P,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(Wk))},t.\u0275cmp=we({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleBodyInteraction()}),!1,jn),2&t&&us("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Fa(0,"div",0),qa("@state.start",(function(t){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),qu(1,"async"),_s(2),La()),2&t&&(ls("mat-tooltip-handset",null==(n=Wu(1,5,e._isHandset))?null:n.matches),Ra("ngClass",e.tooltipClass)("@state",e._visibility),vr(2),ws(e.message))},directives:[_d],pipes:[Vd],styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}@media (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}"],encapsulation:2,data:{animation:[CA.tooltipState]},changeDetection:0}),t}(),OA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[SA,{provide:Ep,useClass:kC}],imports:[[Mb,op,nb,tC],tC]}),t}();function IA(t,e){if(1&t&&(Fa(0,"mat-option",19),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n),vr(1),ws(n)}}function PA(t,e){if(1&t){var n=za();Fa(0,"mat-form-field",16),Fa(1,"mat-select",17),qa("selectionChange",(function(t){return Ue(n),Za(2)._changePageSize(t.value)})),Aa(2,IA,2,2,"mat-option",18),La(),La()}if(2&t){var i=Za(2);Ra("color",i.color),vr(1),Ra("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),vr(1),Ra("ngForOf",i._displayedPageSizeOptions)}}function TA(t,e){if(1&t&&(Fa(0,"div"),_s(1),La()),2&t){var n=Za(2);vr(1),ws(n.pageSize)}}function RA(t,e){if(1&t&&(Fa(0,"div",12),Fa(1,"div",13),_s(2),La(),Aa(3,PA,3,5,"mat-form-field",14),Aa(4,TA,2,1,"div",15),La()),2&t){var n=Za();vr(2),ws(n._intl.itemsPerPageLabel),vr(1),Ra("ngIf",n._displayedPageSizeOptions.length>1),vr(1),Ra("ngIf",n._displayedPageSizeOptions.length<=1)}}function MA(t,e){if(1&t){var n=za();Fa(0,"button",20),qa("click",(function(t){return Ue(n),Za().firstPage()})),pn(),Fa(1,"svg",7),ja(2,"path",21),La(),La()}if(2&t){var i=Za();Ra("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Da("aria-label",i._intl.firstPageLabel)}}function FA(t,e){if(1&t){var n=za();pn(),hn(),Fa(0,"button",22),qa("click",(function(t){return Ue(n),Za().lastPage()})),pn(),Fa(1,"svg",7),ja(2,"path",23),La(),La()}if(2&t){var i=Za();Ra("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Da("aria-label",i._intl.lastPageLabel)}}var LA=function(){function t(){this.changes=new P,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var i=t*e;return i+1+" \u2013 "+(i<(n=Math.max(n,0))?Math.min(i+e,n):i+e)+" of "+n}}return t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),jA={provide:LA,deps:[[new dt,new ht,LA]],useFactory:function(t){return t||new LA}},NA=function(t){function e(e,n){var i=t.call(this)||this;return i._intl=e,i._changeDetectorRef=n,i._pageIndex=0,i._length=0,i._pageSizeOptions=[],i._hidePageSize=!1,i._showFirstLastButtons=!1,i.page=new Zu,i._intlChanges=e.changes.subscribe((function(){return i._changeDetectorRef.markForCheck()})),i}return r(e,t),Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(jy(t),0),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){this._length=jy(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(jy(t),0),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map((function(t){return jy(t)})),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidePageSize",{get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showFirstLastButtons",{get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},e.prototype.nextPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}},e.prototype.previousPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}},e.prototype.firstPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}},e.prototype.lastPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}},e.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var t=this.getNumberOfPages()-1;return this.pageIndex=i.length&&(r=0),i[r]},e.prototype.ngOnInit=function(){this._markInitialized()},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","matSort",""]],inputs:{disabled:["matSortDisabled","disabled"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"],start:["matSortStart","start"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Es,Rs()]});var n=ei(e);return e}(aC(eC(function(){return function(){}}()))),qA=Xw.ENTERING+" "+$w.STANDARD_CURVE,WA={indicator:sy("indicator",[py("active-asc, asc",dy({transform:"translateY(0px)"})),py("active-desc, desc",dy({transform:"translateY(10px)"})),fy("active-asc <=> active-desc",uy(qA))]),leftPointer:sy("leftPointer",[py("active-asc, asc",dy({transform:"rotate(-45deg)"})),py("active-desc, desc",dy({transform:"rotate(45deg)"})),fy("active-asc <=> active-desc",uy(qA))]),rightPointer:sy("rightPointer",[py("active-asc, asc",dy({transform:"rotate(45deg)"})),py("active-desc, desc",dy({transform:"rotate(-45deg)"})),fy("active-asc <=> active-desc",uy(qA))]),arrowOpacity:sy("arrowOpacity",[py("desc-to-active, asc-to-active, active",dy({opacity:1})),py("desc-to-hint, asc-to-hint, hint",dy({opacity:.54})),py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",dy({opacity:0})),fy("* => asc, * => desc, * => active, * => hint, * => void",uy("0ms")),fy("* <=> *",uy(qA))]),arrowPosition:sy("arrowPosition",[fy("* => desc-to-hint, * => desc-to-active",uy(qA,hy([dy({transform:"translateY(-25%)"}),dy({transform:"translateY(0)"})]))),fy("* => hint-to-desc, * => active-to-desc",uy(qA,hy([dy({transform:"translateY(0)"}),dy({transform:"translateY(25%)"})]))),fy("* => asc-to-hint, * => asc-to-active",uy(qA,hy([dy({transform:"translateY(25%)"}),dy({transform:"translateY(0)"})]))),fy("* => hint-to-asc, * => active-to-asc",uy(qA,hy([dy({transform:"translateY(0)"}),dy({transform:"translateY(-25%)"})]))),py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",dy({transform:"translateY(0)"})),py("hint-to-desc, active-to-desc, desc",dy({transform:"translateY(-25%)"})),py("hint-to-asc, active-to-asc, asc",dy({transform:"translateY(25%)"}))]),allowChildren:sy("allowChildren",[fy("* <=> *",[gy("@*",my(),{optional:!0})])])},GA=function(){function t(){this.changes=new P,this.sortButtonLabel=function(t){return"Change sorting for "+t}}return t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),YA={provide:GA,deps:[[new dt,new ht,GA]],useFactory:function(t){return t||new GA}},KA=function(t){function e(e,n,i,r){var o=t.call(this)||this;if(o._intl=e,o._sort=i,o._columnDef=r,o._showIndicatorHint=!1,o._arrowDirection="",o._disableViewStateAnimation=!1,o.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return o._rerenderSubscription=tt(i.sortChange,i._stateChanges,e.changes).subscribe((function(){o._isSorted()&&o._updateArrowDirection(),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),n.markForCheck()})),o}return r(e,t),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},e.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},e.prototype._setIndicatorHintVisible=function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))},e.prototype._setAnimationTransitionState=function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})},e.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},e.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},e.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},e.prototype._getArrowViewState=function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState},e.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},e.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},e.prototype._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null},e.prototype._renderArrow=function(){return!this._isDisabled()||this._isSorted()},e.\u0275fac=function(t){return new(t||e)(Ia(GA),Ia(Ko),Ia(UA,8),Ia("MAT_SORT_HEADER_COLUMN_DEF",8))},e.\u0275cmp=we({type:e,selectors:[["","mat-sort-header",""]],hostVars:3,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick()}))("mouseenter",(function(t){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(t){return e._setIndicatorHintVisible(!1)})),2&t&&(Da("aria-sort",e._getAriaSortAttribute()),ls("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",disableClear:"disableClear",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start"},exportAs:["matSortHeader"],features:[Es],attrs:VA,ngContentSelectors:HA,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button",3,"focus","blur"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Xa(),Fa(0,"div",0),Fa(1,"button",1),qa("focus",(function(t){return e._setIndicatorHintVisible(!0)}))("blur",(function(t){return e._setIndicatorHintVisible(!1)})),Qa(2),La(),Aa(3,zA,6,6,"div",2),La()),2&t&&(ls("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vr(1),Da("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),vr(2),Ra("ngIf",e._renderArrow()))},directives:[Sd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}@media (-ms-high-contrast:active){.mat-sort-header-stem{width:0;border-left:solid 2px}}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}@media (-ms-high-contrast:active){.mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}@media (-ms-high-contrast:active){.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[WA.indicator,WA.leftPointer,WA.rightPointer,WA.arrowOpacity,WA.arrowPosition,WA.allowChildren]},changeDetection:0}),e}(eC(function(){return function(){}}())),ZA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[YA],imports:[[op]]}),t}(),$A=[[["caption"]]],XA=["caption"];function QA(t,e){if(1&t&&(Fa(0,"th",3),_s(1),La()),2&t){var n=Za();us("text-align",n.justify),vr(1),Cs(" ",n.headerText," ")}}function JA(t,e){if(1&t&&(Fa(0,"td",4),_s(1),La()),2&t){var n=e.$implicit,i=Za();us("text-align",i.justify),vr(1),Cs(" ",i.dataAccessor(n,i.name)," ")}}function tO(t){return function(t){function e(){for(var e=[],n=0;n0;r--)e[r]&&(n[r]=i,i+=t[r]);return n},t}();function bO(t){return Error('Could not find column with id "'+t+'".')}var _O=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","rowOutlet",""]]}),t}(),wO=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),CO=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),xO=function(){function t(t,e,n,i,r,o,a){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=a,this._onDestroy=new P,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new xh({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){yi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=Ly(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Cv(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}},t.prototype.setHeaderRowDef=function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0},t.prototype.setFooterRowDef=function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(e.concat(n,i),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],Cv(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;if(this.dataSource){var e;if(Cv(this.dataSource)?e=this.dataSource.connect(this):this.dataSource instanceof D?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Vp(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(av(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw bO(t);return(e)})),r=i.map((function(t){return t.sticky})),o=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,o)},t.prototype._getRenderedRows=function(t){for(var e=[],n=0;na?s=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))},e.prototype.connect=function(){return this._renderData},e.prototype.disconnect=function(){},e}(wv);function ZO(t,e){void 0===e&&(e=Jy);var n,i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new $O(i,e))}}var $O=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new XO(t,this.delay,this.scheduler))},t}(),XO=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new QO(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(pv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(pv.createComplete()),this.unsubscribe()},e}(_),QO=function(){return function(t,e){this.time=t,this.notification=e}}(),JO=_v({passive:!0}),tI=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return Oh;var n=zy(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new P,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,JO),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,JO)}}),r.asObservable()},t.prototype.stopMonitoring=function(t){var e=zy(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),eI=function(){function t(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new Zu}return t.prototype.ngOnInit=function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))},t.prototype.ngOnDestroy=function(){this._autofillMonitor.stopMonitoring(this._elementRef)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(tI))},t.\u0275dir=Ee({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t}(),nI=function(){function t(t,e,n){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new P,this._enabled=!0,this._previousMinRows=-1,this._textareaElement=this._elementRef.nativeElement}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){t=Ly(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)},t.prototype.ngAfterViewInit=function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){Hy(window,"resize").pipe(ov(16),av(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}},t.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},t.prototype.resizeToFitContent=function(t){var e=this;if(void 0===t&&(t=!1),this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height=n.scrollHeight-4+"px",n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(n)})):setTimeout((function(){return e._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}},t.prototype.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)},t.prototype._noopInputHandler=function(){},t.prototype._scrollToCaretPosition=function(t){this._destroyed.isStopped||document.activeElement!==t||t.setSelectionRange(t.selectionStart,t.selectionEnd)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(gv),Ia(Vl))},t.\u0275dir=Ee({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t}(),iI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[yv]]}),t}(),rI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),Object.defineProperty(e.prototype,"matAutosizeMinRows",{get:function(){return this.minRows},set:function(t){this.minRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matAutosizeMaxRows",{get:function(){return this.maxRows},set:function(t){this.maxRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matAutosize",{get:function(){return this.enabled},set:function(t){this.enabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matTextareaAutosize",{get:function(){return this.enabled},set:function(t){this.enabled=t},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._noopInputHandler()}))},inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[Es]});var n=ei(e);return e}(nI),oI=new Gt("MAT_INPUT_VALUE_ACCESSOR"),aI=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sI=0,uI=function(t){function e(e,n,i,r,o,a,s,u,l){var c=t.call(this,a,r,o,i)||this;c._elementRef=e,c._platform=n,c.ngControl=i,c._autofillMonitor=u,c._uid="mat-input-"+sI++,c._isServer=!1,c._isNativeSelect=!1,c.focused=!1,c.stateChanges=new P,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return bv().has(t)}));var d=c._elementRef.nativeElement;return c._inputValueAccessor=s||d,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&l.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===d.nodeName.toLowerCase(),c._isNativeSelect&&(c.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),c}return r(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Ly(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&bv().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(aI.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(bD,10),Ia(wE,8),Ia(ME,8),Ia(_C),Ia(oI,10),Ia(tI),Ia(Vl))},e.\u0275dir=Ee({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&qa("blur",(function(t){return e._focusChanged(!1)}))("focus",(function(t){return e._focusChanged(!0)}))("input",(function(t){return e._onInput()})),2&t&&(ks("disabled",e.disabled)("required",e.required),Da("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ls("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Us([{provide:$S,useExisting:e}]),Es,Rs()]}),e}(oC(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}())),lI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[_C],imports:[[op,iI,uD],iI,uD]}),t}(),cI=["searchSelectInput"],dI=["innerSelectSearch"];function pI(t,e){if(1&t){var n=za();Fa(0,"button",6),qa("click",(function(t){return Ue(n),Za()._reset(!0)})),Fa(1,"i",7),_s(2,"close"),La(),La()}}var hI=function(t){return{"mat-select-search-inner-multiple":t}},fI=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new Zu,this.overlayClassSet=!1,this.change=new Zu,this._onDestroy=new P}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(ZO(1),av(this._onDestroy)).subscribe((function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()})),this.matSelect.openedChange.pipe(Kh(1)).pipe(av(this._onDestroy)).subscribe((function(){t._options=t.matSelect.options,t._options.changes.pipe(av(t._onDestroy)).subscribe((function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout((function(){e.setFirstItemActive(),t.getWidth()}),1)}))})),this.change.pipe(av(this._onDestroy)).subscribe((function(){t.changeDetectorRef.detectChanges()})),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.setOverlayClass()})),this.matSelect.openedChange.pipe(Kh(1),av(this._onDestroy)).subscribe((function(){t.matSelect.options.changes.pipe(av(t._onDestroy)).subscribe((function(){t.changeDetectorRef.markForCheck()}))}))},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||32===t.keyCode)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t!==this._value&&(this.initMultiSelectedValues(),this._value=t,this.changed.emit(t),this.change.emit(t))},t.prototype.onBlur=function(t){this.writeValue(t)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.overlayDir.attach.pipe(av(this._onDestroy)).subscribe((function(){for(var e,n=t.searchSelectInput.nativeElement;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){e=n;break}e&&e.classList.add("cdk-overlay-pane-select-search")})),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(av(this._onDestroy)).subscribe((function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map((function(t){return t.value}));t.previousSelectedValues.forEach((function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)}))}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}}))},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter((function(t){return t.selected})).map((function(t){return t.value})))},t.\u0275fac=function(e){return new(e||t)(Ia(_A),Ia(Ko))},t.\u0275cmp=we({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){var n;1&t&&(sl(cI,!0,Ks),sl(dI,!0,Ks)),2&t&&(al(n=hl())&&(e.searchSelectInput=n.first),al(n=hl())&&(e.innerSelectSearch=n.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Us([{provide:cD,useExisting:It((function(){return t})),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(ja(0,"input",0),Fa(1,"div",1,2),Fa(3,"input",3,4),qa("keydown",(function(t){return e._handleKeydown(t)}))("input",(function(t){return e.onInputChange(t.target.value)}))("blur",(function(t){return e.onBlur(t.target.value)})),La(),Aa(5,pI,3,0,"button",5),La()),2&t&&(vr(1),Ra("ngClass",Vu(3,hI,e.matSelect.multiple)),vr(2),Ra("placeholder",e.placeholderLabel),vr(2),Ra("ngIf",e.value))},directives:[uI,_d,Sd,mx],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function mI(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New user permission for"),La())}function gI(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New group permission for"),La())}function yI(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}function vI(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",12),qa("changed",(function(t){return Ue(n),Za().filterUser=t})),La()}}function bI(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}function _I(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}var wI=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new Zu(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){e.forEach((function(e){t.authenticators.push({id:e.id,text:e.name})}))}))},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe((function(t){t.forEach((function(t){e.entities.push({id:t.id,text:t.name})}))}))},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach((function(n){(""===t.filterUser||n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,mI,2,0,"uds-translate",1),ja(2,"b",2),Aa(3,gI,2,0,"ng-template",null,3,yl),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",4),Fa(7,"mat-form-field"),Fa(8,"mat-select",5),qa("valueChange",(function(t){return e.changeAuth(t)}))("ngModelChange",(function(t){return e.authenticator=t})),Aa(9,yI,2,2,"mat-option",6),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-select",7),qa("ngModelChange",(function(t){return e.entity=t})),Aa(12,vI,1,0,"uds-mat-select-search",8),Aa(13,bI,2,2,"mat-option",6),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-select",7),qa("ngModelChange",(function(t){return e.permission=t})),Aa(16,_I,2,2,"mat-option",6),La(),La(),La(),La(),Fa(17,"mat-dialog-actions"),Fa(18,"button",9),Fa(19,"uds-translate"),_s(20,"Cancel"),La(),La(),Fa(21,"button",10),qa("click",(function(t){return e.save()})),Fa(22,"uds-translate"),_s(23,"Ok"),La(),La(),La()),2&t){var n=Oa(4);vr(1),Ra("ngIf","user"===e.data.type)("ngIfElse",n),vr(1),Ra("innerHTML",e.data.item.name,Ui),vr(6),Ra("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),vr(1),Ra("ngForOf",e.authenticators),vr(2),Ra("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),vr(1),Ra("ngIf",e.entities.length>10),vr(1),Ra("ngForOf",e.filteredEntities()),vr(2),Ra("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),vr(1),Ra("ngForOf",e.permissions)}},directives:[ax,Sd,sx,sD,_A,wD,AE,xd,ux,mx,ox,vx,VC,fI],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function CI(t,e){if(1&t){var n=za();Fa(0,"div",11),Fa(1,"div",12),_s(2),La(),Fa(3,"div",13),_s(4),Fa(5,"a",14),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).revokePermission(i)})),Fa(6,"i",15),_s(7,"close"),La(),La(),La(),La()}if(2&t){var i=e.$implicit;vr(2),xs(" ",i.entity_name,"@",i.auth_name," "),vr(2),Cs(" ",i.perm_name," \xa0")}}function xI(t,e){if(1&t){var n=za();Fa(0,"div",7),Fa(1,"div",8),Fa(2,"div",9),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za().newPermission(i),t.preventDefault()})),Fa(3,"uds-translate"),_s(4,"New permission..."),La(),La(),Aa(5,CI,8,3,"div",10),La(),La()}if(2&t){var i=e.$implicit;vr(5),Ra("ngForOf",i)}}var kI=function(t,e){return[t,e]},SI=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe((function(e){t.updatePermissions(e)}))},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach((function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)}))},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe((function(n){n&&e.data.rest.revokePermission([t.id]).subscribe((function(t){e.reload()}))}))},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";wI.launch(this.api,n,this.data.item).subscribe((function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe((function(t){e.reload()}))}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Permissions for"),La(),_s(3,"\xa0"),ja(4,"b",1),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",2),Fa(7,"uds-translate",3),_s(8,"Users"),La(),Fa(9,"uds-translate",3),_s(10,"Groups"),La(),La(),Fa(11,"div",4),Aa(12,xI,6,1,"div",5),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",6),Fa(15,"uds-translate"),_s(16,"Ok"),La(),La(),La()),2&t&&(vr(4),Ra("innerHTML",e.data.item.name,Ui),vr(8),Ra("ngForOf",zu(2,kI,e.userPermissions,e.groupPermissions)))},directives:[ax,vx,sx,xd,ux,mx,ox],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),DI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],EI=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],AI={days:DI,shortDays:OI(DI),months:EI,shortMonths:OI(EI),AM:"AM",PM:"PM",am:"am",pm:"pm"};function OI(t){var e=[];return t.forEach((function(t){e.push(t.substr(0,3))})),e}function II(t,e,n){return function t(e,n,i,r){r=r||{},n=n||new Date,(i=i||AI).formats=i.formats||{};var o=n.getTime();return(r.utc||"number"==typeof r.timezone)&&(n=function(t){var e;return e=6e4*(t.getTimezoneOffset()||0),new Date(t.getTime()+e)}(n)),"number"==typeof r.timezone&&(n=new Date(n.getTime()+6e4*r.timezone)),e.replace(/%([-_0]?.)/g,(function(e,a){var s,u,l,c,d,p,h;if(u=null,c=null,2===a.length){if("-"===(u=a[0]))c="";else if("_"===u)c=" ";else{if("0"!==u)return e;c="0"}a=a[1]}switch(a){case"A":return i.days[n.getDay()];case"a":return i.shortDays[n.getDay()];case"B":return i.months[n.getMonth()];case"b":return i.shortMonths[n.getMonth()];case"C":return PI(Math.floor(n.getFullYear()/100),c);case"D":return t(i.formats.D||"%m/%d/%y",n,i);case"d":return PI(n.getDate(),c);case"e":return n.getDate();case"F":return t(i.formats.F||"%Y-%m-%d",n,i);case"H":return PI(n.getHours(),c);case"h":return i.shortMonths[n.getMonth()];case"I":return PI(TI(n),c);case"j":return p=new Date(n.getFullYear(),0,1),PI(Math.ceil((n.getTime()-p.getTime())/864e5),3);case"k":return PI(n.getHours(),void 0===c?" ":c);case"L":return PI(Math.floor(o%1e3),3);case"l":return PI(TI(n),void 0===c?" ":c);case"M":return PI(n.getMinutes(),c);case"m":return PI(n.getMonth()+1,c);case"n":return"\n";case"o":return String(n.getDate())+function(t){var e,n;if(e=t%10,(n=t%100)>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(n.getDate());case"P":case"p":return"";case"R":return t(i.formats.R||"%H:%M",n,i);case"r":return t(i.formats.r||"%I:%M:%S %p",n,i);case"S":return PI(n.getSeconds(),c);case"s":return Math.floor(o/1e3);case"T":return t(i.formats.T||"%H:%M:%S",n,i);case"t":return"\t";case"U":return PI(RI(n,"sunday"),c);case"u":return 0===(s=n.getDay())?7:s;case"v":return t(i.formats.v||"%e-%b-%Y",n,i);case"W":return PI(RI(n,"monday"),c);case"w":return n.getDay();case"Y":return n.getFullYear();case"y":return(h=String(n.getFullYear())).slice(h.length-2);case"Z":return r.utc?"GMT":(d=n.toString().match(/\((\w+)\)/))&&d[1]||"";case"z":return r.utc?"+0000":((l="number"==typeof r.timezone?r.timezone:-n.getTimezoneOffset())<0?"-":"+")+PI(Math.abs(l/60))+PI(l%60);default:return a}}))}(t,e,n)}function PI(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e}function RI(t,e){var n,i;return e=e||"sunday",i=t.getDay(),"monday"===e&&(0===i?i=6:i--),n=new Date(t.getFullYear(),0,1),Math.floor(((t-n)/864e5+7-i)/7)}function MI(t){return t.replace(/./g,(function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}}))}function FI(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=II(MI(r),new Date(1e3*e))}return i}function LI(t){return"yes"===t||!0===t||"true"===t||1===t}var jI=n("dunZ");function NI(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'}function BI(t){var e="";t.columns.forEach((function(t){e+=NI(t.title)+","})),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach((function(n){t.columns.forEach((function(t){var i=n[t.name];switch(t.type){case Lk.DATE:i=FI("SHORT_DATE_FORMAT",i);break;case Lk.DATETIME:i=FI("SHORT_DATETIME_FORMAT",i);break;case Lk.DATETIMESEC:i=FI("SHORT_DATE_FORMAT",i," H:i:s");break;case Lk.TIME:i=FI("TIME_FORMAT",i)}e+=NI(i)+","})),e=e.slice(0,-1)+"\r\n"}));var n=new Blob([e],{type:"text/csv"});setTimeout((function(){Object(jI.saveAs)(n,t.title+".csv")}),100)}function VI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function zI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function HI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function UI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}var qI=nC(function(){return function(t){this._elementRef=t}}(),"primary"),WI=new Gt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),GI=function(t){function e(n,i,r,o,a){var s=t.call(this,n)||this;s._elementRef=n,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=e._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return r(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=jy(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=jy(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,jy(t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation")},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),e.prototype._attachStyleNode=function(){var t=this._styleRoot,n=this._diameter,i=e._diameters,r=i.get(t);if(!r||!r.has(n)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",n+""),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(n)}},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e._diameters=new WeakMap,e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc,8),Ia(Hw,8),Ia(WI))},e.\u0275cmp=we({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Da("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),us("width",e.diameter,"px")("height",e.diameter,"px"),ls("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",value:"value",mode:"mode"},exportAs:["matProgressSpinner"],features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(pn(),Fa(0,"svg",0),Aa(1,VI,1,9,"circle",1),Aa(2,zI,1,7,"circle",2),La()),2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Da("viewBox",e._viewBox),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1))},directives:[Od,Id],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],encapsulation:2,changeDetection:0}),e}(qI),YI=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,o)||this;return a.mode="indeterminate",a}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc,8),Ia(Hw,8),Ia(WI))},e.\u0275cmp=we({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),ls("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(pn(),Fa(0,"svg",0),Aa(1,HI,1,9,"circle",1),Aa(2,UI,1,7,"circle",2),La()),2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Da("viewBox",e._viewBox),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1))},directives:[Od,Id],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],encapsulation:2,changeDetection:0}),e}(GI),KI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,op],tC]}),t}(),ZI=["mat-menu-item",""],$I=["*"];function XI(t,e){if(1&t){var n=za();Fa(0,"div",0),qa("keydown",(function(t){return Ue(n),Za()._handleKeydown(t)}))("click",(function(t){return Ue(n),Za().closed.emit("click")}))("@transformMenu.start",(function(t){return Ue(n),Za()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return Ue(n),Za()._onAnimationDone(t)})),Fa(1,"div",1),Qa(2),La(),La()}if(2&t){var i=Za();Ra("ngClass",i._classList)("@transformMenu",i._panelAnimationState)}}var QI={transformMenu:sy("transformMenu",[py("void",dy({opacity:0,transform:"scale(0.8)"})),fy("void => enter",ly([gy(".mat-menu-content, .mat-mdc-menu-content",uy("100ms linear",dy({opacity:1}))),uy("120ms cubic-bezier(0, 0, 0.2, 1)",dy({transform:"scale(1)"}))])),fy("* => void",uy("100ms 25ms linear",dy({opacity:0})))]),fadeInItems:sy("fadeInItems",[py("showing",dy({opacity:1})),fy("void => *",[dy({opacity:0}),uy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},JI=function(){function t(t,e,n,i,r,o,a){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=a,this._attached=new P}return t.prototype.attach=function(t){void 0===t&&(t={}),this._portal||(this._portal=new xy(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Sy(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()},t.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()},t.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()},t.\u0275fac=function(e){return new(e||t)(Ia(vu),Ia(Ys),Ia(oc),Ia(ca),Ia(_u),Ia(vc),Ia(Ko))},t.\u0275dir=Ee({type:t,selectors:[["ng-template","matMenuContent",""]]}),t}(),tP=new Gt("MAT_MENU_PANEL"),eP=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=i,o._parentMenu=r,o.role="menuitem",o._hovered=new P,o._highlighted=!1,o._triggersSubmenu=!1,i&&i.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(o),o._document=n,o}return r(e,t),e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._updateDirectDescendants(),this._keyManager=new bb(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit("tab")}))},t.prototype.ngOnDestroy=function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._directDescendantItems.changes.pipe(of(this._directDescendantItems),tf((function(t){return tt.apply(void 0,t.map((function(t){return t._hovered})))})))},t.prototype.addItem=function(t){},t.prototype.removeItem=function(t){},t.prototype._handleKeydown=function(t){var e=t.keyCode,n=this._keyManager;switch(e){case 27:Py(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Py(t)||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}},t.prototype.focusFirstItem=function(t){void 0===t&&(t="program");var e=this._keyManager;if(this.lazyContent?this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){return e.setFocusOrigin(t).setFirstItemActive()})):e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(4+t),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t.prototype._updateDirectDescendants=function(){var t=this;this._allItems.changes.pipe(of(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl),Ia(nP))},t.\u0275dir=Ee({type:t,contentQueries:function(t,e,n){var i;1&t&&(cl(n,JI,!0),cl(n,eP,!0),cl(n,eP,!1)),2&t&&(al(i=hl())&&(e.lazyContent=i.first),al(i=hl())&&(e._allItems=i),al(i=hl())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&ul(vu,!0),2&t&&al(n=hl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t}()),rP=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Vl),Ia(nP))},e.\u0275cmp=we({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:tP,useExisting:iP},{provide:iP,useExisting:e}]),Es],ngContentSelectors:$I,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Xa(),Aa(0,XI,3,2,"ng-template"))},directives:[_d],styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],encapsulation:2,data:{animation:[QI.transformMenu,QI.fadeInItems]},changeDetection:0}),e}(iP),oP=new Gt("mat-menu-scroll-strategy"),aP={provide:oP,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},sP=_v({passive:!0}),uP=function(){function t(t,e,n,i,r,o,a,s){var u=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=o,this._dir=a,this._focusMonitor=s,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Zu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Zu,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,sP),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,sP),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof iP&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof iP?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Hp((function(t){return"void"===t.toState})),Kh(1),av(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach()),this._restoreFocus()}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._restoreFocus=function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new Lv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],i=e[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=r[0],a=r[1],s=[o,a],u=s[0],l=s[1],c=[n,i],d=c[0],p=c[1],h=0;this.triggersSubmenu()?(p=n="before"===this.menu.xPosition?"start":"end",i=d="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(u="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:u,overlayX:d,overlayY:o,offsetY:h},{originX:i,originY:u,overlayX:p,overlayY:o,offsetY:h},{originX:n,originY:l,overlayX:d,overlayY:a,offsetY:-h},{originX:i,originY:l,overlayX:p,overlayY:a,offsetY:-h}])},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return tt(e,this._parentMenu?this._parentMenu.closed:Vp(),this._parentMenu?this._parentMenu._hovered().pipe(Hp((function(e){return e!==t._menuItemInstance})),Hp((function(){return t._menuOpen}))):Vp(),n)},t.prototype._handleMousedown=function(t){Rb(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Hp((function(e){return e===t._menuItemInstance&&!e.disabled})),ZO(0,Zy)).subscribe((function(){t._openedBy="mouse",t.menu instanceof iP&&t.menu._isAnimating?t.menu._animationDone.pipe(Kh(1),ZO(0,Zy),av(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new xy(this.menu.templateRef,this._viewContainerRef)),this._portal},t.\u0275fac=function(e){return new(e||t)(Ia($v),Ia(Ks),Ia(_u),Ia(oP),Ia(iP,8),Ia(eP,10),Ia(Ry,8),Ia(Pb))},t.\u0275dir=Ee({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:1,hostBindings:function(t,e){1&t&&qa("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&Da("aria-expanded",e.menuOpen||null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),lP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[aP],imports:[tC]}),t}(),cP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[aP],imports:[[op,tC,TC,nb,lP],lP]}),t}(),dP=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=Ly(t)},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(Da("aria-orientation",e.vertical?"vertical":"horizontal"),ls("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t}(),pP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,op],tC]}),t}(),hP=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ae({name:"sort",type:t,pure:!0}),t}(),fP=["trigger"];function mP(t,e){1&t&&ja(0,"img",36),2&t&&Ra("src",Za().icon,qi)}function gP(t,e){if(1&t){var n=za();Fa(0,"button",46),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za(5);return r.newAction.emit({param:i,table:r})})),La()}if(2&t){var i=e.$implicit,r=Za(5);Ra("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ui)}}function yP(t,e){if(1&t&&(Na(0),Fa(1,"button",42),_s(2),La(),Fa(3,"mat-menu",43,44),Aa(5,gP,1,1,"button",45),qu(6,"sort"),La(),Ba()),2&t){var n=e.$implicit,i=Oa(4);vr(1),Ra("matMenuTriggerFor",i),vr(1),ws(n.key),vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Gu(6,4,n.value,"name"))}}function vP(t,e){if(1&t&&(Na(0),Fa(1,"mat-menu",37,38),Aa(3,yP,7,7,"ng-container",39),qu(4,"keyvalue"),La(),Fa(5,"a",40),Fa(6,"i",17),_s(7,"insert_drive_file"),La(),Fa(8,"span",41),Fa(9,"uds-translate"),_s(10,"New"),La(),La(),Fa(11,"i",17),_s(12,"arrow_drop_down"),La(),La(),Ba()),2&t){var n=Oa(2),i=Za(3);vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Wu(4,3,i.grpTypes)),vr(2),Ra("matMenuTriggerFor",n)}}function bP(t,e){if(1&t){var n=za();Fa(0,"button",46),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za(4);return r.newAction.emit({param:i,table:r})})),La()}if(2&t){var i=e.$implicit,r=Za(4);Ra("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ui)}}function _P(t,e){if(1&t&&(Na(0),Fa(1,"mat-menu",37,38),Aa(3,bP,1,1,"button",45),qu(4,"sort"),La(),Fa(5,"a",40),Fa(6,"i",17),_s(7,"insert_drive_file"),La(),Fa(8,"span",41),Fa(9,"uds-translate"),_s(10,"New"),La(),La(),Fa(11,"i",17),_s(12,"arrow_drop_down"),La(),La(),Ba()),2&t){var n=Oa(2),i=Za(3);vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Gu(4,3,i.oTypes,"name")),vr(2),Ra("matMenuTriggerFor",n)}}function wP(t,e){if(1&t&&(Na(0),Aa(1,vP,13,5,"ng-container",8),Aa(2,_P,13,6,"ng-container",8),Ba()),2&t){var n=Za(2);vr(1),Ra("ngIf",n.newGrouped),vr(1),Ra("ngIf",!n.newGrouped)}}function CP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",47),qa("click",(function(t){Ue(n);var e=Za(2);return e.newAction.emit({param:void 0,table:e})})),Fa(2,"i",17),_s(3,"insert_drive_file"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"New"),La(),La(),La(),Ba()}}function xP(t,e){if(1&t&&(Na(0),Aa(1,wP,3,2,"ng-container",8),Aa(2,CP,7,0,"ng-container",8),Ba()),2&t){var n=Za();vr(1),Ra("ngIf",null!=n.oTypes&&0!=n.oTypes.length),vr(1),Ra("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function kP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",48),qa("click",(function(t){Ue(n);var e=Za();return e.emitIfSelection(e.editAction)})),Fa(2,"i",17),_s(3,"edit"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Edit"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",1!=i.selection.selected.length)}}function SP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",48),qa("click",(function(t){return Ue(n),Za().permissions()})),Fa(2,"i",17),_s(3,"perm_identity"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Permissions"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",1!=i.selection.selected.length)}}function DP(t,e){if(1&t){var n=za();Fa(0,"a",50),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(2).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function EP(t,e){if(1&t&&(Na(0),Aa(1,DP,1,2,"a",49),Ba()),2&t){var n=Za();vr(1),Ra("ngForOf",n.getcustomButtons())}}function AP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",51),qa("click",(function(t){return Ue(n),Za().export()})),Fa(2,"i",17),_s(3,"import_export"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Export"),La(),La(),La(),Ba()}}function OP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",52),qa("click",(function(t){Ue(n);var e=Za();return e.emitIfSelection(e.deleteAction,!0)})),Fa(2,"i",17),_s(3,"delete_forever"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Delete"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",i.selection.isEmpty())}}function IP(t,e){if(1&t){var n=za();Fa(0,"button",53),qa("click",(function(t){Ue(n);var e=Za();return e.filterText="",e.applyFilter()})),Fa(1,"i",17),_s(2,"close"),La(),La()}}function PP(t,e){1&t&&ja(0,"mat-header-cell")}function TP(t,e){1&t&&(Fa(0,"i",17),_s(1,"check_box"),La())}function RP(t,e){1&t&&(Fa(0,"i",17),_s(1,"check_box_outline_blank"),La())}function MP(t,e){if(1&t){var n=za();Fa(0,"mat-cell",56),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).clickRow(i,t)})),Aa(1,TP,2,0,"i",57),Aa(2,RP,2,0,"ng-template",null,58,yl),La()}if(2&t){var i=e.$implicit,r=Oa(3),o=Za(2);vr(1),Ra("ngIf",o.selection.isSelected(i))("ngIfElse",r)}}function FP(t,e){1&t&&(Na(0,54),Aa(1,PP,1,0,"mat-header-cell",22),Aa(2,MP,4,2,"mat-cell",55),Ba())}function LP(t,e){1&t&&ja(0,"mat-header-cell")}function jP(t,e){if(1&t){var n=za();Fa(0,"mat-cell"),Fa(1,"div",59),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()})),Fa(2,"i",17),_s(3,"subdirectory_arrow_right"),La(),La(),La()}}function NP(t,e){if(1&t&&(Fa(0,"mat-header-cell",63),_s(1),La()),2&t){var n=Za().$implicit;vr(1),ws(n.title)}}function BP(t,e){if(1&t){var n=za();Fa(0,"mat-cell",64),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).clickRow(i,t)}))("contextmenu",(function(t){Ue(n);var i=e.$implicit;return Za(2).onContextMenu(i,t)})),ja(1,"div",65),La()}if(2&t){var i=e.$implicit,r=Za().$implicit,o=Za();vr(1),Ra("innerHtml",o.getRowColumn(i,r),Ui)}}function VP(t,e){1&t&&(Na(0,60),Aa(1,NP,2,1,"mat-header-cell",61),Aa(2,BP,2,1,"mat-cell",62),Ba()),2&t&&Ja("matColumnDef",e.$implicit.name)}function zP(t,e){1&t&&ja(0,"mat-header-row")}function HP(t,e){if(1&t&&ja(0,"mat-row",66),2&t){var n=e.$implicit;Ra("ngClass",Za().rowClass(n))}}function UP(t,e){if(1&t&&(Fa(0,"div",67),_s(1),Fa(2,"uds-translate"),_s(3,"Selected items"),La(),La()),2&t){var n=Za();vr(1),Cs(" ",n.selection.selected.length," ")}}function qP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){Ue(n);var e=Za().item,i=Za();return i.detailAction.emit({param:e,table:i})})),Fa(1,"i",72),_s(2,"subdirectory_arrow_right"),La(),Fa(3,"uds-translate"),_s(4,"Detail"),La(),La()}}function WP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){Ue(n);var e=Za(2);return e.emitIfSelection(e.editAction)})),Fa(1,"i",72),_s(2,"edit"),La(),Fa(3,"uds-translate"),_s(4,"Edit"),La(),La()}}function GP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){return Ue(n),Za(2).permissions()})),Fa(1,"i",72),_s(2,"perm_identity"),La(),Fa(3,"uds-translate"),_s(4,"Permissions"),La(),La()}}function YP(t,e){if(1&t){var n=za();Fa(0,"button",73),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(2).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function KP(t,e){if(1&t){var n=za();Fa(0,"button",74),qa("click",(function(t){Ue(n);var e=Za(2);return e.emitIfSelection(e.deleteAction)})),Fa(1,"i",72),_s(2,"delete_forever"),La(),Fa(3,"uds-translate"),_s(4,"Delete"),La(),La()}}function ZP(t,e){if(1&t){var n=za();Fa(0,"button",73),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(3).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(3).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function $P(t,e){if(1&t&&(Na(0),ja(1,"mat-divider"),Aa(2,ZP,1,2,"button",69),Ba()),2&t){var n=Za(2);vr(2),Ra("ngForOf",n.getCustomAccelerators())}}function XP(t,e){if(1&t&&(Aa(0,qP,5,0,"button",68),Aa(1,WP,5,0,"button",68),Aa(2,GP,5,0,"button",68),Aa(3,YP,1,2,"button",69),Aa(4,KP,5,0,"button",70),Aa(5,$P,3,1,"ng-container",8)),2&t){var n=Za();Ra("ngIf",n.detailAction.observers.length>0),vr(1),Ra("ngIf",n.editAction.observers.length>0),vr(1),Ra("ngIf",!0===n.hasPermissions),vr(1),Ra("ngForOf",n.getCustomMenu()),vr(1),Ra("ngIf",n.deleteAction.observers.length>0),vr(1),Ra("ngIf",n.hasAccelerators)}}var QP=function(){return[5,10,25,100,1e3]},JP=function(){function t(t){this.api=t,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new KO([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.pageSize=10,this.newGrouped=!1,this.loaded=new Zu,this.rowSelected=new Zu,this.newAction=new Zu,this.editAction=new Zu,this.deleteAction=new Zu,this.customButtonAction=new Zu,this.detailAction=new Zu}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach((function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw!0}))}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new xv(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&aS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==aS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe((function(e){t.rest.tableInfo().subscribe((function(n){t.initialize(n,e)}))}))},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach((function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))})),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach((function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?Lk.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}})),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe((function(e){t.loading=!1,void 0!==t.onItem&&e.forEach((function(e){t.onItem(e)})),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1}),(function(e){t.loading=!1})))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==jk.ONLY_MENU&&t.type!==jk.ACCELERATOR})):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==jk.ACCELERATOR})):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type===jk.ACCELERATOR})):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case Lk.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Lk.DATE:n=FI("SHORT_DATE_FORMAT",n);break;case Lk.DATETIME:n=FI("SHORT_DATETIME_FORMAT",n);break;case Lk.TIME:n=FI("TIME_FORMAT",n);break;case Lk.DATETIMESEC:n=FI("SHORT_DATE_FORMAT",n," H:i:s");break;case Lk.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case Lk.CALLBACK:break;case Lk.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case jk.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case jk.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===jk.ALWAYS)&&(t.type===jk.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort),r=0;r0),vr(1),Ra("ngIf",e.editAction.observers.length>0),vr(1),Ra("ngIf",!0===e.hasPermissions),vr(1),Ra("ngIf",e.hasCustomButtons),vr(1),Ra("ngIf",1==e.allowExport),vr(1),Ra("ngIf",e.deleteAction.observers.length>0),vr(7),Ra("ngModel",e.filterText),vr(1),Ra("ngIf",e.filterText),vr(2),Ra("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Bu(27,QP))("showFirstLastButtons",!0),vr(6),Ra("dataSource",e.dataSource),vr(1),Ra("ngIf",e.hasButtons),vr(4),Ra("ngForOf",e.columns),vr(1),Ra("matHeaderRowDef",e.displayedColumns),vr(1),Ra("matRowDefColumns",e.displayedColumns),vr(1),Ra("hidden",!e.loading),vr(5),Ra("ngIf",e.hasButtons&&e.selection.selected.length>0),vr(1),us("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),Ra("matMenuTriggerFor",n)}},directives:[Sd,vx,sD,uI,mD,wD,AE,NA,gx,TO,UA,LO,MO,RO,xd,VO,HO,GI,uP,rP,JI,eP,mx,iD,jO,BO,KA,UO,WO,_d,dP],pipes:[$d,hP],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#000;color:#fff}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#f0f8ff;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em}"]}),t}(),tT='pause'+django.gettext("Maintenance")+"",eT='pause'+django.gettext("Exit maintenance mode")+"",nT='pause'+django.gettext("Enter maintenance mode")+"",iT=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"maintenance",html:tT,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe((function(i){i&&e.rest.providers.maintenance(n.id).subscribe((function(){t.table.overview()}))}))},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?tT:e.selection.selected[0].maintenance_mode?eT:nT},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-services"]],decls:1,vars:6,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("customButtonAction",(function(t){return e.onMaintenance(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("rowSelected",(function(t){return e.onRowSelect(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)},directives:[JP],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),rT=n("MCLT"),oT=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,(function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?Lk.ALPHANUMERIC:t.type},e}))}return t.prototype.get=function(t){return Oh},t.prototype.getLogs=function(t){return Oh},t.prototype.overview=function(t){return Object(rT.isFunction)(this.data)?this.data():Vp([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return Oh},t.prototype.create=function(t){return Oh},t.prototype.save=function(t,e){return Oh},t.prototype.test=function(t,e){return Oh},t.prototype.delete=function(t){return Oh},t.prototype.permision=function(){return aS.ALL},t.prototype.getPermissions=function(t){return Oh},t.prototype.addPermission=function(t,e,n,i){return Oh},t.prototype.revokePermission=function(t){return Oh},t.prototype.types=function(){return Vp([])},t.prototype.gui=function(t){return Oh},t.prototype.callback=function(t,e){return Oh},t.prototype.tableInfo=function(){return Vp({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return Oh},t}();function aT(t,e){if(1&t){var n=za();Fa(0,"button",24),qa("click",(function(t){Ue(n);var e=Za();return e.filterText="",e.applyFilter()})),Fa(1,"i",8),_s(2,"close"),La(),La()}}function sT(t,e){if(1&t&&(Fa(0,"mat-header-cell",28),_s(1),La()),2&t){var n=Za().$implicit;vr(1),ws(n)}}function uT(t,e){if(1&t&&(Fa(0,"mat-cell"),ja(1,"div",29),La()),2&t){var n=e.$implicit,i=Za().$implicit,r=Za();vr(1),Ra("innerHtml",r.getRowColumn(n,i),Ui)}}function lT(t,e){1&t&&(Na(0,25),Aa(1,sT,2,1,"mat-header-cell",26),Aa(2,uT,2,1,"mat-cell",27),Ba()),2&t&&Ra("matColumnDef",e.$implicit)}function cT(t,e){1&t&&ja(0,"mat-header-row")}function dT(t,e){if(1&t&&ja(0,"mat-row",30),2&t){var n=e.$implicit;Ra("ngClass",Za().rowClass(n))}}var pT=function(){return[5,10,25,100,1e3]},hT=function(){function t(t){this.api=t,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new KO([]),this.selection=new xv,this.pageSize=10}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach((function(e){t.columns.push({name:e,title:e,type:"date"===e?Lk.DATETIMESEC:Lk.ALPHANUMERIC})})),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe((function(e){t.dataSource.data=e}))},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=FI("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){BI(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){var n;1&t&&(sl(NA,!0),sl(UA,!0)),2&t&&(al(n=hl())&&(e.paginator=n.first),al(n=hl())&&(e.sort=n.first))},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"div",2),ja(3,"img",3),_s(4," \xa0"),Fa(5,"uds-translate"),_s(6,"Logs"),La(),La(),La(),Fa(7,"div",4),Fa(8,"div",5),Fa(9,"div",6),Fa(10,"a",7),qa("click",(function(t){return e.export()})),Fa(11,"i",8),_s(12,"import_export"),La(),Fa(13,"span",9),Fa(14,"uds-translate"),_s(15,"Export"),La(),La(),La(),La(),Fa(16,"div",10),Fa(17,"div",11),Fa(18,"uds-translate"),_s(19,"Filter"),La(),_s(20,"\xa0 "),Fa(21,"mat-form-field"),Fa(22,"input",12),qa("keyup",(function(t){return e.applyFilter()}))("ngModelChange",(function(t){return e.filterText=t})),La(),Aa(23,aT,3,0,"button",13),La(),La(),Fa(24,"div",14),ja(25,"mat-paginator",15),La(),Fa(26,"div",16),Fa(27,"a",17),qa("click",(function(t){return e.overview()})),Fa(28,"i",8),_s(29,"autorenew"),La(),La(),La(),La(),La(),Fa(30,"div",18),qa("keydown",(function(t){return e.keyDown(t)})),Fa(31,"mat-table",19),qa("matSortChange",(function(t){return e.sortChanged(t)})),Aa(32,lT,3,1,"ng-container",20),Aa(33,cT,1,0,"mat-header-row",21),Aa(34,dT,1,1,"mat-row",22),La(),La(),ja(35,"div",23),La(),La()),2&t&&(vr(3),Ra("src",e.api.staticURL("admin/img/icons/logs.png"),qi),vr(19),Ra("ngModel",e.filterText),vr(1),Ra("ngIf",e.filterText),vr(2),Ra("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Bu(11,pT))("showFirstLastButtons",!0),vr(6),Ra("dataSource",e.dataSource),vr(1),Ra("ngForOf",e.displayedColumns),vr(1),Ra("matHeaderRowDef",e.displayedColumns),vr(1),Ra("matRowDefColumns",e.displayedColumns))},directives:[vx,gx,sD,uI,mD,wD,AE,Sd,NA,TO,UA,xd,VO,HO,mx,iD,LO,MO,RO,jO,KA,BO,UO,WO,_d],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-50000>.mat-cell, .level-60000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function fT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services pools"),La())}function mT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}var gT=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yT=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[Bk.getGotoButton("pool","id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new oT(django.gettext("Service pools"),(function(){return t.services.invoke(t.service.id+"/servicesPools")}),gT,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-information"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["mat-tab-label",""],["pageSize","6",3,"rest","customButtons"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"mat-tab-group"),Fa(6,"mat-tab"),Aa(7,fT,2,0,"ng-template",1),ja(8,"uds-table",2),La(),Fa(9,"mat-tab"),Aa(10,mT,2,0,"ng-template",1),Fa(11,"div",3),ja(12,"uds-logs-table",4),La(),La(),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",5),Fa(15,"uds-translate"),_s(16,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.service.name,"\n"),vr(5),Ra("rest",e.servicePools)("customButtons",e.customButtons),vr(4),Ra("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[ax,vx,sx,ek,Kx,Yx,JP,hT,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function vT(t,e){if(1&t&&(Fa(0,"div",3),ja(1,"div",4),ja(2,"div",5),La()),2&t){var n=e.$implicit;vr(1),Ra("innerHTML",n.gui.label,Ui),vr(1),Ra("innerHTML",n.value,Ui)}}var bT=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter((function(t){return t.gui.type!==Sx.HIDDEN}));e.forEach((function(e){var n=t.value[e.name];switch(e.gui.type){case Sx.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case Sx.PASSWORD:e.value=django.gettext("(hidden)");break;case Sx.CHOICE:var i=Dx.locateChoice(n,e);e.value=i.text;break;case Sx.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case Sx.IMAGECHOICE:i=Dx.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")})),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Aa(2,vT,3,2,"div",2),La(),ja(3,"div"),La()),2&t&&(vr(2),Ra("ngForOf",e.displayables))},directives:[xd],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function _T(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function wT(t,e){if(1&t&&ja(0,"uds-information",15),2&t){var n=Za(2);Ra("value",n.provider)("gui",n.gui)}}function CT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services"),La())}function xT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Usage"),La())}function kT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function ST(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,_T,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,wT,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,CT,2,0,"ng-template",9),Fa(9,"div",10),Fa(10,"uds-table",12),qa("newAction",(function(t){return Ue(n),Za().onNewService(t)}))("editAction",(function(t){return Ue(n),Za().onEditService(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteService(t)}))("customButtonAction",(function(t){return Ue(n),Za().onInformation(t)}))("loaded",(function(t){return Ue(n),Za().onLoad(t)})),La(),La(),La(),Fa(11,"mat-tab"),Aa(12,xT,2,0,"ng-template",9),Fa(13,"div",10),Fa(14,"uds-table",13),qa("deleteAction",(function(t){return Ue(n),Za().onDeleteUsage(t)})),La(),La(),La(),Fa(15,"mat-tab"),Aa(16,kT,2,0,"ng-template",9),Fa(17,"div",10),ja(18,"uds-logs-table",14),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.provider&&i.gui),vr(4),Ra("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","providers-d-services"+i.provider.id),vr(4),Ra("rest",i.usage)("multiSelect",!0)("allowExport",!0)("tableId","providers-d-usage"+i.provider.id),vr(4),Ra("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var DT=function(t){return["/providers",t]},ET=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:jk.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe((function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onInformation=function(t){yT.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach((function(t){t.id===e&&n.selection.select(t)}))}}},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,ST,19,15,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,DT,e.services.parentId)),vr(4),Ra("src",e.api.staticURL("admin/img/icons/services.png"),qi),vr(1),Cs(" \xa0",null==e.provider?null:e.provider.name," "),vr(1),Ra("ngIf",null!==e.provider))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[""]}),t}(),AT=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-authenticators"]],decls:2,vars:5,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement))},directives:[JP],styles:[""]}),t}(),OT=["panel"];function IT(t,e){if(1&t&&(Fa(0,"div",0,1),Qa(2),La()),2&t){var n=Za();Ra("id",n.id)("ngClass",n._classList)}}var PT=["*"],TT=0,RT=function(){return function(t,e){this.source=t,this.option=e}}(),MT=iC(function(){return function(){}}()),FT=new Gt("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),LT=function(t){function e(e,n,i){var r=t.call(this)||this;return r._changeDetectorRef=e,r._elementRef=n,r.showPanel=!1,r._isOpen=!1,r.displayWith=null,r.optionSelected=new Zu,r.opened=new Zu,r.closed=new Zu,r._classList={},r.id="mat-autocomplete-"+TT++,r._autoActiveFirstOption=!!i.autoActiveFirstOption,r}return r(e,t),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoActiveFirstOption",{get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classList",{set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new vb(this.options).withWrap(),this._setVisibility()},e.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},e.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},e.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()},e.prototype._emitSelectEvent=function(t){var e=new RT(this,t);this.optionSelected.emit(e)},e.prototype._setVisibilityClasses=function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel},e.\u0275fac=function(t){return new(t||e)(Ia(Ko),Ia(Ks),Ia(FT))},e.\u0275cmp=we({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,VC,!0),cl(n,LC,!1)),2&t&&(al(i=hl())&&(e.options=i),al(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(sl(vu,!0),ul(OT,!0)),2&t&&(al(n=hl())&&(e.template=n.first),al(n=hl())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],displayWith:"displayWith",panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed"},exportAs:["matAutocomplete"],features:[Us([{provide:BC,useExisting:e}]),Es],ngContentSelectors:PT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Xa(),Aa(0,IT,3,2,"ng-template"))},directives:[_d],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}@media (-ms-high-contrast:active){.mat-autocomplete-panel{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(MT),jT=function(){function t(t){this.elementRef=t}return t.\u0275fac=function(e){return new(e||t)(Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t}(),NT=new Gt("mat-autocomplete-scroll-strategy"),BT={provide:NT,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},VT={provide:cD,useExisting:It((function(){return zT})),multi:!0},zT=function(){function t(t,e,n,i,r,o,a,s,u,l){var c=this;this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=a,this._formField=s,this._document=u,this._viewportRuler=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new P,this._windowBlurHandler=function(){c._canOpenOnNextFocus=c._document.activeElement!==c._element.nativeElement||c.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ph((function(){return c.autocomplete&&c.autocomplete.options?tt.apply(void 0,c.autocomplete.options.map((function(t){return t.onSelectionChange}))):c._zone.onStable.asObservable().pipe(Kh(1),tf((function(){return c.optionSelections})))})),this._scrollStrategy=o}return Object.defineProperty(t.prototype,"autocompleteDisabled",{get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;if("undefined"!=typeof window&&(this._zone.runOutsideAngular((function(){window.addEventListener("blur",t._windowBlurHandler)})),function(){if(null==mv){var t="undefined"!=typeof document?document.head:null;mv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return mv}())){var e=this._element.nativeElement,n=e.getRootNode?e.getRootNode():null;this._isInsideShadowRoot=n instanceof window.ShadowRoot}},t.prototype.ngOnChanges=function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())},t.prototype.ngOnDestroy=function(){"undefined"!=typeof window&&window.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._overlayAttached&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},t.prototype.closePanel=function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())},t.prototype.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){var t=this;return tt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Hp((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Hp((function(){return t._overlayAttached}))):Vp()).pipe(U((function(t){return t instanceof NC?t:null})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),t.prototype._getOutsideClickStream=function(){var t=this;return tt(Hy(this._document,"click"),Hy(this._document,"touchend")).pipe(Hp((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))},t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._element.nativeElement.disabled=t},t.prototype._handleKeydown=function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},t.prototype._handleInput=function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())},t.prototype._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0},t.prototype._floatLabel=function(t){void 0===t&&(t=!1),this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},t.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=zC(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=HC(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}},t.prototype._subscribeToClosingActions=function(){var t=this;return tt(this._zone.onStable.asObservable().pipe(Kh(1)),this.autocomplete.options.changes.pipe(lf((function(){return t._positionStrategy.reapplyLastPosition()})),ZO(0))).pipe(tf((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Kh(1)).subscribe((function(e){return t._setValueAndClose(e)}))},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))},t.prototype._attachOverlay=function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new xy(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()},t.prototype._getOverlayConfig=function(){return new Lv({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})},t.prototype._getOverlayPosition=function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t},t.prototype._setStrategyPositions=function(t){var e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};t.withPositions("above"===this.position?[n]:"below"===this.position?[e]:[e,n])},t.prototype._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element},t.prototype._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()},t.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)},t.prototype._canOpen=function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia($v),Ia(_u),Ia(Vl),Ia(Ko),Ia(NT),Ia(Ry,8),Ia(sD,9),Ia(vc,8),Ia(Ev))},t.\u0275dir=Ee({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&qa("focusin",(function(t){return e._handleFocus()}))("blur",(function(t){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&Da("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen?null:null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[Us([VT]),Rs()]}),t}(),HT=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[BT],imports:[[UC,nb,tC,op],UC,tC]}),t}();function UT(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"uds-translate"),_s(2,"Edit user"),La(),_s(3),La()),2&t){var n=Za();vr(3),Cs(" ",n.user.name," ")}}function qT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New user"),La())}function WT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",18),qa("ngModelChange",(function(t){return Ue(n),Za().user.name=t})),La(),La()}if(2&t){var i=Za();vr(2),Cs(" ",i.authenticator.type_info.userNameLabel," "),vr(1),Ra("ngModel",i.user.name)("disabled",i.user.id)}}function GT(t,e){if(1&t&&(Fa(0,"mat-option",21),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),xs(" ",n.id," (",n.name,") ")}}function YT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",19),qa("ngModelChange",(function(t){return Ue(n),Za().user.name=t}))("input",(function(t){return Ue(n),Za().filterUser(t)})),La(),Fa(4,"mat-autocomplete",null,20),Aa(6,GT,2,3,"mat-option",15),La(),La()}if(2&t){var i=Oa(5),r=Za();vr(2),Cs(" ",r.authenticator.type_info.userNameLabel," "),vr(1),Ra("ngModel",r.user.name)("matAutocomplete",i),vr(3),Ra("ngForOf",r.users)}}function KT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",22),qa("ngModelChange",(function(t){return Ue(n),Za().user.password=t})),La(),La()}if(2&t){var i=Za();vr(2),Cs(" ",i.authenticator.type_info.passwordLabel," "),vr(1),Ra("ngModel",i.user.password)}}function ZT(t,e){if(1&t&&(Fa(0,"mat-option",21),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var $T=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe((function(e){t.groups=e})),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe((function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"}),(function(e){t.dialogRef.close()}))},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe((function(t){e.users.length=0,t.forEach((function(t){e.users.push(t)}))}))},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,UT,4,1,"div",1),Aa(2,qT,2,0,"ng-template",null,2,yl),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",3),Aa(6,WT,4,3,"mat-form-field",4),Aa(7,YT,7,4,"mat-form-field",4),Fa(8,"mat-form-field"),Fa(9,"mat-label"),Fa(10,"uds-translate"),_s(11,"Real name"),La(),La(),Fa(12,"input",5),qa("ngModelChange",(function(t){return e.user.real_name=t})),La(),La(),Fa(13,"mat-form-field"),Fa(14,"mat-label"),Fa(15,"uds-translate"),_s(16,"Comments"),La(),La(),Fa(17,"input",5),qa("ngModelChange",(function(t){return e.user.comments=t})),La(),La(),Fa(18,"mat-form-field"),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"State"),La(),La(),Fa(22,"mat-select",6),qa("ngModelChange",(function(t){return e.user.state=t})),Fa(23,"mat-option",7),Fa(24,"uds-translate"),_s(25,"Enabled"),La(),La(),Fa(26,"mat-option",8),Fa(27,"uds-translate"),_s(28,"Disabled"),La(),La(),Fa(29,"mat-option",9),Fa(30,"uds-translate"),_s(31,"Blocked"),La(),La(),La(),La(),Fa(32,"mat-form-field"),Fa(33,"mat-label"),Fa(34,"uds-translate"),_s(35,"Role"),La(),La(),Fa(36,"mat-select",10),qa("ngModelChange",(function(t){return e.user.role=t}))("valueChange",(function(t){return e.roleChanged(t)})),Fa(37,"mat-option",11),Fa(38,"uds-translate"),_s(39,"Admin"),La(),La(),Fa(40,"mat-option",12),Fa(41,"uds-translate"),_s(42,"Staff member"),La(),La(),Fa(43,"mat-option",13),Fa(44,"uds-translate"),_s(45,"User"),La(),La(),La(),La(),Aa(46,KT,4,2,"mat-form-field",4),Fa(47,"mat-form-field"),Fa(48,"mat-label"),Fa(49,"uds-translate"),_s(50,"Groups"),La(),La(),Fa(51,"mat-select",14),qa("ngModelChange",(function(t){return e.user.groups=t})),Aa(52,ZT,2,2,"mat-option",15),La(),La(),La(),La(),Fa(53,"mat-dialog-actions"),Fa(54,"button",16),Fa(55,"uds-translate"),_s(56,"Cancel"),La(),La(),Fa(57,"button",17),qa("click",(function(t){return e.save()})),Fa(58,"uds-translate"),_s(59,"Ok"),La(),La(),La()),2&t){var n=Oa(3);vr(1),Ra("ngIf",e.user.id)("ngIfElse",n),vr(5),Ra("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),vr(1),Ra("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),vr(5),Ra("ngModel",e.user.real_name),vr(5),Ra("ngModel",e.user.comments),vr(5),Ra("ngModel",e.user.state),vr(14),Ra("ngModel",e.user.role),vr(10),Ra("ngIf",e.authenticator.type_info.needsPassword),vr(5),Ra("ngModel",e.user.groups),vr(1),Ra("ngForOf",e.groups)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,_A,VC,xd,ux,mx,ox,zT,LT],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),XT=["thumbContainer"],QT=["toggleBar"],JT=["input"],tR=function(){return{enterDuration:150}},eR=["*"],nR=new Gt("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,disableDragValue:!1}}}),iR=0,rR={provide:cD,useExisting:It((function(){return aR})),multi:!0},oR=function(){return function(t,e){this.source=t,this.checked=e}}(),aR=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;return l._focusMonitor=n,l._changeDetectorRef=i,l._ngZone=o,l.defaults=a,l._animationMode=s,l._dir=u,l._onChange=function(t){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-"+ ++iR,l._required=!1,l._checked=!1,l._dragging=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new Zu,l.toggleChange=new Zu,l.dragChange=new Zu,l.tabIndex=parseInt(r)||0,l}return r(e,t),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=Ly(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){e||Promise.resolve().then((function(){return t._onTouched()}))}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype._onChangeEvent=function(t){t.stopPropagation(),this._dragging||this.toggleChange.emit(),this._dragging||this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},e.prototype._onInputClick=function(t){t.stopPropagation()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},e.prototype.focus=function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)},e.prototype.toggle=function(){this.checked=!this.checked,this._onChange(this.checked)},e.prototype._emitChangeEvent=function(){this._onChange(this.checked),this.change.emit(new oR(this,this.checked))},e.prototype._getDragPercentage=function(t){var e=t/this._thumbBarWidth*100;return this._previousChecked&&(e+=100),Math.max(0,Math.min(e,100))},e.prototype._onDragStart=function(){if(!this.disabled&&!this._dragging){var t=this._thumbEl.nativeElement;this._thumbBarWidth=this._thumbBarEl.nativeElement.clientWidth-t.clientWidth,t.classList.add("mat-dragging"),this._previousChecked=this.checked,this._dragging=!0}},e.prototype._onDrag=function(t){if(this._dragging){var e=this._dir&&"rtl"===this._dir.value?-1:1;this._dragPercentage=this._getDragPercentage(t.deltaX*e),this._thumbEl.nativeElement.style.transform="translate3d("+this._dragPercentage/100*this._thumbBarWidth*e+"px, 0, 0)"}},e.prototype._onDragEnd=function(){var t=this;if(this._dragging){var e=this._dragPercentage>50;e!==this.checked&&(this.dragChange.emit(),this.defaults.disableDragValue||(this.checked=e,this._emitChangeEvent())),this._ngZone.runOutsideAngular((function(){return setTimeout((function(){t._dragging&&(t._dragging=!1,t._thumbEl.nativeElement.classList.remove("mat-dragging"),t._thumbEl.nativeElement.style.transform="")}))}))}},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Pb),Ia(Ko),Pa("tabindex"),Ia(Vl),Ia(nR),Ia(Hw,8),Ia(Ry,8))},e.\u0275cmp=we({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(ul(XT,!0),ul(QT,!0),ul(JT,!0)),2&t&&(al(n=hl())&&(e._thumbEl=n.first),al(n=hl())&&(e._thumbBarEl=n.first),al(n=hl())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e._inputElement.nativeElement.focus()})),2&t&&(ks("id",e.id),Da("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),ls("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[Us([rR]),Es],ngContentSelectors:eR,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container",3,"slidestart","slide","slideend"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"label",0,1),Fa(2,"div",2,3),Fa(4,"input",4,5),qa("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),La(),Fa(6,"div",6,7),qa("slidestart",(function(t){return e._onDragStart()}))("slide",(function(t){return e._onDrag(t)}))("slideend",(function(t){return e._onDragEnd()})),ja(8,"div",8),Fa(9,"div",9),ja(10,"div",10),La(),La(),La(),Fa(11,"span",11,12),qa("cdkObserveContent",(function(t){return e._onLabelTextChange()})),Fa(13,"span",13),_s(14,"\xa0"),La(),Qa(15),La(),La()),2&t){var n=Oa(1),i=Oa(12);Da("for",e.inputId),vr(2),ls("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),vr(2),Ra("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),Da("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),vr(5),Ra("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Bu(17,tR))}},directives:[PC,cb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px,0,0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging{transition-duration:0s}.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media (hover:none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}@media (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:1px solid #000}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background:#000;border:1px solid #fff}.mat-slide-toggle-bar{background:#fff}.mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:1px dotted;outline-offset:5px}}@media (-ms-high-contrast:black-on-white){.mat-slide-toggle-bar{border:1px solid #000}}"],encapsulation:2,changeDetection:0}),e}(rC(nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"accent"))),sR={provide:kD,useExisting:It((function(){return uR})),multi:!0},uR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Us([sR]),Es]});var n=ei(e);return e}(WE),lR=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),cR=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:Ep,useClass:kC}],imports:[[lR,TC,tC,db],lR,tC]}),t}();function dR(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"uds-translate"),_s(2,"Edit group"),La(),_s(3),La()),2&t){var n=Za();vr(3),Cs(" ",n.group.name," ")}}function pR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New group"),La())}function hR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",13),qa("ngModelChange",(function(t){return Ue(n),Za(2).group.name=t})),La(),La()}if(2&t){var i=Za(2);vr(2),Cs(" ",i.authenticator.type_info.groupNameLabel," "),vr(1),Ra("ngModel",i.group.name)("disabled",i.group.id)}}function fR(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),xs(" ",n.id," (",n.name,") ")}}function mR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",14),qa("ngModelChange",(function(t){return Ue(n),Za(2).group.name=t}))("input",(function(t){return Ue(n),Za(2).filterGroup(t)})),La(),Fa(4,"mat-autocomplete",null,15),Aa(6,fR,2,3,"mat-option",16),La(),La()}if(2&t){var i=Oa(5),r=Za(2);vr(2),Cs(" ",r.authenticator.type_info.groupNameLabel," "),vr(1),Ra("ngModel",r.group.name)("matAutocomplete",i),vr(3),Ra("ngForOf",r.fltrGroup)}}function gR(t,e){if(1&t&&(Na(0),Aa(1,hR,4,3,"mat-form-field",12),Aa(2,mR,7,4,"mat-form-field",12),Ba()),2&t){var n=Za();vr(1),Ra("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),vr(1),Ra("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function yR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),Fa(2,"uds-translate"),_s(3,"Meta group name"),La(),La(),Fa(4,"input",13),qa("ngModelChange",(function(t){return Ue(n),Za().group.name=t})),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.group.name)("disabled",i.group.id)}}function vR(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function bR(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Service Pools"),La(),La(),Fa(5,"mat-select",18),qa("ngModelChange",(function(t){return Ue(n),Za().group.pools=t})),Aa(6,vR,2,2,"mat-option",16),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.group.pools),vr(1),Ra("ngForOf",i.servicePools)}}function _R(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=Za().$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function wR(t,e){if(1&t&&(Na(0),Aa(1,_R,2,2,"mat-option",22),Ba()),2&t){var n=e.$implicit;vr(1),Ra("ngIf","group"===n.type)}}function CR(t,e){if(1&t){var n=za();Fa(0,"div",19),Fa(1,"span",20),Fa(2,"uds-translate"),_s(3,"Match mode"),La(),La(),Fa(4,"mat-slide-toggle",6),qa("ngModelChange",(function(t){return Ue(n),Za().group.meta_if_any=t})),_s(5),La(),La(),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Selected Groups"),La(),La(),Fa(10,"mat-select",18),qa("ngModelChange",(function(t){return Ue(n),Za().group.groups=t})),Aa(11,wR,2,1,"ng-container",21),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.group.meta_if_any),vr(1),Cs(" ",i.getMatchValue()," "),vr(5),Ra("ngModel",i.group.groups),vr(1),Ra("ngForOf",i.groups)}}var xR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe((function(e){t.group=e}),(function(e){t.dialogRef.close()})),"meta"===this.group.type?e.summary().subscribe((function(e){return t.groups=e})):this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e}))},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe((function(t){e.fltrGroup.length=0,t.forEach((function(t){e.fltrGroup.push(t)}))}))},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,dR,4,1,"div",1),Aa(2,pR,2,0,"ng-template",null,2,yl),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",3),Aa(6,gR,3,2,"ng-container",1),Aa(7,yR,5,2,"ng-template",null,4,yl),Fa(9,"mat-form-field"),Fa(10,"mat-label"),Fa(11,"uds-translate"),_s(12,"Comments"),La(),La(),Fa(13,"input",5),qa("ngModelChange",(function(t){return e.group.comments=t})),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-label"),Fa(16,"uds-translate"),_s(17,"State"),La(),La(),Fa(18,"mat-select",6),qa("ngModelChange",(function(t){return e.group.state=t})),Fa(19,"mat-option",7),Fa(20,"uds-translate"),_s(21,"Enabled"),La(),La(),Fa(22,"mat-option",8),Fa(23,"uds-translate"),_s(24,"Disabled"),La(),La(),La(),La(),Aa(25,bR,7,2,"ng-container",1),Aa(26,CR,12,4,"ng-template",null,9,yl),La(),La(),Fa(28,"mat-dialog-actions"),Fa(29,"button",10),Fa(30,"uds-translate"),_s(31,"Cancel"),La(),La(),Fa(32,"button",11),qa("click",(function(t){return e.save()})),Fa(33,"uds-translate"),_s(34,"Ok"),La(),La(),La()),2&t){var n=Oa(3),i=Oa(8),r=Oa(27);vr(1),Ra("ngIf",e.group.id)("ngIfElse",n),vr(5),Ra("ngIf","group"===e.group.type)("ngIfElse",i),vr(7),Ra("ngModel",e.group.comments),vr(5),Ra("ngModel",e.group.state),vr(7),Ra("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,_A,VC,ux,mx,ox,zT,LT,xd,aR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function kR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function SR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,kR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.group)}}function DR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services Pools"),La())}function ER(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,DR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.servicesPools)}}function AR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned Services"),La())}function OR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,AR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.userServices)}}var IR=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],PR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],TR=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],RR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe((function(e){t.group=new oT(django.gettext("Groups"),(function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(U((function(t){return t.filter((function(t){return e.groups.includes(t.id)}))})))}),IR,t.user.id+"infogrp"),t.servicesPools=new oT(django.gettext("Services Pools"),(function(){return t.users.invoke(t.user.id+"/servicesPools")}),PR,t.user.id+"infopool"),t.userServices=new oT(django.gettext("Assigned services"),(function(){return t.users.invoke(t.user.id+"/userServices").pipe(U((function(e){return e.map((function(e){return e.in_use=t.api.yesno(e.in_use),e}))})))}),TR,t.user.id+"userservpool")}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"mat-tab-group"),Aa(6,SR,3,1,"mat-tab",1),Aa(7,ER,3,1,"mat-tab",1),Aa(8,OR,3,1,"mat-tab",1),La(),La(),Fa(9,"mat-dialog-actions"),Fa(10,"button",2),Fa(11,"uds-translate"),_s(12,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.user.name,"\n"),vr(3),Ra("ngIf",e.group),vr(1),Ra("ngIf",e.servicesPools),vr(1),Ra("ngIf",e.userServices))},directives:[ax,vx,sx,ek,Sd,ux,mx,ox,Kx,Yx,JP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function MR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services Pools"),La())}function FR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,MR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.servicesPools)}}function LR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Users"),La())}function jR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,LR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.users)}}function NR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function BR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,NR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.groups)}}var VR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],zR=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Lk.DATETIME}],HR=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],UR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new oT(django.gettext("Service pools"),(function(){return e.invoke(t.data.group.id+"/servicesPools")}),VR,this.data.group.id+"infopls"),this.users=new oT(django.gettext("Users"),(function(){return e.invoke(t.data.group.id+"/users").pipe(U((function(t){return t.map((function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t}))})))}),zR,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new oT(django.gettext("Groups"),(function(){return e.overview().pipe(U((function(e){return e.filter((function(e){return t.data.group.groups.includes(e.id)}))})))}),HR,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"mat-tab-group"),Aa(5,FR,3,1,"mat-tab",1),Aa(6,jR,3,1,"mat-tab",1),Aa(7,BR,3,1,"mat-tab",1),La(),La(),Fa(8,"mat-dialog-actions"),Fa(9,"button",2),Fa(10,"uds-translate"),_s(11,"Ok"),La(),La(),La()),2&t&&(vr(5),Ra("ngIf",e.servicesPools),vr(1),Ra("ngIf",e.users),vr(1),Ra("ngIf",e.groups))},directives:[ax,vx,sx,ek,Sd,ux,mx,ox,Kx,Yx,JP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function qR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function WR(t,e){if(1&t&&ja(0,"uds-information",16),2&t){var n=Za(2);Ra("value",n.authenticator)("gui",n.gui)}}function GR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Users"),La())}function YR(t,e){if(1&t){var n=za();Fa(0,"uds-table",17),qa("loaded",(function(t){return Ue(n),Za(2).onLoad(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewUser(t)}))("editAction",(function(t){return Ue(n),Za(2).onEditUser(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteUser(t)}))("customButtonAction",(function(t){return Ue(n),Za(2).onUserInformation(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function KR(t,e){if(1&t){var n=za();Fa(0,"uds-table",18),qa("loaded",(function(t){return Ue(n),Za(2).onLoad(t)}))("editAction",(function(t){return Ue(n),Za(2).onEditUser(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteUser(t)}))("customButtonAction",(function(t){return Ue(n),Za(2).onUserInformation(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function ZR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function $R(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function XR(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,qR,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,WR,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,GR,2,0,"ng-template",9),Fa(9,"div",10),Aa(10,YR,1,5,"uds-table",12),Aa(11,KR,1,5,"uds-table",13),La(),La(),Fa(12,"mat-tab"),Aa(13,ZR,2,0,"ng-template",9),Fa(14,"div",10),Fa(15,"uds-table",14),qa("loaded",(function(t){return Ue(n),Za().onLoad(t)}))("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("editAction",(function(t){return Ue(n),Za().onEditGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)}))("customButtonAction",(function(t){return Ue(n),Za().onGroupInformation(t)})),La(),La(),La(),Fa(16,"mat-tab"),Aa(17,$R,2,0,"ng-template",9),Fa(18,"div",10),ja(19,"uds-logs-table",15),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.authenticator&&i.gui),vr(4),Ra("ngIf",i.authenticator.type_info.canCreateUsers),vr(1),Ra("ngIf",!i.authenticator.type_info.canCreateUsers),vr(4),Ra("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id),vr(4),Ra("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var QR=function(t){return["/authenticators",t]},JR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:jk.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe((function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){$T.launch(this.api,this.authenticator).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditUser=function(t){$T.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){xR.launch(this.api,this.authenticator,t.param.type).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditGroup=function(t){xR.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){RR.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){UR.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,XR,20,13,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,QR,e.authenticator?e.authenticator.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/services.png"),qi),vr(1),Cs(" \xa0",null==e.authenticator?null:e.authenticator.name," "),vr(1),Ra("ngIf",e.authenticator))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[""]}),t}(),tM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:4,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),eM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-transports"]],decls:2,vars:5,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0))},directives:[JP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),nM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-networks"]],decls:2,vars:4,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),iM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-proxies"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),rM=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[Bk.getGotoButton("provider","provider_id"),Bk.getGotoButton("service","provider_id","service_id"),Bk.getGotoButton("osmanager","osmanager_id"),Bk.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach((function(e){return t.all[e].gui.rdonly=!0}));this.rest.providers.service(t.all.service_id.value).subscribe((function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe((function(e){e.forEach((function(e){e.servicesTypes.forEach((function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})}))})),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.gui.values[0].id:""})):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach((function(e){return t.all[e].gui.rdonly=!i.info.uses_cache})),!0===i.info.uses_cache&&!1===i.info.uses_cache_l2&&(t.all.cache_l2_srvs.gui.rdonly=!1),t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)})),n.forEach((function(e){t.all[e].gui.rdonly=!0}))}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Sx.CHECKBOX,order:150,defvalue:"true"}}]).subscribe((function(t){return e.onChange(t)}))},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe((function(t){return e.onChange(t)}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools"]],decls:1,vars:6,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)},directives:[JP],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function oM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function aM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",9),qa("changed",(function(t){return Ue(n),Za().userFilter=t})),La()}}function sM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var uM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Change owner of assigned service"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",1),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Authenticator"),La(),La(),Fa(9,"mat-select",2),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(10,oM,2,2,"mat-option",3),La(),La(),Fa(11,"mat-form-field"),Fa(12,"mat-label"),Fa(13,"uds-translate"),_s(14,"User"),La(),La(),Fa(15,"mat-select",4),qa("ngModelChange",(function(t){return e.userId=t})),Aa(16,aM,1,0,"uds-mat-select-search",5),Aa(17,sM,2,2,"mat-option",3),La(),La(),La(),La(),Fa(18,"mat-dialog-actions"),Fa(19,"button",6),Fa(20,"uds-translate"),_s(21,"Cancel"),La(),La(),Fa(22,"button",7),qa("click",(function(t){return e.save()})),Fa(23,"uds-translate"),_s(24,"Ok"),La(),La(),La()),2&t&&(vr(9),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.userId),vr(1),Ra("ngIf",e.users.length>10),vr(1),Ra("ngForOf",e.filteredUsers()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,xd,Sd,ux,mx,ox,VC,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function lM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New access rule for"),La())}function cM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit access rule for"),La())}function dM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Default fallback access for"),La())}function pM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",11),qa("changed",(function(t){return Ue(n),Za(2).calendarsFilter=t})),La()}}function hM(t,e){if(1&t&&(Fa(0,"mat-option",12),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function fM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Priority"),La(),La(),Fa(5,"input",8),qa("ngModelChange",(function(t){return Ue(n),Za().accessRule.priority=t})),La(),La(),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Calendar"),La(),La(),Fa(10,"mat-select",3),qa("ngModelChange",(function(t){return Ue(n),Za().accessRule.calendarId=t})),Aa(11,pM,1,0,"uds-mat-select-search",9),Aa(12,hM,2,2,"mat-option",10),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.accessRule.priority),vr(5),Ra("ngModel",i.accessRule.calendarId),vr(1),Ra("ngIf",i.calendars.length>10),vr(1),Ra("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var mM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe((function(e){t.calendars=e})),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe((function(e){t.accessRule=e})):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe((function(e){return t.accessRule.access=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Aa(1,lM,2,0,"uds-translate",1),Aa(2,cM,2,0,"uds-translate",1),Aa(3,dM,2,0,"uds-translate",1),_s(4),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",2),Aa(7,fM,13,4,"ng-container",1),Fa(8,"mat-form-field"),Fa(9,"mat-label"),Fa(10,"uds-translate"),_s(11,"Action"),La(),La(),Fa(12,"mat-select",3),qa("ngModelChange",(function(t){return e.accessRule.access=t})),Fa(13,"mat-option",4),_s(14," ALLOW "),La(),Fa(15,"mat-option",5),_s(16," DENY "),La(),La(),La(),La(),La(),Fa(17,"mat-dialog-actions"),Fa(18,"button",6),Fa(19,"uds-translate"),_s(20,"Cancel"),La(),La(),Fa(21,"button",7),qa("click",(function(t){return e.save()})),Fa(22,"uds-translate"),_s(23,"Ok"),La(),La(),La()),2&t&&(vr(1),Ra("ngIf",void 0===e.accessRule.id),vr(1),Ra("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),vr(1),Ra("ngIf",-1===e.accessRule.id),vr(1),Cs(" ",e.pool.name,"\n"),vr(3),Ra("ngIf",-1!==e.accessRule.id),vr(5),Ra("ngModel",e.accessRule.access))},directives:[ax,Sd,sx,sD,tD,vx,_A,wD,AE,VC,ux,mx,ox,uI,MD,mD,xd,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function gM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function yM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",9),qa("changed",(function(t){return Ue(n),Za().groupFilter=t})),La()}}function vM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var bM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe((function(e){t.groups=e}))},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return""===this.groupFilter?this.groups:this.groups.filter((function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New group for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Authenticator"),La(),La(),Fa(10,"mat-select",2),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(11,gM,2,2,"mat-option",3),La(),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Group"),La(),La(),Fa(16,"mat-select",4),qa("ngModelChange",(function(t){return e.groupId=t})),Aa(17,yM,1,0,"uds-mat-select-search",5),Aa(18,vM,2,2,"mat-option",3),La(),La(),La(),La(),Fa(19,"mat-dialog-actions"),Fa(20,"button",6),Fa(21,"uds-translate"),_s(22,"Cancel"),La(),La(),Fa(23,"button",7),qa("click",(function(t){return e.save()})),Fa(24,"uds-translate"),_s(25,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.pool.name,"\n"),vr(7),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.groupId),vr(1),Ra("ngIf",e.groups.length>10),vr(1),Ra("ngForOf",e.filteredGroups()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,xd,Sd,ux,mx,ox,VC,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function _M(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",7),qa("changed",(function(t){return Ue(n),Za().transportsFilter=t})),La()}}function wM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var CM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe((function(e){t.transports=e.filter((function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)}))}))},t.prototype.filteredTransports=function(){var t=this;return""===this.transportsFilter?this.transports:this.transports.filter((function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New transport for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Transport"),La(),La(),Fa(10,"mat-select",2),qa("ngModelChange",(function(t){return e.transportId=t})),Aa(11,_M,1,0,"uds-mat-select-search",3),Aa(12,wM,2,2,"mat-option",4),La(),La(),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",5),Fa(15,"uds-translate"),_s(16,"Cancel"),La(),La(),Fa(17,"button",6),qa("click",(function(t){return e.save()})),Fa(18,"uds-translate"),_s(19,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.transportId),vr(1),Ra("ngIf",e.transports.length>10),vr(1),Ra("ngForOf",e.filteredTransports()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,Sd,xd,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),xM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New publication for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Reason"),La(),La(),Fa(10,"input",2),qa("ngModelChange",(function(t){return e.reason=t})),La(),La(),La(),La(),Fa(11,"mat-dialog-actions"),Fa(12,"button",3),Fa(13,"uds-translate"),_s(14,"Cancel"),La(),La(),Fa(15,"button",4),qa("click",(function(t){return e.save()})),Fa(16,"uds-translate"),_s(17,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.reason))},directives:[ax,vx,sx,sD,tD,uI,mD,wD,AE,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),kM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Changelog of"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),ja(5,"uds-table",1,2),La(),Fa(7,"mat-dialog-actions"),Fa(8,"button",3),Fa(9,"uds-translate"),_s(10,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(2),Ra("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[ax,vx,sx,JP,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function SM(t,e){1&t&&(Na(0),Fa(1,"uds-translate"),_s(2,"Edit action for"),La(),Ba())}function DM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New action for"),La())}function EM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za().calendarsFilter=t})),La()}}function AM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function OM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.description," ")}}function IM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za(2).transportsFilter=t})),La()}}function PM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function TM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Transport"),La(),La(),Fa(5,"mat-select",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),Aa(6,IM,1,0,"uds-mat-select-search",5),Aa(7,PM,2,2,"mat-option",6),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.paramValue),vr(1),Ra("ngIf",i.transports.length>10),vr(1),Ra("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function RM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function MM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za(2).groupsFilter=t})),La()}}function FM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",Za(2).authenticator+"@"+n.id),vr(1),Cs(" ",n.name," ")}}function LM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Authenticator"),La(),La(),Fa(5,"mat-select",10),qa("ngModelChange",(function(t){return Ue(n),Za().authenticator=t}))("valueChange",(function(t){return Ue(n),Za().changedAuthenticator(t)})),Aa(6,RM,2,2,"mat-option",6),La(),La(),Fa(7,"mat-form-field"),Fa(8,"mat-label"),Fa(9,"uds-translate"),_s(10,"Group"),La(),La(),Fa(11,"mat-select",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),Aa(12,MM,1,0,"uds-mat-select-search",5),Aa(13,FM,2,2,"mat-option",6),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.authenticator),vr(1),Ra("ngForOf",i.authenticators),vr(5),Ra("ngModel",i.paramValue),vr(1),Ra("ngIf",i.groups.length>10),vr(1),Ra("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function jM(t,e){if(1&t){var n=za();Na(0),Fa(1,"div",8),Fa(2,"span",16),_s(3),La(),_s(4,"\xa0 "),Fa(5,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),La(),La(),Ba()}if(2&t){var i=Za();vr(3),ws(i.parameter.description),vr(2),Ra("ngModel",i.paramValue)}}function NM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),_s(3),La(),Fa(4,"input",17),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),La(),La(),Ba()}if(2&t){var i=Za();vr(3),Cs(" ",i.parameter.description," "),vr(1),Ra("type",i.parameter.type)("ngModel",i.paramValue)}}var BM=function(){return["transport","group","bool"]},VM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){return t.authenticators=e})),this.rest.transports.summary().subscribe((function(e){return t.transports=e})),this.rest.calendars.summary().subscribe((function(e){return t.calendars=e})),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe((function(e){t.actionList=e,t.actionList.forEach((function(e){t.paramsDict[e.id]=e.params[0]})),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe((function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)}))}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe((function(t){return e.groups=t}))},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,SM,3,0,"ng-container",1),Aa(2,DM,2,0,"ng-template",null,2,yl),_s(4),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",3),Fa(7,"mat-form-field"),Fa(8,"mat-label"),Fa(9,"uds-translate"),_s(10,"Calendar"),La(),La(),Fa(11,"mat-select",4),qa("ngModelChange",(function(t){return e.scheduledAction.calendarId=t})),Aa(12,EM,1,0,"uds-mat-select-search",5),Aa(13,AM,2,2,"mat-option",6),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-label"),Fa(16,"uds-translate"),_s(17,"Events offset (minutes)"),La(),La(),Fa(18,"input",7),qa("ngModelChange",(function(t){return e.scheduledAction.eventsOffset=t})),La(),La(),Fa(19,"div",8),Fa(20,"span",9),Fa(21,"uds-translate"),_s(22,"At the beginning of the interval?"),La(),La(),Fa(23,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return e.scheduledAction.atStart=t})),_s(24),La(),La(),Fa(25,"mat-form-field"),Fa(26,"mat-label"),Fa(27,"uds-translate"),_s(28,"Action"),La(),La(),Fa(29,"mat-select",10),qa("ngModelChange",(function(t){return e.scheduledAction.action=t}))("valueChange",(function(t){return e.changedAction(t)})),Aa(30,OM,2,2,"mat-option",6),La(),La(),Aa(31,TM,8,3,"ng-container",11),Aa(32,LM,14,5,"ng-container",11),Aa(33,jM,6,2,"ng-container",11),Aa(34,NM,5,3,"ng-container",11),La(),La(),Fa(35,"mat-dialog-actions"),Fa(36,"button",12),Fa(37,"uds-translate"),_s(38,"Cancel"),La(),La(),Fa(39,"button",13),qa("click",(function(t){return e.save()})),Fa(40,"uds-translate"),_s(41,"Ok"),La(),La(),La()),2&t){var n=Oa(3);vr(1),Ra("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.scheduledAction.calendarId),vr(1),Ra("ngIf",e.calendars.length>10),vr(1),Ra("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),vr(5),Ra("ngModel",e.scheduledAction.eventsOffset),vr(5),Ra("ngModel",e.scheduledAction.atStart),vr(1),Cs(" ",e.api.yesno(e.scheduledAction.atStart)," "),vr(5),Ra("ngModel",e.scheduledAction.action),vr(1),Ra("ngForOf",e.actionList),vr(1),Ra("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf","group"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf",(null==e.parameter?null:e.parameter.type)&&!Bu(15,BM).includes(e.parameter.type))}},directives:[ax,Sd,sx,sD,tD,vx,_A,wD,AE,xd,uI,MD,mD,aR,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),zM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Logs of"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),ja(5,"uds-logs-table",1),La(),Fa(6,"mat-dialog-actions"),Fa(7,"button",2),Fa(8,"uds-translate"),_s(9,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.userService.name,"\n"),vr(2),Ra("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[ax,vx,sx,hT,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function HM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",8),qa("changed",(function(t){return Ue(n),Za().assignablesServicesFilter=t})),La()}}function UM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}function qM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function WM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",8),qa("changed",(function(t){return Ue(n),Za().userFilter=t})),La()}}function GM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var YM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()})),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe((function(e){t.assignablesServices=e}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.filteredAssignables=function(){var t=this;if(""===this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach((function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Assign service to user manually"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",1),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Service"),La(),La(),Fa(9,"mat-select",2),qa("ngModelChange",(function(t){return e.serviceId=t})),Aa(10,HM,1,0,"uds-mat-select-search",3),Aa(11,UM,2,2,"mat-option",4),La(),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Authenticator"),La(),La(),Fa(16,"mat-select",5),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(17,qM,2,2,"mat-option",4),La(),La(),Fa(18,"mat-form-field"),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"User"),La(),La(),Fa(22,"mat-select",2),qa("ngModelChange",(function(t){return e.userId=t})),Aa(23,WM,1,0,"uds-mat-select-search",3),Aa(24,GM,2,2,"mat-option",4),La(),La(),La(),La(),Fa(25,"mat-dialog-actions"),Fa(26,"button",6),Fa(27,"uds-translate"),_s(28,"Cancel"),La(),La(),Fa(29,"button",7),qa("click",(function(t){return e.save()})),Fa(30,"uds-translate"),_s(31,"Ok"),La(),La(),La()),2&t&&(vr(9),Ra("ngModel",e.serviceId),vr(1),Ra("ngIf",e.assignablesServices.length>10),vr(1),Ra("ngForOf",e.filteredAssignables()),vr(5),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.userId),vr(1),Ra("ngIf",e.users.length>10),vr(1),Ra("ngForOf",e.filteredUsers()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,Sd,xd,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function KM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function ZM(t,e){if(1&t&&ja(0,"uds-information",20),2&t){var n=Za(2);Ra("value",n.servicePool)("gui",n.gui)}}function $M(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned services"),La())}function XM(t,e){if(1&t){var n=za();Fa(0,"uds-table",21),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteAssigned(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function QM(t,e){if(1&t){var n=za();Fa(0,"uds-table",22),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomAssigned(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteAssigned(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function JM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Cache"),La())}function tF(t,e){if(1&t){var n=za();Fa(0,"mat-tab"),Aa(1,JM,2,0,"ng-template",9),Fa(2,"div",10),Fa(3,"uds-table",23),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomCached(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteCache(t)})),La(),La(),La()}if(2&t){var i=Za(2);vr(3),Ra("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)}}function eF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function nF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Transports"),La())}function iF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Publications"),La())}function rF(t,e){if(1&t){var n=za();Fa(0,"mat-tab"),Aa(1,iF,2,0,"ng-template",9),Fa(2,"div",10),Fa(3,"uds-table",24),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomPublication(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewPublication(t)}))("rowSelected",(function(t){return Ue(n),Za(2).onPublicationRowSelect(t)})),La(),La(),La()}if(2&t){var i=Za(2);vr(3),Ra("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)}}function oF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Scheduled actions"),La())}function aF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Access calendars"),La())}function sF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function uF(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,KM,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,ZM,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,$M,2,0,"ng-template",9),Fa(9,"div",10),Aa(10,XM,1,6,"uds-table",12),Aa(11,QM,1,6,"ng-template",null,13,yl),La(),La(),Aa(13,tF,4,6,"mat-tab",14),Fa(14,"mat-tab"),Aa(15,eF,2,0,"ng-template",9),Fa(16,"div",10),Fa(17,"uds-table",15),qa("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)})),La(),La(),La(),Fa(18,"mat-tab"),Aa(19,nF,2,0,"ng-template",9),Fa(20,"div",10),Fa(21,"uds-table",16),qa("newAction",(function(t){return Ue(n),Za().onNewTransport(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteTransport(t)})),La(),La(),La(),Aa(22,rF,4,5,"mat-tab",14),Fa(23,"mat-tab"),Aa(24,oF,2,0,"ng-template",9),Fa(25,"div",10),Fa(26,"uds-table",17),qa("customButtonAction",(function(t){return Ue(n),Za().onCustomScheduleAction(t)}))("newAction",(function(t){return Ue(n),Za().onNewScheduledAction(t)}))("editAction",(function(t){return Ue(n),Za().onEditScheduledAction(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteScheduledAction(t)})),La(),La(),La(),Fa(27,"mat-tab"),Aa(28,aF,2,0,"ng-template",9),Fa(29,"div",10),Fa(30,"uds-table",18),qa("newAction",(function(t){return Ue(n),Za().onNewAccessCalendar(t)}))("editAction",(function(t){return Ue(n),Za().onEditAccessCalendar(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAccessCalendar(t)}))("loaded",(function(t){return Ue(n),Za().onAccessCalendarLoad(t)})),La(),La(),La(),Fa(31,"mat-tab"),Aa(32,sF,2,0,"ng-template",9),Fa(33,"div",10),ja(34,"uds-logs-table",19),La(),La(),La(),La(),La()}if(2&t){var i=Oa(12),r=Za();vr(2),Ra("selectedIndex",r.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",r.servicePool&&r.gui),vr(4),Ra("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),vr(3),Ra("ngIf",r.cache),vr(4),Ra("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id),vr(4),Ra("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id),vr(1),Ra("ngIf",r.publications),vr(4),Ra("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement),vr(4),Ra("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement),vr(4),Ra("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)}}var lF=function(t){return["/pools","service-pools",t]},cF='event'+django.gettext("Logs")+"",dF='schedule'+django.gettext("Launch now")+"",pF='perm_identity'+django.gettext("Change owner")+"",hF='perm_identity'+django.gettext("Assign service")+"",fF='cancel'+django.gettext("Cancel")+"",mF='event'+django.gettext("Changelog")+"",gF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:dF,type:jk.SINGLE_SELECT},Bk.getGotoButton("calendar","calendarId")],this.customButtonAccessCalendars=[Bk.getGotoButton("calendar","calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:pF,type:jk.SINGLE_SELECT},{id:"log",html:cF,type:jk.SINGLE_SELECT},Bk.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:cF,type:jk.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:fF,type:jk.SINGLE_SELECT},{id:"changelog",html:mF,type:jk.ALWAYS}],this.customButtonsGroups=[Bk.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Bk.getGotoButton("transport","id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter((function(t){return["E","R","M","S","C"].includes(t.state)})).forEach((function(e){return t.table.selection.deselect(e)})),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe((function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:hF,type:jk.ALWAYS}),t.rest.servicesPools.gui().subscribe((function(e){t.gui=e.filter((function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)}))}))}))},t.prototype.onNewAssigned=function(t){},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;uM.launch(this.api,e,this.assignedServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id?zM.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id&&YM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onCustomCached=function(t){"log"===t.param.id&&zM.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){bM.launch(this.api,this.servicePool,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){CM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){xM.launch(this.api,this.servicePool).subscribe((function(e){t.table.overview()}))},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe((function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))})):"changelog"===t.param.id&&kM.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){VM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditScheduledAction=function(t){VM.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe((function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe((function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onNewAccessCalendar=function(t){mM.launch(this.api,this.servicePool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){mM.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,uF,35,32,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,lF,e.servicePool?e.servicePool.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/pools.png"),qi),vr(1),Cs(" \xa0",null==e.servicePool?null:e.servicePool.name," "),vr(1),Ra("ngIf",null!==e.servicePool))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}"]}),t}(),yF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:5,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("detailAction",(function(t){return e.onDetail(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0))},directives:[JP],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function vF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New member pool"),La())}function bF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit member pool"),La())}function _F(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",11),qa("changed",(function(t){return Ue(n),Za().servicePoolsFilter=t})),La()}}function wF(t,e){if(1&t&&(Fa(0,"mat-option",12),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var CF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e})),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe((function(e){return t.memberPool=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Aa(1,vF,2,0,"uds-translate",1),Aa(2,bF,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Priority"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.memberPool.priority=t})),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-label"),Fa(12,"uds-translate"),_s(13,"Service pool"),La(),La(),Fa(14,"mat-select",4),qa("ngModelChange",(function(t){return e.memberPool.pool_id=t})),Aa(15,_F,1,0,"uds-mat-select-search",5),Aa(16,wF,2,2,"mat-option",6),La(),La(),Fa(17,"div",7),Fa(18,"span",8),Fa(19,"uds-translate"),_s(20,"Enabled?"),La(),La(),Fa(21,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return e.memberPool.enabled=t})),_s(22),La(),La(),La(),La(),Fa(23,"mat-dialog-actions"),Fa(24,"button",9),Fa(25,"uds-translate"),_s(26,"Cancel"),La(),La(),Fa(27,"button",10),qa("click",(function(t){return e.save()})),Fa(28,"uds-translate"),_s(29,"Ok"),La(),La(),La()),2&t&&(vr(1),Ra("ngIf",!(null!=e.memberPool&&e.memberPool.id)),vr(1),Ra("ngIf",null==e.memberPool?null:e.memberPool.id),vr(7),Ra("ngModel",e.memberPool.priority),vr(5),Ra("ngModel",e.memberPool.pool_id),vr(1),Ra("ngIf",e.servicePools.length>10),vr(1),Ra("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),vr(5),Ra("ngModel",e.memberPool.enabled),vr(1),Cs(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[ax,Sd,sx,sD,tD,vx,uI,MD,mD,wD,AE,_A,xd,aR,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function xF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function kF(t,e){if(1&t&&ja(0,"uds-information",17),2&t){var n=Za(2);Ra("value",n.metaPool)("gui",n.gui)}}function SF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Service pools"),La())}function DF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned services"),La())}function EF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function AF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Access calendars"),La())}function OF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function IF(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,xF,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,kF,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,SF,2,0,"ng-template",9),Fa(9,"div",10),Fa(10,"uds-table",12),qa("newAction",(function(t){return Ue(n),Za().onNewMemberPool(t)}))("editAction",(function(t){return Ue(n),Za().onEditMemberPool(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteMemberPool(t)})),La(),La(),La(),Fa(11,"mat-tab"),Aa(12,DF,2,0,"ng-template",9),Fa(13,"div",10),Fa(14,"uds-table",13),qa("customButtonAction",(function(t){return Ue(n),Za().onCustomAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAssigned(t)})),La(),La(),La(),Fa(15,"mat-tab"),Aa(16,EF,2,0,"ng-template",9),Fa(17,"div",10),Fa(18,"uds-table",14),qa("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)})),La(),La(),La(),Fa(19,"mat-tab"),Aa(20,AF,2,0,"ng-template",9),Fa(21,"div",10),Fa(22,"uds-table",15),qa("newAction",(function(t){return Ue(n),Za().onNewAccessCalendar(t)}))("editAction",(function(t){return Ue(n),Za().onEditAccessCalendar(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAccessCalendar(t)}))("loaded",(function(t){return Ue(n),Za().onAccessCalendarLoad(t)})),La(),La(),La(),Fa(23,"mat-tab"),Aa(24,OF,2,0,"ng-template",9),Fa(25,"div",10),ja(26,"uds-logs-table",16),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.metaPool&&i.gui),vr(4),Ra("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id),vr(4),Ra("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices),vr(4),Ra("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id),vr(4),Ra("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id),vr(4),Ra("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)}}var PF=function(t){return["/pools","meta-pools",t]},TF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[Bk.getGotoButton("pool","pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:pF,type:jk.SINGLE_SELECT},{id:"log",html:cF,type:jk.SINGLE_SELECT},Bk.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe((function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe((function(e){t.gui=e})),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")}))},t.prototype.onNewMemberPool=function(t){CF.launch(this.api,this.memberPools).subscribe((function(){return t.table.overview()}))},t.prototype.onEditMemberPool=function(t){CF.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;uM.launch(this.api,e,this.memberUserServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id&&zM.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){gF.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){bM.launch(this.api,this.metaPool.id,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){mM.launch(this.api,this.metaPool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){mM.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,IF,27,25,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,PF,e.metaPool?e.metaPool.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/metas.png"),qi),vr(1),Cs(" ",null==e.metaPool?null:e.metaPool.name," "),vr(1),Ra("ngIf",e.metaPool))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),RF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("New Service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onDelete=function(t){},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:4,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),MF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-calendars"]],decls:1,vars:4,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[""]}),t}(),FF=["mat-calendar-body",""];function LF(t,e){if(1&t&&(Fa(0,"tr",2),Fa(1,"td",3),_s(2),La(),La()),2&t){var n=Za();vr(1),us("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Da("colspan",n.numCols),vr(1),ws(n.label)}}function jF(t,e){if(1&t&&(Fa(0,"td",7),_s(1),La()),2&t){var n=Za(2);us("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Da("colspan",n._firstRowOffset),vr(1),ws(n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}}function NF(t,e){if(1&t){var n=za();Fa(0,"td",8),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2)._cellClicked(i)})),Fa(1,"div",9),_s(2),La(),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za().index,a=Za();us("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ls("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r)),Ra("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),Da("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a.selectedValue===i.value),vr(1),ls("mat-calendar-body-selected",a.selectedValue===i.value)("mat-calendar-body-today",a.todayValue===i.value),vr(1),ws(i.displayValue)}}function BF(t,e){if(1&t&&(Fa(0,"tr",4),Aa(1,jF,2,6,"td",5),Aa(2,NF,3,20,"td",6),La()),2&t){var n=e.$implicit,i=e.index,r=Za();vr(1),Ra("ngIf",0===i&&r._firstRowOffset),vr(1),Ra("ngForOf",n)}}function VF(t,e){if(1&t&&(Fa(0,"th",5),_s(1),La()),2&t){var n=e.$implicit;Da("aria-label",n.long),vr(1),ws(n.narrow)}}var zF=["*"];function HF(t,e){}function UF(t,e){if(1&t){var n=za();Fa(0,"mat-month-view",5),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("selectedChange",(function(t){return Ue(n),Za()._dateSelected(t)}))("_userSelection",(function(t){return Ue(n),Za()._userSelected()})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function qF(t,e){if(1&t){var n=za();Fa(0,"mat-year-view",6),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("monthSelected",(function(t){return Ue(n),Za()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return Ue(n),Za()._goToDateInView(t,"month")})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function WF(t,e){if(1&t){var n=za();Fa(0,"mat-multi-year-view",7),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("yearSelected",(function(t){return Ue(n),Za()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return Ue(n),Za()._goToDateInView(t,"year")})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var GF=["button"];function YF(t,e){1&t&&(pn(),Fa(0,"svg",3),ja(1,"path",4),La())}var KF=[[["","matDatepickerToggleIcon",""]]],ZF=["[matDatepickerToggleIcon]"];function $F(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var XF=function(){function t(){this.changes=new P,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.prototype.formatYearRange=function(t,e){return t+" \u2013 "+e},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),QF=function(){return function(t,e,n,i,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r}}(),JF=function(){function t(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Zu}return t.prototype._cellClicked=function(t){t.enabled&&this.selectedValueChange.emit(t.value)},t.prototype.ngOnChanges=function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")},t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){var e=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()}))}))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl))},t.\u0275cmp=we({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[Rs()],attrs:FF,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell","role","button",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell","role","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(Aa(0,LF,3,6,"tr",0),Aa(1,BF,3,2,"tr",1)),2&t&&(Ra("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],encapsulation:2,changeDetection:0}),t}(),tL=function(){function t(t,e,n,i){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this.selectedChange=new Zu,this._userSelection=new Zu,this.activeDateChange=new Zu,!this._dateAdapter)throw $F("DateAdapter");if(!this._dateFormats)throw $F("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(i)}this._userSelection.emit()},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._initWeekdays=function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(cC,8),Ia(lC,8),Ia(Ry,8))},t.\u0275cmp=we({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&ul(JF,!0),2&t&&al(n=hl())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Fa(0,"table",0),Fa(1,"thead",1),Fa(2,"tr"),Aa(3,VF,2,2,"th",2),La(),Fa(4,"tr"),ja(5,"th",3),La(),La(),Fa(6,"tbody",4),qa("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),La(),La()),2&t&&(vr(3),Ra("ngForOf",e._weekdays),vr(3),Ra("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[xd,JF],encapsulation:2,changeDetection:0}),t}(),eL=function(){function t(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new Zu,this.yearSelected=new Zu,this.activeDateChange=new Zu,!this._dateAdapter)throw $F("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),nL(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-iL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(e+n),4==i.length&&(this._years.push(i.map((function(e){return t._createCellForYear(e)}))),i=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-iL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-iL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._getActiveCell=function(){return iL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new QF(t,e,e,this._shouldEnableYear(t))},t.prototype._shouldEnableYear=function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1},t.prototype._isYearAndMonthBeforeMinDate=function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",uy("120ms cubic-bezier(0, 0, 0.2, 1)",dy({opacity:1,transform:"scale(1, 1)"}))),fy("* => void",uy("100ms linear",dy({opacity:0})))]),fadeInCalendar:sy("fadeInCalendar",[py("void",dy({opacity:0})),py("enter",dy({opacity:1})),fy("void => *",uy("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},lL=0,cL=new Gt("mat-datepicker-scroll-strategy"),dL={provide:cL,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},pL=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.ngAfterViewInit=function(){this._calendar.focusActiveCell()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks))},e.\u0275cmp=we({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&ul(sL,!0),2&t&&al(n=hl())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){2&t&&(Ss("@transformPanel","enter"),ls("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Es],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(Fa(0,"mat-calendar",0),qa("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e.datepicker.close()})),La()),2&t&&Ra("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[sL,Sb,_d],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],encapsulation:2,data:{animation:[uL.transformPanel,uL.fadeInCalendar]},changeDetection:0}),e}(nC(function(){return function(t){this._elementRef=t}}())),hL=function(){function t(t,e,n,i,r,o,a,s){if(this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=o,this._dir=a,this._document=s,this.startView="month",this._touchUi=!1,this.yearSelected=new Zu,this.monthSelected=new Zu,this.openedStream=new Zu,this.closedStream=new Zu,this._opened=!1,this.id="mat-datepicker-"+lL++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=h.EMPTY,this._disabledChange=new P,this._selectedChanged=new P,!this._dateAdapter)throw $F("DateAdapter");this._scrollStrategy=r}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(t){this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchUi",{get:function(){return this._touchUi},set:function(t){this._touchUi=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Ly(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selected",{get:function(){return this._validSelected},set:function(t){this._validSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null)},t.prototype.select=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)},t.prototype._selectYear=function(t){this.yearSelected.emit(t)},t.prototype._selectMonth=function(t){this.monthSelected.emit(t)},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(t){return e._selected=t}))},t.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},t.prototype.close=function(){var t=this;if(this._opened){this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();var e=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}},t.prototype._openAsDialog=function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(pL,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._dialogRef.componentInstance.datepicker=this,this._setColor()},t.prototype._openAsPopup=function(){var t=this;this._calendarPortal||(this._calendarPortal=new Cy(pL,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._popupRef.updatePosition()})))},t.prototype._createPopup=function(){var t=this,e=new Lv({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),tt(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Hp((function(e){return 27===e.keyCode||t._datepickerInput&&e.altKey&&38===e.keyCode})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))},t.prototype._createPopupPositionStrategy=function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._setColor=function(){var t=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=t),this._dialogRef&&(this._dialogRef.componentInstance.color=t)},t.\u0275fac=function(e){return new(e||t)(Ia(ix),Ia($v),Ia(Vl),Ia(_u),Ia(cL),Ia(lC,8),Ia(Ry,8),Ia(vc,8))},t.\u0275cmp=we({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),fL={provide:cD,useExisting:It((function(){return yL})),multi:!0},mL={provide:kD,useExisting:It((function(){return yL})),multi:!0},gL=function(){return function(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}(),yL=function(){function t(t,e,n,i){var r=this;if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this._formField=i,this.dateChange=new Zu,this.dateInput=new Zu,this._valueChange=new Zu,this._disabledChange=new Zu,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.min||!e||r._dateAdapter.compareDate(r.min,e)<=0?null:{matDatepickerMin:{min:r.min,actual:e}}},this._maxValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.max||!e||r._dateAdapter.compareDate(r.max,e)>=0?null:{matDatepickerMax:{max:r.max,actual:e}}},this._filterValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return r._dateFilter&&e&&!r._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=ED.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw $F("DateAdapter");if(!this._dateFormats)throw $F("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe((function(){r.value=r.value}))}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){var e=this;t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new gL(e,e._elementRef.nativeElement)),e.dateChange.emit(new gL(e,e._elementRef.nativeElement))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=Ly(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&n.blur&&n.blur()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){this._datepicker&&t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e),this._dateAdapter.sameDate(e,this._value)?this._validatorOnChange():(this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new gL(this,this._elementRef.nativeElement)))},t.prototype._onChange=function(){this.dateChange.emit(new gL(this,this._elementRef.nativeElement))},t.prototype._getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},t.prototype._formatValue=function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(lC,8),Ia(cC,8),Ia(sD,8))},t.\u0275dir=Ee({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._onInput(t.target.value)}))("change",(function(t){return e._onChange()}))("blur",(function(t){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(ks("disabled",e.disabled),Da("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[Us([fL,mL,{provide:oI,useExisting:t}])]}),t}(),vL=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),bL=function(){function t(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=h.EMPTY;var i=Number(n);this.tabIndex=i||0===i?i:null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:Vp(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Vp(),i=this.datepicker?tt(this.datepicker.openedStream,this.datepicker.closedStream):Vp();this._stateChanges.unsubscribe(),this._stateChanges=tt(this._intl.changes,e,n,i).subscribe((function(){return t._changeDetectorRef.markForCheck()}))},t.\u0275fac=function(e){return new(e||t)(Ia(XF),Ia(Ko),Pa("tabindex"))},t.\u0275cmp=we({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,vL,!0),2&t&&al(i=hl())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&ul(GF,!0),2&t&&al(n=hl())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e._button.focus()})),2&t&&(Da("tabindex",-1),ls("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Rs()],ngContentSelectors:ZF,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(Xa(KF),Fa(0,"button",0,1),qa("click",(function(t){return e._open(t)})),Aa(2,YF,2,0,"svg",2),Qa(3),La()),2&t&&(Ra("disabled",e.disabled)("disableRipple",e.disableRipple),Da("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),vr(2),Ra("ngIf",!e._customIcon))},directives:[mx,Sd],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t}(),_L=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[XF,dL],imports:[[op,yx,cx,nb,Mb,Oy]]}),t}(),wL=["button"],CL=["*"],xL=new Gt("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),kL={provide:cD,useExisting:It((function(){return AL})),multi:!0},SL=function(){return function(){}}(),DL=0,EL=function(){return function(t,e){this.source=t,this.value=e}}(),AL=function(){function t(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-"+DL++,this.valueChange=new Zu,this.change=new Zu,this.appearance=e&&e.appearance?e.appearance:"standard"}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._selectionModel=new xv(this.multiple,void 0,!1)},t.prototype.ngAfterContentInit=function(){var t;(t=this._selectionModel).select.apply(t,this._buttonToggles.filter((function(t){return t.checked})))},t.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._emitChangeEvent=function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new EL(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)},t.prototype._syncButtonToggle=function(t,e,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1),this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i||this._updateModelValue(n)},t.prototype._isSelected=function(t){return this._selectionModel&&this._selectionModel.isSelected(t)},t.prototype._isPrechecked=function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)},t.prototype._setSelectionByValue=function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)},t.prototype._clearSelection=function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))},t.prototype._selectValue=function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))},t.prototype._updateModelValue=function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(xL,8))},t.\u0275dir=Ee({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,OL,!1),2&t&&al(i=hl())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(Da("aria-disabled",e.disabled),ls("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Us([kL,{provide:SL,useExisting:t}])]}),t}(),OL=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;s._changeDetectorRef=n,s._elementRef=i,s._focusMonitor=r,s._isSingleSelector=!1,s._checked=!1,s.ariaLabelledby=null,s._disabled=!1,s.change=new Zu;var u=Number(o);return s.tabIndex=u||0===u?u:null,s.buttonToggleGroup=e,s.appearance=a&&a.appearance?a.appearance:"standard",s}return r(e,t),Object.defineProperty(e.prototype,"buttonId",{get:function(){return this.id+"-button"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appearance",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Ly(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-"+DL++,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)},e.prototype.ngOnDestroy=function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)},e.prototype.focus=function(t){this._buttonElement.nativeElement.focus(t)},e.prototype._onButtonClick=function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new EL(this,this.value))},e.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(AL,8),Ia(Ko),Ia(Ks),Ia(Pb),Pa("tabindex"),Ia(xL,8))},e.\u0275cmp=we({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&ul(wL,!0),2&t&&al(n=hl())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e.focus()})),2&t&&(Da("tabindex",-1)("id",e.id)("name",null),ls("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],value:"value",tabIndex:"tabIndex"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Es],ngContentSelectors:CL,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"button",0,1),qa("click",(function(t){return e._onButtonClick()})),Fa(2,"div",2),Qa(3),La(),La(),ja(4,"div",3),ja(5,"div",4)),2&t){var n=Oa(1);Ra("id",e.buttonId)("disabled",e.disabled||null),Da("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),vr(5),Ra("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[PC],styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}@media (-ms-high-contrast:active){.mat-button-toggle-group,.mat-button-toggle-standalone{outline:solid 1px}}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border-radius:4px}@media (-ms-high-contrast:active){.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}@media (-ms-high-contrast:active){.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media (-ms-high-contrast:active){.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}}@media (hover:none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}@media (-ms-high-contrast:active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}}@media (-ms-high-contrast:active){.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:0 0;color:inherit;padding:0;margin:0;font:inherit;outline:0;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),e}(iC(function(){return function(){}}())),IL=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,TC],tC]}),t}();function PL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit rule"),La())}function TL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New rule"),La())}function RL(t,e){if(1&t&&(Fa(0,"mat-option",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function ML(t,e){if(1&t&&(Fa(0,"mat-option",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function FL(t,e){if(1&t&&(Fa(0,"mat-button-toggle",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function LL(t,e){if(1&t){var n=za();Fa(0,"div",23),Fa(1,"span",24),Fa(2,"uds-translate"),_s(3,"Weekdays"),La(),La(),Fa(4,"mat-button-toggle-group",25),qa("ngModelChange",(function(t){return Ue(n),Za().wDays=t})),Aa(5,FL,2,2,"mat-button-toggle",8),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.wDays),vr(1),Ra("ngForOf",i.weekDays)}}function jL(t,e){if(1&t){var n=za();Fa(0,"mat-form-field",9),Fa(1,"mat-label"),Fa(2,"uds-translate"),_s(3,"Repeat every"),La(),La(),Fa(4,"input",6),qa("ngModelChange",(function(t){return Ue(n),Za().rule.interval=t})),La(),Fa(5,"div",26),_s(6),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.rule.interval),vr(2),Cs("\xa0",i.frequency(),"")}}var NL={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},BL={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},VL=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")];function zL(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(VL[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")}var HL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(BL).map((function(t){return{id:t,value:BL[t]}})),this.freqs=Object.keys(NL).map((function(t){return{id:t,value:NL[t][2]}})),this.weekDays=VL.map((function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+BL[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,PL,2,0,"uds-translate",1),Aa(2,TL,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Name"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.rule.name=t})),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-label"),Fa(12,"uds-translate"),_s(13,"Comments"),La(),La(),Fa(14,"input",3),qa("ngModelChange",(function(t){return e.rule.comments=t})),La(),La(),Fa(15,"h3"),Fa(16,"uds-translate"),_s(17,"Event"),La(),La(),Fa(18,"mat-form-field",4),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"Start time"),La(),La(),Fa(22,"input",5),qa("ngModelChange",(function(t){return e.startTime=t})),La(),La(),Fa(23,"mat-form-field",4),Fa(24,"mat-label"),Fa(25,"uds-translate"),_s(26,"Duration"),La(),La(),Fa(27,"input",6),qa("ngModelChange",(function(t){return e.rule.duration=t})),La(),La(),Fa(28,"mat-form-field",4),Fa(29,"mat-label"),Fa(30,"uds-translate"),_s(31,"Duration units"),La(),La(),Fa(32,"mat-select",7),qa("ngModelChange",(function(t){return e.rule.duration_unit=t})),Aa(33,RL,2,2,"mat-option",8),La(),La(),Fa(34,"h3"),_s(35," Repetition "),La(),Fa(36,"mat-form-field",9),Fa(37,"mat-label"),Fa(38,"uds-translate"),_s(39," Start date "),La(),La(),Fa(40,"input",10),qa("ngModelChange",(function(t){return e.startDate=t})),La(),ja(41,"mat-datepicker-toggle",11),ja(42,"mat-datepicker",null,12),La(),Fa(44,"mat-form-field",9),Fa(45,"mat-label"),Fa(46,"uds-translate"),_s(47," Repeat until date "),La(),La(),Fa(48,"input",13),qa("ngModelChange",(function(t){return e.endDate=t})),La(),ja(49,"mat-datepicker-toggle",11),ja(50,"mat-datepicker",null,14),La(),Fa(52,"div",15),Fa(53,"mat-form-field",9),Fa(54,"mat-label"),Fa(55,"uds-translate"),_s(56,"Frequency"),La(),La(),Fa(57,"mat-select",16),qa("ngModelChange",(function(t){return e.rule.frequency=t}))("valueChange",(function(t){return e.rule.interval=1})),Aa(58,ML,2,2,"mat-option",8),La(),La(),Aa(59,LL,6,2,"div",17),Aa(60,jL,7,2,"mat-form-field",18),La(),Fa(61,"h3"),Fa(62,"uds-translate"),_s(63,"Summary"),La(),La(),Fa(64,"div",19),_s(65),La(),La(),La(),Fa(66,"mat-dialog-actions"),Fa(67,"button",20),Fa(68,"uds-translate"),_s(69,"Cancel"),La(),La(),Fa(70,"button",21),qa("click",(function(t){return e.save()})),Fa(71,"uds-translate"),_s(72,"Ok"),La(),La(),La()),2&t){var n=Oa(43),i=Oa(51);vr(1),Ra("ngIf",e.rule.id),vr(1),Ra("ngIf",!e.rule.id),vr(7),Ra("ngModel",e.rule.name),vr(5),Ra("ngModel",e.rule.comments),vr(8),Ra("ngModel",e.startTime),vr(5),Ra("ngModel",e.rule.duration),vr(5),Ra("ngModel",e.rule.duration_unit),vr(1),Ra("ngForOf",e.dunits),vr(7),Ra("matDatepicker",n)("ngModel",e.startDate),vr(1),Ra("for",n),vr(7),Ra("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),vr(1),Ra("for",i),vr(8),Ra("ngModel",e.rule.frequency),vr(1),Ra("ngForOf",e.freqs),vr(1),Ra("ngIf","WEEKDAYS"===e.rule.frequency),vr(1),Ra("ngIf","WEEKDAYS"!==e.rule.frequency),vr(5),Cs(" ",e.summary()," "),vr(5),Ra("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,MD,_A,xd,yL,bL,iD,hL,ux,mx,ox,VC,AL,OL],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function UL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Rules"),La())}function qL(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),Fa(3,"mat-tab"),Aa(4,UL,2,0,"ng-template",9),Fa(5,"div",10),Fa(6,"uds-table",11),qa("newAction",(function(t){return Ue(n),Za().onNewRule(t)}))("editAction",(function(t){return Ue(n),Za().onEditRule(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteRule(t)})),La(),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("@.disabled",!0),vr(4),Ra("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)}}var WL=function(t){return["/pools","calendars",t]},GL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe((function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")}))},t.prototype.onNewRule=function(t){HL.launch(this.api,this.calendarRules).subscribe((function(){return t.table.overview()}))},t.prototype.onEditRule=function(t){HL.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?zL(t.interval):t.interval+" "+NL[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+BL[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,qL,7,6,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,WL,e.calendar?e.calendar.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/calendars.png"),qi),vr(1),Cs(" ",null==e.calendar?null:e.calendar.name," "),vr(1),Ra("ngIf",e.calendar))},directives:[Rg,Sd,ek,Kx,Yx,JP,vx],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),YL='event'+django.gettext("Set time mark")+"",KL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"timemark",html:YL,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe((function(i){i&&e.rest.accounts.timemark(n.id).subscribe((function(){e.api.gui.snackbar.open(django.gettext("Time mark stabliched"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):FI("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-accounts"]],decls:1,vars:6,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("customButtonAction",(function(t){return e.onTimeMark(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("onItem",e.processElement)},directives:[JP],styles:[""]}),t}();function ZL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Account usage"),La())}function $L(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),Fa(3,"mat-tab"),Aa(4,ZL,2,0,"ng-template",9),Fa(5,"div",10),Fa(6,"uds-table",11),qa("deleteAction",(function(t){return Ue(n),Za().onDeleteUsage(t)})),La(),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("@.disabled",!0),vr(4),Ra("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var XL=function(t){return["/pools","accounts",t]},QL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe((function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")}))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,$L,7,6,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,XL,e.account?e.account.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/accounts.png"),qi),vr(1),Cs(" ",null==e.account?null:e.account.name," "),vr(1),Ra("ngIf",e.account))},directives:[Rg,Sd,ek,Kx,Yx,JP,vx],styles:[""]}),t}();function JL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New image for"),La())}function tj(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit for"),La())}var ej=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe((function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}}))},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe((function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=za();Fa(0,"h4",0),Aa(1,JL,2,0,"uds-translate",1),Aa(2,tj,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Image name"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.image.name=t})),La(),La(),Fa(10,"input",4,5),qa("change",(function(t){return e.onFileChanged(t)})),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Image (click to change)"),La(),La(),Fa(16,"input",6),qa("click",(function(t){return Ue(n),Oa(11).click()})),La(),Fa(17,"div",7),qa("click",(function(t){return Ue(n),Oa(11).click()})),ja(18,"div",8),La(),La(),Fa(19,"div",9),Fa(20,"uds-translate"),_s(21,' For optimal results, use "squared" images. '),La(),Fa(22,"uds-translate"),_s(23," The image will be resized on upload to "),La(),_s(24),La(),La(),La(),Fa(25,"mat-dialog-actions"),Fa(26,"button",10),Fa(27,"uds-translate"),_s(28,"Cancel"),La(),La(),Fa(29,"button",11),qa("click",(function(t){return e.save()})),Fa(30,"uds-translate"),_s(31,"Ok"),La(),La(),La()}2&t&&(vr(1),Ra("ngIf",!e.image.id),vr(1),Ra("ngIf",e.image.id),vr(7),Ra("ngModel",e.image.name),vr(7),Ra("hidden",!0),vr(2),Ra("ngStyle",e.background()),vr(6),xs(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,Md,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),nj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){ej.launch(this.api).subscribe((function(){return t.table.overview()}))},t.prototype.onEdit=function(t){ej.launch(this.api,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-gallery"]],decls:1,vars:4,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),ij='assessment'+django.gettext("Generate report")+"",rj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:ij,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Zu;n.subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe((function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),o=0;o div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}(),Cj=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:3,consts:[["icon","maleta",3,"rest","multiSelect","allowExport"]],template:function(t,e){1&t&&(Fa(0,"div"),ja(1,"uds-table",0),La()),2&t&&(vr(1),Ra("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0))},directives:[JP],styles:[""]}),t}(),xj=[{path:"",canActivate:[oS],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:OS},{path:"providers",component:iT},{path:"providers/:provider/detail",component:ET},{path:"providers/:provider",component:iT},{path:"providers/:provider/detail/:service",component:ET},{path:"authenticators",component:AT},{path:"authenticators/:authenticator/detail",component:JR},{path:"authenticators/:authenticator",component:AT},{path:"authenticators/:authenticator/detail/groups/:group",component:JR},{path:"authenticators/:authenticator/detail/users/:user",component:JR},{path:"osmanagers",component:tM},{path:"osmanagers/:osmanager",component:tM},{path:"transports",component:eM},{path:"transports/:transport",component:eM},{path:"networks",component:nM},{path:"networks/:network",component:nM},{path:"proxies",component:iM},{path:"proxies/:proxy",component:iM},{path:"pools/service-pools",component:rM},{path:"pools/service-pools/:pool",component:rM},{path:"pools/service-pools/:pool/detail",component:gF},{path:"pools/meta-pools",component:yF},{path:"pools/meta-pools/:metapool",component:yF},{path:"pools/meta-pools/:metapool/detail",component:TF},{path:"pools/pool-groups",component:RF},{path:"pools/pool-groups/:poolgroup",component:RF},{path:"pools/calendars",component:MF},{path:"pools/calendars/:calendar",component:MF},{path:"pools/calendars/:calendar/detail",component:GL},{path:"pools/accounts",component:KL},{path:"pools/accounts/:account",component:KL},{path:"pools/accounts/:account/detail",component:QL},{path:"tools/gallery",component:nj},{path:"tools/gallery/:image",component:nj},{path:"tools/reports",component:rj},{path:"tools/reports/:report",component:rj},{path:"tools/configuration",component:wj},{path:"tools/actor_tokens",component:Cj}]},{path:"**",redirectTo:"summary"}],kj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[Zg.forRoot(xj)],Zg]}),t}(),Sj=["input"],Dj=function(){return{enterDuration:150}},Ej=["*"],Aj=new Gt("mat-checkbox-click-action"),Oj=0,Ij={provide:cD,useExisting:It((function(){return Rj})),multi:!0},Pj=function(){var t={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return t[t.Init]="Init",t[t.Checked]="Checked",t[t.Unchecked]="Unchecked",t[t.Indeterminate]="Indeterminate",t}(),Tj=function(){return function(){}}(),Rj=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e)||this;return u._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._clickAction=a,u._animationMode=s,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++Oj,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Zu,u.indeterminateChange=new Zu,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=Pj.Init,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(e,!0).subscribe((function(t){t||Promise.resolve().then((function(){u._onTouched(),n.markForCheck()}))})),u}return r(e,t),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewChecked=function(){},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){var e=Ly(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._transitionCheckState(this._indeterminate?Pj.Indeterminate:this.checked?Pj.Checked:Pj.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},e.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}},e.prototype._emitChangeEvent=function(){var t=new Tj;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},e.prototype.toggle=function(){this.checked=!this.checked},e.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?Pj.Checked:Pj.Unchecked),this._emitChangeEvent())},e.prototype.focus=function(t,e){void 0===t&&(t="keyboard"),this._focusMonitor.focusVia(this._inputElement,t,e)},e.prototype._onInteractionEvent=function(t){t.stopPropagation()},e.prototype._getAnimationClassForCheckStateTransition=function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case Pj.Init:if(e===Pj.Checked)n="unchecked-checked";else{if(e!=Pj.Indeterminate)return"";n="unchecked-indeterminate"}break;case Pj.Unchecked:n=e===Pj.Checked?"unchecked-checked":"unchecked-indeterminate";break;case Pj.Checked:n=e===Pj.Unchecked?"checked-unchecked":"checked-indeterminate";break;case Pj.Indeterminate:n=e===Pj.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Pb),Ia(Vl),Pa("tabindex"),Ia(Aj,8),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(ul(Sj,!0),ul(PC,!0)),2&t&&(al(n=hl())&&(e._inputElement=n.first),al(n=hl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(ks("id",e.id),Da("tabindex",null),ls("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Us([Ij]),Es],ngContentSelectors:Ej,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","indeterminate","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"label",0,1),Fa(2,"div",2),Fa(3,"input",3,4),qa("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),La(),Fa(5,"div",5),ja(6,"div",6),La(),ja(7,"div",7),Fa(8,"div",8),pn(),Fa(9,"svg",9),ja(10,"path",10),La(),hn(),ja(11,"div",11),La(),La(),Fa(12,"span",12,13),qa("cdkObserveContent",(function(t){return e._onLabelTextChange()})),Fa(14,"span",14),_s(15,"\xa0"),La(),Qa(16),La(),La()),2&t){var n=Oa(1),i=Oa(13);Da("for",e.inputId),vr(2),ls("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),vr(1),Ra("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("indeterminate",e.indeterminate),Da("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),vr(2),Ra("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Bu(19,Dj))}},directives:[PC,cb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}@media (-ms-high-contrast:active){.mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media (hover:none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.13333px}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0);border-radius:2px}@media (-ms-high-contrast:active){.mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}"],encapsulation:2,changeDetection:0}),e}(rC(nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"accent"))),Mj={provide:kD,useExisting:It((function(){return Fj})),multi:!0},Fj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[Us([Mj]),Es]});var n=ei(e);return e}(WE),Lj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),jj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,TC,tC,db,Lj],tC,Lj]}),t}(),Nj=["*"],Bj=nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"primary"),Vj=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t}(),zj=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t}(),Hj=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e)||this;return s._elementRef=e,s._ngZone=n,s._changeDetectorRef=a,s._hasFocus=!1,s.chipListSelectable=!0,s._chipListMultiple=!1,s._selected=!1,s._selectable=!0,s._removable=!0,s._onFocus=new P,s._onBlur=new P,s.selectionChange=new Zu,s.destroyed=new Zu,s.removed=new Zu,s._addHostClassName(),s._chipRipple=new OC(s,n,e,i),s._chipRipple.setupTriggerEvents(e),s.rippleConfig=r||{},s._animationsDisabled="NoopAnimations"===o,s}return r(e,t),Object.defineProperty(e.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){var e=Ly(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this._removable},set:function(t){this._removable=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null},enumerable:!0,configurable:!0}),e.prototype._addHostClassName=function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")},e.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()},e.prototype.select=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.deselect=function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.selectViaInteraction=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())},e.prototype.toggleSelected=function(t){return void 0===t&&(t=!1),this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected},e.prototype.focus=function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0},e.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},e.prototype._handleClick=function(t){this.disabled?t.preventDefault():t.stopPropagation()},e.prototype._handleKeydown=function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}},e.prototype._blur=function(){var t=this;this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))},e.prototype._dispatchSelectionChange=function(t){void 0===t&&(t=!1),this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})},e.prototype._markForCheck=function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Vl),Ia(gv),Ia(IC,8),Ia(Hw,8),Ia(Ko))},e.\u0275dir=Ee({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,Vj,!0),cl(n,zj,!0),cl(n,Uj,!0)),2&t&&(al(i=hl())&&(e.avatar=i.first),al(i=hl())&&(e.trailingIcon=i.first),al(i=hl())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip"],hostVars:14,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(t){return e.focus()}))("blur",(function(t){return e._blur()})),2&t&&(Da("tabindex",e.disabled?null:-1)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ls("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Es]}),e}(Bj),Uj=function(){function t(t){this._parentChip=t}return t.prototype._handleClick=function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()},t.\u0275fac=function(e){return new(e||t)(Ia(Hj))},t.\u0275dir=Ee({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))}}),t}(),qj=new Gt("mat-chips-default-options"),Wj=oC(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}()),Gj=0,Yj=function(){return function(t,e){this.source=t,this.value=e}}(),Kj=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,a,r,o,s)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=i,u.ngControl=s,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new P,u._uid="mat-chip-list-"+Gj++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(t,e){return t===e},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new Zu,u.valueChange=new Zu,u.ngControl&&(u.ngControl.valueAccessor=u),u}return r(e,t),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=Ly(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._chipInput?this._chipInput.id:this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Ly(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable},set:function(t){var e=this;this._selectable=Ly(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{set:function(t){this._userTabIndex=t,this._tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipSelectionChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t.selectionChange})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipFocusChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t._onFocus})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipBlurChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t._onBlur})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipRemoveChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t.destroyed})))},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new bb(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(av(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(av(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(of(null),av(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))},e.prototype.ngOnInit=function(){this._selectionModel=new xv(this.multiple,void 0,!1),this.stateChanges.next()},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()},e.prototype.registerInput=function(t){this._chipInput=t},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.writeValue=function(t){this.chips&&this._setSelectionByValue(t,!1)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this.stateChanges.next()},e.prototype.onContainerClick=function(t){this._originatesFromChip(t)||this.focus()},e.prototype.focus=function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))},e.prototype._focusInput=function(t){this._chipInput&&this._chipInput.focus(t)},e.prototype._keydown=function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())},e.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},e.prototype._updateFocusForDestroyedChips=function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null},e.prototype._isValidIndex=function(t){return t>=0&&t-1:e.has(n)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(qj))},t.\u0275dir=Ee({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:4,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._keydown(t)}))("blur",(function(t){return e._blur()}))("focus",(function(t){return e._focus()}))("input",(function(t){return e._onInput()})),2&t&&(ks("id",e.id),Da("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Rs()]}),t}(),Xj={separatorKeyCodes:[13]},Qj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[_C,{provide:qj,useValue:Xj}]}),t}(),Jj=0,tN=function(){function t(){this._stateChanges=new P,this._openCloseAllActions=new P,this.id="cdk-accordion-"+Jj++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Rs()]}),t}(),eN=0,nN=function(){function t(t,e,n){var i=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=h.EMPTY,this.closed=new Zu,this.opened=new Zu,this.destroyed=new Zu,this.expandedChange=new Zu,this.id="cdk-accordion-child-"+eN++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(t,e){i.accordion&&!i.accordion.multi&&i.accordion.id===e&&i.id!==t&&(i.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=Ly(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))},t.\u0275fac=function(e){return new(e||t)(Ia(tN,12),Ia(Ko),Ia(kv))},t.\u0275dir=Ee({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Us([{provide:tN,useValue:void 0}])]}),t}(),iN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),rN=["body"];function oN(t,e){}var aN=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],sN=["mat-expansion-panel-header","*","mat-action-row"],uN=function(t,e){return{collapsedHeight:t,expandedHeight:e}},lN=function(t,e){return{value:t,params:e}};function cN(t,e){1&t&&ja(0,"span",2),2&t&&Ra("@indicatorRotate",Za()._getExpandedState())}var dN=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],pN=["mat-panel-title","mat-panel-description","*"],hN=new Gt("MAT_ACCORDION"),fN={indicatorRotate:sy("indicatorRotate",[py("collapsed, void",dy({transform:"rotate(0deg)"})),py("expanded",dy({transform:"rotate(180deg)"})),fy("expanded <=> collapsed, void => collapsed",uy("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:sy("expansionHeight",[py("collapsed, void",dy({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),py("expanded",dy({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),fy("expanded <=> collapsed, void => collapsed",ly([gy("@indicatorRotate",my(),{optional:!0}),uy("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:sy("bodyExpansion",[py("collapsed, void",dy({height:"0px",visibility:"hidden"})),py("expanded",dy({height:"*",visibility:"visible"})),fy("expanded <=> collapsed, void => collapsed",uy("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},mN=function(){function t(t){this._template=t}return t.\u0275fac=function(e){return new(e||t)(Ia(vu))},t.\u0275dir=Ee({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),gN=0,yN=new Gt("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),vN=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i)||this;return u._viewContainerRef=r,u._animationMode=a,u._hideToggle=!1,u.afterExpand=new Zu,u.afterCollapse=new Zu,u._inputChanges=new P,u._headerId="mat-expansion-panel-header-"+gN++,u._bodyAnimationDone=new P,u.accordion=e,u._document=o,u._bodyAnimationDone.pipe($y((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())})),s&&(u.hideToggle=s.hideToggle),u}return r(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglePosition",{get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(of(null),Hp((function(){return t.expanded&&!t._portal})),Kh(1)).subscribe((function(){t._portal=new xy(t._lazyContent._template,t._viewContainerRef)}))},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()},e.prototype._containsFocus=function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e.\u0275fac=function(t){return new(t||e)(Ia(hN,12),Ia(Ko),Ia(kv),Ia(_u),Ia(vc),Ia(Hw,8),Ia(yN,8))},e.\u0275cmp=we({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,mN,!0),2&t&&al(i=hl())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&ul(rN,!0),2&t&&al(n=hl())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&ls("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Us([{provide:hN,useValue:void 0}]),Es,Rs()],ngContentSelectors:sN,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Xa(aN),Qa(0),Fa(1,"div",0,1),qa("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),Fa(3,"div",2),Qa(4,1),Aa(5,oN,0,0,"ng-template",3),La(),Qa(6,2),La()),2&t&&(vr(1),Ra("@bodyExpansion",e._getExpandedState())("id",e.id),Da("aria-labelledby",e._headerId),vr(4),Ra("cdkPortalOutlet",e._portal))},directives:[Ey],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(.4,0,.2,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (-ms-high-contrast:active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel._mat-animation-noopable,.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[fN.bodyExpansion]},changeDetection:0}),e}(nN),bN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t}(),_N=function(){function t(t,e,n,i,r){var o=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._parentChangeSubscription=h.EMPTY,this._animationsDisabled=!0;var a=t.accordion?t.accordion._stateChanges.pipe(Hp((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):Oh;this._parentChangeSubscription=tt(t.opened,t.closed,a,t._inputChanges.pipe(Hp((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(Hp((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(e,"program")})),n.monitor(e).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return t.prototype._animationStarted=function(){this._animationsDisabled=!1},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._getTogglePosition=function(){return this.panel.togglePosition},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case 32:case 13:Py(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element,t,e)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)},t.\u0275fac=function(e){return new(e||t)(Ia(vN,1),Ia(Ks),Ia(Pb),Ia(Ko),Ia(yN,8))},t.\u0275cmp=we({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(Wa("@expansionHeight.start",(function(t){return e._animationStarted()})),qa("click",(function(t){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(Da("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Ss("@.disabled",e._animationsDisabled)("@expansionHeight",zu(16,lN,e._getExpandedState(),zu(13,uN,e.collapsedHeight,e.expandedHeight))),ls("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:pN,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Xa(dN),Fa(0,"span",0),Qa(1),Qa(2,1),Qa(3,2),La(),Aa(4,cN,1,1,"span",1)),2&t&&(vr(4),Ra("ngIf",e._showToggle()))},directives:[Sd],styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],encapsulation:2,data:{animation:[fN.indicatorRotate,fN.expansionHeaderHeight]},changeDetection:0}),t}(),wN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),CN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),xN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}r(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new bb(this._headers).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;36===e?Py(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?Py(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,_N,!0),2&t&&al(i=hl())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Us([{provide:hN,useExisting:e}]),Es]});var n=ei(e);return e}(tN),kN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,iN,Oy]]}),t}(),SN=["*",[["mat-toolbar-row"]]],DN=["*","mat-toolbar-row"],EN=nC(function(){return function(t){this._elementRef=t}}()),AN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),ON=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._platform=n,r._document=i,r}return r(e,t),e.prototype.ngAfterViewInit=function(){var t=this;yi()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc))},e.\u0275cmp=we({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,AN,!1),2&t&&al(i=hl())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Es],ngContentSelectors:DN,decls:2,vars:0,template:function(t,e){1&t&&(Xa(SN),Qa(0),Qa(1,1))},styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],encapsulation:2,changeDetection:0}),e}(EN),IN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC],tC]}),t}(),PN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:qC,useValue:{float:"always"}},{provide:uC,useValue:udsData.language}],imports:[op,IN,yx,cP,OA,kN,cx,uD,lI,wA,_L,bC,YO,BA,ZA,KI,jj,lk,Qj,IL,cR,HT,eS,pP]}),t}();function TN(t,e){if(1&t){var n=za();Fa(0,"button",6),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za().changeLang(i)})),_s(1),La()}if(2&t){var i=e.$implicit;vr(1),ws(i.name)}}function RN(t,e){if(1&t&&(Fa(0,"button",12),Fa(1,"i",7),_s(2,"face"),La(),_s(3),La()),2&t){var n=Za();Ra("matMenuTriggerFor",Oa(7)),vr(3),ws(n.api.user.user)}}function MN(t,e){if(1&t&&(Fa(0,"button",18),_s(1),Fa(2,"i",7),_s(3,"arrow_drop_down"),La(),La()),2&t){var n=Za();Ra("matMenuTriggerFor",Oa(7)),vr(1),Cs("",n.api.user.user," ")}}var FN=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0}"]}),t}();function NN(t,e){1&t&&ja(0,"div",1),2&t&&Ra("innerHTML",Za().messages,Ui)}var BN=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map((function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")})).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe((function(){t.visible=!0}))}},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&Aa(0,NN,1,1,"div",0),2&t&&Ra("ngIf",e.visible)},directives:[Sd],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),VN=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(Fa(0,"div"),_s(1,"\xa9 2012-2020 "),Fa(2,"a",0),_s(3,"Virtual Cable S.L.U."),La(),La())},styles:[""]}),t}(),zN=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(ja(0,"uds-navbar"),ja(1,"uds-sidebar"),Fa(2,"div",0),Fa(3,"div",1),ja(4,"uds-notices"),ja(5,"router-outlet"),La(),Fa(6,"div",2),ja(7,"uds-footer"),La(),La())},directives:[FN,jN,BN,Ng,VN],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),HN=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return r(e,t),e.\u0275prov=yt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(LA),UN=function(){function t(){}return t.prototype.transform=function(t,e){return Array.from(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ae({name:"iterable",type:t,pure:!0}),t}(),qN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128))},directives:[sD,tD,uI,mD,wD,AE,qE,XE],styles:[""]}),t}(),WN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI,MD,mD,wD,AE,qE],styles:[""]}),t}(),GN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","password",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI,mD,wD,AE,qE],styles:[""]}),t}(),YN=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),KN=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.gui.defvalue||this.field.value},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"textarea",1),qa("ngModelChange",(function(t){return e.field.value=t})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[sD,tD,uI,mD,wD,AE,qE],styles:[""]}),t}();function ZN(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",3),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function $N(t,e){if(1&t&&(Fa(0,"mat-option",4),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}var XN=function(){function t(){this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("ngModelChange",(function(t){return e.field.value=t}))("valueChange",(function(t){return e.changed.emit(e)})),Aa(4,ZN,1,0,"uds-mat-select-search",1),Aa(5,$N,2,2,"mat-option",2),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,Sd,xd,fI,VC],styles:[""]}),t}();function QN(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",3),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function JN(t,e){if(1&t&&(Fa(0,"mat-option",4),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}var tB=function(){function t(){this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach((function(t,e,n){n[e]=""+t.id})):this.field.values=new Array},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("ngModelChange",(function(t){return e.field.values=t}))("valueChange",(function(t){return e.changed.emit(e)})),Aa(4,QN,1,0,"uds-mat-select-search",1),Aa(5,JN,2,2,"mat-option",2),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,Sd,xd,fI,VC],styles:[""]}),t}();function eB(t,e){if(1&t){var n=za();Fa(0,"div",12),Fa(1,"div",13),_s(2),La(),Fa(3,"div",14),_s(4," \xa0"),Fa(5,"a",15),qa("click",(function(t){Ue(n);var i=e.index;return Za().removeElement(i)})),Fa(6,"i",16),_s(7,"close"),La(),La(),La(),La()}if(2&t){var i=e.$implicit;vr(2),Cs(" ",i," ")}}var nB=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new Zu(!0),this.data.values.forEach((function(t){return r.values.push(t)}))}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach((function(e){t.values.push(e)})),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach((function(e){return t.data.values.push(e)})),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(Fa(0,"h4",0),_s(1),La(),Fa(2,"mat-dialog-content"),Fa(3,"div",1),Fa(4,"div",2),Aa(5,eB,8,1,"div",3),La(),Fa(6,"div",4),Fa(7,"button",5),qa("click",(function(t){return e.removeAll()})),Fa(8,"uds-translate"),_s(9,"Remove all"),La(),La(),La(),Fa(10,"div",6),Fa(11,"mat-form-field",7),Fa(12,"input",8),qa("keyup",(function(t){return e.checkKey(t)}))("ngModelChange",(function(t){return e.input=t})),La(),Fa(13,"button",9),qa("click",(function(t){return e.addElements()})),Fa(14,"uds-translate"),_s(15,"Add"),La(),La(),La(),La(),La(),La(),Fa(16,"mat-dialog-actions"),Fa(17,"button",10),Fa(18,"uds-translate"),_s(19,"Cancel"),La(),La(),Fa(20,"button",11),qa("click",(function(t){return e.save()})),Fa(21,"uds-translate"),_s(22,"Ok"),La(),La(),La()),2&t&&(vr(1),Cs(" ",e.data.title,"\n"),vr(4),Ra("ngForOf",e.values),vr(7),Ra("ngModel",e.input))},directives:[ax,sx,xd,mx,vx,sD,uI,mD,wD,AE,iD,ux,ox],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),iB=function(){function t(t){this.api=t,this.changed=new Zu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),nB.launch(this.api,this.field.gui.label,this.field.values).subscribe((function(e){t.changed.emit({field:t.field})}))},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter((function(t,e,n){return e<5})).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("click",(function(t){return e.launch()})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),rB=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){var t;this.field.value=LI(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return LI(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"span",1),_s(2),La(),Fa(3,"mat-slide-toggle",2),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),_s(4),La(),La()),2&t&&(vr(2),ws(e.field.gui.label),vr(1),Ra("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Cs(" ",e.getValue()," "))},directives:[aR,uR,wD,AE,qE],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function oB(t,e){if(1&t&&ja(0,"div",5),2&t){var n=Za().$implicit;Ra("innerHTML",Za().asIcon(n),Ui)}}function aB(t,e){if(1&t&&(Fa(0,"div"),Aa(1,oB,1,1,"div",4),La()),2&t){var n=e.$implicit,i=Za();vr(1),Ra("ngIf",n.id==i.field.value)}}function sB(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",6),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function uB(t,e){if(1&t&&(Fa(0,"mat-option",7),ja(1,"div",5),La()),2&t){var n=e.$implicit,i=Za();Ra("value",n.id),vr(1),Ra("innerHTML",i.asIcon(n),Ui)}}var lB=function(){function t(t){this.api=t,this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("valueChange",(function(t){return e.changed.emit(e)}))("ngModelChange",(function(t){return e.field.value=t})),Fa(4,"mat-select-trigger"),Aa(5,aB,2,1,"div",1),La(),Aa(6,sB,1,0,"uds-mat-select-search",2),Aa(7,uB,2,2,"mat-option",3),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(2),Ra("ngForOf",e.field.gui.values),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,bA,xd,Sd,fI,VC],styles:[""]}),t}(),cB=function(){function t(){this.changed=new Zu,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=II("%Y-%m-%d",this.value))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=II("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=II("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.date=t})),La(),ja(4,"mat-datepicker-toggle",2),ja(5,"mat-datepicker",null,3),La()),2&t){var n=Oa(6);vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("for",n)}},directives:[sD,tD,uI,yL,mD,wD,AE,bL,iD,hL],styles:[""]}),t}();function dB(t,e){if(1&t){var n=za();Fa(0,"mat-chip",5),qa("removed",(function(t){Ue(n);var i=e.$implicit;return Za().remove(i)})),_s(1),Fa(2,"i",6),_s(3,"cancel"),La(),La()}if(2&t){var i=e.$implicit,r=Za();Ra("selectable",!1)("removable",!0!==r.field.gui.rdonly),vr(1),Cs(" ",i," ")}}var pB,hB,fB,mB=function(){function t(){this.separatorKeysCodes=[13,188],this.changed=new Zu}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach((function(t,e,n){""===t.trim()&&n.splice(e,1)}))},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-chip-list",1,2),qa("change",(function(t){return e.changed.emit(e)})),Aa(5,dB,4,3,"mat-chip",3),Fa(6,"input",4),qa("matChipInputTokenEnd",(function(t){return e.add(t)})),La(),La(),La()),2&t){var n=Oa(4);vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("selectable",!1)("disabled",!0===e.field.gui.rdonly),vr(2),Ra("ngForOf",e.field.values),vr(1),Ra("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[sD,tD,Kj,xd,$j,Hj,Uj],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),gB=function(){function t(){}return t.\u0275mod=Se({type:t,bootstrap:[zN]}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[rS,SS,{provide:LA,useClass:HN}],imports:[[Bp,nA,iA,Ch,kj,Ww,PN]]}),t}();pB=[zN,FN,vx,kx,VN,OS,jN,JP,iT,ET,AT,rM,Rk,Ik,Ck,qN,WN,GN,YN,KN,XN,tB,fI,iB,rB,lB,cB,mB,hT,SI,wI,bT,gF,nB,yT,JR,RR,UR,$T,xR,tM,eM,nM,iM,YM,uM,bM,CM,xM,VM,mM,kM,zM,yF,TF,CF,RF,MF,GL,HL,KL,QL,nj,ej,rj,wj,Cj,BN,_d,wd,xd,Sd,Fd,Md,Od,Id,Pd,Td,Rd,OE,YD,XD,mD,MD,BD,pD,GD,$D,jD,wD,CD,qE,ZE,XE,JE,WE,YE,AE,SE,wE,TE,ME,zE,LE,NE,Ng,Tg,Rg,Fg,Pf,ON,AN,My,mx,gx,rP,eP,uP,JI,EA,AA,xN,vN,bN,_N,CN,wN,mN,$C,ox,ax,sx,ux,KS,sD,JS,tD,eD,nD,iD,eI,nI,uI,rI,_A,bA,VC,LC,sL,JF,hL,pL,yL,bL,vL,tL,oL,eL,aL,TO,MO,VO,LO,RO,HO,FO,zO,jO,BO,NO,UO,WO,qO,GO,NA,UA,KA,GI,YI,Rj,Fj,ek,Yx,Kx,sk,uk,Gx,Kj,Hj,$j,Uj,Vj,zj,AL,OL,uR,aR,LT,zT,jT,tS,dP],hB=[bx,UN,hP,Vd,qd,zd,Zd,rp,Qd,Jd,Ud,tp,Wd,Yd,Kd,$d],(fB=Ck.\u0275cmp).directiveDefs=function(){return pB.map(Ce)},fB.pipeDefs=function(){return hB.map(xe)},function(){if(gi)throw new Error("Cannot enable prod mode after platform setup.");mi=!1}(),jp().bootstrapModule(gB).catch((function(t){return console.log(t)}))}},[[0,0]]]); \ No newline at end of file +(window.webpackJsonp=window.webpackJsonp||[]).push([[1],{0:function(t,e,n){t.exports=n("zUnb")},"1gqn":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},KKCa:function(t,e){t.exports="function"==typeof Object.create?function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},MCLT:function(t,e,n){var i=Object.getOwnPropertyDescriptors||function(t){for(var e=Object.keys(t),n={},i=0;i=o)return t;switch(t){case"%s":return String(i[n++]);case"%d":return Number(i[n++]);case"%j":try{return JSON.stringify(i[n++])}catch(e){return"[Circular]"}default:return t}})),u=i[n];n=3&&(i.depth=arguments[2]),arguments.length>=4&&(i.colors=arguments[3]),f(n)?i.showHidden=n:n&&e._extend(i,n),v(i.showHidden)&&(i.showHidden=!1),v(i.depth)&&(i.depth=2),v(i.colors)&&(i.colors=!1),v(i.customInspect)&&(i.customInspect=!0),i.colors&&(i.stylize=u),c(i,t,i.depth)}function u(t,e){var n=s.styles[e];return n?"\x1b["+s.colors[n][0]+"m"+t+"\x1b["+s.colors[n][1]+"m":t}function l(t,e){return t}function c(t,n,i){if(t.customInspect&&n&&x(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var r=n.inspect(i,t);return y(r)||(r=c(t,r,i)),r}var o=function(t,e){if(v(e))return t.stylize("undefined","undefined");if(y(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return g(e)?t.stylize(""+e,"number"):f(e)?t.stylize(""+e,"boolean"):m(e)?t.stylize("null","null"):void 0}(t,n);if(o)return o;var a=Object.keys(n),s=function(t){var e={};return t.forEach((function(t,n){e[t]=!0})),e}(a);if(t.showHidden&&(a=Object.getOwnPropertyNames(n)),C(n)&&(a.indexOf("message")>=0||a.indexOf("description")>=0))return d(n);if(0===a.length){if(x(n))return t.stylize("[Function"+(n.name?": "+n.name:"")+"]","special");if(b(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(w(n))return t.stylize(Date.prototype.toString.call(n),"date");if(C(n))return d(n)}var u,l="",_=!1,k=["{","}"];return h(n)&&(_=!0,k=["[","]"]),x(n)&&(l=" [Function"+(n.name?": "+n.name:"")+"]"),b(n)&&(l=" "+RegExp.prototype.toString.call(n)),w(n)&&(l=" "+Date.prototype.toUTCString.call(n)),C(n)&&(l=" "+d(n)),0!==a.length||_&&0!=n.length?i<0?b(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special"):(t.seen.push(n),u=_?function(t,e,n,i,r){for(var o=[],a=0,s=e.length;a60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}(u,l,k)):k[0]+l+k[1]}function d(t){return"["+Error.prototype.toString.call(t)+"]"}function p(t,e,n,i,r,o){var a,s,u;if((u=Object.getOwnPropertyDescriptor(e,r)||{value:e[r]}).get?s=t.stylize(u.set?"[Getter/Setter]":"[Getter]","special"):u.set&&(s=t.stylize("[Setter]","special")),A(i,r)||(a="["+r+"]"),s||(t.seen.indexOf(u.value)<0?(s=m(n)?c(t,u.value,null):c(t,u.value,n-1)).indexOf("\n")>-1&&(s=o?s.split("\n").map((function(t){return" "+t})).join("\n").substr(2):"\n"+s.split("\n").map((function(t){return" "+t})).join("\n")):s=t.stylize("[Circular]","special")),v(a)){if(o&&r.match(/^\d+$/))return s;(a=JSON.stringify(""+r)).match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(a=a.substr(1,a.length-2),a=t.stylize(a,"name")):(a=a.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),a=t.stylize(a,"string"))}return a+": "+s}function h(t){return Array.isArray(t)}function f(t){return"boolean"==typeof t}function m(t){return null===t}function g(t){return"number"==typeof t}function y(t){return"string"==typeof t}function v(t){return void 0===t}function b(t){return _(t)&&"[object RegExp]"===k(t)}function _(t){return"object"==typeof t&&null!==t}function w(t){return _(t)&&"[object Date]"===k(t)}function C(t){return _(t)&&("[object Error]"===k(t)||t instanceof Error)}function x(t){return"function"==typeof t}function k(t){return Object.prototype.toString.call(t)}function S(t){return t<10?"0"+t.toString(10):t.toString(10)}e.debuglog=function(t){if(v(o)&&(o=process.env.NODE_DEBUG||""),t=t.toUpperCase(),!a[t])if(new RegExp("\\b"+t+"\\b","i").test(o)){var n=process.pid;a[t]=function(){var i=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,i)}}else a[t]=function(){};return a[t]},e.inspect=s,s.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},s.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=h,e.isBoolean=f,e.isNull=m,e.isNullOrUndefined=function(t){return null==t},e.isNumber=g,e.isString=y,e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=v,e.isRegExp=b,e.isObject=_,e.isDate=w,e.isError=C,e.isFunction=x,e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n("1gqn");var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function E(){var t=new Date,e=[S(t.getHours()),S(t.getMinutes()),S(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],e].join(" ")}function A(t,e){return Object.prototype.hasOwnProperty.call(t,e)}e.log=function(){console.log("%s - %s",E(),e.format.apply(e,arguments))},e.inherits=n("KKCa"),e._extend=function(t,e){if(!e||!_(e))return t;for(var n=Object.keys(e),i=n.length;i--;)t[n[i]]=e[n[i]];return t};var O="undefined"!=typeof Symbol?Symbol("util.promisify.custom"):void 0;function I(t,e){if(!t){var n=new Error("Promise was rejected with a falsy value");n.reason=t,t=n}return e(t)}e.promisify=function(t){if("function"!=typeof t)throw new TypeError('The "original" argument must be of type Function');if(O&&t[O]){var e;if("function"!=typeof(e=t[O]))throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,O,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var e,n,i=new Promise((function(t,i){e=t,n=i})),r=[],o=0;o=200&&e.status<=299}function a(t){try{t.dispatchEvent(new MouseEvent("click"))}catch(n){var e=document.createEvent("MouseEvents");e.initMouseEvent("click",!0,!0,window,0,0,0,80,20,!1,!1,!1,!1,0,null),t.dispatchEvent(e)}}var s=i.saveAs||("object"!=typeof window||window!==i?function(){}:"download"in HTMLAnchorElement.prototype?function(t,e,n){var s=i.URL||i.webkitURL,u=document.createElement("a");u.download=e=e||t.name||"download",u.rel="noopener","string"==typeof t?(u.href=t,u.origin!==location.origin?o(u.href)?r(t,e,n):a(u,u.target="_blank"):a(u)):(u.href=s.createObjectURL(t),setTimeout((function(){s.revokeObjectURL(u.href)}),4e4),setTimeout((function(){a(u)}),0))}:"msSaveOrOpenBlob"in navigator?function(t,e,n){if(e=e||t.name||"download","string"==typeof t)if(o(t))r(t,e,n);else{var i=document.createElement("a");i.href=t,i.target="_blank",setTimeout((function(){a(i)}))}else navigator.msSaveOrOpenBlob(function(t,e){return void 0===e?e={autoBom:!1}:"object"!=typeof e&&(console.warn("Deprecated: Expected third argument to be a object"),e={autoBom:!e}),e.autoBom&&/^\s*(?:text\/\S*|application\/xml|\S*\/\S*\+xml)\s*;.*charset\s*=\s*utf-8/i.test(t.type)?new Blob([String.fromCharCode(65279),t],{type:t.type}):t}(t,n),e)}:function(t,e,n,o){if((o=o||open("","_blank"))&&(o.document.title=o.document.body.innerText="downloading..."),"string"==typeof t)return r(t,e,n);var a="application/octet-stream"===t.type,s=/constructor/i.test(i.HTMLElement)||i.safari,u=/CriOS\/[\d]+/.test(navigator.userAgent);if((u||a&&s)&&"object"==typeof FileReader){var l=new FileReader;l.onloadend=function(){var t=l.result;t=u?t:t.replace(/^data:[^;]*;/,"data:attachment/file;"),o?o.location.href=t:location=t,o=null},l.readAsDataURL(t)}else{var c=i.URL||i.webkitURL,d=c.createObjectURL(t);o?o.location=d:location.href=d,o=null,setTimeout((function(){c.revokeObjectURL(d)}),4e4)}});i.saveAs=s.saveAs=s,t.exports=s},zUnb:function(t,e,n){"use strict";n.r(e);var i=function(t,e){return(i=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 r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}var o=function(){return(o=Object.assign||function(t){for(var e,n=1,i=arguments.length;n=t.length&&(t=void 0),{value:t&&t[n++],done:!t}}}}function s(t,e){var n="function"==typeof Symbol&&t[Symbol.iterator];if(!n)return t;var i,r,o=n.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(i=o.next()).done;)a.push(i.value)}catch(s){r={error:s}}finally{try{i&&!i.done&&(n=o.return)&&n.call(o)}finally{if(r)throw r.error}}return a}function u(){for(var t=[],e=0;e0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(H);function X(t){return t}function Q(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),K(X,t)}function J(t,e){return e?G(t,e):new D(F(t))}function tt(){for(var t=[],e=0;e1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof r&&(n=t.pop()),null===i&&1===t.length&&t[0]instanceof D?t[0]:Q(n)(J(t,i))}function et(){return function(t){return t.lift(new nt(t))}}var nt=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var i=new it(t,n),r=e.subscribe(i);return i.closed||(i.connection=n.connect()),r},t}(),it=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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,i=t._connection;this.connection=null,!i||n&&i!==n||i.unsubscribe()}}else this.connection=null},e}(_),rt=function(t){function e(e,n){var i=t.call(this)||this;return i.source=e,i.subjectFactory=n,i._refCount=0,i._isComplete=!1,i}return r(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 h).add(this.source.subscribe(new at(this.getSubject(),this))),t.closed&&(this._connection=null,t=h.EMPTY)),t},e.prototype.refCount=function(){return et()(this)},e}(D),ot=function(){var t=rt.prototype;return{operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:t._subscribe},_isComplete:{value:t._isComplete,writable:!0},getSubject:{value:t.getSubject},connect:{value:t.connect},refCount:{value:t.refCount}}}(),at=function(t){function e(e,n){var i=t.call(this,e)||this;return i.connectable=n,i}return r(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}(I);function st(){return new P}var ut="__parameters__";function lt(t,e,n){var i=function(t){return function(){for(var e=[],n=0;n=t.length?t.push(n):t.splice(e,0,n)}function ce(t,e){return e>=t.length-1?t.pop():t.splice(e,1)[0]}function de(t,e){for(var n=[],i=0;i=0?t[1|i]=n:function(t,e,n,i){var r=t.length;if(r==e)t.push(n,i);else if(1===r)t.push(i,t[0]),t[0]=n;else{for(r--,t.push(t[r-1],t[r]);r>e;)t[r]=t[r-2],r--;t[e]=n,t[e+1]=i}}(t,i=~i,e,n),i}function he(t,e){var n=fe(t,e);if(n>=0)return t[1|n]}function fe(t,e){return function(t,e,n){for(var i=0,r=t.length>>1;r!==i;){var o=i+(r-i>>1),a=t[o<<1];if(e===a)return o<<1;a>e?r=o:i=o+1}return~(r<<1)}(t,e)}var me=function(t){return t[t.OnPush=0]="OnPush",t[t.Default=1]="Default",t}({}),ge=function(t){return t[t.Emulated=0]="Emulated",t[t.Native=1]="Native",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom",t}({});function ye(t){return""+{toString:t}}var ve={},be=[],_e=0;function we(t){var e=t.type,n=e.prototype,i={},r={type:e,providersResolver:null,decls:t.decls,vars:t.vars,factory:null,template:t.template||null,consts:t.consts||null,ngContentSelectors:t.ngContentSelectors,hostBindings:t.hostBindings||null,hostVars:t.hostVars||0,hostAttrs:t.hostAttrs||null,contentQueries:t.contentQueries||null,declaredInputs:i,inputs:null,outputs:null,exportAs:t.exportAs||null,onChanges:null,onInit:n.ngOnInit||null,doCheck:n.ngDoCheck||null,afterContentInit:n.ngAfterContentInit||null,afterContentChecked:n.ngAfterContentChecked||null,afterViewInit:n.ngAfterViewInit||null,afterViewChecked:n.ngAfterViewChecked||null,onDestroy:n.ngOnDestroy||null,onPush:t.changeDetection===me.OnPush,directiveDefs:null,pipeDefs:null,selectors:t.selectors||be,viewQuery:t.viewQuery||null,features:t.features||null,data:t.data||{},encapsulation:t.encapsulation||ge.Emulated,id:"c",styles:t.styles||be,_:null,setInput:null,schemas:t.schemas||null,tView:null};return r._=ye((function(){var e=t.directives,n=t.features,o=t.pipes;r.id+=_e++,r.inputs=De(t.inputs,i),r.outputs=De(t.outputs),n&&n.forEach((function(t){return t(r)})),r.directiveDefs=e?function(){return("function"==typeof e?e():e).map(Ce)}:null,r.pipeDefs=o?function(){return("function"==typeof o?o():o).map(xe)}:null})),r}function Ce(t){return Oe(t)||function(t){return t[Vt]||null}(t)}function xe(t){return function(t){return t[zt]||null}(t)}var ke={};function Se(t){var e={type:t.type,bootstrap:t.bootstrap||be,declarations:t.declarations||be,imports:t.imports||be,exports:t.exports||be,transitiveCompileScopes:null,schemas:t.schemas||null,id:t.id||null};return null!=t.id&&ye((function(){ke[t.id]=t.type})),e}function De(t,e){if(null==t)return ve;var n={};for(var i in t)if(t.hasOwnProperty(i)){var r=t[i],o=r;Array.isArray(r)&&(o=r[1],r=r[0]),n[r]=i,e&&(e[r]=o)}return n}var Ee=we;function Ae(t){return{type:t.type,name:t.name,factory:null,pure:!1!==t.pure,onDestroy:t.type.prototype.ngOnDestroy||null}}function Oe(t){return t[Bt]||null}function Ie(t,e){return t.hasOwnProperty(qt)?t[qt]:null}function Pe(t,e){var n=t[Ht]||null;if(!n&&!0===e)throw new Error("Type "+Et(t)+" does not have '\u0275mod' property.");return n}function Te(t){return Array.isArray(t)&&"object"==typeof t[1]}function Re(t){return Array.isArray(t)&&!0===t[1]}function Me(t){return 0!=(8&t.flags)}function Fe(t){return 2==(2&t.flags)}function Le(t){return 1==(1&t.flags)}function je(t){return null!==t.template}function Ne(t){return 0!=(512&t[2])}var Be={lFrame:un(null),bindingsEnabled:!0,checkNoChangesMode:!1};function Ve(){return Be.bindingsEnabled}function ze(){return Be.lFrame.lView}function He(){return Be.lFrame.tView}function Ue(t){Be.lFrame.contextLView=t}function qe(){return Be.lFrame.previousOrParentTNode}function We(t,e){Be.lFrame.previousOrParentTNode=t,Be.lFrame.isParent=e}function Ge(){return Be.lFrame.isParent}function Ye(){Be.lFrame.isParent=!1}function Ke(){return Be.checkNoChangesMode}function Ze(t){Be.checkNoChangesMode=t}function $e(){var t=Be.lFrame,e=t.bindingRootIndex;return-1===e&&(e=t.bindingRootIndex=t.tView.bindingStartIndex),e}function Xe(){return Be.lFrame.bindingIndex}function Qe(){return Be.lFrame.bindingIndex++}function Je(t){var e=Be.lFrame,n=e.bindingIndex;return e.bindingIndex=e.bindingIndex+t,n}function tn(t,e){var n=Be.lFrame;n.bindingIndex=n.bindingRootIndex=t,n.currentDirectiveIndex=e}function en(){return Be.lFrame.currentQueryIndex}function nn(t){Be.lFrame.currentQueryIndex=t}function rn(t,e){var n=sn();Be.lFrame=n,n.previousOrParentTNode=e,n.lView=t}var on=ln;function an(t,e){var n=sn(),i=t[1];Be.lFrame=n,n.previousOrParentTNode=e,n.isParent=!0,n.lView=t,n.tView=i,n.selectedIndex=0,n.contextLView=t,n.elementDepthCount=0,n.currentDirectiveIndex=-1,n.currentNamespace=null,n.currentSanitizer=null,n.bindingRootIndex=-1,n.bindingIndex=i.bindingStartIndex,n.currentQueryIndex=0}function sn(){var t=Be.lFrame,e=null===t?null:t.child;return null===e?un(t):e}function un(t){var e={previousOrParentTNode:null,isParent:!0,lView:null,tView:null,selectedIndex:0,contextLView:null,elementDepthCount:0,currentNamespace:null,currentSanitizer:null,currentDirectiveIndex:-1,bindingRootIndex:-1,bindingIndex:-1,currentQueryIndex:0,parent:t,child:null};return null!==t&&(t.child=e),e}function ln(){Be.lFrame=Be.lFrame.parent}function cn(){return Be.lFrame.selectedIndex}function dn(t){Be.lFrame.selectedIndex=t}function pn(){Be.lFrame.currentNamespace="http://www.w3.org/2000/svg"}function hn(){Be.lFrame.currentNamespace=null}function fn(t,e){for(var n=e.directiveStart,i=e.directiveEnd;n=i)break}else e[a]<0&&(t[18]+=65536),(o>10>16&&(3&t[2])===e&&(t[2]+=1024,o.call(a)):o.call(a)}var _n=function(){return function(t,e,n){this.factory=t,this.resolving=!1,this.canSeeViewProviders=e,this.injectImpl=n}}(),wn=void 0;function Cn(){return void 0!==wn?wn:"undefined"!=typeof document?document:void 0}function xn(t){return!!t.listen}var kn={createRenderer:function(t,e){return Cn()}};function Sn(t,e,n){for(var i=xn(t),r=0;re){a=o-1;break}}}for(;o>16}function Rn(t,e){for(var n=Tn(t),i=e;n>0;)i=i[15],n--;return i}function Mn(t){return"string"==typeof t?t:null==t?"":""+t}function Fn(t){return"function"==typeof t?t.name||t.toString():"object"==typeof t&&null!=t&&"function"==typeof t.type?t.type.name||t.type.toString():Mn(t)}var Ln=function(){return("undefined"!=typeof requestAnimationFrame&&requestAnimationFrame||setTimeout).bind(Nt)}();function jn(t){return{name:"body",target:t.ownerDocument.body}}function Nn(t){return t instanceof Function?t():t}var Bn=!0;function Vn(t){var e=Bn;return Bn=t,e}var zn=0;function Hn(t,e){var n=qn(t,e);if(-1!==n)return n;var i=e[1];i.firstCreatePass&&(t.injectorIndex=e.length,Un(i.data,t),Un(e,null),Un(i.blueprint,null));var r=Wn(t,e),o=t.injectorIndex;if(In(r))for(var a=Pn(r),s=Rn(r,e),u=s[1].data,l=0;l<8;l++)e[o+l]=s[a+l]|u[a+l];return e[o+8]=r,o}function Un(t,e){t.push(0,0,0,0,0,0,0,0,e)}function qn(t,e){return-1===t.injectorIndex||t.parent&&t.parent.injectorIndex===t.injectorIndex||null==e[t.injectorIndex+8]?-1:t.injectorIndex}function Wn(t,e){if(t.parent&&-1!==t.parent.injectorIndex)return t.parent.injectorIndex;for(var n=e[6],i=1;n&&-1===n.injectorIndex;)n=(e=e[15])?e[6]:null,i++;return n?n.injectorIndex|i<<16:-1}function Gn(t,e,n){!function(t,e,n){var i="string"!=typeof n?n[Wt]:n.charCodeAt(0)||0;null==i&&(i=n[Wt]=zn++);var r=255&i,o=1<0?255&e:e}(n);if("function"==typeof o){rn(e,t);try{var a=o();if(null!=a||i&ft.Optional)return a;throw new Error("No provider for "+Fn(n)+"!")}finally{on()}}else if("number"==typeof o){if(-1===o)return new ti(t,e);var s=null,u=qn(t,e),l=-1,c=i&ft.Host?e[16][6]:null;for((-1===u||i&ft.SkipSelf)&&(l=-1===u?Wn(t,e):e[u+8],Jn(i,!1)?(s=e[1],u=Pn(l),e=Rn(l,e)):u=-1);-1!==u;){l=e[u+8];var d=e[1];if(Qn(o,u,d.data)){var p=Zn(u,e,n,s,i,c);if(p!==Kn)return p}Jn(i,e[1].data[u+8]===c)&&Qn(o,u,e)?(s=d,u=Pn(l),e=Rn(l,e)):u=-1}}}if(i&ft.Optional&&void 0===r&&(r=null),0==(i&(ft.Self|ft.Host))){var h=e[9],f=Jt(void 0);try{return h?h.get(n,r,i&ft.Optional):ie(n,r,i&ft.Optional)}finally{Jt(f)}}if(i&ft.Optional)return r;throw new Error("NodeInjector: NOT_FOUND ["+Fn(n)+"]")}var Kn={};function Zn(t,e,n,i,r,o){var a=e[1],s=a.data[t+8],u=$n(s,a,n,null==i?Fe(s)&&Bn:i!=a&&3===s.type,r&ft.Host&&o===s);return null!==u?Xn(e,a,u,s):Kn}function $n(t,e,n,i,r){for(var o=t.providerIndexes,a=e.data,s=65535&o,u=t.directiveStart,l=o>>16,c=r?s+l:t.directiveEnd,d=i?s:s+l;d=u&&p.type===n)return d}if(r){var h=a[u];if(h&&je(h)&&h.type===n)return u}return null}function Xn(t,e,n,i){var r=t[n],o=e.data;if(r instanceof _n){var a=r;if(a.resolving)throw new Error("Circular dep for "+Fn(o[n]));var s=Vn(a.canSeeViewProviders);a.resolving=!0;var u=void 0;a.injectImpl&&(u=Jt(a.injectImpl)),rn(t,i);try{r=t[n]=a.factory(void 0,o,t,i),e.firstCreatePass&&n>=i.directiveStart&&function(t,e,n){var i=e.onChanges,r=e.onInit,o=e.doCheck;i&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,i),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,i)),r&&(n.preOrderHooks||(n.preOrderHooks=[])).push(-t,r),o&&((n.preOrderHooks||(n.preOrderHooks=[])).push(t,o),(n.preOrderCheckHooks||(n.preOrderCheckHooks=[])).push(t,o))}(n,o[n],e)}finally{a.injectImpl&&Jt(u),Vn(s),a.resolving=!1,on()}}return r}function Qn(t,e,n){var i=64&t,r=32&t;return!!((128&t?i?r?n[e+7]:n[e+6]:r?n[e+5]:n[e+4]:i?r?n[e+3]:n[e+2]:r?n[e+1]:n[e])&1<',!e.querySelector||e.querySelector("svg")?(e.innerHTML='

',this.getInertBodyElement=e.querySelector&&e.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(i){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");if("content"in e)return e.innerHTML=t,e;var n=this.inertDocument.createElement("body");return n.innerHTML=t,this.defaultDoc.documentMode&&this.stripCustomNsAttrs(n),n},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();Oi.hasOwnProperty(e)&&!Si.hasOwnProperty(e)&&(this.buf.push(""))},t.prototype.chars=function(t){this.buf.push(ji(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}(),Fi=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Li=/([^\#-~ |!])/g;function ji(t){return t.replace(/&/g,"&").replace(Fi,(function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"})).replace(Li,(function(t){return"&#"+t.charCodeAt(0)+";"})).replace(//g,">")}function Ni(t,e){var n=null;try{ki=ki||new vi(t);var i=e?String(e):"";n=ki.getInertBodyElement(i);var r=5,o=i;do{if(0===r)throw new Error("Failed to sanitize html because the input is unstable");r--,i=o,o=n.innerHTML,n=ki.getInertBodyElement(i)}while(i!==o);var a=new Mi,s=a.sanitizeChildren(Bi(n)||n);return yi()&&a.sanitizedSomething&&console.warn("WARNING: sanitizing HTML stripped some content, see http://g.co/ng/security#xss"),s}finally{if(n)for(var u=Bi(n)||n;u.firstChild;)u.removeChild(u.firstChild)}}function Bi(t){return"content"in t&&function(t){return t.nodeType===Node.ELEMENT_NODE&&"TEMPLATE"===t.nodeName}(t)?t.content:null}var Vi=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}({}),zi=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|Z|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:attr|calc|var))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Hi=/^url\(([^)]+)\)$/;function Ui(t){var e=Wi();return e?e.sanitize(Vi.HTML,t)||"":hi(t,"HTML")?pi(t):Ni(Cn(),Mn(t))}function qi(t){var e=Wi();return e?e.sanitize(Vi.URL,t)||"":hi(t,"URL")?pi(t):wi(Mn(t))}function Wi(){var t=ze();return t&&t[12]}function Gi(t){for(;Array.isArray(t);)t=t[0];return t}function Yi(t,e){return Gi(e[t+19])}function Ki(t,e){return Gi(e[t.index])}function Zi(t,e){return t.data[e+19]}function $i(t,e){return t[e+19]}function Xi(t,e){var n=e[t];return Te(n)?n:n[0]}function Qi(t){var e=function(t){return t.__ngContext__||null}(t);return e?Array.isArray(e)?e:e.lView:null}function Ji(t){return 4==(4&t[2])}function tr(t){return 128==(128&t[2])}function er(t,e){return null===t||null==e?null:t[e]}function nr(t){t[18]=0}function ir(t,e){t.__ngContext__=e}function rr(t){throw new Error("Multiple components match node with tagname "+t.tagName)}function or(){throw new Error("Cannot mix multi providers and regular providers")}function ar(t,e,n){for(var i=t.length;;){var r=t.indexOf(e,n);if(-1===r)return r;if(0===r||t.charCodeAt(r-1)<=32){var o=e.length;if(r+o===i||t.charCodeAt(r+o)<=32)return r}n=r+1}}function sr(t,e,n){for(var i=0;io?"":r[c+1].toLowerCase();var p=8&i?d:null;if(p&&-1!==ar(p,l,0)||2&i&&l!==d){if(cr(i))return!1;a=!0}}}}else{if(!a&&!cr(i)&&!cr(u))return!1;if(a&&cr(u))continue;a=!1,i=u|1&i}}return cr(i)||a}function cr(t){return 0==(1&t)}function dr(t,e,n,i){if(null===e)return-1;var r=0;if(i||!n){for(var o=!1;r-1)for(n++;n0?'="'+s+'"':"")+"]"}else 8&i?r+="."+a:4&i&&(r+=" "+a);else""===r||cr(a)||(e+=fr(o,r),r=""),i=a,o=o||!cr(i);n++}return""!==r&&(e+=fr(o,r)),e}var gr={};function yr(t){var e=t[3];return Re(e)?e[3]:e}function vr(t){br(He(),ze(),cn()+t,Ke())}function br(t,e,n,i){if(!i)if(3==(3&e[2])){var r=t.preOrderCheckHooks;null!==r&&mn(e,r,n)}else{var o=t.preOrderHooks;null!==o&&gn(e,o,0,n)}dn(n)}function _r(t,e){return t<<17|e<<2}function wr(t){return t>>17&32767}function Cr(t){return 2|t}function xr(t){return(131068&t)>>2}function kr(t,e){return-131069&t|e<<2}function Sr(t){return 1|t}function Dr(t,e){var n=t.contentQueries;if(null!==n)for(var i=0;i>1==-1){for(var i=9;i19&&br(t,e,0,Ke()),n(i,r)}finally{dn(o)}}function Mr(t,e,n){if(Me(e))for(var i=e.directiveEnd,r=e.directiveStart;r0&&(t[n-1][4]=i[4]);var o=ce(t,9+e);_o(i[1],i,!1,null);var a=o[5];null!==a&&a.detachView(o[1]),i[3]=null,i[4]=null,i[2]&=-129}return i}}function xo(t,e){if(!(256&e[2])){var n=e[11];xn(n)&&n.destroyNode&&Fo(t,e,n,3,null,null),function(t){var e=t[13];if(!e)return So(t[1],t);for(;e;){var n=null;if(Te(e))n=e[13];else{var i=e[9];i&&(n=i)}if(!n){for(;e&&!e[4]&&e!==t;)Te(e)&&So(e[1],e),e=ko(e,t);null===e&&(e=t),Te(e)&&So(e[1],e),n=e&&e[4]}e=n}}(e)}}function ko(t,e){var n;return Te(t)&&(n=t[6])&&2===n.type?yo(n,t):t[3]===e?null:t[3]}function So(t,e){if(!(256&e[2])){e[2]&=-129,e[2]|=256,function(t,e){var n;if(null!=t&&null!=(n=t.destroyHooks))for(var i=0;i=0?i[s]():i[-s].unsubscribe(),r+=2}else n[r].call(i[n[r+1]]);e[7]=null}}(t,e);var n=e[6];n&&3===n.type&&xn(e[11])&&e[11].destroy();var i=e[17];if(null!==i&&Re(e[3])){i!==e[3]&&wo(i,e);var r=e[5];null!==r&&r.detachView(t)}}}function Do(t,e,n){for(var i=e.parent;null!=i&&(4===i.type||5===i.type);)i=(e=i).parent;if(null==i){var r=n[6];return 2===r.type?vo(r,n):n[0]}if(e&&5===e.type&&4&e.flags)return Ki(e,n).parentNode;if(2&i.flags){var o=t.data,a=o[o[i.index].directiveStart].encapsulation;if(a!==ge.ShadowDom&&a!==ge.Native)return null}return Ki(i,n)}function Eo(t,e,n,i){xn(t)?t.insertBefore(e,n,i):e.insertBefore(n,i,!0)}function Ao(t,e,n){xn(t)?t.appendChild(e,n):e.appendChild(n)}function Oo(t,e,n,i){null!==i?Eo(t,e,n,i):Ao(t,e,n)}function Io(t,e){return xn(t)?t.parentNode(e):e.parentNode}function Po(t,e){if(2===t.type){var n=yo(t,e);return null===n?null:Ro(n.indexOf(e,9)-9,n)}return 4===t.type||5===t.type?Ki(t,e):null}function To(t,e,n,i){var r=Do(t,i,e);if(null!=r){var o=e[11],a=Po(i.parent||e[6],e);if(Array.isArray(n))for(var s=0;s-1&&this._viewContainerRef.detach(t),this._viewContainerRef=null}xo(this._lView[1],this._lView)},t.prototype.onDestroy=function(t){var e,n,i;e=this._lView[1],i=t,co(n=this._lView).push(i),e.firstCreatePass&&po(e).push(n[7].length-1,null)},t.prototype.markForCheck=function(){oo(this._cdRefInjectingView||this._lView)},t.prototype.detach=function(){this._lView[2]&=-129},t.prototype.reattach=function(){this._lView[2]|=128},t.prototype.detectChanges=function(){ao(this._lView[1],this._lView,this.context)},t.prototype.checkNoChanges=function(){!function(t,e,n){Ze(!0);try{ao(t,e,n)}finally{Ze(!1)}}(this._lView[1],this._lView,this.context)},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t.prototype.detachFromAppRef=function(){var t;this._appRef=null,Fo(this._lView[1],t=this._lView,t[11],2,null,null)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t}(),Uo=function(t){function e(e){var n=t.call(this,e)||this;return n._view=e,n}return r(e,t),e.prototype.detectChanges=function(){so(this._view)},e.prototype.checkNoChanges=function(){!function(t){Ze(!0);try{so(t)}finally{Ze(!1)}}(this._view)},Object.defineProperty(e.prototype,"context",{get:function(){return null},enumerable:!0,configurable:!0}),e}(Ho);function qo(t,e,n){return Bo||(Bo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e}(t)),new Bo(Ki(e,n))}function Wo(t,e,n,i){return Vo||(Vo=function(t){function e(e,n,i){var r=t.call(this)||this;return r._declarationView=e,r._declarationTContainer=n,r.elementRef=i,r}return r(e,t),e.prototype.createEmbeddedView=function(t){var e=this._declarationTContainer.tViews,n=Ar(this._declarationView,e,t,16,null,e.node);n[17]=this._declarationView[this._declarationTContainer.index];var i=this._declarationView[5];null!==i&&(n[5]=i.createEmbeddedView(e)),Ir(e,n,t);var r=new Ho(n);return r._tViewNode=n[6],r},e}(t)),0===n.type?new Vo(i,n,qo(e,n,i)):null}function Go(t,e,n,i){var o;zo||(zo=function(t){function n(e,n,i){var r=t.call(this)||this;return r._lContainer=e,r._hostTNode=n,r._hostView=i,r}return r(n,t),Object.defineProperty(n.prototype,"element",{get:function(){return qo(e,this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"injector",{get:function(){return new ti(this._hostTNode,this._hostView)},enumerable:!0,configurable:!0}),Object.defineProperty(n.prototype,"parentInjector",{get:function(){var t=Wn(this._hostTNode,this._hostView),e=Rn(t,this._hostView),n=function(t,e,n){if(n.parent&&-1!==n.parent.injectorIndex){for(var i=n.parent.injectorIndex,r=n.parent;null!=r.parent&&i==r.parent.injectorIndex;)r=r.parent;return r}for(var o=Tn(t),a=e,s=e[6];o>1;)s=(a=a[15])[6],o--;return s}(t,this._hostView,this._hostTNode);return In(t)&&null!=n?new ti(n,e):new ti(null,this._hostView)},enumerable:!0,configurable:!0}),n.prototype.clear=function(){for(;this.length>0;)this.remove(this.length-1)},n.prototype.get=function(t){return null!==this._lContainer[8]&&this._lContainer[8][t]||null},Object.defineProperty(n.prototype,"length",{get:function(){return this._lContainer.length-9},enumerable:!0,configurable:!0}),n.prototype.createEmbeddedView=function(t,e,n){var i=t.createEmbeddedView(e||{});return this.insert(i,n),i},n.prototype.createComponent=function(t,e,n,i,r){var o=n||this.parentInjector;if(!r&&null==t.ngModule&&o){var a=o.get(ae,null);a&&(r=a)}var s=t.create(o,i,void 0,r);return this.insert(s.hostView,e),s},n.prototype.insert=function(t,e){var n=t._lView,i=n[1];if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");if(this.allocateContainerIfNeeded(),Re(n[3])){var r=this.indexOf(t);if(-1!==r)this.detach(r);else{var o=n[3],a=new zo(o,o[6],o[3]);a.detach(a.indexOf(t))}}var s=this._adjustIndex(e);return function(t,e,n,i){var r=9+i,o=n.length;i>0&&(n[r-1][4]=e),i ");else if("object"==typeof e){var o=[];for(var a in e)if(e.hasOwnProperty(a)){var s=e[a];o.push(a+":"+("string"==typeof s?JSON.stringify(s):Et(s)))}r="{"+o.join(", ")+"}"}return n+(i?"("+i+")":"")+"["+r+"]: "+t.replace(Zt,"\n ")}("\n"+t.message,r,n,i),t.ngTokenPath=r,t.ngTempTokenPath=null,t}(s,t,"R3InjectorError",this.source)}throw s}finally{Qt(r)}},t.prototype.toString=function(){var t=[];return this.records.forEach((function(e,n){return t.push(Et(n))})),"R3Injector["+t.join(", ")+"]"},t.prototype.assertNotDestroyed=function(){if(this._destroyed)throw new Error("Injector has already been destroyed.")},t.prototype.processInjectorType=function(t,e,n){var i=this;if(!(t=Pt(t)))return!1;var r=wt(t),o=null==r&&t.ngModule||void 0,a=void 0===o?t:o,s=-1!==n.indexOf(a);if(void 0!==o&&(r=wt(o)),null==r)return!1;if(null!=r.imports&&!s){var u;n.push(a);try{ue(r.imports,(function(t){i.processInjectorType(t,e,n)&&(void 0===u&&(u=[]),u.push(t))}))}finally{}if(void 0!==u)for(var l=function(t){var e=u[t],n=e.ngModule,r=e.providers;ue(r,(function(t){return i.processProvider(t,n,r||Jo)}))},c=0;c0){var n=de(e,"?");throw new Error("Can't resolve all parameters for "+Et(t)+": ("+n.join(", ")+").")}var i=function(t){var e=t&&(t[Ct]||t[St]||t[kt]&&t[kt]());if(e){var n=function(t){if(t.hasOwnProperty("name"))return t.name;var e=(""+t).match(/^function\s*([^\s(]+)/);return null===e?"":e[1]}(t);return console.warn('DEPRECATED: DI is instantiating a token "'+n+'" that inherits its @Injectable decorator but does not provide one itself.\nThis will become an error in v10. Please add @Injectable() to the "'+n+'" class.'),e}return null}(t);return null!==i?function(){return i.factory(t)}:function(){return new t}}(t);throw new Error("unreachable")}function oa(t,e,n){var i,r=void 0;if(ua(t))return ra(Pt(t));if(sa(t))r=function(){return Pt(t.useValue)};else if((i=t)&&i.useFactory)r=function(){return t.useFactory.apply(t,u(re(t.deps||[])))};else if(function(t){return!(!t||!t.useExisting)}(t))r=function(){return ee(Pt(t.useExisting))};else{var o=Pt(t&&(t.useClass||t.provide));if(o||function(t,e,n){var i="";throw t&&e&&(i=" - only instances of Provider and Type are allowed, got: ["+e.map((function(t){return t==n?"?"+n+"?":"..."})).join(", ")+"]"),new Error("Invalid provider for the NgModule '"+Et(t)+"'"+i)}(e,n,t),!function(t){return!!t.deps}(t))return ra(o);r=function(){return new(o.bind.apply(o,u([void 0],re(t.deps))))}}return r}function aa(t,e,n){return void 0===n&&(n=!1),{factory:t,value:e,multi:n?[]:void 0}}function sa(t){return null!==t&&"object"==typeof t&&$t in t}function ua(t){return"function"==typeof t}var la=function(t,e,n){return na({name:n},e,t,n)},ca=function(){function t(){}return t.create=function(t,e){return Array.isArray(t)?la(t,e,""):la(t.providers,t.parent,t.name||"")},t.THROW_IF_NOT_FOUND=Kt,t.NULL=new oe,t.\u0275prov=yt({token:t,providedIn:"any",factory:function(){return ee(Yt)}}),t.__NG_ELEMENT_ID__=-1,t}(),da=new Gt("AnalyzeForEntryComponents"),pa=new Map,ha=new Set;function fa(t){return"string"==typeof t?t:t.text()}function ma(t,e){for(var n=t.styles,i=t.classes,r=0,o=0;ou?s[u]:null}"string"==typeof a&&(o+=2)}return null}(t,e,r,i.index)),null!==y)(y.__ngLastListenerFn__||y).__ngNextListenerFn__=o,y.__ngLastListenerFn__=o,d=!1;else{o=Ka(i,e,o,!1);var v=n.listen(h.name||f,r,o);c.push(o,v),l&&l.push(r,g,m,m+1)}}else o=Ka(i,e,o,!0),f.addEventListener(r,o,a),c.push(o),l&&l.push(r,g,m,a)}var b,_=i.outputs;if(d&&null!==_&&(b=_[r])){var w=b.length;if(w)for(var C=0;C0;)e=e[15],t--;return e}(t,Be.lFrame.contextLView))[8]}(t)}function $a(t,e){for(var n=null,i=function(t){var e=t.attrs;if(null!=e){var n=e.indexOf(5);if(0==(1&n))return e[n+1]}return null}(t),r=0;r=0}var rs={textEnd:0,key:0,keyEnd:0,value:0,valueEnd:0};function os(t){return t.substring(rs.key,rs.keyEnd)}function as(t,e){var n=rs.textEnd;return n===e?-1:(e=rs.keyEnd=function(t,e,n){for(;e32;)e++;return e}(t,rs.key=e,n),ss(t,e,n))}function ss(t,e,n){for(;e=0;n=as(e,n))pe(t,os(e),!0)}function ds(t,e,n,i){var r,o=ze(),a=He(),s=Je(2);if(a.firstUpdatePass&&hs(a,t,s,i),e!==gr&&ka(o,s,e)){var u=void 0;null==n&&(u=null===(r=Be.lFrame)?null:r.currentSanitizer)&&(n=u),gs(a,a.data[cn()+19],o,o[11],t,o[s+1]=function(t,e){return null==t||("function"==typeof e?t=e(t):"string"==typeof e?t+=e:"object"==typeof t&&(t=Et(pi(t)))),t}(e,n),i,s)}}function ps(t,e){return e>=t.expandoStartIndex}function hs(t,e,n,i){var r=t.data;if(null===r[n+1]){var o=r[cn()+19],a=ps(t,n);bs(o,i)&&null===e&&!a&&(e=!1),e=function(t,e,n,i){var r=function(t){var e=Be.lFrame.currentDirectiveIndex;return-1===e?null:t[e]}(t),o=i?e.residualClasses:e.residualStyles;if(null===r)0===(i?e.classBindings:e.styleBindings)&&(n=ms(n=fs(null,t,e,n,i),e.attrs,i),o=null);else{var a=e.directiveStylingLast;if(-1===a||t[a]!==r)if(n=fs(r,t,e,n,i),null===o){var s=function(t,e,n){var i=n?e.classBindings:e.styleBindings;if(0!==xr(i))return t[wr(i)]}(t,e,i);void 0!==s&&Array.isArray(s)&&function(t,e,n,i){t[wr(n?e.classBindings:e.styleBindings)]=i}(t,e,i,s=ms(s=fs(null,t,e,s[1],i),e.attrs,i))}else o=function(t,e,n){for(var i=void 0,r=e.directiveEnd,o=1+e.directiveStylingLast;o0)&&(c=!0):l=n,r)if(0!==u){var d=wr(t[s+1]);t[i+1]=_r(d,s),0!==d&&(t[d+1]=kr(t[d+1],i)),t[s+1]=131071&t[s+1]|i<<17}else t[i+1]=_r(s,0),0!==s&&(t[s+1]=kr(t[s+1],i)),s=i;else t[i+1]=_r(u,0),0===s?s=i:t[u+1]=kr(t[u+1],i),u=i;c&&(t[i+1]=Cr(t[i+1])),ns(t,l,i,!0),ns(t,l,i,!1),function(t,e,n,i,r){var o=r?t.residualClasses:t.residualStyles;null!=o&&"string"==typeof e&&fe(o,e)>=0&&(n[i+1]=Sr(n[i+1]))}(e,l,t,i,o),a=_r(s,u),o?e.classBindings=a:e.styleBindings=a}(r,o,e,n,a,i)}}function fs(t,e,n,i,r){var o=null,a=n.directiveEnd,s=n.directiveStylingLast;for(-1===s?s=n.directiveStart:s++;s0;){var u=t[r],l=Array.isArray(u),c=l?u[1]:u,d=null===c,p=n[r+1];p===gr&&(p=d?es:void 0);var h=d?he(p,i):c===i?p:void 0;if(l&&!vs(h)&&(h=he(u,i)),vs(h)&&(s=h,a))return s;var f=t[r+1];r=a?wr(f):xr(f)}if(null!==e){var m=o?e.residualClasses:e.residualStyles;null!=m&&(s=he(m,i))}return s}function vs(t){return void 0!==t}function bs(t,e){return 0!=(t.flags&(e?16:32))}function _s(t,e){void 0===e&&(e="");var n=ze(),i=He(),r=t+19,o=i.firstCreatePass?Or(i,n[6],t,3,null,null):i.data[r],a=n[r]=function(t,e){return xn(e)?e.createText(t):e.createTextNode(t)}(e,n[11]);To(i,n,a,o),We(o,!1)}function ws(t){return Cs("",t,""),ws}function Cs(t,e,n){var i=ze(),r=Ea(i,t,e,n);return r!==gr&&go(i,cn(),r),Cs}function xs(t,e,n,i,r){var o=ze(),a=function(t,e,n,i,r,o){var a=Sa(t,Xe(),n,r);return Je(2),a?e+Mn(n)+i+Mn(r)+o:gr}(o,t,e,n,i,r);return a!==gr&&go(o,cn(),a),xs}function ks(t,e,n){var i=ze();if(ka(i,Qe(),e)){var r=cn();zr(He(),i,r,t,e,n,!0)}return ks}function Ss(t,e,n){var i=ze();if(ka(i,Qe(),e)){var r=cn();zr(He(),i,r,t,e,n,!0,ho)}return Ss}function Ds(t,e){var n=Qi(t)[1],i=n.data.length-1;fn(n,{directiveStart:i,directiveEnd:i+1})}function Es(t){for(var e=Object.getPrototypeOf(t.type.prototype).constructor,n=!0,i=[t];e;){var r=void 0;if(je(t))r=e.\u0275cmp||e.\u0275dir;else{if(e.\u0275cmp)throw new Error("Directives cannot inherit Components");r=e.\u0275dir}if(r){if(n){i.push(r);var o=t;o.inputs=As(t.inputs),o.declaredInputs=As(t.declaredInputs),o.outputs=As(t.outputs);var a=r.hostBindings;a&&Ps(t,a);var s=r.viewQuery,u=r.contentQueries;s&&Os(t,s),u&&Is(t,u),gt(t.inputs,r.inputs),gt(t.declaredInputs,r.declaredInputs),gt(t.outputs,r.outputs),o.afterContentChecked=o.afterContentChecked||r.afterContentChecked,o.afterContentInit=t.afterContentInit||r.afterContentInit,o.afterViewChecked=t.afterViewChecked||r.afterViewChecked,o.afterViewInit=t.afterViewInit||r.afterViewInit,o.doCheck=t.doCheck||r.doCheck,o.onDestroy=t.onDestroy||r.onDestroy,o.onInit=t.onInit||r.onInit}var l=r.features;if(l)for(var c=0;c=0;i--){var r=t[i];r.hostVars=e+=r.hostVars,r.hostAttrs=An(r.hostAttrs,n=An(n,r.hostAttrs))}}(i)}function As(t){return t===ve?{}:t===be?[]:t}function Os(t,e){var n=t.viewQuery;t.viewQuery=n?function(t,i){e(t,i),n(t,i)}:e}function Is(t,e){var n=t.contentQueries;t.contentQueries=n?function(t,i,r){e(t,i,r),n(t,i,r)}:e}function Ps(t,e){var n=t.hostBindings;t.hostBindings=n?function(t,i){e(t,i),n(t,i)}:e}var Ts=function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}();function Rs(){return Ms.ngInherit=!0,Ms}function Ms(t){t.type.prototype.ngOnChanges&&(t.setInput=Fs,t.onChanges=function(){var t=Ls(this),e=t&&t.current;if(e){var n=t.previous;if(n===ve)t.previous=e;else for(var i in e)n[i]=e[i];t.current=null,this.ngOnChanges(e)}})}function Fs(t,e,n,i){var r=Ls(t)||function(t,e){return t.__ngSimpleChanges__=e}(t,{previous:ve,current:null}),o=r.current||(r.current={}),a=r.previous,s=this.declaredInputs[n],u=a[s];o[s]=new Ts(u&&u.currentValue,e,a===ve),t[i]=e}function Ls(t){return t.__ngSimpleChanges__||null}function js(t,e,n,i,r){if(t=Pt(t),Array.isArray(t))for(var o=0;o>16;if(t.useClass||ua(t)){var f=(t.useClass||t).prototype.ngOnDestroy;f&&(a.destroyHooks||(a.destroyHooks=[])).push(e.length,f)}if(ua(t)||!t.multi){var m=new _n(l,r,Ia),g=Bs(u,e,r?d:d+h,p);-1==g?(Gn(Hn(c,s),a,u),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(m),s.push(m)):(n[g]=m,s[g]=m)}else{var y=Bs(u,e,d+h,p),v=Bs(u,e,d,d+h),b=v>=0&&n[v];r&&!b||!r&&!(y>=0&&n[y])?(Gn(Hn(c,s),a,u),m=function(t,e,n,i,r){var o=new _n(t,n,Ia);return o.multi=[],o.index=e,o.componentProviders=0,Ns(o,r,i&&!n),o}(r?zs:Vs,n.length,r,i,l),!r&&b&&(n[v].providerFactory=m),e.push(u),c.directiveStart++,c.directiveEnd++,r&&(c.providerIndexes+=65536),n.push(m),s.push(m)):Ns(n[r?v:y],l,!r&&i),!r&&i&&b&&n[v].componentProviders++}}}function Ns(t,e,n){t.multi.push(e),n&&t.componentProviders++}function Bs(t,e,n,i){for(var r=n;r null != "+e+" <=Actual]")}(n,e),"string"==typeof t&&t.toLowerCase().replace(/_/g,"-")}var Fu=new Map,Lu={provide:Ys,useClass:xu,deps:[ae]},ju=function(t){function e(e,n){var i=t.call(this)||this;i._parent=n,i._bootstrapComponents=[],i.injector=i,i.destroyCbs=[];var r=Pe(e),o=e[Ut]||null;return o&&Mu(o),i._bootstrapComponents=Nn(r.bootstrap),i._r3Injector=na(e,n,[{provide:ae,useValue:i},Lu],Et(e)),i.instance=i.get(e),i}return r(e,t),e.prototype.get=function(t,e,n){return void 0===e&&(e=ca.THROW_IF_NOT_FOUND),void 0===n&&(n=ft.Default),t===ca||t===ae||t===Yt?this:this._r3Injector.get(t,e,n)},Object.defineProperty(e.prototype,"componentFactoryResolver",{get:function(){return this.get(Ys)},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){var t=this._r3Injector;!t.destroyed&&t.destroy(),this.destroyCbs.forEach((function(t){return t()})),this.destroyCbs=null},e.prototype.onDestroy=function(t){this.destroyCbs.push(t)},e}(ae),Nu=function(t){function e(e){var n=t.call(this)||this;return n.moduleType=e,null!==Pe(e)&&function t(e){if(null!==e.\u0275mod.id){var n=e.\u0275mod.id;(function(t,e,n){if(e&&e!==n)throw new Error("Duplicate module registered for "+t+" - "+Et(e)+" vs "+Et(e.name))})(n,Fu.get(n),e),Fu.set(n,e)}var i=e.\u0275mod.imports;i instanceof Function&&(i=i()),i&&i.forEach((function(e){return t(e)}))}(e),n}return r(e,t),e.prototype.create=function(t){return new ju(this.moduleType,t)},e}(se);function Bu(t,e,n){var i=$e()+t,r=ze();return r[i]===gr?Ca(r,i,n?e.call(n):e()):xa(r,i)}function Vu(t,e,n,i){return Hu(ze(),$e(),t,e,n,i)}function zu(t,e,n,i,r){return Uu(ze(),$e(),t,e,n,i,r)}function Hu(t,e,n,i,r,o){var a=e+n;return ka(t,a,r)?Ca(t,a+1,o?i.call(o,r):i(r)):xa(t,a+1)}function Uu(t,e,n,i,r,o,a){var s=e+n;return Sa(t,s,r,o)?Ca(t,s+2,a?i.call(a,r,o):i(r,o)):xa(t,s+2)}function qu(t,e){var n,i=He(),r=t+19;i.firstCreatePass?(n=function(t,e){if(e)for(var n=e.length-1;n>=0;n--){var i=e[n];if(t===i.name)return i}throw new Error("The pipe '"+t+"' could not be found!")}(e,i.pipeRegistry),i.data[r]=n,n.onDestroy&&(i.destroyHooks||(i.destroyHooks=[])).push(r,n.onDestroy)):n=i.data[r];var o=(n.factory||(n.factory=Ie(n.type)))();return function(t,e,n,i){var r=n+19;r>=t.data.length&&(t.data[r]=null,t.blueprint[r]=null),e[r]=i}(i,ze(),t,o),o}function Wu(t,e,n){var i=ze(),r=$i(i,t);return Ku(i,Yu(i,t)?Hu(i,$e(),e,r.transform,n,r):r.transform(n))}function Gu(t,e,n,i){var r=ze(),o=$i(r,t);return Ku(r,Yu(r,t)?Uu(r,$e(),e,o.transform,n,i,o):o.transform(n,i))}function Yu(t,e){return t[1].data[e+19].pure}function Ku(t,e){return ba.isWrapped(e)&&(e=ba.unwrap(e),t[Xe()]=gr),e}var Zu=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return r(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,i){var r,o=function(t){return null},a=function(){return null};e&&"object"==typeof e?(r=this.__isAsync?function(t){setTimeout((function(){return e.next(t)}))}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout((function(){return e.error(t)}))}:function(t){e.error(t)}),e.complete&&(a=this.__isAsync?function(){setTimeout((function(){return e.complete()}))}:function(){e.complete()})):(r=this.__isAsync?function(t){setTimeout((function(){return e(t)}))}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout((function(){return n(t)}))}:function(t){n(t)}),i&&(a=this.__isAsync?function(){setTimeout((function(){return i()}))}:function(){i()}));var s=t.prototype.subscribe.call(this,r,o,a);return e instanceof h&&e.add(s),s},e}(P);function $u(){return this._results[ya()]()}var Xu=function(){function t(){this.dirty=!0,this._results=[],this.changes=new Zu,this.length=0;var e=ya(),n=t.prototype;n[e]||(n[e]=$u)}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.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=function t(e,n){void 0===n&&(n=e);for(var i=0;i0)r.push(s[u/2]);else{for(var c=a[u+1],d=n[-l],p=9;p0&&(r=setTimeout((function(){i._callbacks=i._callbacks.filter((function(t){return t.timeoutId!==r})),t(i._didWork,i.getPendingTasks())}),e)),this._callbacks.push({doneCb:t,timeoutId:r,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.\u0275fac=function(e){return new(e||t)(ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),$l=function(){function t(){this._applications=new Map,Xl.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),Xl.findTestabilityInTree(this,t,e)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),Xl=new(function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}()),Ql=function(t,e,n){var i=new Nu(n);if(0===pa.size)return Promise.resolve(i);var r,o,a=(r=t.get(jl,[]).concat(e).map((function(t){return t.providers})),o=[],r.forEach((function(t){return t&&o.push.apply(o,u(t))})),o);if(0===a.length)return Promise.resolve(i);var s=function(){var t=Nt.ng;if(!t||!t.\u0275compilerFacade)throw new Error("Angular JIT compilation failed: '@angular/compiler' not loaded!\n - JIT compilation is discouraged for production use-cases! Consider AOT mode instead.\n - Did you bootstrap using '@angular/platform-browser-dynamic' or '@angular/platform-server'?\n - Alternatively provide the compiler with 'import \"@angular/compiler\";' before bootstrapping.");return t.\u0275compilerFacade}(),l=ca.create({providers:a}).get(s.ResourceLoader);return function(t){var e=[],n=new Map;function i(t){var e=n.get(t);if(!e){var i=function(t){return Promise.resolve(l.get(t))}(t);n.set(t,e=i.then(fa))}return e}return pa.forEach((function(t,n){var r=[];t.templateUrl&&r.push(i(t.templateUrl).then((function(e){t.template=e})));var o=t.styleUrls,a=t.styles||(t.styles=[]),s=t.styles.length;o&&o.forEach((function(e,n){a.push(""),r.push(i(e).then((function(i){a[s+n]=i,o.splice(o.indexOf(e),1),0==o.length&&(t.styleUrls=void 0)})))}));var u=Promise.all(r).then((function(){return function(t){ha.delete(t)}(n)}));e.push(u)})),pa=new Map,Promise.all(e).then((function(){}))}().then((function(){return i}))},Jl=new Gt("AllowMultipleToken"),tc=function(){return function(t,e){this.name=t,this.token=e}}();function ec(t,e,n){void 0===n&&(n=[]);var i="Platform: "+e,r=new Gt(i);return function(e){void 0===e&&(e=[]);var o=nc();if(!o||o.injector.get(Jl,!1))if(t)t(n.concat(e).concat({provide:r,useValue:!0}));else{var a=n.concat(e).concat({provide:r,useValue:!0},{provide:$o,useValue:"platform"});!function(t){if(Yl&&!Yl.destroyed&&!Yl.injector.get(Jl,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Yl=t.get(ic);var e=t.get(xl,null);e&&e.forEach((function(t){return t()}))}(ca.create({providers:a,name:i}))}return function(t){var e=nc();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}(r)}}function nc(){return Yl&&!Yl.destroyed?Yl:null}var ic=function(){function t(t){this._injector=t,this._modules=[],this._destroyListeners=[],this._destroyed=!1}return t.prototype.bootstrapModuleFactory=function(t,e){var n,i,r=this,o=(i=e&&e.ngZoneEventCoalescing||!1,"noop"===(n=e?e.ngZone:void 0)?new Kl:("zone.js"===n?void 0:n)||new Vl({enableLongStackTrace:yi(),shouldCoalesceEventChangeDetection:i})),a=[{provide:Vl,useValue:o}];return o.run((function(){var e=ca.create({providers:a,parent:r.injector,name:t.moduleType.name}),n=t.create(e),i=n.injector.get(oi,null);if(!i)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return n.onDestroy((function(){return ac(r._modules,n)})),o.runOutsideAngular((function(){return o.onError.subscribe({next:function(t){i.handleError(t)}})})),function(t,e,i){try{var o=((a=n.injector.get(bl)).runInitializers(),a.donePromise.then((function(){return Mu(n.injector.get(El,"en-US")||"en-US"),r._moduleDoBootstrap(n),n})));return Ha(o)?o.catch((function(n){throw e.runOutsideAngular((function(){return t.handleError(n)})),n})):o}catch(s){throw e.runOutsideAngular((function(){return t.handleError(s)})),s}var a}(i,o)}))},t.prototype.bootstrapModule=function(t,e){var n=this;void 0===e&&(e=[]);var i=rc({},e);return Ql(this.injector,i,t).then((function(t){return n.bootstrapModuleFactory(t,i)}))},t.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(oc);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach((function(t){return e.bootstrap(t)}));else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+Et(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.\u0275fac=function(e){return new(e||t)(ee(ca))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function rc(t,e){return Array.isArray(e)?e.reduce(rc,t):o(o({},t),e)}var oc=function(){function t(t,e,n,i,r,o){var a=this;this._zone=t,this._console=e,this._injector=n,this._exceptionHandler=i,this._componentFactoryResolver=r,this._initStatus=o,this._bootstrapListeners=[],this._views=[],this._runningTick=!1,this._enforceNoNewChanges=!1,this._stable=!0,this.componentTypes=[],this.components=[],this._enforceNoNewChanges=yi(),this._zone.onMicrotaskEmpty.subscribe({next:function(){a._zone.run((function(){a.tick()}))}});var s=new D((function(t){a._stable=a._zone.isStable&&!a._zone.hasPendingMacrotasks&&!a._zone.hasPendingMicrotasks,a._zone.runOutsideAngular((function(){t.next(a._stable),t.complete()}))})),u=new D((function(t){var e;a._zone.runOutsideAngular((function(){e=a._zone.onStable.subscribe((function(){Vl.assertNotInAngularZone(),Bl((function(){a._stable||a._zone.hasPendingMacrotasks||a._zone.hasPendingMicrotasks||(a._stable=!0,t.next(!0))}))}))}));var n=a._zone.onUnstable.subscribe((function(){Vl.assertInAngularZone(),a._stable&&(a._stable=!1,a._zone.runOutsideAngular((function(){t.next(!1)})))}));return function(){e.unsubscribe(),n.unsubscribe()}}));this.isStable=tt(s,u.pipe((function(t){return et()((e=st,function(t){var n;n="function"==typeof e?e:function(){return e};var i=Object.create(t,ot);return i.source=t,i.subjectFactory=n,i})(t));var e})))}return t.prototype.bootstrap=function(t,e){var n,i=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");n=t instanceof Ws?t:this._componentFactoryResolver.resolveComponentFactory(t),this.componentTypes.push(n.componentType);var r=n.isBoundToModule?void 0:this._injector.get(ae),o=n.create(ca.NULL,[],e||n.selector,r);o.onDestroy((function(){i._unloadComponent(o)}));var a=o.injector.get(Zl,null);return a&&o.injector.get($l).registerApplication(o.location.nativeElement,a),this._loadComponent(o),yi()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),o},t.prototype.tick=function(){var t,e,n,i,r=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");try{this._runningTick=!0;try{for(var o=a(this._views),s=o.next();!s.done;s=o.next())s.value.detectChanges()}catch(c){t={error:c}}finally{try{s&&!s.done&&(e=o.return)&&e.call(o)}finally{if(t)throw t.error}}if(this._enforceNoNewChanges)try{for(var u=a(this._views),l=u.next();!l.done;l=u.next())l.value.checkNoChanges()}catch(d){n={error:d}}finally{try{l&&!l.done&&(i=u.return)&&i.call(u)}finally{if(n)throw n.error}}}catch(p){this._zone.runOutsideAngular((function(){return r._exceptionHandler.handleError(p)}))}finally{this._runningTick=!1}},t.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},t.prototype.detachView=function(t){var e=t;ac(this._views,e),e.detachFromAppRef()},t.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this.components.push(t),this._injector.get(Sl,[]).concat(this._bootstrapListeners).forEach((function(e){return e(t)}))},t.prototype._unloadComponent=function(t){this.detachView(t.hostView),ac(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.\u0275fac=function(e){return new(e||t)(ee(Vl),ee(Dl),ee(ca),ee(oi),ee(Ys),ee(bl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function ac(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}var sc=function(){return function(){}}(),uc=function(){return function(){}}(),lc={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},cc=function(){function t(t,e){this._compiler=t,this._config=e||lc}return t.prototype.load=function(t){return this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,i=s(t.split("#"),2),r=i[0],o=i[1];return void 0===o&&(o="default"),n("crnd")(r).then((function(t){return t[o]})).then((function(t){return dc(t,r,o)})).then((function(t){return e._compiler.compileModuleAsync(t)}))},t.prototype.loadFactory=function(t){var e=s(t.split("#"),2),i=e[0],r=e[1],o="NgFactory";return void 0===r&&(r="default",o=""),n("crnd")(this._config.factoryPathPrefix+i+this._config.factoryPathSuffix).then((function(t){return t[r+o]})).then((function(t){return dc(t,i,r)}))},t.\u0275fac=function(e){return new(e||t)(ee(Ll),ee(uc,8))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}();function dc(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}var pc=ec(null,"core",[{provide:kl,useValue:"unknown"},{provide:ic,deps:[ca]},{provide:$l,deps:[]},{provide:Dl,deps:[]}]),hc=[{provide:oc,useClass:oc,deps:[Vl,Dl,ca,oi,Ys,bl]},{provide:Su,deps:[Vl],useFactory:function(t){var e=[];return t.onStable.subscribe((function(){for(;e.length;)e.pop()()})),function(t){e.push(t)}}},{provide:bl,useClass:bl,deps:[[new dt,vl]]},{provide:Ll,useClass:Ll,deps:[]},wl,{provide:hu,useFactory:function(){return gu},deps:[]},{provide:fu,useFactory:function(){return yu},deps:[]},{provide:El,useFactory:function(t){return Mu(t=t||"undefined"!=typeof $localize&&$localize.locale||"en-US"),t},deps:[[new ct(El),new dt,new ht]]},{provide:Al,useValue:"USD"}],fc=function(){function t(t){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)(ee(oc))},providers:hc}),t}(),mc=null;function gc(){return mc}var yc=function(){return function(){}}(),vc=new Gt("DocumentToken"),bc=function(){function t(){}return t.\u0275prov=yt({factory:_c,token:t,providedIn:"platform"}),t.\u0275fac=function(e){return new(e||t)},t}();function _c(){return ee(Cc)}var wc=new Gt("Location Initialized"),Cc=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return r(e,t),e.prototype._init=function(){this.location=gc().getLocation(),this._history=gc().getHistory()},e.prototype.getBaseHrefFromDOM=function(){return gc().getBaseHref(this._doc)},e.prototype.onPopState=function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){gc().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"href",{get:function(){return this.location.href},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"protocol",{get:function(){return this.location.protocol},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostname",{get:function(){return this.location.hostname},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"port",{get:function(){return this.location.port},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pathname",{get:function(){return this.location.pathname},set:function(t){this.location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this.location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this.location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){xc()?this._history.pushState(t,e,n):this.location.hash=n},e.prototype.replaceState=function(t,e,n){xc()?this._history.replaceState(t,e,n):this.location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e.prototype.getState=function(){return this._history.state},e.\u0275prov=yt({factory:kc,token:e,providedIn:"platform"}),e.\u0275fac=function(t){return new(t||e)(ee(vc))},e}(bc);function xc(){return!!window.history.pushState}function kc(){return new Cc(ee(vc))}function Sc(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e}function Dc(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length;return t.slice(0,n-("/"===t[n-1]?1:0))+t.slice(n)}function Ec(t){return t&&"?"!==t[0]?"?"+t:t}var Ac=function(){function t(){}return t.\u0275prov=yt({factory:Oc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}();function Oc(t){var e=ee(vc).location;return new Pc(ee(bc),e&&e.origin||"")}var Ic=new Gt("appBaseHref"),Pc=function(t){function e(e,n){var i=t.call(this)||this;if(i._platformLocation=e,null==n&&(n=i._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 i._baseHref=n,i}return r(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(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+Ec(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ee(bc),ee(Ic,8))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Ac),Tc=function(t){function e(e,n){var i=t.call(this)||this;return i._platformLocation=e,i._baseHref="",null!=n&&(i._baseHref=n),i}return r(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=Sc(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.pushState(t,e,r)},e.prototype.replaceState=function(t,e,n,i){var r=this.prepareExternalUrl(n+Ec(i));0==r.length&&(r=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,r)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e.\u0275fac=function(t){return new(t||e)(ee(bc),ee(Ic,8))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(Ac),Rc=function(){function t(t,e){var n=this;this._subject=new Zu,this._urlChangeListeners=[],this._platformStrategy=t;var i=this._platformStrategy.getBaseHref();this._platformLocation=e,this._baseHref=Dc(Fc(i)),this._platformStrategy.onPopState((function(t){n._subject.emit({url:n.path(!0),pop:!0,state:t.state,type:t.type})}))}var e;return e=t,t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.getState=function(){return this._platformLocation.getState()},t.prototype.isCurrentPathEqualTo=function(t,e){return void 0===e&&(e=""),this.path()==this.normalize(t+Ec(e))},t.prototype.normalize=function(t){return e.stripTrailingSlash(function(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}(this._baseHref,Fc(t)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.pushState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ec(e)),n)},t.prototype.replaceState=function(t,e,n){void 0===e&&(e=""),void 0===n&&(n=null),this._platformStrategy.replaceState(n,"",t,e),this._notifyUrlChangeListeners(this.prepareExternalUrl(t+Ec(e)),n)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.onUrlChange=function(t){var e=this;this._urlChangeListeners.push(t),this.subscribe((function(t){e._notifyUrlChangeListeners(t.url,t.state)}))},t.prototype._notifyUrlChangeListeners=function(t,e){void 0===t&&(t=""),this._urlChangeListeners.forEach((function(n){return n(t,e)}))},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=Ec,t.joinWithSlash=Sc,t.stripTrailingSlash=Dc,t.\u0275prov=yt({factory:Mc,token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Ac),ee(bc))},t}();function Mc(){return new Rc(ee(Ac),ee(bc))}function Fc(t){return t.replace(/\/index.html$/,"")}var Lc={ADP:[void 0,void 0,0],AFN:[void 0,void 0,0],ALL:[void 0,void 0,0],AMD:[void 0,void 0,2],AOA:[void 0,"Kz"],ARS:[void 0,"$"],AUD:["A$","$"],BAM:[void 0,"KM"],BBD:[void 0,"$"],BDT:[void 0,"\u09f3"],BHD:[void 0,void 0,3],BIF:[void 0,void 0,0],BMD:[void 0,"$"],BND:[void 0,"$"],BOB:[void 0,"Bs"],BRL:["R$"],BSD:[void 0,"$"],BWP:[void 0,"P"],BYN:[void 0,"\u0440.",2],BYR:[void 0,void 0,0],BZD:[void 0,"$"],CAD:["CA$","$",2],CHF:[void 0,void 0,2],CLF:[void 0,void 0,4],CLP:[void 0,"$",0],CNY:["CN\xa5","\xa5"],COP:[void 0,"$",2],CRC:[void 0,"\u20a1",2],CUC:[void 0,"$"],CUP:[void 0,"$"],CZK:[void 0,"K\u010d",2],DJF:[void 0,void 0,0],DKK:[void 0,"kr",2],DOP:[void 0,"$"],EGP:[void 0,"E\xa3"],ESP:[void 0,"\u20a7",0],EUR:["\u20ac"],FJD:[void 0,"$"],FKP:[void 0,"\xa3"],GBP:["\xa3"],GEL:[void 0,"\u20be"],GIP:[void 0,"\xa3"],GNF:[void 0,"FG",0],GTQ:[void 0,"Q"],GYD:[void 0,"$",2],HKD:["HK$","$"],HNL:[void 0,"L"],HRK:[void 0,"kn"],HUF:[void 0,"Ft",2],IDR:[void 0,"Rp",2],ILS:["\u20aa"],INR:["\u20b9"],IQD:[void 0,void 0,0],IRR:[void 0,void 0,0],ISK:[void 0,"kr",0],ITL:[void 0,void 0,0],JMD:[void 0,"$"],JOD:[void 0,void 0,3],JPY:["\xa5",void 0,0],KHR:[void 0,"\u17db"],KMF:[void 0,"CF",0],KPW:[void 0,"\u20a9",0],KRW:["\u20a9",void 0,0],KWD:[void 0,void 0,3],KYD:[void 0,"$"],KZT:[void 0,"\u20b8"],LAK:[void 0,"\u20ad",0],LBP:[void 0,"L\xa3",0],LKR:[void 0,"Rs"],LRD:[void 0,"$"],LTL:[void 0,"Lt"],LUF:[void 0,void 0,0],LVL:[void 0,"Ls"],LYD:[void 0,void 0,3],MGA:[void 0,"Ar",0],MGF:[void 0,void 0,0],MMK:[void 0,"K",0],MNT:[void 0,"\u20ae",2],MRO:[void 0,void 0,0],MUR:[void 0,"Rs",2],MXN:["MX$","$"],MYR:[void 0,"RM"],NAD:[void 0,"$"],NGN:[void 0,"\u20a6"],NIO:[void 0,"C$"],NOK:[void 0,"kr",2],NPR:[void 0,"Rs"],NZD:["NZ$","$"],OMR:[void 0,void 0,3],PHP:[void 0,"\u20b1"],PKR:[void 0,"Rs",2],PLN:[void 0,"z\u0142"],PYG:[void 0,"\u20b2",0],RON:[void 0,"lei"],RSD:[void 0,void 0,0],RUB:[void 0,"\u20bd"],RUR:[void 0,"\u0440."],RWF:[void 0,"RF",0],SBD:[void 0,"$"],SEK:[void 0,"kr",2],SGD:[void 0,"$"],SHP:[void 0,"\xa3"],SLL:[void 0,void 0,0],SOS:[void 0,void 0,0],SRD:[void 0,"$"],SSP:[void 0,"\xa3"],STD:[void 0,void 0,0],STN:[void 0,"Db"],SYP:[void 0,"\xa3",0],THB:[void 0,"\u0e3f"],TMM:[void 0,void 0,0],TND:[void 0,void 0,3],TOP:[void 0,"T$"],TRL:[void 0,void 0,0],TRY:[void 0,"\u20ba"],TTD:[void 0,"$"],TWD:["NT$","$",2],TZS:[void 0,void 0,2],UAH:[void 0,"\u20b4"],UGX:[void 0,void 0,0],USD:["$"],UYI:[void 0,void 0,0],UYU:[void 0,"$"],UYW:[void 0,void 0,4],UZS:[void 0,void 0,2],VEF:[void 0,"Bs",2],VND:["\u20ab",void 0,0],VUV:[void 0,void 0,0],XAF:["FCFA",void 0,0],XCD:["EC$","$"],XOF:["CFA",void 0,0],XPF:["CFPF",void 0,0],XXX:["\xa4"],YER:[void 0,void 0,0],ZAR:[void 0,"R"],ZMK:[void 0,void 0,0],ZMW:[void 0,"ZK"],ZWD:[void 0,void 0,0]},jc=function(t){return t[t.Decimal=0]="Decimal",t[t.Percent=1]="Percent",t[t.Currency=2]="Currency",t[t.Scientific=3]="Scientific",t}({}),Nc=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}({}),Bc=function(t){return t[t.Format=0]="Format",t[t.Standalone=1]="Standalone",t}({}),Vc=function(t){return t[t.Narrow=0]="Narrow",t[t.Abbreviated=1]="Abbreviated",t[t.Wide=2]="Wide",t[t.Short=3]="Short",t}({}),zc=function(t){return t[t.Short=0]="Short",t[t.Medium=1]="Medium",t[t.Long=2]="Long",t[t.Full=3]="Full",t}({}),Hc=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 Uc(t,e){return Zc(Pu(t)[Ru.DateFormat],e)}function qc(t,e){return Zc(Pu(t)[Ru.TimeFormat],e)}function Wc(t,e){return Zc(Pu(t)[Ru.DateTimeFormat],e)}function Gc(t,e){var n=Pu(t),i=n[Ru.NumberSymbols][e];if(void 0===i){if(e===Hc.CurrencyDecimal)return n[Ru.NumberSymbols][Hc.Decimal];if(e===Hc.CurrencyGroup)return n[Ru.NumberSymbols][Hc.Group]}return i}function Yc(t,e){return Pu(t)[Ru.NumberFormats][e]}function Kc(t){if(!t[Ru.ExtraData])throw new Error('Missing extra locale data for the locale "'+t[Ru.LocaleId]+'". Use "registerLocaleData" to load new data. See the "I18n guide" on angular.io to know more.')}function Zc(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 $c(t){var e=s(t.split(":"),2);return{hours:+e[0],minutes:+e[1]}}var Xc=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Qc={},Jc=/((?:[^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]*)/,td=function(t){return t[t.Short=0]="Short",t[t.ShortGMT=1]="ShortGMT",t[t.Long=2]="Long",t[t.Extended=3]="Extended",t}({}),ed=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}({}),nd=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 id(t,e){return e&&(t=t.replace(/\{([^}]+)}/g,(function(t,n){return null!=e&&n in e?e[n]:t}))),t}function rd(t,e,n,i,r){void 0===n&&(n="-");var o="";(t<0||r&&t<=0)&&(r?t=1-t:(t=-t,o=n));for(var a=String(t);a.length0||u>-n)&&(u+=n),t===ed.Hours)0===u&&-12===n&&(u=12);else if(t===ed.FractionalSeconds)return s=e,rd(u,3).substr(0,s);var l=Gc(a,Hc.MinusSign);return rd(u,e,l,i,r)}}function ad(t,e,n,i){return void 0===n&&(n=Bc.Format),void 0===i&&(i=!1),function(r,o){return function(t,e,n,i,r,o){switch(n){case nd.Months:return function(t,e,n){var i=Pu(t),r=Zc([i[Ru.MonthsFormat],i[Ru.MonthsStandalone]],e);return Zc(r,n)}(e,r,i)[t.getMonth()];case nd.Days:return function(t,e,n){var i=Pu(t),r=Zc([i[Ru.DaysFormat],i[Ru.DaysStandalone]],e);return Zc(r,n)}(e,r,i)[t.getDay()];case nd.DayPeriods:var a=t.getHours(),s=t.getMinutes();if(o){var u,l=function(t){var e=Pu(t);return Kc(e),(e[Ru.ExtraData][2]||[]).map((function(t){return"string"==typeof t?$c(t):[$c(t[0]),$c(t[1])]}))}(e),c=function(t,e,n){var i=Pu(t);Kc(i);var r=Zc([i[Ru.ExtraData][0],i[Ru.ExtraData][1]],e)||[];return Zc(r,n)||[]}(e,r,i);if(l.forEach((function(t,e){if(Array.isArray(t)){var n=t[0],i=t[1],r=i.hours;a>=n.hours&&s>=n.minutes&&(a0?Math.floor(r/60):Math.ceil(r/60);switch(t){case td.Short:return(r>=0?"+":"")+rd(a,2,o)+rd(Math.abs(r%60),2,o);case td.ShortGMT:return"GMT"+(r>=0?"+":"")+rd(a,1,o);case td.Long:return"GMT"+(r>=0?"+":"")+rd(a,2,o)+":"+rd(Math.abs(r%60),2,o);case td.Extended:return 0===i?"Z":(r>=0?"+":"")+rd(a,2,o)+":"+rd(Math.abs(r%60),2,o);default:throw new Error('Unknown zone width "'+t+'"')}}}function ud(t,e){return void 0===e&&(e=!1),function(n,i){var r,o,a,s;if(e){var u=new Date(n.getFullYear(),n.getMonth(),1).getDay()-1,l=n.getDate();r=1+Math.floor((l+u)/7)}else{var c=(a=n.getFullYear(),s=new Date(a,0,1).getDay(),new Date(a,0,1+(s<=4?4:11)-s)),d=(o=n,new Date(o.getFullYear(),o.getMonth(),o.getDate()+(4-o.getDay()))).getTime()-c.getTime();r=1+Math.round(d/6048e5)}return rd(r,t,Gc(i,Hc.MinusSign))}}var ld={};function cd(t,e){t=t.replace(/:/g,"");var n=Date.parse("Jan 01, 1970 00:00:00 "+t)/6e4;return isNaN(n)?e:n}function dd(t){return t instanceof Date&&!isNaN(t.valueOf())}var pd=/^(\d+)?\.((\d+)(-(\d+))?)?$/;function hd(t,e,n,i,r,o,a){void 0===a&&(a=!1);var s="",u=!1;if(isFinite(t)){var l=function(t){var e,n,i,r,o,a=Math.abs(t)+"",s=0;for((n=a.indexOf("."))>-1&&(a=a.replace(".","")),(i=a.search(/e/i))>0?(n<0&&(n=i),n+=+a.slice(i+1),a=a.substring(0,i)):n<0&&(n=a.length),i=0;"0"===a.charAt(i);i++);if(i===(o=a.length))e=[0],n=1;else{for(o--;"0"===a.charAt(o);)o--;for(n-=i,e=[],r=0;i<=o;i++,r++)e[r]=Number(a.charAt(i))}return n>22&&(e=e.splice(0,21),s=n-1,n=1),{digits:e,exponent:s,integerLen:n}}(t);a&&(l=function(t){if(0===t.digits[0])return t;var e=t.digits.length-t.integerLen;return t.exponent?t.exponent+=2:(0===e?t.digits.push(0,0):1===e&&t.digits.push(0),t.integerLen+=2),t}(l));var c=e.minInt,d=e.minFrac,p=e.maxFrac;if(o){var h=o.match(pd);if(null===h)throw new Error(o+" is not a valid digit info");var f=h[1],m=h[3],g=h[5];null!=f&&(c=md(f)),null!=m&&(d=md(m)),null!=g?p=md(g):null!=m&&d>p&&(p=d)}!function(t,e,n){if(e>n)throw new Error("The minimum number of digits after fraction ("+e+") is higher than the maximum ("+n+").");var i=t.digits,r=i.length-t.integerLen,o=Math.min(Math.max(e,r),n),a=o+t.integerLen,s=i[a];if(a>0){i.splice(Math.max(t.integerLen,a));for(var u=a;u=5)if(a-1<0){for(var c=0;c>a;c--)i.unshift(0),t.integerLen++;i.unshift(1),t.integerLen++}else i[a-1]++;for(;r=p?i.pop():d=!1),e>=10?1:0}),0);h&&(i.unshift(h),t.integerLen++)}(l,d,p);var y=l.digits,v=l.integerLen,b=l.exponent,_=[];for(u=y.every((function(t){return!t}));v0?_=y.splice(v,y.length):(_=y,y=[0]);var w=[];for(y.length>=e.lgSize&&w.unshift(y.splice(-e.lgSize,y.length).join(""));y.length>e.gSize;)w.unshift(y.splice(-e.gSize,y.length).join(""));y.length&&w.unshift(y.join("")),s=w.join(Gc(n,i)),_.length&&(s+=Gc(n,r)+_.join("")),b&&(s+=Gc(n,Hc.Exponential)+"+"+b)}else s=Gc(n,Hc.Infinity);return t<0&&!u?e.negPre+s+e.negSuf:e.posPre+s+e.posSuf}function fd(t,e){void 0===e&&(e="-");var n={minInt:1,minFrac:0,maxFrac:0,posPre:"",posSuf:"",negPre:"",negSuf:"",gSize:0,lgSize:0},i=t.split(";"),r=i[0],o=i[1],a=-1!==r.indexOf(".")?r.split("."):[r.substring(0,r.lastIndexOf("0")+1),r.substring(r.lastIndexOf("0")+1)],s=a[0],u=a[1]||"";n.posPre=s.substr(0,s.indexOf("#"));for(var l=0;l-1)return r;if(r=n.getPluralCategory(t,i),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}var vd=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return r(e,t),e.prototype.getPluralCategory=function(t,e){switch(function(t){return Pu(t)[Ru.PluralCase]}(e||this.locale)(t)){case Nc.Zero:return"zero";case Nc.One:return"one";case Nc.Two:return"two";case Nc.Few:return"few";case Nc.Many:return"many";default:return"other"}},e.\u0275fac=function(t){return new(t||e)(ee(El))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(gd);function bd(t,e){var n,i;e=encodeURIComponent(e);try{for(var r=a(t.split(";")),o=r.next();!o.done;o=r.next()){var u=o.value,l=u.indexOf("="),c=s(-1==l?[u,""]:[u.slice(0,l),u.slice(l+1)],2),d=c[1];if(c[0].trim()===e)return decodeURIComponent(d)}}catch(p){n={error:p}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}var _d=function(){function t(t,e,n,i){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=i,this._iterableDiffer=null,this._keyValueDiffer=null,this._initialClasses=[],this._rawClass=null}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._removeClasses(this._initialClasses),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyClasses(this._initialClasses),this._applyClasses(this._rawClass)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._removeClasses(this._rawClass),this._applyClasses(this._initialClasses),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(_a(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachChangedItem((function(t){return e._toggleClass(t.key,t.currentValue)})),t.forEachRemovedItem((function(t){t.previousValue&&e._toggleClass(t.key,!1)}))},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem((function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Et(t.item));e._toggleClass(t.item,!0)})),t.forEachRemovedItem((function(t){return e._toggleClass(t.item,!1)}))},t.prototype._applyClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!0)})):Object.keys(t).forEach((function(n){return e._toggleClass(n,!!t[n])})))},t.prototype._removeClasses=function(t){var e=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach((function(t){return e._toggleClass(t,!1)})):Object.keys(t).forEach((function(t){return e._toggleClass(t,!1)})))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach((function(t){e?n._renderer.addClass(n._ngEl.nativeElement,t):n._renderer.removeClass(n._ngEl.nativeElement,t)}))},t.\u0275fac=function(e){return new(e||t)(Ia(hu),Ia(fu),Ia(Ks),Ia(Qs))},t.\u0275dir=Ee({type:t,selectors:[["","ngClass",""]],inputs:{klass:["class","klass"],ngClass:"ngClass"}}),t}(),wd=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(ae);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var i=(this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(Ys)).resolveComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t.\u0275fac=function(e){return new(e||t)(Ia(_u))},t.\u0275dir=Ee({type:t,selectors:[["","ngComponentOutlet",""]],inputs:{ngComponentOutlet:"ngComponentOutlet",ngComponentOutletInjector:"ngComponentOutletInjector",ngComponentOutletContent:"ngComponentOutletContent",ngComponentOutletNgModuleFactory:"ngComponentOutletNgModuleFactory"},features:[Rs()]}),t}(),Cd=function(){function t(t,e,n,i){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=i}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),xd=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._ngForOf=null,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){yi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._ngForOfDirty){this._ngForOfDirty=!1;var t=this._ngForOf;if(!this._differ&&t)try{this._differ=this._differs.find(t).create(this.ngForTrackBy)}catch(i){throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+((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,i,r){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new Cd(null,e._ngForOf,-1,-1),null===r?void 0:r),a=new kd(t,o);n.push(a)}else null==r?e._viewContainer.remove(null===i?void 0:i):null!==i&&(o=e._viewContainer.get(i),e._viewContainer.move(o,r),a=new kd(t,o),n.push(a))}));for(var i=0;i-1&&(e.splice(n,1),o+=t+".")})),o+=r,0!=e.length||0===r.length)return null;var a={};return a.domEventName=i,a.fullKey=o,a},e.getEventFullKey=function(t){var e="",n=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&Tp.hasOwnProperty(e)&&(e=Tp[e]))}return Pp[e]||e}(t);return" "===(n=n.toLowerCase())?n="space":"."===n&&(n="dot"),Ip.forEach((function(i){i!=n&&(0,Rp[i])(t)&&(e+=i+".")})),e+=n},e.eventCallback=function(t,e,i){return function(r){n.getEventFullKey(r)===t&&i.runGuarded((function(){return e(r)}))}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e.\u0275fac=function(t){return new(t||e)(ee(vc))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(mp),Fp=function(){function t(){}return t.\u0275prov=yt({factory:function(){return ee(Lp)},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t}(),Lp=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return r(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case Vi.NONE:return e;case Vi.HTML:return hi(e,"HTML")?pi(e):Ni(this._doc,String(e));case Vi.STYLE:return hi(e,"Style")?pi(e):function(t){if(!(t=String(t).trim()))return"";var e=t.match(Hi);return e&&wi(e[1])===e[1]||t.match(zi)&&function(t){for(var e=!0,n=!0,i=0;i0){var i=t.slice(0,n),r=i.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(i,r),e.headers.has(r)?e.headers.get(r).push(o):e.headers.set(r,[o])}}))}:function(){e.headers=new Map,Object.keys(t).forEach((function(n){var i=t[n],r=n.toLowerCase();"string"==typeof i&&(i=[i]),i.length>0&&(e.headers.set(r,i),e.maybeSetNormalizedName(n,r))}))}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach((function(t){return e.applyUpdate(t)})),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach((function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))}))},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var i=("a"===t.op?this.headers.get(e):void 0)||[];i.push.apply(i,u(n)),this.headers.set(e,i);break;case"d":var r=t.value;if(r){var o=this.headers.get(e);if(!o)return;0===(o=o.filter((function(t){return-1===r.indexOf(t)}))).length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}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}(),Kp=function(){function t(){}return t.prototype.encodeKey=function(t){return Zp(t)},t.prototype.encodeValue=function(t){return Zp(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}();function Zp(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 $p=function(){function t(t){var e,n,i,r=this;if(void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new Kp,t.fromString){if(t.fromObject)throw new Error("Cannot specify both fromString and fromObject.");this.map=(e=t.fromString,n=this.encoder,i=new Map,e.length>0&&e.split("&").forEach((function(t){var e=t.indexOf("="),r=s(-1==e?[n.decodeKey(t),""]:[n.decodeKey(t.slice(0,e)),n.decodeValue(t.slice(e+1))],2),o=r[0],a=r[1],u=i.get(o)||[];u.push(a),i.set(o,u)})),i)}else t.fromObject?(this.map=new Map,Object.keys(t.fromObject).forEach((function(e){var n=t.fromObject[e];r.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("&")})).filter((function(t){return""!==t})).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 i=t.map.get(e.param)||[],r=i.indexOf(e.value);-1!==r&&i.splice(r,1),i.length>0?t.map.set(e.param,i):t.map.delete(e.param)}})),this.cloneFrom=this.updates=null)},t}();function Xp(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function Qp(t){return"undefined"!=typeof Blob&&t instanceof Blob}function Jp(t){return"undefined"!=typeof FormData&&t instanceof FormData}var th=function(){function t(t,e,n,i){var r;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)||i?(this.body=void 0!==n?n:null,r=i):r=n,r&&(this.reportProgress=!!r.reportProgress,this.withCredentials=!!r.withCredentials,r.responseType&&(this.responseType=r.responseType),r.headers&&(this.headers=r.headers),r.params&&(this.params=r.params)),this.headers||(this.headers=new Yp),this.params){var o=this.params.toString();if(0===o.length)this.urlWithParams=e;else{var a=e.indexOf("?");this.urlWithParams=e+(-1===a?"?":a=200&&this.status<300}}(),ih=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=eh.ResponseHeader,n}return r(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}(nh),rh=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=eh.Response,n.body=void 0!==e.body?e.body:null,n}return r(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}(nh),oh=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 r(e,t),e}(nh);function ah(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}var sh=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var i,r=this;if(void 0===n&&(n={}),t instanceof th)i=t;else{var o;o=n.headers instanceof Yp?n.headers:new Yp(n.headers);var a=void 0;n.params&&(a=n.params instanceof $p?n.params:new $p({fromObject:n.params})),i=new th(t,e,void 0!==n.body?n.body:null,{headers:o,params:a,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials})}var s=Vp(i).pipe(zp((function(t){return r.handler.handle(t)})));if(t instanceof th||"events"===n.observe)return s;var u=s.pipe(Hp((function(t){return t instanceof rh})));switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body})));case"blob":return u.pipe(U((function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body})));case"text":return u.pipe(U((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 u.pipe(U((function(t){return t.body})))}case"response":return u;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 $p).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,ah(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,ah(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,ah(n,e))},t.\u0275fac=function(e){return new(e||t)(ee(Wp))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),uh=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}(),lh=new Gt("HTTP_INTERCEPTORS"),ch=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),dh=/^\)\]\}',?\n/,ph=function(){return function(){}}(),hh=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),fh=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 D((function(n){var i=e.xhrFactory.build();if(i.open(t.method,t.urlWithParams),t.withCredentials&&(i.withCredentials=!0),t.headers.forEach((function(t,e){return i.setRequestHeader(t,e.join(","))})),t.headers.has("Accept")||i.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var r=t.detectContentTypeHeader();null!==r&&i.setRequestHeader("Content-Type",r)}if(t.responseType){var o=t.responseType.toLowerCase();i.responseType="json"!==o?o:"text"}var a=t.serializeBody(),s=null,u=function(){if(null!==s)return s;var e=1223===i.status?204:i.status,n=i.statusText||"OK",r=new Yp(i.getAllResponseHeaders()),o=function(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}(i)||t.url;return s=new ih({headers:r,status:e,statusText:n,url:o})},l=function(){var e=u(),r=e.headers,o=e.status,a=e.statusText,s=e.url,l=null;204!==o&&(l=void 0===i.response?i.responseText:i.response),0===o&&(o=l?200:0);var c=o>=200&&o<300;if("json"===t.responseType&&"string"==typeof l){var d=l;l=l.replace(dh,"");try{l=""!==l?JSON.parse(l):null}catch(p){l=d,c&&(c=!1,l={error:p,text:l})}}c?(n.next(new rh({body:l,headers:r,status:o,statusText:a,url:s||void 0})),n.complete()):n.error(new oh({error:l,headers:r,status:o,statusText:a,url:s||void 0}))},c=function(t){var e=u().url,r=new oh({error:t,status:i.status||0,statusText:i.statusText||"Unknown Error",url:e||void 0});n.error(r)},d=!1,p=function(e){d||(n.next(u()),d=!0);var r={type:eh.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(r.total=e.total),"text"===t.responseType&&i.responseText&&(r.partialText=i.responseText),n.next(r)},h=function(t){var e={type:eh.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return i.addEventListener("load",l),i.addEventListener("error",c),t.reportProgress&&(i.addEventListener("progress",p),null!==a&&i.upload&&i.upload.addEventListener("progress",h)),i.send(a),n.next({type:eh.Sent}),function(){i.removeEventListener("error",c),i.removeEventListener("load",l),t.reportProgress&&(i.removeEventListener("progress",p),null!==a&&i.upload&&i.upload.removeEventListener("progress",h)),i.abort()}}))},t.\u0275fac=function(e){return new(e||t)(ee(ph))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),mh=new Gt("XSRF_COOKIE_NAME"),gh=new Gt("XSRF_HEADER_NAME"),yh=function(){return function(){}}(),vh=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=bd(t,this.cookieName),this.lastCookieString=t),this.lastToken},t.\u0275fac=function(e){return new(e||t)(ee(vc),ee(kl),ee(mh))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),bh=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 i=this.tokenService.getToken();return null===i||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,i)})),e.handle(t)},t.\u0275fac=function(e){return new(e||t)(ee(yh),ee(gh))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),_h=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(lh,[]);this.chain=e.reduceRight((function(t,e){return new uh(t,e)}),this.backend)}return this.chain.handle(t)},t.\u0275fac=function(e){return new(e||t)(ee(Gp),ee(ca))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),wh=function(){function t(){}var e;return e=t,t.disable=function(){return{ngModule:e,providers:[{provide:bh,useClass:ch}]}},t.withOptions=function(t){return void 0===t&&(t={}),{ngModule:e,providers:[t.cookieName?{provide:mh,useValue:t.cookieName}:[],t.headerName?{provide:gh,useValue:t.headerName}:[]]}},t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[bh,{provide:lh,useExisting:bh,multi:!0},{provide:yh,useClass:vh},{provide:mh,useValue:"XSRF-TOKEN"},{provide:gh,useValue:"X-XSRF-TOKEN"}]}),t}(),Ch=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[sh,{provide:Wp,useClass:_h},fh,{provide:Gp,useExisting:fh},hh,{provide:ph,useExisting:hh}],imports:[[wh.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})]]}),t}(),xh=function(t){function e(e){var n=t.call(this)||this;return n._value=e,n}return r(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 A;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(P),kh=function(){function t(){return Error.call(this),this.message="no elements in sequence",this.name="EmptyError",this}return t.prototype=Object.create(Error.prototype),t}(),Sh={};function Dh(){for(var t=[],e=0;e0)for(var n=this.count>=this.total?this.total:this.count,i=this.ring,r=0;r=2;return function(i){return i.pipe(t?Hp((function(e,n){return t(e,n,i)})):X,Mh(1),n?zh(e):jh((function(){return new kh})))}}function Wh(t){return function(e){var n=new Gh(t),i=e.lift(n);return n.caught=i}}var Gh=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new Yh(t,this.selector,this.caught))},t}(),Yh=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.selector=n,r.caught=i,r}return r(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(r){return void t.prototype.error.call(this,r)}this._unsubscribeAndRecycle();var i=new M(this,void 0,void 0);this.add(i),z(this,n,void 0,void 0,i)}},e}(H);function Kh(t){return function(e){return 0===t?Ih():e.lift(new Zh(t))}}var Zh=function(){function t(t){if(this.total=t,this.total<0)throw new Rh}return t.prototype.call=function(t,e){return e.subscribe(new $h(t,this.total))},t}(),$h=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(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}(_);function Xh(t,e){var n=arguments.length>=2;return function(i){return i.pipe(t?Hp((function(e,n){return t(e,n,i)})):X,Kh(1),n?zh(e):jh((function(){return new kh})))}}var Qh=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 Jh(t,this.predicate,this.thisArg,this.source))},t}(),Jh=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.predicate=n,o.thisArg=i,o.source=r,o.index=0,o.thisArg=i||o,o}return r(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}(_);function tf(t,e){return"function"==typeof e?function(n){return n.pipe(tf((function(n,i){return Y(t(n,i)).pipe(U((function(t,r){return e(n,t,i,r)})))})))}:function(e){return e.lift(new ef(t))}}var ef=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new nf(t,this.project))},t}(),nf=function(t){function e(e,n){var i=t.call(this,e)||this;return i.project=n,i.index=0,i}return r(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(i){return void this.destination.error(i)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var i=this.innerSubscription;i&&i.unsubscribe();var r=new M(this,void 0,void 0);this.destination.add(r),this.innerSubscription=z(this,t,e,n,r)},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,i,r){this.destination.next(e)},e}(H);function rf(){for(var t=[],e=0;e=2&&(n=!0),function(i){return i.lift(new sf(t,e,n))}}var sf=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 uf(t,this.accumulator,this.seed,this.hasSeed))},t}(),uf=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o.accumulator=n,o._seed=i,o.hasSeed=r,o.index=0,o}return r(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(i){this.destination.error(i)}this.seed=e,this.destination.next(e)},e}(_);function lf(t,e,n){return function(i){return i.lift(new cf(t,e,n))}}var cf=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new df(t,this.nextOrObserver,this.error,this.complete))},t}(),df=function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._tapNext=x,o._tapError=x,o._tapComplete=x,o._tapError=i||x,o._tapComplete=r||x,d(n)?(o._context=o,o._tapNext=n):n&&(o._context=n,o._tapNext=n.next||x,o._tapError=n.error||x,o._tapComplete=n.complete||x),o}return r(e,t),e.prototype._next=function(t){try{this._tapNext.call(this._context,t)}catch(e){return void this.destination.error(e)}this.destination.next(t)},e.prototype._error=function(t){try{this._tapError.call(this._context,t)}catch(t){return void this.destination.error(t)}this.destination.error(t)},e.prototype._complete=function(){try{this._tapComplete.call(this._context)}catch(t){return void this.destination.error(t)}return this.destination.complete()},e}(_),pf=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new hf(t,this.callback))},t}(),hf=function(t){function e(e,n){var i=t.call(this,e)||this;return i.add(new h(n)),i}return r(e,t),e}(_),ff=function(){return function(t,e){this.id=t,this.url=e}}(),mf=function(t){function e(e,n,i,r){void 0===i&&(i="imperative"),void 0===r&&(r=null);var o=t.call(this,e,n)||this;return o.navigationTrigger=i,o.restoredState=r,o}return r(e,t),e.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},e}(ff),gf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.urlAfterRedirects=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},e}(ff),yf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.reason=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},e}(ff),vf=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r.error=i,r}return r(e,t),e.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},e}(ff),bf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),_f=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),wf=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n)||this;return a.urlAfterRedirects=i,a.state=r,a.shouldActivate=o,a}return r(e,t),e.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},e}(ff),Cf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),xf=function(t){function e(e,n,i,r){var o=t.call(this,e,n)||this;return o.urlAfterRedirects=i,o.state=r,o}return r(e,t),e.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},e}(ff),kf=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),Sf=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),Df=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Ef=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ChildActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Af=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationStart(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),Of=function(){function t(t){this.snapshot=t}return t.prototype.toString=function(){return"ActivationEnd(path: '"+(this.snapshot.routeConfig&&this.snapshot.routeConfig.path||"")+"')"},t}(),If=function(){function t(t,e,n){this.routerEvent=t,this.position=e,this.anchor=n}return t.prototype.toString=function(){return"Scroll(anchor: '"+this.anchor+"', position: '"+(this.position?this.position[0]+", "+this.position[1]:null)+"')"},t}(),Pf=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["ng-component"]],decls:1,vars:0,template:function(t,e){1&t&&ja(0,"router-outlet")},directives:function(){return[Ng]},encapsulation:2}),t}(),Tf=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}();function Rf(t){return new Tf(t)}function Mf(t){var e=Error("NavigationCancelingError: "+t);return e.ngNavigationCancelingError=!0,e}function Ff(t,e,n){var i=n.path.split("/");if(i.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||i.length-1})):t===e}function Uf(t){return Array.prototype.concat.apply([],t)}function qf(t){return t.length>0?t[t.length-1]:null}function Wf(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function Gf(t){return Ua(t)?t:Ha(t)?Y(Promise.resolve(t)):Vp(t)}function Yf(t,e,n){return n?function(t,e){return zf(t,e)}(t.queryParams,e.queryParams)&&function t(e,n){if(!Xf(e.segments,n.segments))return!1;if(e.numberOfChildren!==n.numberOfChildren)return!1;for(var i in n.children){if(!e.children[i])return!1;if(!t(e.children[i],n.children[i]))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 Hf(t[n],e[n])}))}(t.queryParams,e.queryParams)&&function t(e,n){return function e(n,i,r){if(n.segments.length>r.length)return!!Xf(a=n.segments.slice(0,r.length),r)&&!i.hasChildren();if(n.segments.length===r.length){if(!Xf(n.segments,r))return!1;for(var o in i.children){if(!n.children[o])return!1;if(!t(n.children[o],i.children[o]))return!1}return!0}var a=r.slice(0,n.segments.length),s=r.slice(n.segments.length);return!!Xf(n.segments,a)&&!!n.children.primary&&e(n.children.primary,i,s)}(e,n,n.segments)}(t.root,e.root)}var Kf=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=Rf(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return em.serialize(this)},t}(),Zf=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,Wf(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 nm(this)},t}(),$f=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=Rf(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return um(this)},t}();function Xf(t,e){return t.length===e.length&&t.every((function(t,n){return t.path===e[n].path}))}function Qf(t,e){var n=[];return Wf(t.children,(function(t,i){"primary"===i&&(n=n.concat(e(t,i)))})),Wf(t.children,(function(t,i){"primary"!==i&&(n=n.concat(e(t,i)))})),n}var Jf=function(){return function(){}}(),tm=function(){function t(){}return t.prototype.parse=function(t){var e=new hm(t);return new Kf(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){var e,n;return"/"+function t(e,n){if(!e.hasChildren())return nm(e);if(n){var i=e.children.primary?t(e.children.primary,!1):"",r=[];return Wf(e.children,(function(e,n){"primary"!==n&&r.push(n+":"+t(e,!1))})),r.length>0?i+"("+r.join("//")+")":i}var o=Qf(e,(function(n,i){return"primary"===i?[t(e.children.primary,!1)]:[i+":"+t(n,!1)]}));return nm(e)+"/("+o.join("//")+")"}(t.root,!0)+(e=t.queryParams,(n=Object.keys(e).map((function(t){var n=e[t];return Array.isArray(n)?n.map((function(e){return rm(t)+"="+rm(e)})).join("&"):rm(t)+"="+rm(n)}))).length?"?"+n.join("&"):"")+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),em=new tm;function nm(t){return t.segments.map((function(t){return um(t)})).join("/")}function im(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",")}function rm(t){return im(t).replace(/%3B/gi,";")}function om(t){return im(t).replace(/\(/g,"%28").replace(/\)/g,"%29").replace(/%26/gi,"&")}function am(t){return decodeURIComponent(t)}function sm(t){return am(t.replace(/\+/g,"%20"))}function um(t){return""+om(t.path)+(e=t.parameters,Object.keys(e).map((function(t){return";"+om(t)+"="+om(e[t])})).join(""));var e}var lm=/^[^\/()?;=#]+/;function cm(t){var e=t.match(lm);return e?e[0]:""}var dm=/^[^=?&#]+/,pm=/^[^?&#]+/,hm=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 Zf([],{}):new Zf([],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.primary=new Zf(t,e)),n},t.prototype.parseSegment=function(){var t=cm(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new $f(am(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=cm(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var i=cm(this.remaining);i&&this.capture(n=i)}t[am(e)]=am(n)}},t.prototype.parseQueryParam=function(t){var e,n=(e=this.remaining.match(dm))?e[0]:"";if(n){this.capture(n);var i="";if(this.consumeOptional("=")){var r=function(t){var e=t.match(pm);return e?e[0]:""}(this.remaining);r&&this.capture(i=r)}var o=sm(n),a=sm(i);if(t.hasOwnProperty(o)){var s=t[o];Array.isArray(s)||(t[o]=s=[s]),s.push(a)}else t[o]=a}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=cm(this.remaining),i=this.remaining[n.length];if("/"!==i&&")"!==i&&";"!==i)throw new Error("Cannot parse url '"+this.url+"'");var r=void 0;n.indexOf(":")>-1?(r=n.substr(0,n.indexOf(":")),this.capture(r),this.capture(":")):t&&(r="primary");var o=this.parseChildren();e[r]=1===Object.keys(o).length?o.primary:new Zf([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),fm=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=mm(t,this._root);return e?e.children.map((function(t){return t.value})):[]},t.prototype.firstChild=function(t){var e=mm(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=gm(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 gm(t,this._root).map((function(t){return t.value}))},t}();function mm(t,e){var n,i;if(t===e.value)return e;try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=mm(t,o.value);if(s)return s}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return null}function gm(t,e){var n,i;if(t===e.value)return[e];try{for(var r=a(e.children),o=r.next();!o.done;o=r.next()){var s=gm(t,o.value);if(s.length)return s.unshift(e),s}}catch(u){n={error:u}}finally{try{o&&!o.done&&(i=r.return)&&i.call(r)}finally{if(n)throw n.error}}return[]}var ym=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}();function vm(t){var e={};return t&&t.children.forEach((function(t){return e[t.value.outlet]=t})),e}var bm=function(t){function e(e,n){var i=t.call(this,e)||this;return i.snapshot=n,Sm(i,e),i}return r(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(fm);function _m(t,e){var n=function(t,e){var n=new xm([],{},{},"",{},"primary",e,null,t.root,-1,{});return new km("",new ym(n,[]))}(t,e),i=new xh([new $f("",{})]),r=new xh({}),o=new xh({}),a=new xh({}),s=new xh(""),u=new wm(i,r,a,s,o,"primary",e,n.root);return u.snapshot=n.root,new bm(new ym(u,[]),n)}var wm=function(){function t(t,e,n,i,r,o,a,s){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this._futureSnapshot=s}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=this.params.pipe(U((function(t){return Rf(t)})))),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=this.queryParams.pipe(U((function(t){return Rf(t)})))),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}();function Cm(t,e){void 0===e&&(e="emptyOnly");var n=t.pathFromRoot,i=0;if("always"!==e)for(i=n.length-1;i>=1;){var r=n[i],a=n[i-1];if(r.routeConfig&&""===r.routeConfig.path)i--;else{if(a.component)break;i--}}return function(t){return t.reduce((function(t,e){return{params:o(o({},t.params),e.params),data:o(o({},t.data),e.data),resolve:o(o({},t.resolve),e._resolvedData)}}),{params:{},data:{},resolve:{}})}(n.slice(i))}var xm=function(){function t(t,e,n,i,r,o,a,s,u,l,c){this.url=t,this.params=e,this.queryParams=n,this.fragment=i,this.data=r,this.outlet=o,this.component=a,this.routeConfig=s,this._urlSegment=u,this._lastPathIndex=l,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=Rf(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=Rf(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}(),km=function(t){function e(e,n){var i=t.call(this,n)||this;return i.url=e,Sm(i,n),i}return r(e,t),e.prototype.toString=function(){return Dm(this._root)},e}(fm);function Sm(t,e){e.value._routerState=t,e.children.forEach((function(e){return Sm(t,e)}))}function Dm(t){var e=t.children.length>0?" { "+t.children.map(Dm).join(", ")+" } ":"";return""+t.value+e}function Em(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,zf(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),zf(e.params,n.params)||t.params.next(n.params),function(t,e){if(t.length!==e.length)return!1;for(var n=0;n0&&Om(n[0]))throw new Error("Root segment cannot have matrix parameters");var i=n.find((function(t){return"object"==typeof t&&null!=t&&t.outlets}));if(i&&i!==qf(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}(),Tm=function(){return function(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}}();function Rm(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets.primary:""+t}function Mm(t,e,n){if(t||(t=new Zf([],{})),0===t.segments.length&&t.hasChildren())return Fm(t,e,n);var i=function(t,e,n){for(var i=0,r=e,o={match:!1,pathIndex:0,commandIndex:0};r=n.length)return o;var a=t.segments[r],s=Rm(n[i]),u=i0&&void 0===s)break;if(s&&u&&"object"==typeof u&&void 0===u.outlets){if(!Bm(s,u,a))return o;i+=2}else{if(!Bm(s,{},a))return o;i++}r++}return{match:!0,pathIndex:r,commandIndex:i}}(t,e,n),r=n.slice(i.commandIndex);if(i.match&&i.pathIndex0?new Zf([],((i={}).primary=t,i)):t;return new Kf(r,e,n)},t.prototype.expandSegmentGroup=function(t,e,n,i){return 0===n.segments.length&&n.hasChildren()?this.expandChildren(t,e,n).pipe(U((function(t){return new Zf([],t)}))):this.expandSegment(t,n,e,n.segments,i,!0)},t.prototype.expandChildren=function(t,e,n){var i=this;return function(n,r){if(0===Object.keys(n).length)return Vp({});var o=[],a=[],s={};return Wf(n,(function(n,r){var u,l,c=(u=r,l=n,i.expandSegmentGroup(t,e,l,u)).pipe(U((function(t){return s[r]=t})));"primary"===r?o.push(c):a.push(c)})),Vp.apply(null,o.concat(a)).pipe(Th(),qh(),U((function(){return s})))}(n.children)},t.prototype.expandSegment=function(t,e,n,i,r,o){var a=this;return Vp.apply(void 0,u(n)).pipe(U((function(s){return a.expandSegmentAgainstRoute(t,e,n,s,i,r,o).pipe(Wh((function(t){if(t instanceof qm)return Vp(null);throw t})))})),Th(),Xh((function(t){return!!t})),Wh((function(t,n){if(t instanceof kh||"EmptyError"===t.name){if(a.noLeftoversInUrl(e,i,r))return Vp(new Zf([],{}));throw new qm(e)}throw t})))},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,i,r,o,a){return Jm(i)!==o?Gm(e):void 0===i.redirectTo?this.matchSegmentAgainstRoute(t,e,i,r):a&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o):Gm(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){return"**"===i.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,i,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,i,r,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,i){var r=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?Ym(o):this.lineralizeSegments(n,o).pipe(K((function(n){var o=new Zf(n,{});return r.expandSegment(t,o,e,n,i,!1)})))},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,i,r,o){var a=this,s=$m(e,i,r),u=s.consumedSegments,l=s.lastChild,c=s.positionalParamSegments;if(!s.matched)return Gm(e);var d=this.applyRedirectCommands(u,i.redirectTo,c);return i.redirectTo.startsWith("/")?Ym(d):this.lineralizeSegments(i,d).pipe(K((function(i){return a.expandSegment(t,e,n,i.concat(r.slice(l)),o,!1)})))},t.prototype.matchSegmentAgainstRoute=function(t,e,n,i){var r=this;if("**"===n.path)return n.loadChildren?this.configLoader.load(t.injector,n).pipe(U((function(t){return n._loadedConfig=t,new Zf(i,{})}))):Vp(new Zf(i,{}));var s=$m(e,n,i),u=s.consumedSegments,l=s.lastChild;if(!s.matched)return Gm(e);var c=i.slice(l);return this.getChildConfig(t,n,i).pipe(K((function(t){var n=t.module,i=t.routes,s=function(t,e,n,i){return n.length>0&&function(t,e,n){return n.some((function(n){return Qm(t,e,n)&&"primary"!==Jm(n)}))}(t,n,i)?{segmentGroup:Xm(new Zf(e,function(t,e){var n,i,r={};r.primary=e;try{for(var o=a(t),s=o.next();!s.done;s=o.next()){var u=s.value;""===u.path&&"primary"!==Jm(u)&&(r[Jm(u)]=new Zf([],{}))}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return r}(i,new Zf(n,t.children)))),slicedSegments:[]}:0===n.length&&function(t,e,n){return n.some((function(n){return Qm(t,e,n)}))}(t,n,i)?{segmentGroup:Xm(new Zf(t.segments,function(t,e,n,i){var r,s,u={};try{for(var l=a(n),c=l.next();!c.done;c=l.next()){var d=c.value;Qm(t,e,d)&&!i[Jm(d)]&&(u[Jm(d)]=new Zf([],{}))}}catch(p){r={error:p}}finally{try{c&&!c.done&&(s=l.return)&&s.call(l)}finally{if(r)throw r.error}}return o(o({},i),u)}(t,n,i,t.children))),slicedSegments:n}:{segmentGroup:t,slicedSegments:n}}(e,u,c,i),l=s.segmentGroup,d=s.slicedSegments;return 0===d.length&&l.hasChildren()?r.expandChildren(n,i,l).pipe(U((function(t){return new Zf(u,t)}))):0===i.length&&0===d.length?Vp(new Zf(u,{})):r.expandSegment(n,l,i,d,"primary",!0).pipe(U((function(t){return new Zf(u.concat(t.segments),t.children)})))})))},t.prototype.getChildConfig=function(t,e,n){var i=this;return e.children?Vp(new Lf(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Vp(e._loadedConfig):function(t,e,n){var i,r=e.canLoad;return r&&0!==r.length?Y(r).pipe(U((function(i){var r,o=t.get(i);if(function(t){return t&&Hm(t.canLoad)}(o))r=o.canLoad(e,n);else{if(!Hm(o))throw new Error("Invalid CanLoad guard");r=o(e,n)}return Gf(r)}))).pipe(Th(),(i=function(t){return!0===t},function(t){return t.lift(new Qh(i,void 0,t))})):Vp(!0)}(t.injector,e,n).pipe(K((function(n){return n?i.configLoader.load(t.injector,e).pipe(U((function(t){return e._loadedConfig=t,t}))):function(t){return new D((function(e){return e.error(Mf("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))}))}(e)}))):Vp(new Lf([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],i=e.root;;){if(n=n.concat(i.segments),0===i.numberOfChildren)return Vp(n);if(i.numberOfChildren>1||!i.children.primary)return Km(t.redirectTo);i=i.children.primary}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,i){var r=this.createSegmentGroup(t,e.root,n,i);return new Kf(r,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return Wf(t,(function(t,i){if("string"==typeof t&&t.startsWith(":")){var r=t.substring(1);n[i]=e[r]}else n[i]=t})),n},t.prototype.createSegmentGroup=function(t,e,n,i){var r=this,o=this.createSegments(t,e.segments,n,i),a={};return Wf(e.children,(function(e,o){a[o]=r.createSegmentGroup(t,e,n,i)})),new Zf(o,a)},t.prototype.createSegments=function(t,e,n,i){var r=this;return e.map((function(e){return e.path.startsWith(":")?r.findPosParam(t,e,i):r.findOrReturn(e,n)}))},t.prototype.findPosParam=function(t,e,n){var i=n[e.path.substring(1)];if(!i)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return i},t.prototype.findOrReturn=function(t,e){var n,i,r=0;try{for(var o=a(e),s=o.next();!s.done;s=o.next()){var u=s.value;if(u.path===t.path)return e.splice(r),u;r++}}catch(l){n={error:l}}finally{try{s&&!s.done&&(i=o.return)&&i.call(o)}finally{if(n)throw n.error}}return t},t}();function $m(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 i=(e.matcher||Ff)(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function Xm(t){if(1===t.numberOfChildren&&t.children.primary){var e=t.children.primary;return new Zf(t.segments.concat(e.segments),e.children)}return t}function Qm(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0!==n.redirectTo}function Jm(t){return t.outlet||"primary"}var tg=function(){return function(t){this.path=t,this.route=this.path[this.path.length-1]}}(),eg=function(){return function(t,e){this.component=t,this.route=e}}();function ng(t,e,n){var i=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(i?i.module.injector:n).get(t)}function ig(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=vm(e);return t.children.forEach((function(t){!function(t,e,n,i,r){void 0===r&&(r={canDeactivateChecks:[],canActivateChecks:[]});var o=t.value,a=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(a&&o.routeConfig===a.routeConfig){var u=function(t,e,n){if("function"==typeof n)return n(t,e);switch(n){case"pathParamsChange":return!Xf(t.url,e.url);case"pathParamsOrQueryParamsChange":return!Xf(t.url,e.url)||!zf(t.queryParams,e.queryParams);case"always":return!0;case"paramsOrQueryParamsChange":return!Am(t,e)||!zf(t.queryParams,e.queryParams);case"paramsChange":default:return!Am(t,e)}}(a,o,o.routeConfig.runGuardsAndResolvers);u?r.canActivateChecks.push(new tg(i)):(o.data=a.data,o._resolvedData=a._resolvedData),ig(t,e,o.component?s?s.children:null:n,i,r),u&&r.canDeactivateChecks.push(new eg(s&&s.outlet&&s.outlet.component||null,a))}else a&&rg(e,s,r),r.canActivateChecks.push(new tg(i)),ig(t,null,o.component?s?s.children:null:n,i,r)}(t,o[t.value.outlet],n,i.concat([t.value]),r),delete o[t.value.outlet]})),Wf(o,(function(t,e){return rg(t,n.getContext(e),r)})),r}function rg(t,e,n){var i=vm(t),r=t.value;Wf(i,(function(t,i){rg(t,r.component?e?e.children.getContext(i):null:e,n)})),n.canDeactivateChecks.push(new eg(r.component&&e&&e.outlet&&e.outlet.isActivated?e.outlet.component:null,r))}var og=Symbol("INITIAL_VALUE");function ag(){return tf((function(t){return Dh.apply(void 0,u(t.map((function(t){return t.pipe(Kh(1),of(og))})))).pipe(af((function(t,e){var n=!1;return e.reduce((function(t,i,r){if(t!==og)return t;if(i===og&&(n=!0),!n){if(!1===i)return i;if(r===e.length-1||Um(i))return i}return t}),t)}),og),Hp((function(t){return t!==og})),U((function(t){return Um(t)?t:!0===t})),Kh(1))}))}function sg(t,e){return null!==t&&e&&e(new Af(t)),Vp(!0)}function ug(t,e){return null!==t&&e&&e(new Df(t)),Vp(!0)}function lg(t,e,n){var i=e.routeConfig?e.routeConfig.canActivate:null;return i&&0!==i.length?Vp(i.map((function(i){return Ph((function(){var r,o=ng(i,e,n);if(function(t){return t&&Hm(t.canActivate)}(o))r=Gf(o.canActivate(e,t));else{if(!Hm(o))throw new Error("Invalid CanActivate guard");r=Gf(o(e,t))}return r.pipe(Xh())}))}))).pipe(ag()):Vp(!0)}function cg(t,e,n){var i=e[e.length-1],r=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 Ph((function(){return Vp(e.guards.map((function(r){var o,a=ng(r,e.node,n);if(function(t){return t&&Hm(t.canActivateChild)}(a))o=Gf(a.canActivateChild(i,t));else{if(!Hm(a))throw new Error("Invalid CanActivateChild guard");o=Gf(a(i,t))}return o.pipe(Xh())}))).pipe(ag())}))}));return Vp(r).pipe(ag())}var dg=function(){return function(){}}(),pg=function(){function t(t,e,n,i,r,o){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=i,this.paramsInheritanceStrategy=r,this.relativeLinkResolution=o}return t.prototype.recognize=function(){try{var t=mg(this.urlTree.root,[],[],this.config,this.relativeLinkResolution).segmentGroup,e=this.processSegmentGroup(this.config,t,"primary"),n=new xm([],Object.freeze({}),Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,{},"primary",this.rootComponentType,null,this.urlTree.root,-1,{}),i=new ym(n,e),r=new km(this.url,i);return this.inheritParamsAndData(r._root),Vp(r)}catch(a){return new D((function(t){return t.error(a)}))}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,i=Cm(n,this.paramsInheritanceStrategy);n.params=Object.freeze(i.params),n.data=Object.freeze(i.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,i=this,r=Qf(e,(function(e,n){return i.processSegmentGroup(t,e,n)}));return n={},r.forEach((function(t){var e=n[t.value.outlet];if(e){var i=e.url.map((function(t){return t.toString()})).join("/"),r=t.value.url.map((function(t){return t.toString()})).join("/");throw new Error("Two segments cannot have the same outlet name: '"+i+"' and '"+r+"'.")}n[t.value.outlet]=t.value})),function(t){t.sort((function(t,e){return"primary"===t.value.outlet?-1:"primary"===e.value.outlet?1:t.value.outlet.localeCompare(e.value.outlet)}))}(r),r},t.prototype.processSegment=function(t,e,n,i){var r,o;try{for(var s=a(t),u=s.next();!u.done;u=s.next()){var l=u.value;try{return this.processSegmentAgainstRoute(l,e,n,i)}catch(c){if(!(c instanceof dg))throw c}}}catch(d){r={error:d}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}if(this.noLeftoversInUrl(e,n,i))return[];throw new dg},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,i){if(t.redirectTo)throw new dg;if((t.outlet||"primary")!==i)throw new dg;var r,a=[],s=[];if("**"===t.path){var u=n.length>0?qf(n).parameters:{};r=new xm(n,u,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),i,t.component,t,hg(e),fg(e)+n.length,bg(t))}else{var l=function(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new dg;return{consumedSegments:[],lastChild:0,parameters:{}}}var i=(e.matcher||Ff)(n,t,e);if(!i)throw new dg;var r={};Wf(i.posParams,(function(t,e){r[e]=t.path}));var a=i.consumed.length>0?o(o({},r),i.consumed[i.consumed.length-1].parameters):r;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}(e,t,n);a=l.consumedSegments,s=n.slice(l.lastChild),r=new xm(a,l.parameters,Object.freeze(o({},this.urlTree.queryParams)),this.urlTree.fragment,vg(t),i,t.component,t,hg(e),fg(e)+a.length,bg(t))}var c=function(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}(t),d=mg(e,a,s,c,this.relativeLinkResolution),p=d.segmentGroup,h=d.slicedSegments;if(0===h.length&&p.hasChildren()){var f=this.processChildren(c,p);return[new ym(r,f)]}if(0===c.length&&0===h.length)return[new ym(r,[])];var m=this.processSegment(c,p,h,"primary");return[new ym(r,m)]},t}();function hg(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function fg(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 mg(t,e,n,i,r){if(n.length>0&&function(t,e,n){return n.some((function(n){return gg(t,e,n)&&"primary"!==yg(n)}))}(t,n,i)){var s=new Zf(e,function(t,e,n,i){var r,o,s={};s.primary=i,i._sourceSegment=t,i._segmentIndexShift=e.length;try{for(var u=a(n),l=u.next();!l.done;l=u.next()){var c=l.value;if(""===c.path&&"primary"!==yg(c)){var d=new Zf([],{});d._sourceSegment=t,d._segmentIndexShift=e.length,s[yg(c)]=d}}}catch(p){r={error:p}}finally{try{l&&!l.done&&(o=u.return)&&o.call(u)}finally{if(r)throw r.error}}return s}(t,e,i,new Zf(n,t.children)));return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:[]}}if(0===n.length&&function(t,e,n){return n.some((function(n){return gg(t,e,n)}))}(t,n,i)){var u=new Zf(t.segments,function(t,e,n,i,r,s){var u,l,c={};try{for(var d=a(i),p=d.next();!p.done;p=d.next()){var h=p.value;if(gg(t,n,h)&&!r[yg(h)]){var f=new Zf([],{});f._sourceSegment=t,f._segmentIndexShift="legacy"===s?t.segments.length:e.length,c[yg(h)]=f}}}catch(m){u={error:m}}finally{try{p&&!p.done&&(l=d.return)&&l.call(d)}finally{if(u)throw u.error}}return o(o({},r),c)}(t,e,n,i,t.children,r));return u._sourceSegment=t,u._segmentIndexShift=e.length,{segmentGroup:u,slicedSegments:n}}var l=new Zf(t.segments,t.children);return l._sourceSegment=t,l._segmentIndexShift=e.length,{segmentGroup:l,slicedSegments:n}}function gg(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&""===n.path&&void 0===n.redirectTo}function yg(t){return t.outlet||"primary"}function vg(t){return t.data||{}}function bg(t){return t.resolve||{}}function _g(t,e,n,i){var r=ng(t,e,i);return Gf(r.resolve?r.resolve(e,n):r(e,n))}function wg(t){return function(e){return e.pipe(tf((function(e){var n=t(e);return n?Y(n).pipe(U((function(){return e}))):Y([e])})))}}var Cg=function(){return function(){}}(),xg=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}(),kg=new Gt("ROUTES"),Sg=function(){function t(t,e,n,i){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=i}return t.prototype.load=function(t,e){var n=this;return this.onLoadStartListener&&this.onLoadStartListener(e),this.loadModuleFactory(e.loadChildren).pipe(U((function(i){n.onLoadEndListener&&n.onLoadEndListener(e);var r=i.create(t);return new Lf(Uf(r.injector.get(kg)).map(Vf),r)})))},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Y(this.loader.load(t)):Gf(t()).pipe(K((function(t){return t instanceof se?Vp(t):Y(e.compiler.compileModuleAsync(t))})))},t}(),Dg=function(){return function(){}}(),Eg=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 Ag(t){throw t}function Og(t,e,n){return e.parse("/")}function Ig(t,e){return Vp(null)}var Pg=function(){function t(t,e,n,i,r,o,a,s){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=i,this.config=s,this.lastSuccessfulNavigation=null,this.currentNavigation=null,this.navigationId=0,this.isNgZoneEnabled=!1,this.events=new P,this.errorHandler=Ag,this.malformedUriErrorHandler=Og,this.navigated=!1,this.lastSuccessfulId=-1,this.hooks={beforePreactivation:Ig,afterPreactivation:Ig},this.urlHandlingStrategy=new Eg,this.routeReuseStrategy=new xg,this.onSameUrlNavigation="ignore",this.paramsInheritanceStrategy="emptyOnly",this.urlUpdateStrategy="deferred",this.relativeLinkResolution="legacy",this.ngModule=r.get(ae),this.console=r.get(Dl);var l=r.get(Vl);this.isNgZoneEnabled=l instanceof Vl,this.resetConfig(s),this.currentUrlTree=new Kf(new Zf([],{}),{},null),this.rawUrlTree=this.currentUrlTree,this.browserUrlTree=this.currentUrlTree,this.configLoader=new Sg(o,a,(function(t){return u.triggerEvent(new kf(t))}),(function(t){return u.triggerEvent(new Sf(t))})),this.routerState=_m(this.currentUrlTree,this.rootComponentType),this.transitions=new xh({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",restoredState: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(Hp((function(t){return 0!==t.id})),U((function(t){return o(o({},t),{extractedUrl:e.urlHandlingStrategy.extract(t.rawUrl)})})),tf((function(t){var i,r,s,u,l=!1,c=!1;return Vp(t).pipe(lf((function(t){e.currentNavigation={id:t.id,initialUrl:t.currentRawUrl,extractedUrl:t.extractedUrl,trigger:t.source,extras:t.extras,previousNavigation:e.lastSuccessfulNavigation?o(o({},e.lastSuccessfulNavigation),{previousNavigation:null}):null}})),tf((function(t){var i,r,a,s,u=!e.navigated||t.extractedUrl.toString()!==e.browserUrlTree.toString();if(("reload"===e.onSameUrlNavigation||u)&&e.urlHandlingStrategy.shouldProcessUrl(t.rawUrl))return Vp(t).pipe(tf((function(t){var i=e.transitions.getValue();return n.next(new mf(t.id,e.serializeUrl(t.extractedUrl),t.source,t.restoredState)),i!==e.transitions.getValue()?Oh:[t]})),tf((function(t){return Promise.resolve(t)})),(i=e.ngModule.injector,r=e.configLoader,a=e.urlSerializer,s=e.config,function(t){return t.pipe(tf((function(t){return function(t,e,n,i,r){return new Zm(t,e,n,i,r).apply()}(i,r,a,t.extractedUrl,s).pipe(U((function(e){return o(o({},t),{urlAfterRedirects:e})})))})))}),lf((function(t){e.currentNavigation=o(o({},e.currentNavigation),{finalUrl:t.urlAfterRedirects})})),function(t,n,i,r,a){return function(i){return i.pipe(K((function(i){return function(t,e,n,i,r,o){return void 0===r&&(r="emptyOnly"),void 0===o&&(o="legacy"),new pg(t,e,n,i,r,o).recognize()}(t,n,i.urlAfterRedirects,(s=i.urlAfterRedirects,e.serializeUrl(s)),r,a).pipe(U((function(t){return o(o({},i),{targetSnapshot:t})})));var s})))}}(e.rootComponentType,e.config,0,e.paramsInheritanceStrategy,e.relativeLinkResolution),lf((function(t){"eager"===e.urlUpdateStrategy&&(t.extras.skipLocationChange||e.setBrowserUrl(t.urlAfterRedirects,!!t.extras.replaceUrl,t.id,t.extras.state),e.browserUrlTree=t.urlAfterRedirects)})),lf((function(t){var i=new bf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);n.next(i)})));if(u&&e.rawUrlTree&&e.urlHandlingStrategy.shouldProcessUrl(e.rawUrlTree)){var l=t.extractedUrl,c=t.source,d=t.restoredState,p=t.extras,h=new mf(t.id,e.serializeUrl(l),c,d);n.next(h);var f=_m(l,e.rootComponentType).snapshot;return Vp(o(o({},t),{targetSnapshot:f,urlAfterRedirects:l,extras:o(o({},p),{skipLocationChange:!1,replaceUrl:!1})}))}return e.rawUrlTree=t.rawUrl,e.browserUrlTree=t.urlAfterRedirects,t.resolve(null),Oh})),wg((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})})),lf((function(t){var n=new _f(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),U((function(t){return o(o({},t),{guards:(n=t.targetSnapshot,i=t.currentSnapshot,r=e.rootContexts,a=n._root,ig(a,i?i._root:null,r,[a.value]))});var n,i,r,a})),function(t,e){return function(n){return n.pipe(K((function(n){var i=n.targetSnapshot,r=n.currentSnapshot,a=n.guards,s=a.canActivateChecks,u=a.canDeactivateChecks;return 0===u.length&&0===s.length?Vp(o(o({},n),{guardsResult:!0})):function(t,e,n,i){return Y(t).pipe(K((function(t){return function(t,e,n,i,r){var o=e&&e.routeConfig?e.routeConfig.canDeactivate:null;return o&&0!==o.length?Vp(o.map((function(o){var a,s=ng(o,e,r);if(function(t){return t&&Hm(t.canDeactivate)}(s))a=Gf(s.canDeactivate(t,e,n,i));else{if(!Hm(s))throw new Error("Invalid CanDeactivate guard");a=Gf(s(t,e,n,i))}return a.pipe(Xh())}))).pipe(ag()):Vp(!0)}(t.component,t.route,n,e,i)})),Xh((function(t){return!0!==t}),!0))}(u,i,r,t).pipe(K((function(n){return n&&"boolean"==typeof n?function(t,e,n,i){return Y(e).pipe(zp((function(e){return Y([ug(e.route.parent,i),sg(e.route,i),cg(t,e.path,n),lg(t,e.route,n)]).pipe(Th(),Xh((function(t){return!0!==t}),!0))})),Xh((function(t){return!0!==t}),!0))}(i,s,t,e):Vp(n)})),U((function(t){return o(o({},n),{guardsResult:t})})))})))}}(e.ngModule.injector,(function(t){return e.triggerEvent(t)})),lf((function(t){if(Um(t.guardsResult)){var n=Mf('Redirecting to "'+e.serializeUrl(t.guardsResult)+'"');throw n.url=t.guardsResult,n}})),lf((function(t){var n=new wf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot,!!t.guardsResult);e.triggerEvent(n)})),Hp((function(t){if(!t.guardsResult){e.resetUrlToCurrentUrlTree();var i=new yf(t.id,e.serializeUrl(t.extractedUrl),"");return n.next(i),t.resolve(!1),!1}return!0})),wg((function(t){if(t.guards.canActivateChecks.length)return Vp(t).pipe(lf((function(t){var n=new Cf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})),(n=e.paramsInheritanceStrategy,i=e.ngModule.injector,function(t){return t.pipe(K((function(t){var e=t.targetSnapshot,r=t.guards.canActivateChecks;return r.length?Y(r).pipe(zp((function(t){return function(t,e,n,i){return function(t,e,n,i){var r=Object.keys(t);if(0===r.length)return Vp({});if(1===r.length){var o=r[0];return _g(t[o],e,n,i).pipe(U((function(t){var e;return(e={})[o]=t,e})))}var a={};return Y(r).pipe(K((function(r){return _g(t[r],e,n,i).pipe(U((function(t){return a[r]=t,t})))}))).pipe(qh(),U((function(){return a})))}(t._resolve,t,e,i).pipe(U((function(e){return t._resolvedData=e,t.data=o(o({},t.data),Cm(t,n).resolve),null})))}(t.route,e,n,i)})),function(t,e){return arguments.length>=2?function(n){return k(af(t,e),Mh(1),zh(e))(n)}:function(e){return k(af((function(e,n,i){return t(e,n,i+1)})),Mh(1))(e)}}((function(t,e){return t})),U((function(e){return t}))):Vp(t)})))}),lf((function(t){var n=new xf(t.id,e.serializeUrl(t.extractedUrl),e.serializeUrl(t.urlAfterRedirects),t.targetSnapshot);e.triggerEvent(n)})));var n,i})),wg((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})})),U((function(t){var n,i,r,s=(r=function t(e,n,i){if(i&&e.shouldReuseRoute(n.value,i.value.snapshot)){(l=i.value)._futureSnapshot=n.value;var r=function(e,n,i){return n.children.map((function(n){var r,o;try{for(var s=a(i.children),u=s.next();!u.done;u=s.next()){var l=u.value;if(e.shouldReuseRoute(l.value.snapshot,n.value))return t(e,n,l)}}catch(c){r={error:c}}finally{try{u&&!u.done&&(o=s.return)&&o.call(s)}finally{if(r)throw r.error}}return t(e,n)}))}(e,n,i);return new ym(l,r)}var o=e.retrieve(n.value);if(o){var s=o.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 i=0;ir;){if(o-=r,!(i=i.parent))throw new Error("Invalid number of '../'");r=i.segments.length}return new Tm(i,!1,r-o)}(n.snapshot._urlSegment,n.snapshot._lastPathIndex+i,t.numberOfDoubleDots)}(o,e,t),s=a.processChildren?Fm(a.segmentGroup,a.index,o.commands):Mm(a.segmentGroup,a.index,o.commands);return Im(a.segmentGroup,s,e,i,r)}(c,this.currentUrlTree,t,p,d)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1}),yi()&&this.isNgZoneEnabled&&!Vl.isInAngularZone()&&this.console.warn("Navigation triggered outside Angular zone, did you forget to call 'ngZone.run()'?");var n=Um(t)?t:this.parseUrl(t),i=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(i,"imperative",null,e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),function(t){for(var e=0;e1?Array.prototype.slice.call(arguments):t)}),i,n)}))}var Uy=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i.pending=!1,i}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t;var n=this.id,i=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(i,n,e)),this.pending=!0,this.delay=e,this.id=this.id||this.requestAsyncId(i,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){if(void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending)return e;clearInterval(e)},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,i=void 0;try{this.work(t)}catch(r){n=!0,i=!!r&&r||new Error(r)}if(n)return this.unsubscribe(),i},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,i=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==i&&n.splice(i,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(function(t){function e(e,n){return t.call(this)||this}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(h)),qy=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=function(){return Date.now()},t}(),Wy=function(t){function e(n,i){void 0===i&&(i=qy.now);var r=t.call(this,n,(function(){return e.delegate&&e.delegate!==r?e.delegate.now():i()}))||this;return r.actions=[],r.active=!1,r.scheduled=void 0,r}return r(e,t),e.prototype.schedule=function(n,i,r){return void 0===i&&(i=0),e.delegate&&e.delegate!==this?e.delegate.schedule(n,i,r):t.prototype.schedule.call(this,n,i,r)},e.prototype.flush=function(t){var e=this.actions;if(this.active)e.push(t);else{var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}}},e}(qy),Gy=1,Yy={},Ky=function(t){function e(e,n){var i=t.call(this,e,n)||this;return i.scheduler=e,i.work=n,i}return r(e,t),e.prototype.requestAsyncId=function(e,n,i){return void 0===i&&(i=0),null!==i&&i>0?t.prototype.requestAsyncId.call(this,e,n,i):(e.actions.push(this),e.scheduled||(e.scheduled=(r=e.flush.bind(e,null),o=Gy++,Yy[o]=r,Promise.resolve().then((function(){return function(t){var e=Yy[t];e&&e()}(o)})),o)));var r,o},e.prototype.recycleAsyncId=function(e,n,i){if(void 0===i&&(i=0),null!==i&&i>0||null===i&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,i);0===e.actions.length&&(delete Yy[n],e.scheduled=void 0)},e}(Uy),Zy=new(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,i=-1,r=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++i=0}function iv(t,e,n){void 0===t&&(t=0);var i=-1;return nv(e)?i=Number(e)<1?1:Number(e):R(e)&&(n=e),R(n)||(n=Jy),new D((function(e){var r=nv(t)?t:+t-n.now();return n.schedule(rv,r,{index:0,period:i,subscriber:e})}))}function rv(t){var e=t.index,n=t.period,i=t.subscriber;if(i.next(e),!i.closed){if(-1===n)return i.complete();t.index=e+1,this.schedule(t,n)}}function ov(t,e){return void 0===e&&(e=Jy),n=function(){return iv(t,e)},function(t){return t.lift(new tv(n))};var n}function av(t){return function(e){return e.lift(new sv(t))}}var sv=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new uv(t),i=z(n,this.notifier);return i&&!n.seenValue?(n.add(i),e.subscribe(n)):n},t}(),uv=function(t){function e(e){var n=t.call(this,e)||this;return n.seenValue=!1,n}return r(e,t),e.prototype.notifyNext=function(t,e,n,i,r){this.seenValue=!0,this.complete()},e.prototype.notifyComplete=function(){},e}(H);function lv(t,e){return new D(e?function(n){return e.schedule(cv,0,{error:t,subscriber:n})}:function(e){return e.error(t)})}function cv(t){t.subscriber.error(t.error)}var dv,pv=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return Vp(this.value);case"E":return lv(this.error);case"C":return Ih()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();try{dv="undefined"!=typeof Intl&&Intl.v8BreakIterator}catch(bB){dv=!1}var hv,fv,mv,gv=function(){function t(t){this._platformId=t,this.isBrowser=this._platformId?"browser"===this._platformId:"object"==typeof document&&!!document,this.EDGE=this.isBrowser&&/(edge)/i.test(navigator.userAgent),this.TRIDENT=this.isBrowser&&/(msie|trident)/i.test(navigator.userAgent),this.BLINK=this.isBrowser&&!(!window.chrome&&!dv)&&"undefined"!=typeof CSS&&!this.EDGE&&!this.TRIDENT,this.WEBKIT=this.isBrowser&&/AppleWebKit/i.test(navigator.userAgent)&&!this.BLINK&&!this.EDGE&&!this.TRIDENT,this.IOS=this.isBrowser&&/iPad|iPhone|iPod/.test(navigator.userAgent)&&!("MSStream"in window),this.FIREFOX=this.isBrowser&&/(firefox|minefield)/i.test(navigator.userAgent),this.ANDROID=this.isBrowser&&/android/i.test(navigator.userAgent)&&!this.TRIDENT,this.SAFARI=this.isBrowser&&/safari/i.test(navigator.userAgent)&&this.WEBKIT}return t.ngInjectableDef=yt({factory:function(){return new t(ee(kl,8))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(kl,8))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),yv=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),vv=["color","button","checkbox","date","datetime-local","email","file","hidden","image","month","number","password","radio","range","reset","search","submit","tel","text","time","url","week"];function bv(){if(hv)return hv;if("object"!=typeof document||!document)return hv=new Set(vv);var t=document.createElement("input");return hv=new Set(vv.filter((function(e){return t.setAttribute("type",e),t.type===e})))}function _v(t){return function(){if(null==fv&&"undefined"!=typeof window)try{window.addEventListener("test",null,Object.defineProperty({},"passive",{get:function(){return fv=!0}}))}finally{fv=fv||!1}return fv}()?t:!!t.capture}var wv=function(){return function(){}}();function Cv(t){return t&&"function"==typeof t.connect}var xv=function(){function t(t,e,n){var i=this;void 0===t&&(t=!1),void 0===n&&(n=!0),this._multiple=t,this._emitChanges=n,this._selection=new Set,this._deselectedToEmit=[],this._selectedToEmit=[],this.changed=new P,this.onChange=this.changed,e&&e.length&&(t?e.forEach((function(t){return i._markSelected(t)})):this._markSelected(e[0]),this._selectedToEmit.length=0)}return Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected||(this._selected=Array.from(this._selection.values())),this._selected},enumerable:!0,configurable:!0}),t.prototype.select=function(){for(var t=this,e=[],n=0;n1&&!this._multiple)throw Error("Cannot pass multiple values into SelectionModel with single-value mode.")},t}(),kv=function(){function t(){this._listeners=[]}return t.prototype.notify=function(t,e){for(var n=0,i=this._listeners;n0?e._scrolled.pipe(ov(t)).subscribe(n):e._scrolled.subscribe(n);return e._scrolledCount++,function(){i.unsubscribe(),e._scrolledCount--,e._scrolledCount||e._removeGlobalListener()}})):Vp()},t.prototype.ngOnDestroy=function(){var t=this;this._removeGlobalListener(),this.scrollContainers.forEach((function(e,n){return t.deregister(n)})),this._scrolled.complete()},t.prototype.ancestorScrolled=function(t,e){var n=this.getAncestorScrollContainers(t);return this.scrolled(e).pipe(Hp((function(t){return!t||n.indexOf(t)>-1})))},t.prototype.getAncestorScrollContainers=function(t){var e=this,n=[];return this.scrollContainers.forEach((function(i,r){e._scrollableContainsElement(r,t)&&n.push(r)})),n},t.prototype._scrollableContainsElement=function(t,e){var n=e.nativeElement,i=t.getElementRef().nativeElement;do{if(n==i)return!0}while(n=n.parentElement);return!1},t.prototype._addGlobalListener=function(){var t=this;this._globalSubscription=this._ngZone.runOutsideAngular((function(){return Hy(window.document,"scroll").subscribe((function(){return t._scrolled.next()}))}))},t.prototype._removeGlobalListener=function(){this._globalSubscription&&(this._globalSubscription.unsubscribe(),this._globalSubscription=null)},t.ngInjectableDef=yt({factory:function(){return new t(ee(Vl),ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Vl),ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Dv=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[Fy,yv],Fy]}),t}(),Ev=function(){function t(t,e){var n=this;this._platform=t,e.runOutsideAngular((function(){n._change=t.isBrowser?tt(Hy(window,"resize"),Hy(window,"orientationchange")):Vp(),n._invalidateCache=n.change().subscribe((function(){return n._updateViewportSize()}))}))}return t.prototype.ngOnDestroy=function(){this._invalidateCache.unsubscribe()},t.prototype.getViewportSize=function(){this._viewportSize||this._updateViewportSize();var t={width:this._viewportSize.width,height:this._viewportSize.height};return this._platform.isBrowser||(this._viewportSize=null),t},t.prototype.getViewportRect=function(){var t=this.getViewportScrollPosition(),e=this.getViewportSize(),n=e.width,i=e.height;return{top:t.top,left:t.left,bottom:t.top+i,right:t.left+n,height:i,width:n}},t.prototype.getViewportScrollPosition=function(){if(!this._platform.isBrowser)return{top:0,left:0};var t=document.documentElement,e=t.getBoundingClientRect();return{top:-e.top||document.body.scrollTop||window.scrollY||t.scrollTop||0,left:-e.left||document.body.scrollLeft||window.scrollX||t.scrollLeft||0}},t.prototype.change=function(t){return void 0===t&&(t=20),t>0?this._change.pipe(ov(t)):this._change},t.prototype._updateViewportSize=function(){this._viewportSize=this._platform.isBrowser?{width:window.innerWidth,height:window.innerHeight}:{width:0,height:0}},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Av=function(){function t(t,e){this._viewportRuler=t,this._previousHTMLStyles={top:"",left:""},this._isEnabled=!1,this._document=e}return t.prototype.attach=function(){},t.prototype.enable=function(){if(this._canBeEnabled()){var t=this._document.documentElement;this._previousScrollPosition=this._viewportRuler.getViewportScrollPosition(),this._previousHTMLStyles.left=t.style.left||"",this._previousHTMLStyles.top=t.style.top||"",t.style.left=Vy(-this._previousScrollPosition.left),t.style.top=Vy(-this._previousScrollPosition.top),t.classList.add("cdk-global-scrollblock"),this._isEnabled=!0}},t.prototype.disable=function(){if(this._isEnabled){var t=this._document.documentElement,e=t.style,n=this._document.body.style,i=e.scrollBehavior||"",r=n.scrollBehavior||"";this._isEnabled=!1,e.left=this._previousHTMLStyles.left,e.top=this._previousHTMLStyles.top,t.classList.remove("cdk-global-scrollblock"),e.scrollBehavior=n.scrollBehavior="auto",window.scroll(this._previousScrollPosition.left,this._previousScrollPosition.top),e.scrollBehavior=i,n.scrollBehavior=r}},t.prototype._canBeEnabled=function(){if(this._document.documentElement.classList.contains("cdk-global-scrollblock")||this._isEnabled)return!1;var t=this._document.body,e=this._viewportRuler.getViewportSize();return t.scrollHeight>e.height||t.scrollWidth>e.width},t}();function Ov(){return Error("Scroll strategy has already been attached.")}var Iv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._ngZone=e,this._viewportRuler=n,this._config=i,this._scrollSubscription=null,this._detach=function(){r.disable(),r._overlayRef.hasAttached()&&r._ngZone.run((function(){return r._overlayRef.detach()}))}}return t.prototype.attach=function(t){if(this._overlayRef)throw Ov();this._overlayRef=t},t.prototype.enable=function(){var t=this;if(!this._scrollSubscription){var e=this._scrollDispatcher.scrolled(0);this._config&&this._config.threshold&&this._config.threshold>1?(this._initialScrollPosition=this._viewportRuler.getViewportScrollPosition().top,this._scrollSubscription=e.subscribe((function(){var e=t._viewportRuler.getViewportScrollPosition().top;Math.abs(e-t._initialScrollPosition)>t._config.threshold?t._detach():t._overlayRef.updatePosition()}))):this._scrollSubscription=e.subscribe(this._detach)}},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Pv=function(){function t(){}return t.prototype.enable=function(){},t.prototype.disable=function(){},t.prototype.attach=function(){},t}();function Tv(t,e){return e.some((function(e){return t.bottome.bottom||t.righte.right}))}function Rv(t,e){return e.some((function(e){return t.tope.bottom||t.lefte.right}))}var Mv=function(){function t(t,e,n,i){this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this._config=i,this._scrollSubscription=null}return t.prototype.attach=function(t){if(this._overlayRef)throw Ov();this._overlayRef=t},t.prototype.enable=function(){var t=this;this._scrollSubscription||(this._scrollSubscription=this._scrollDispatcher.scrolled(this._config?this._config.scrollThrottle:0).subscribe((function(){if(t._overlayRef.updatePosition(),t._config&&t._config.autoClose){var e=t._overlayRef.overlayElement.getBoundingClientRect(),n=t._viewportRuler.getViewportSize(),i=n.width,r=n.height;Tv(e,[{width:i,height:r,bottom:r,right:i,top:0,left:0}])&&(t.disable(),t._ngZone.run((function(){return t._overlayRef.detach()})))}})))},t.prototype.disable=function(){this._scrollSubscription&&(this._scrollSubscription.unsubscribe(),this._scrollSubscription=null)},t.prototype.detach=function(){this.disable(),this._overlayRef=null},t}(),Fv=function(){function t(t,e,n,i){var r=this;this._scrollDispatcher=t,this._viewportRuler=e,this._ngZone=n,this.noop=function(){return new Pv},this.close=function(t){return new Iv(r._scrollDispatcher,r._ngZone,r._viewportRuler,t)},this.block=function(){return new Av(r._viewportRuler,r._document)},this.reposition=function(t){return new Mv(r._scrollDispatcher,r._viewportRuler,r._ngZone,t)},this._document=i}return t.ngInjectableDef=yt({factory:function(){return new t(ee(Sv),ee(Ev),ee(Vl),ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Sv),ee(Ev),ee(Vl),ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Lv=function(){return function(t){if(this.scrollStrategy=new Pv,this.panelClass="",this.hasBackdrop=!1,this.backdropClass="cdk-overlay-dark-backdrop",this.disposeOnNavigation=!1,t)for(var e=0,n=Object.keys(t);e-1;i--)if(n[i]._keydownEventSubscriptions>0){n[i]._keydownEvents.next(t);break}},this._document=t}return t.prototype.ngOnDestroy=function(){this._detach()},t.prototype.add=function(t){this.remove(t),this._isAttached||(this._document.body.addEventListener("keydown",this._keydownListener),this._isAttached=!0),this._attachedOverlays.push(t)},t.prototype.remove=function(t){var e=this._attachedOverlays.indexOf(t);e>-1&&this._attachedOverlays.splice(e,1),0===this._attachedOverlays.length&&this._detach()},t.prototype._detach=function(){this._isAttached&&(this._document.body.removeEventListener("keydown",this._keydownListener),this._isAttached=!1)},t.ngInjectableDef=yt({factory:function(){return new t(ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Hv=function(){function t(t){this._document=t}return t.prototype.ngOnDestroy=function(){this._containerElement&&this._containerElement.parentNode&&this._containerElement.parentNode.removeChild(this._containerElement)},t.prototype.getContainerElement=function(){return this._containerElement||this._createContainer(),this._containerElement},t.prototype._createContainer=function(){for(var t=this._document.getElementsByClassName("cdk-overlay-container"),e=0;ep&&(p=g,d=m)}return this._isPushed=!1,void this._applyPosition(d.position,d.origin)}if(this._canPush)return this._isPushed=!0,void this._applyPosition(t.position,t.originPoint);this._applyPosition(t.position,t.originPoint)}},t.prototype.detach=function(){this._clearPanelClasses(),this._lastPosition=null,this._previousPushAmount=null,this._resizeSubscription.unsubscribe()},t.prototype.dispose=function(){this._isDisposed||(this._boundingBox&&Wv(this._boundingBox.style,{top:"",left:"",right:"",bottom:"",height:"",width:"",alignItems:"",justifyContent:""}),this._pane&&this._resetOverlayElementStyles(),this._overlayRef&&this._overlayRef.hostElement.classList.remove("cdk-overlay-connected-position-bounding-box"),this.detach(),this._positionChanges.complete(),this._overlayRef=this._boundingBox=null,this._isDisposed=!0)},t.prototype.reapplyLastPosition=function(){if(!this._isDisposed&&(!this._platform||this._platform.isBrowser)){this._originRect=this._getOriginRect(),this._overlayRect=this._pane.getBoundingClientRect(),this._viewportRect=this._getNarrowedViewportRect();var t=this._lastPosition||this._preferredPositions[0],e=this._getOriginPoint(this._originRect,t);this._applyPosition(t,e)}},t.prototype.withScrollableContainers=function(t){return this._scrollables=t,this},t.prototype.withPositions=function(t){return this._preferredPositions=t,-1===t.indexOf(this._lastPosition)&&(this._lastPosition=null),this._validatePositions(),this},t.prototype.withViewportMargin=function(t){return this._viewportMargin=t,this},t.prototype.withFlexibleDimensions=function(t){return void 0===t&&(t=!0),this._hasFlexibleDimensions=t,this},t.prototype.withGrowAfterOpen=function(t){return void 0===t&&(t=!0),this._growAfterOpen=t,this},t.prototype.withPush=function(t){return void 0===t&&(t=!0),this._canPush=t,this},t.prototype.withLockedPosition=function(t){return void 0===t&&(t=!0),this._positionLocked=t,this},t.prototype.setOrigin=function(t){return this._origin=t,this},t.prototype.withDefaultOffsetX=function(t){return this._offsetX=t,this},t.prototype.withDefaultOffsetY=function(t){return this._offsetY=t,this},t.prototype.withTransformOriginOn=function(t){return this._transformOriginSelector=t,this},t.prototype._getOriginPoint=function(t,e){var n;if("center"==e.originX)n=t.left+t.width/2;else{var i=this._isRtl()?t.right:t.left,r=this._isRtl()?t.left:t.right;n="start"==e.originX?i:r}return{x:n,y:"center"==e.originY?t.top+t.height/2:"top"==e.originY?t.top:t.bottom}},t.prototype._getOverlayPoint=function(t,e,n){var i;return i="center"==n.overlayX?-e.width/2:"start"===n.overlayX?this._isRtl()?-e.width:0:this._isRtl()?0:-e.width,{x:t.x+i,y:t.y+("center"==n.overlayY?-e.height/2:"top"==n.overlayY?0:-e.height)}},t.prototype._getOverlayFit=function(t,e,n,i){var r=t.x,o=t.y,a=this._getOffset(i,"x"),s=this._getOffset(i,"y");a&&(r+=a),s&&(o+=s);var u=0-o,l=o+e.height-n.height,c=this._subtractOverflows(e.width,0-r,r+e.width-n.width),d=this._subtractOverflows(e.height,u,l),p=c*d;return{visibleArea:p,isCompletelyWithinViewport:e.width*e.height===p,fitsInViewportVertically:d===e.height,fitsInViewportHorizontally:c==e.width}},t.prototype._canFitWithFlexibleDimensions=function(t,e,n){if(this._hasFlexibleDimensions){var i=n.bottom-e.y,r=n.right-e.x,o=this._overlayRef.getConfig().minHeight,a=this._overlayRef.getConfig().minWidth;return(t.fitsInViewportVertically||null!=o&&o<=i)&&(t.fitsInViewportHorizontally||null!=a&&a<=r)}return!1},t.prototype._pushOverlayOnScreen=function(t,e,n){if(this._previousPushAmount&&this._positionLocked)return{x:t.x+this._previousPushAmount.x,y:t.y+this._previousPushAmount.y};var i,r,o=this._viewportRect,a=Math.max(t.x+e.width-o.right,0),s=Math.max(t.y+e.height-o.bottom,0),u=Math.max(o.top-n.top-t.y,0),l=Math.max(o.left-n.left-t.x,0);return this._previousPushAmount={x:i=e.width<=o.width?l||-a:t.xd&&!this._isInitialRender&&!this._growAfterOpen&&(i=t.y-d/2)}if("end"===e.overlayX&&!l||"start"===e.overlayX&&l)s=u.width-t.x+this._viewportMargin,o=t.x-this._viewportMargin;else if("start"===e.overlayX&&!l||"end"===e.overlayX&&l)a=t.x,o=u.right-t.x;else{c=Math.min(u.right-t.x+u.left,t.x);var p=this._lastBoundingBoxSize.width;a=t.x-c,(o=2*c)>p&&!this._isInitialRender&&!this._growAfterOpen&&(a=t.x-p/2)}return{top:i,left:a,bottom:r,right:s,width:o,height:n}},t.prototype._setBoundingBoxStyles=function(t,e){var n=this._calculateBoundingBoxRect(t,e);this._isInitialRender||this._growAfterOpen||(n.height=Math.min(n.height,this._lastBoundingBoxSize.height),n.width=Math.min(n.width,this._lastBoundingBoxSize.width));var i={};if(this._hasExactPosition())i.top=i.left="0",i.bottom=i.right="",i.width=i.height="100%";else{var r=this._overlayRef.getConfig().maxHeight,o=this._overlayRef.getConfig().maxWidth;i.height=Vy(n.height),i.top=Vy(n.top),i.bottom=Vy(n.bottom),i.width=Vy(n.width),i.left=Vy(n.left),i.right=Vy(n.right),i.alignItems="center"===e.overlayX?"center":"end"===e.overlayX?"flex-end":"flex-start",i.justifyContent="center"===e.overlayY?"center":"bottom"===e.overlayY?"flex-end":"flex-start",r&&(i.maxHeight=Vy(r)),o&&(i.maxWidth=Vy(o))}this._lastBoundingBoxSize=n,Wv(this._boundingBox.style,i)},t.prototype._resetBoundingBoxStyles=function(){Wv(this._boundingBox.style,{top:"0",left:"0",right:"0",bottom:"0",height:"",width:"",alignItems:"",justifyContent:""})},t.prototype._resetOverlayElementStyles=function(){Wv(this._pane.style,{top:"",left:"",bottom:"",right:"",position:"",transform:""})},t.prototype._setOverlayElementStyles=function(t,e){var n={};if(this._hasExactPosition()){var i=this._viewportRuler.getViewportScrollPosition();Wv(n,this._getExactOverlayY(e,t,i)),Wv(n,this._getExactOverlayX(e,t,i))}else n.position="static";var r="",o=this._getOffset(e,"x"),a=this._getOffset(e,"y");o&&(r+="translateX("+o+"px) "),a&&(r+="translateY("+a+"px)"),n.transform=r.trim(),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxHeight&&(n.maxHeight=""),this._hasFlexibleDimensions&&this._overlayRef.getConfig().maxWidth&&(n.maxWidth=""),Wv(this._pane.style,n)},t.prototype._getExactOverlayY=function(t,e,n){var i={top:null,bottom:null},r=this._getOverlayPoint(e,this._overlayRect,t);this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n));var o=this._overlayContainer.getContainerElement().getBoundingClientRect().top;return r.y-=o,"bottom"===t.overlayY?i.bottom=this._document.documentElement.clientHeight-(r.y+this._overlayRect.height)+"px":i.top=Vy(r.y),i},t.prototype._getExactOverlayX=function(t,e,n){var i={left:null,right:null},r=this._getOverlayPoint(e,this._overlayRect,t);return this._isPushed&&(r=this._pushOverlayOnScreen(r,this._overlayRect,n)),"right"==(this._isRtl()?"end"===t.overlayX?"left":"right":"end"===t.overlayX?"right":"left")?i.right=this._document.documentElement.clientWidth-(r.x+this._overlayRect.width)+"px":i.left=Vy(r.x),i},t.prototype._getScrollVisibility=function(){var t=this._getOriginRect(),e=this._pane.getBoundingClientRect(),n=this._scrollables.map((function(t){return t.getElementRef().nativeElement.getBoundingClientRect()}));return{isOriginClipped:Rv(t,n),isOriginOutsideView:Tv(t,n),isOverlayClipped:Rv(e,n),isOverlayOutsideView:Tv(e,n)}},t.prototype._subtractOverflows=function(t){for(var e=[],n=1;n-1&&n!==e._activeItemIndex&&(e._activeItemIndex=n)}}))}return t.prototype.skipPredicate=function(t){return this._skipPredicateFn=t,this},t.prototype.withWrap=function(t){return void 0===t&&(t=!0),this._wrap=t,this},t.prototype.withVerticalOrientation=function(t){return void 0===t&&(t=!0),this._vertical=t,this},t.prototype.withHorizontalOrientation=function(t){return this._horizontal=t,this},t.prototype.withAllowedModifierKeys=function(t){return this._allowedModifierKeys=t,this},t.prototype.withTypeAhead=function(t){var e=this;if(void 0===t&&(t=200),this._items.length&&this._items.some((function(t){return"function"!=typeof t.getLabel})))throw Error("ListKeyManager items in typeahead mode must implement the `getLabel` method.");return this._typeaheadSubscription.unsubscribe(),this._typeaheadSubscription=this._letterKeyStream.pipe(lf((function(t){return e._pressedLetters.push(t)})),rb(t),Hp((function(){return e._pressedLetters.length>0})),U((function(){return e._pressedLetters.join("")}))).subscribe((function(t){for(var n=e._getItemsArray(),i=1;i-1}));switch(n){case 9:return void this.tabOut.next();case 40:if(this._vertical&&i){this.setNextItemActive();break}return;case 38:if(this._vertical&&i){this.setPreviousItemActive();break}return;case 39:if(this._horizontal&&i){"rtl"===this._horizontal?this.setPreviousItemActive():this.setNextItemActive();break}return;case 37:if(this._horizontal&&i){"rtl"===this._horizontal?this.setNextItemActive():this.setPreviousItemActive();break}return;default:return void((i||Py(t,"shiftKey"))&&(t.key&&1===t.key.length?this._letterKeyStream.next(t.key.toLocaleUpperCase()):(n>=65&&n<=90||n>=48&&n<=57)&&this._letterKeyStream.next(String.fromCharCode(n))))}this._pressedLetters=[],t.preventDefault()},Object.defineProperty(t.prototype,"activeItemIndex",{get:function(){return this._activeItemIndex},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeItem",{get:function(){return this._activeItem},enumerable:!0,configurable:!0}),t.prototype.setFirstItemActive=function(){this._setActiveItemByIndex(0,1)},t.prototype.setLastItemActive=function(){this._setActiveItemByIndex(this._items.length-1,-1)},t.prototype.setNextItemActive=function(){this._activeItemIndex<0?this.setFirstItemActive():this._setActiveItemByDelta(1)},t.prototype.setPreviousItemActive=function(){this._activeItemIndex<0&&this._wrap?this.setLastItemActive():this._setActiveItemByDelta(-1)},t.prototype.updateActiveItem=function(t){var e=this._getItemsArray(),n="number"==typeof t?t:e.indexOf(t),i=e[n];this._activeItem=null==i?null:i,this._activeItemIndex=n},t.prototype.updateActiveItemIndex=function(t){this.updateActiveItem(t)},t.prototype._setActiveItemByDelta=function(t){this._wrap?this._setActiveInWrapMode(t):this._setActiveInDefaultMode(t)},t.prototype._setActiveInWrapMode=function(t){for(var e=this._getItemsArray(),n=1;n<=e.length;n++){var i=(this._activeItemIndex+t*n+e.length)%e.length;if(!this._skipPredicateFn(e[i]))return void this.setActiveItem(i)}},t.prototype._setActiveInDefaultMode=function(t){this._setActiveItemByIndex(this._activeItemIndex+t,t)},t.prototype._setActiveItemByIndex=function(t,e){var n=this._getItemsArray();if(n[t]){for(;this._skipPredicateFn(n[t]);)if(!n[t+=e])return;this.setActiveItem(t)}},t.prototype._getItemsArray=function(){return this._items instanceof Xu?this._items.toArray():this._items},t}(),vb=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.setActiveItem=function(e){this.activeItem&&this.activeItem.setInactiveStyles(),t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.setActiveStyles()},e}(yb),bb=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._origin="program",e}return r(e,t),e.prototype.setFocusOrigin=function(t){return this._origin=t,this},e.prototype.setActiveItem=function(e){t.prototype.setActiveItem.call(this,e),this.activeItem&&this.activeItem.focus(this._origin)},e}(yb),_b=function(){function t(t){this._platform=t}return t.prototype.isDisabled=function(t){return t.hasAttribute("disabled")},t.prototype.isVisible=function(t){return function(t){return!!(t.offsetWidth||t.offsetHeight||"function"==typeof t.getClientRects&&t.getClientRects().length)}(t)&&"visible"===getComputedStyle(t).visibility},t.prototype.isTabbable=function(t){if(!this._platform.isBrowser)return!1;var e,n=function(t){try{return t.frameElement}catch(bB){return null}}((e=t).ownerDocument&&e.ownerDocument.defaultView||window);if(n){var i=n&&n.nodeName.toLowerCase();if(-1===Cb(n))return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&"object"===i)return!1;if((this._platform.BLINK||this._platform.WEBKIT)&&!this.isVisible(n))return!1}var r=t.nodeName.toLowerCase(),o=Cb(t);if(t.hasAttribute("contenteditable"))return-1!==o;if("iframe"===r)return!1;if("audio"===r){if(!t.hasAttribute("controls"))return!1;if(this._platform.BLINK)return!0}if("video"===r){if(!t.hasAttribute("controls")&&this._platform.TRIDENT)return!1;if(this._platform.BLINK||this._platform.FIREFOX)return!0}return("object"!==r||!this._platform.BLINK&&!this._platform.WEBKIT)&&!(this._platform.WEBKIT&&this._platform.IOS&&!function(t){var e=t.nodeName.toLowerCase(),n="input"===e&&t.type;return"text"===n||"password"===n||"select"===e||"textarea"===e}(t))&&t.tabIndex>=0},t.prototype.isFocusable=function(t){return function(t){return!function(t){return function(t){return"input"==t.nodeName.toLowerCase()}(t)&&"hidden"==t.type}(t)&&(function(t){var e=t.nodeName.toLowerCase();return"input"===e||"select"===e||"button"===e||"textarea"===e}(t)||function(t){return function(t){return"a"==t.nodeName.toLowerCase()}(t)&&t.hasAttribute("href")}(t)||t.hasAttribute("contenteditable")||wb(t))}(t)&&!this.isDisabled(t)&&this.isVisible(t)},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function wb(t){if(!t.hasAttribute("tabindex")||void 0===t.tabIndex)return!1;var e=t.getAttribute("tabindex");return"-32768"!=e&&!(!e||isNaN(parseInt(e,10)))}function Cb(t){if(!wb(t))return null;var e=parseInt(t.getAttribute("tabindex")||"",10);return isNaN(e)?-1:e}var xb=function(){function t(t,e,n,i,r){var o=this;void 0===r&&(r=!1),this._element=t,this._checker=e,this._ngZone=n,this._document=i,this._hasAttached=!1,this.startAnchorListener=function(){return o.focusLastTabbableElement()},this.endAnchorListener=function(){return o.focusFirstTabbableElement()},this._enabled=!0,r||this.attachAnchors()}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){this._enabled=t,this._startAnchor&&this._endAnchor&&(this._toggleAnchorTabIndex(t,this._startAnchor),this._toggleAnchorTabIndex(t,this._endAnchor))},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){var t=this._startAnchor,e=this._endAnchor;t&&(t.removeEventListener("focus",this.startAnchorListener),t.parentNode&&t.parentNode.removeChild(t)),e&&(e.removeEventListener("focus",this.endAnchorListener),e.parentNode&&e.parentNode.removeChild(e)),this._startAnchor=this._endAnchor=null},t.prototype.attachAnchors=function(){var t=this;return!!this._hasAttached||(this._ngZone.runOutsideAngular((function(){t._startAnchor||(t._startAnchor=t._createAnchor(),t._startAnchor.addEventListener("focus",t.startAnchorListener)),t._endAnchor||(t._endAnchor=t._createAnchor(),t._endAnchor.addEventListener("focus",t.endAnchorListener))})),this._element.parentNode&&(this._element.parentNode.insertBefore(this._startAnchor,this._element),this._element.parentNode.insertBefore(this._endAnchor,this._element.nextSibling),this._hasAttached=!0),this._hasAttached)},t.prototype.focusInitialElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusInitialElement())}))}))},t.prototype.focusFirstTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusFirstTabbableElement())}))}))},t.prototype.focusLastTabbableElementWhenReady=function(){var t=this;return new Promise((function(e){t._executeOnStable((function(){return e(t.focusLastTabbableElement())}))}))},t.prototype._getRegionBoundary=function(t){for(var e=this._element.querySelectorAll("[cdk-focus-region-"+t+"], [cdkFocusRegion"+t+"], [cdk-focus-"+t+"]"),n=0;n=0;n--){var i=e[n].nodeType===this._document.ELEMENT_NODE?this._getLastTabbableElement(e[n]):null;if(i)return i}return null},t.prototype._createAnchor=function(){var t=this._document.createElement("div");return this._toggleAnchorTabIndex(this._enabled,t),t.classList.add("cdk-visually-hidden"),t.classList.add("cdk-focus-trap-anchor"),t.setAttribute("aria-hidden","true"),t},t.prototype._toggleAnchorTabIndex=function(t,e){t?e.setAttribute("tabindex","0"):e.removeAttribute("tabindex")},t.prototype._executeOnStable=function(t){this._ngZone.isStable?t():this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe(t)},t}(),kb=function(){function t(t,e,n){this._checker=t,this._ngZone=e,this._document=n}return t.prototype.create=function(t,e){return void 0===e&&(e=!1),new xb(t,this._checker,this._ngZone,this._document,e)},t.ngInjectableDef=yt({factory:function(){return new t(ee(_b),ee(Vl),ee(vc))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(_b),ee(Vl),ee(vc))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),Sb=function(){function t(t,e,n){this._elementRef=t,this._focusTrapFactory=e,this._previouslyFocusedElement=null,this._document=n,this.focusTrap=this._focusTrapFactory.create(this._elementRef.nativeElement,!0)}return Object.defineProperty(t.prototype,"enabled",{get:function(){return this.focusTrap.enabled},set:function(t){this.focusTrap.enabled=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"autoCapture",{get:function(){return this._autoCapture},set:function(t){this._autoCapture=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.focusTrap.destroy(),this._previouslyFocusedElement&&(this._previouslyFocusedElement.focus(),this._previouslyFocusedElement=null)},t.prototype.ngAfterContentInit=function(){this.focusTrap.attachAnchors(),this.autoCapture&&(this._previouslyFocusedElement=this._document.activeElement,this.focusTrap.focusInitialElementWhenReady())},t.prototype.ngDoCheck=function(){this.focusTrap.hasAttached()||this.focusTrap.attachAnchors()},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(kb),Ia(vc))},t.\u0275dir=Ee({type:t,selectors:[["","cdkTrapFocus",""]],inputs:{enabled:["cdkTrapFocus","enabled"],autoCapture:["cdkTrapFocusAutoCapture","autoCapture"]},exportAs:["cdkTrapFocus"]}),t}(),Db=new Gt("liveAnnouncerElement",{providedIn:"root",factory:function(){return null}}),Eb=new Gt("LIVE_ANNOUNCER_DEFAULT_OPTIONS"),Ab=function(){function t(t,e,n,i){this._ngZone=e,this._defaultOptions=i,this._document=n,this._liveElement=t||this._createLiveElement()}return t.prototype.announce=function(t){for(var e=this,n=[],i=1;i *";case":leave":return"* => void";case":increment":return function(t,e){return parseFloat(e)>parseFloat(t)};case":decrement":return function(t,e){return parseFloat(e) *"}}(t,n);if("function"==typeof i)return void e.push(i);t=i}var r=t.match(/^(\*|[-\w]+)\s*()\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var o=r[1],a=r[2],s=r[3];e.push(k_(o,s)),"<"!=a[0]||"*"==o&&"*"==s||e.push(k_(s,o))}(t,r,i)})):r.push(n),r),animation:o,queryCount:e.queryCount,depCount:e.depCount,options:I_(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map((function(t){return __(n,t,e)})),options:I_(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,i=e.currentTime,r=0,o=t.steps.map((function(t){e.currentTime=i;var o=__(n,t,e);return r=Math.max(r,e.currentTime),o}));return e.currentTime=r,{type:3,steps:o,options:I_(t.options)}},t.prototype.visitAnimate=function(t,e){var n,i=function(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t)return P_(r_(t,e).duration,0,"");var i=t;if(i.split(/\s+/).some((function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)}))){var r=P_(0,0,"");return r.dynamic=!0,r.strValue=i,r}return P_((n=n||r_(i,e)).duration,n.delay,n.easing)}(t.timings,e.errors);e.currentAnimateTimings=i;var r=t.styles?t.styles:dy({});if(5==r.type)n=this.visitKeyframes(r,e);else{var o=t.styles,a=!1;if(!o){a=!0;var s={};i.easing&&(s.easing=i.easing),o=dy(s)}e.currentTime+=i.duration+i.delay;var u=this.visitStyle(o,e);u.isEmptyStep=a,n=u}return e.currentAnimateTimings=null,{type:4,timings:i,style:n,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach((function(t){"string"==typeof t?"*"==t?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)})):n.push(t.styles);var i=!1,r=null;return n.forEach((function(t){if(O_(t)){var e=t,n=e.easing;if(n&&(r=n,delete e.easing),!i)for(var o in e)if(e[o].toString().indexOf("{{")>=0){i=!0;break}}})),{type:6,styles:n,easing:r,offset:t.offset,containsDynamicStyles:i,options:null}},t.prototype._validateStyleAst=function(t,e){var n=this,i=e.currentAnimateTimings,r=e.currentTime,o=e.currentTime;i&&o>0&&(o-=i.duration+i.delay),t.styles.forEach((function(t){"string"!=typeof t&&Object.keys(t).forEach((function(i){if(n._driver.validateStyleProperty(i)){var a,s,u,l=e.collectedStyles[e.currentQuerySelector],c=l[i],d=!0;c&&(o!=r&&o>=c.startTime&&r<=c.endTime&&(e.errors.push('The CSS property "'+i+'" that exists between the times of "'+c.startTime+'ms" and "'+c.endTime+'ms" is also being animated in a parallel animation between the times of "'+o+'ms" and "'+r+'ms"'),d=!1),o=c.startTime),d&&(l[i]={startTime:o,endTime:r}),e.options&&(a=e.errors,s=e.options.params||{},(u=h_(t[i])).length&&u.forEach((function(t){s.hasOwnProperty(t)||a.push("Unable to resolve the local animation param "+t+" in the given list of values")})))}else e.errors.push('The provided animation property "'+i+'" is not a supported CSS property for animations')}))}))},t.prototype.visitKeyframes=function(t,e){var n=this,i={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),i;var r=0,o=[],a=!1,s=!1,u=0,l=t.steps.map((function(t){var i=n._makeStyleAst(t,e),l=null!=i.offset?i.offset:function(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach((function(t){if(O_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}}));else if(O_(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}(i.styles),c=0;return null!=l&&(r++,c=i.offset=l),s=s||c<0||c>1,a=a||c0&&r0?r==p?1:d*r:o[r],s=a*m;e.currentTime=h+f.delay+s,f.duration=s,n._validateStyleAst(t,e),t.offset=a,i.styles.push(t)})),i},t.prototype.visitReference=function(t,e){return{type:8,animation:__(this,d_(t.animation),e),options:I_(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:I_(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:I_(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,i=t.options||{};e.queryCount++,e.currentQuery=t;var r=s(function(t){var e=!!t.split(/\s*,\s*/).find((function(t){return":self"==t}));return e&&(t=t.replace(S_,"")),[t=t.replace(/@\*/g,".ng-trigger").replace(/@\w+/g,(function(t){return".ng-trigger-"+t.substr(1)})).replace(/:animating/g,".ng-animating"),e]}(t.selector),2),o=r[0],a=r[1];e.currentQuerySelector=n.length?n+" "+o:o,zb(e.collectedStyles,e.currentQuerySelector,{});var u=__(this,d_(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:i.limit||0,optional:!!i.optional,includeSelf:a,animation:u,originalSelector:t.selector,options:I_(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:r_(t.timings,e.errors,!0);return{type:12,animation:__(this,d_(t.animation),e),timings:n,options:null}},t}(),A_=function(){return function(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}}();function O_(t){return!Array.isArray(t)&&"object"==typeof t}function I_(t){var e;return t?(t=o_(t)).params&&(t.params=(e=t.params)?o_(e):null):t={},t}function P_(t,e,n){return{duration:t,delay:e,easing:n}}function T_(t,e,n,i,r,o,a,s){return void 0===a&&(a=null),void 0===s&&(s=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:i,duration:r,delay:o,totalTime:r+o,easing:a,subTimeline:s}}var R_=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,u(e))},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),M_=new RegExp(":enter","g"),F_=new RegExp(":leave","g");function L_(t,e,n,i,r,o,a,s,u,l){return void 0===o&&(o={}),void 0===a&&(a={}),void 0===l&&(l=[]),(new j_).buildKeyframes(t,e,n,i,r,o,a,s,u,l)}var j_=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,i,r,o,a,s,u,l){void 0===l&&(l=[]),u=u||new R_;var c=new B_(t,e,u,i,r,l,[]);c.options=s,c.currentTimeline.setStyles([o],null,c.errors,s),__(this,n,c);var d=c.timelines.filter((function(t){return t.containsAnimation()}));if(d.length&&Object.keys(a).length){var p=d[d.length-1];p.allowOnlyTimelineStyles()||p.setStyles([a],null,c.errors,s)}return d.length?d.map((function(t){return t.buildKeyframes()})):[T_(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){},t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var i=e.createSubContext(t.options),r=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,i,i.options);r!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var i=e.currentTimeline.currentTime,r=null!=n.duration?n_(n.duration):null,o=null!=n.delay?n_(n.delay):null;return 0!==r&&t.forEach((function(t){var n=e.appendInstructionToTimeline(t,r,o);i=Math.max(i,n.duration+n.delay)})),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),__(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,i=e.subContextCount,r=e,o=t.options;if(o&&(o.params||o.delay)&&((r=e.createSubContext(o)).transformIntoNewTimeline(),null!=o.delay)){6==r.previousNode.type&&(r.currentTimeline.snapshotCurrentStyles(),r.previousNode=N_);var a=n_(o.delay);r.delayNextStep(a)}t.steps.length&&(t.steps.forEach((function(t){return __(n,t,r)})),r.currentTimeline.applyStylesToKeyframe(),r.subContextCount>i&&r.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,i=[],r=e.currentTimeline.currentTime,o=t.options&&t.options.delay?n_(t.options.delay):0;t.steps.forEach((function(a){var s=e.createSubContext(t.options);o&&s.delayNextStep(o),__(n,a,s),r=Math.max(r,s.currentTimeline.currentTime),i.push(s.currentTimeline)})),i.forEach((function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)})),e.transformIntoNewTimeline(r),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return r_(e.params?f_(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),i=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),i.snapshotCurrentStyles());var r=t.style;5==r.type?this.visitKeyframes(r,e):(e.incrementTime(n.duration),this.visitStyle(r,e),i.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,i=e.currentAnimateTimings;!i&&n.getCurrentStyleProperties().length&&n.forwardFrame();var r=i&&i.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(r):n.setStyles(t.styles,r,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,i=e.currentTimeline.duration,r=n.duration,o=e.createSubContext().currentTimeline;o.easing=n.easing,t.styles.forEach((function(t){o.forwardTime((t.offset||0)*r),o.setStyles(t.styles,t.easing,e.errors,e.options),o.applyStylesToKeyframe()})),e.currentTimeline.mergeTimelineCollectedStyles(o),e.transformIntoNewTimeline(i+r),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,i=e.currentTimeline.currentTime,r=t.options||{},o=r.delay?n_(r.delay):0;o&&(6===e.previousNode.type||0==i&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=N_);var a=i,s=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!r.optional,e.errors);e.currentQueryTotal=s.length;var u=null;s.forEach((function(i,r){e.currentQueryIndex=r;var s=e.createSubContext(t.options,i);o&&s.delayNextStep(o),i===e.element&&(u=s.currentTimeline),__(n,t.animation,s),s.currentTimeline.applyStylesToKeyframe(),a=Math.max(a,s.currentTimeline.currentTime)})),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(a),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,i=e.currentTimeline,r=t.timings,o=Math.abs(r.duration),a=o*(e.currentQueryTotal-1),s=o*e.currentQueryIndex;switch(r.duration<0?"reverse":r.easing){case"reverse":s=a-s;break;case"full":s=n.currentStaggerTime}var u=e.currentTimeline;s&&u.delayNextStep(s);var l=u.currentTime;__(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=i.currentTime-l+(i.startTime-n.currentTimeline.startTime)},t}(),N_={},B_=function(){function t(t,e,n,i,r,o,a,s){this._driver=t,this.element=e,this.subInstructions=n,this._enterClassName=i,this._leaveClassName=r,this.errors=o,this.timelines=a,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=N_,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=s||new V_(this._driver,e,0),a.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var i=t,r=this.options;null!=i.duration&&(r.duration=n_(i.duration)),null!=i.delay&&(r.delay=n_(i.delay));var o=i.params;if(o){var a=r.params;a||(a=this.options.params={}),Object.keys(o).forEach((function(t){e&&a.hasOwnProperty(t)||(a[t]=f_(o[t],a,n.errors))}))}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach((function(t){n[t]=e[t]}))}}return t},t.prototype.createSubContext=function(e,n,i){void 0===e&&(e=null);var r=n||this.element,o=new t(this._driver,r,this.subInstructions,this._enterClassName,this._leaveClassName,this.errors,this.timelines,this.currentTimeline.fork(r,i||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=N_,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var i={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},r=new z_(this._driver,t.element,t.keyframes,t.preStyleProps,t.postStyleProps,i,t.stretchStartingKeyframe);return this.timelines.push(r),i},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,i,r,o){var a=[];if(i&&a.push(this.element),t.length>0){t=(t=t.replace(M_,"."+this._enterClassName)).replace(F_,"."+this._leaveClassName);var s=this._driver.query(this.element,t,1!=n);0!==n&&(s=n<0?s.slice(s.length+n,s.length):s.slice(0,n)),a.push.apply(a,u(s))}return r||0!=a.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),a},t}(),V_=function(){function t(t,e,n,i){this._driver=t,this.element=e,this.startTime=n,this._elementTimelineStylesLookup=i,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(e),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(e,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(this._driver,e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEach((function(t){e._backFill[t]=e._globalTimelineStyles[t]||"*",e._currentKeyframe[t]="*"})),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,i){var r=this;e&&(this._previousKeyframe.easing=e);var o=i&&i.params||{},a=function(t,e){var n,i={};return t.forEach((function(t){"*"===t?(n=n||Object.keys(e)).forEach((function(t){i[t]="*"})):a_(t,!1,i)})),i}(t,this._globalTimelineStyles);Object.keys(a).forEach((function(t){var e=f_(a[t],o,n);r._pendingStyles[t]=e,r._localTimelineStyles.hasOwnProperty(t)||(r._backFill[t]=r._globalTimelineStyles.hasOwnProperty(t)?r._globalTimelineStyles[t]:"*"),r._updateStyle(t,e)}))},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach((function(n){t._currentKeyframe[n]=e[n]})),Object.keys(this._localTimelineStyles).forEach((function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])})))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach((function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)}))},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach((function(n){var i=e._styleSummary[n],r=t._styleSummary[n];(!i||r.time>i.time)&&e._updateStyle(n,r.value)}))},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,i=1===this._keyframes.size&&0===this.duration,r=[];this._keyframes.forEach((function(o,a){var s=a_(o,!0);Object.keys(s).forEach((function(t){var i=s[t];"!"==i?e.add(t):"*"==i&&n.add(t)})),i||(s.offset=a/t.duration),r.push(s)}));var o=e.size?m_(e.values()):[],a=n.size?m_(n.values()):[];if(i){var s=r[0],u=o_(s);s.offset=0,u.offset=1,r=[s,u]}return T_(this.element,r,o,a,this.duration,this.startTime,this.easing,!1)},t}(),z_=function(t){function e(e,n,i,r,o,a,s){void 0===s&&(s=!1);var u=t.call(this,e,n,a.delay)||this;return u.element=n,u.keyframes=i,u.preStyleProps=r,u.postStyleProps=o,u._stretchStartingKeyframe=s,u.timings={duration:a.duration,delay:a.delay,easing:a.easing},u}return r(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,i=e.duration,r=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],a=i+n,s=n/a,u=a_(t[0],!1);u.offset=0,o.push(u);var l=a_(t[0],!1);l.offset=H_(s),o.push(l);for(var c=t.length-1,d=1;d<=c;d++){var p=a_(t[d],!1);p.offset=H_((n+p.offset*i)/a),o.push(p)}i=a,n=0,r="",t=o}return T_(this.element,t,this.preStyleProps,this.postStyleProps,i,n,r,!0)},e}(V_);function H_(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}var U_=function(){return function(){}}(),q_=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return r(e,t),e.prototype.normalizePropertyName=function(t,e){return y_(t)},e.prototype.normalizeStyleValue=function(t,e,n,i){var r="",o=n.toString().trim();if(W_[e]&&0!==n&&"0"!==n)if("number"==typeof n)r="px";else{var a=n.match(/^[+-]?[\d\.]+([a-z]*)$/);a&&0==a[1].length&&i.push("Please provide a CSS unit value for "+t+":"+n)}return o+r},e}(U_),W_=function(){return t="width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(","),e={},t.forEach((function(t){return e[t]=!0})),e;var t,e}();function G_(t,e,n,i,r,o,a,s,u,l,c,d,p){return{type:0,element:t,triggerName:e,isRemovalTransition:r,fromState:n,fromStyles:o,toState:i,toStyles:a,timelines:s,queriedElements:u,preStyleProps:l,postStyleProps:c,totalTime:d,errors:p}}var Y_={},K_=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e,n,i){return function(t,e,n,i,r){return t.some((function(t){return t(e,n,i,r)}))}(this.ast.matchers,t,e,n,i)},t.prototype.buildStyles=function(t,e,n){var i=this._stateStyles["*"],r=this._stateStyles[t],o=i?i.buildStyles(e,n):{};return r?r.buildStyles(e,n):o},t.prototype.build=function(t,e,n,i,r,a,s,u,l,c){var d=[],p=this.ast.options&&this.ast.options.params||Y_,h=this.buildStyles(n,s&&s.params||Y_,d),f=u&&u.params||Y_,m=this.buildStyles(i,f,d),g=new Set,y=new Map,v=new Map,b="void"===i,_={params:o(o({},p),f)},w=c?[]:L_(t,e,this.ast.animation,r,a,h,m,_,l,d),C=0;if(w.forEach((function(t){C=Math.max(t.duration+t.delay,C)})),d.length)return G_(e,this._triggerName,n,i,b,h,m,[],[],y,v,C,d);w.forEach((function(t){var n=t.element,i=zb(y,n,{});t.preStyleProps.forEach((function(t){return i[t]=!0}));var r=zb(v,n,{});t.postStyleProps.forEach((function(t){return r[t]=!0})),n!==e&&g.add(n)}));var x=m_(g.values());return G_(e,this._triggerName,n,i,b,h,m,w,x,y,v,C)},t}(),Z_=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},i=o_(this.defaultParams);return Object.keys(t).forEach((function(e){var n=t[e];null!=n&&(i[e]=n)})),this.styles.styles.forEach((function(t){if("string"!=typeof t){var r=t;Object.keys(r).forEach((function(t){var o=r[t];o.length>1&&(o=f_(o,i,e)),n[t]=o}))}})),n},t}(),$_=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach((function(t){n.states[t.name]=new Z_(t.style,t.options&&t.options.params||{})})),X_(this.states,"true","1"),X_(this.states,"false","0"),e.transitions.forEach((function(e){n.transitionFactories.push(new K_(t,e,n.states))})),this.fallbackTransition=new K_(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e,n,i){return this.transitionFactories.find((function(r){return r.match(t,e,n,i)}))||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}();function X_(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}var Q_=new R_,J_=function(){function t(t,e,n){this.bodyNode=t,this._driver=e,this._normalizer=n,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],i=D_(this._driver,e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=i},t.prototype._buildPlayer=function(t,e,n){var i=t.element,r=jb(0,this._normalizer,0,t.keyframes,e,n);return this._driver.animate(i,r,t.duration,t.delay,t.easing,[],!0)},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var r,o=[],a=this._animations[t],s=new Map;if(a?(r=L_(this._driver,e,a,"ng-enter","ng-leave",{},{},n,Q_,o)).forEach((function(t){var e=zb(s,t.element,{});t.postStyleProps.forEach((function(t){return e[t]=null}))})):(o.push("The requested animation doesn't exist or has already been destroyed"),r=[]),o.length)throw new Error("Unable to create the animation due to the following errors: "+o.join("\n"));s.forEach((function(t,e){Object.keys(t).forEach((function(n){t[n]=i._driver.computeStyle(e,n,"*")}))}));var u=Lb(r.map((function(t){var e=s.get(t.element);return i._buildPlayer(t,{},e)})));return this._playersById[t]=u,u.onDestroy((function(){return i.destroy(t)})),this.players.push(u),u},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,i){var r=Vb(e,"","","");return Nb(this._getPlayer(t),n,r,i),function(){}},t.prototype.command=function(t,e,n,i){if("register"!=n)if("create"!=n){var r=this._getPlayer(t);switch(n){case"play":r.play();break;case"pause":r.pause();break;case"reset":r.reset();break;case"restart":r.restart();break;case"finish":r.finish();break;case"init":r.init();break;case"setPosition":r.setPosition(parseFloat(i[0]));break;case"destroy":this.destroy(t)}}else this.create(t,e,i[0]||{});else this.register(t,i[0])},t}(),tw=[],ew={namespaceId:"",setForRemoval:!1,setForMove:!1,hasAnimation:!1,removedBeforeQueried:!1},nw={namespaceId:"",setForMove:!1,setForRemoval:!1,hasAnimation:!1,removedBeforeQueried:!0},iw=function(){function t(t,e){void 0===e&&(e=""),this.namespaceId=e;var n,i=t&&t.hasOwnProperty("value");if(this.value=null!=(n=i?t.value:t)?n:null,i){var r=o_(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach((function(t){null==n[t]&&(n[t]=e[t])}))}},t}(),rw=new iw("void"),ow=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"+t,pw(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,i){var r,o=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if("start"!=(r=n)&&"done"!=r)throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var a=zb(this._elementListeners,t,[]),s={name:e,phase:n,callback:i};a.push(s);var u=zb(this._engine.statesByElement,t,{});return u.hasOwnProperty(e)||(pw(t,"ng-trigger"),pw(t,"ng-trigger-"+e),u[e]=rw),function(){o._engine.afterFlush((function(){var t=a.indexOf(s);t>=0&&a.splice(t,1),o._triggers[e]||delete u[e]}))}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,i){var r=this;void 0===i&&(i=!0);var o=this._getTrigger(e),a=new sw(this.id,e,t),s=this._engine.statesByElement.get(t);s||(pw(t,"ng-trigger"),pw(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,s={}));var u=s[e],l=new iw(n,this.id);if(!(n&&n.hasOwnProperty("value"))&&u&&l.absorbOptions(u.options),s[e]=l,u||(u=rw),"void"===l.value||u.value!==l.value){var c=zb(this._engine.playersByElement,t,[]);c.forEach((function(t){t.namespaceId==r.id&&t.triggerName==e&&t.queued&&t.destroy()}));var d=o.matchTransition(u.value,l.value,t,l.params),p=!1;if(!d){if(!i)return;d=o.fallbackTransition,p=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:d,fromState:u,toState:l,player:a,isFallbackTransition:p}),p||(pw(t,"ng-animate-queued"),a.onStart((function(){hw(t,"ng-animate-queued")}))),a.onDone((function(){var e=r.players.indexOf(a);e>=0&&r.players.splice(e,1);var n=r._engine.playersByElement.get(t);if(n){var i=n.indexOf(a);i>=0&&n.splice(i,1)}})),this.players.push(a),c.push(a),a}if(!function(t,e){var n=Object.keys(t),i=Object.keys(e);if(n.length!=i.length)return!1;for(var r=0;r=0){for(var i=!1,r=n;r>=0;r--)if(this.driver.containsElement(this._namespaceList[r].hostElement,e)){this._namespaceList.splice(r+1,0,t),i=!0;break}i||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var i=this._namespaceLookup[t];i&&i.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var i=this._fetchNamespace(t);this.afterFlush((function(){n.namespacesByHostElement.delete(i.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(i);e>=0&&n._namespaceList.splice(e,1)})),this.afterFlushAnimationsDone((function(){return i.destroy(e)}))}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.fetchNamespacesByElement=function(t){var e=new Set,n=this.statesByElement.get(t);if(n)for(var i=Object.keys(n),r=0;r=0&&this.collectedLeaveElements.splice(o,1)}if(t){var a=this._fetchNamespace(t);a&&a.insertNode(e,n)}i&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),pw(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),hw(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,i){if(uw(e)){var r=t?this._fetchNamespace(t):null;if(r?r.removeNode(e,i):this.markElementAsRemoved(t,e,!1,i),n){var o=this.namespacesByHostElement.get(e);o&&o.id!==t&&o.removeNode(e,i)}}else this._onRemovalComplete(e,i)},t.prototype.markElementAsRemoved=function(t,e,n,i){this.collectedLeaveElements.push(e),e.__ng_removed={namespaceId:t,setForRemoval:i,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,i,r){return uw(e)?this._fetchNamespace(t).listen(e,n,i,r):function(){}},t.prototype._buildInstruction=function(t,e,n,i,r){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,n,i,t.fromState.options,t.toState.options,e,r)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,".ng-trigger",!0);n.forEach((function(t){return e.destroyActiveAnimationsForElement(t)})),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,".ng-animating",!0)).forEach((function(t){return e.finishActiveQueriedAnimationOnElement(t)}))},t.prototype.destroyActiveAnimationsForElement=function(t){var e=this.playersByElement.get(t);e&&e.forEach((function(t){t.queued?t.markedForDestroy=!0:t.destroy()}))},t.prototype.finishActiveQueriedAnimationOnElement=function(t){var e=this.playersByQueriedElement.get(t);e&&e.forEach((function(t){return t.finish()}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise((function(e){if(t.players.length)return Lb(t.players).onDone((function(){return e()}));e()}))},t.prototype.processLeaveNode=function(t){var e=this,n=t.__ng_removed;if(n&&n.setForRemoval){if(t.__ng_removed=ew,n.namespaceId){this.destroyInnerAnimations(t);var i=this._fetchNamespace(n.namespaceId);i&&i.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach((function(t){e.markElementAsDisabled(t,!1)}))},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach((function(t,n){return e._balanceNamespaceList(t,n)})),this.newHostElements.clear()),this.totalAnimations&&this.collectedEnterElements.length)for(var i=0;i=0;D--)this._namespaceList[D].drainQueuedTransitions(e).forEach((function(t){var e=t.player,o=t.element;if(k.push(e),n.collectedEnterElements.length){var a=o.__ng_removed;if(a&&a.setForMove)return void e.destroy()}var u=!h||!n.driver.containsElement(h,o),p=C.get(o),f=g.get(o),m=n._buildInstruction(t,i,f,p,u);if(m.errors&&m.errors.length)S.push(m);else{if(u)return e.onStart((function(){return c_(o,m.fromStyles)})),e.onDestroy((function(){return l_(o,m.toStyles)})),void r.push(e);if(t.isFallbackTransition)return e.onStart((function(){return c_(o,m.fromStyles)})),e.onDestroy((function(){return l_(o,m.toStyles)})),void r.push(e);m.timelines.forEach((function(t){return t.stretchStartingKeyframe=!0})),i.append(o,m.timelines),s.push({instruction:m,player:e,element:o}),m.queriedElements.forEach((function(t){return zb(l,t,[]).push(e)})),m.preStyleProps.forEach((function(t,e){var n=Object.keys(t);if(n.length){var i=c.get(e);i||c.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}})),m.postStyleProps.forEach((function(t,e){var n=Object.keys(t),i=d.get(e);i||d.set(e,i=new Set),n.forEach((function(t){return i.add(t)}))}))}}));if(S.length){var E=[];S.forEach((function(t){E.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach((function(t){return E.push("- "+t+"\n")}))})),k.forEach((function(t){return t.destroy()})),this.reportError(E)}var A=new Map,O=new Map;s.forEach((function(t){var e=t.element;i.has(e)&&(O.set(e,e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,A))})),r.forEach((function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach((function(t){zb(A,e,[]).push(t),t.destroy()}))}));var I=v.filter((function(t){return mw(t,c,d)})),P=new Map;cw(P,this.driver,_,d,"*").forEach((function(t){mw(t,c,d)&&I.push(t)}));var T=new Map;m.forEach((function(t,e){cw(T,n.driver,new Set(t),c,"!")})),I.forEach((function(t){var e=P.get(t),n=T.get(t);P.set(t,o(o({},e),n))}));var R=[],M=[],F={};s.forEach((function(t){var e=t.element,o=t.player,s=t.instruction;if(i.has(e)){if(p.has(e))return o.onDestroy((function(){return l_(e,s.toStyles)})),o.disabled=!0,o.overrideTotalTime(s.totalTime),void r.push(o);var u=F;if(O.size>1){for(var l=e,c=[];l=l.parentNode;){var d=O.get(l);if(d){u=d;break}c.push(l)}c.forEach((function(t){return O.set(t,u)}))}var h=n._buildAnimation(o.namespaceId,s,A,a,T,P);if(o.setRealPlayer(h),u===F)R.push(o);else{var f=n.playersByElement.get(u);f&&f.length&&(o.parentPlayer=Lb(f)),r.push(o)}}else c_(e,s.fromStyles),o.onDestroy((function(){return l_(e,s.toStyles)})),M.push(o),p.has(e)&&r.push(o)})),M.forEach((function(t){var e=a.get(t.element);if(e&&e.length){var n=Lb(e);t.setRealPlayer(n)}})),r.forEach((function(t){t.parentPlayer?t.syncPlayerEvents(t.parentPlayer):t.destroy()}));for(var L=0;L0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new vy(t.duration,t.delay)},t}(),sw=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new vy,this._containsRealPlayer=!1,this._queuedCallbacks={},this.destroyed=!1,this.markedForDestroy=!1,this.disabled=!1,this.queued=!0,this.totalTime=0}return t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEach((function(n){e._queuedCallbacks[n].forEach((function(e){return Nb(t,n,void 0,e)}))})),this._queuedCallbacks={},this._containsRealPlayer=!0,this.overrideTotalTime(t.totalTime),this.queued=!1)},t.prototype.getRealPlayer=function(){return this._player},t.prototype.overrideTotalTime=function(t){this.totalTime=t},t.prototype.syncPlayerEvents=function(t){var e=this,n=this._player;n.triggerCallback&&t.onStart((function(){return n.triggerCallback("start")})),t.onDone((function(){return e.finish()})),t.onDestroy((function(){return e.destroy()}))},t.prototype._queueEvent=function(t,e){zb(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this.destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},t.prototype.triggerCallback=function(t){var e=this._player;e.triggerCallback&&e.triggerCallback(t)},t}();function uw(t){return t&&1===t.nodeType}function lw(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function cw(t,e,n,i,r){var o=[];n.forEach((function(t){return o.push(lw(t))}));var a=[];i.forEach((function(n,i){var o={};n.forEach((function(t){var n=o[t]=e.computeStyle(i,t,r);n&&0!=n.length||(i.__ng_removed=nw,a.push(i))})),t.set(i,o)}));var s=0;return n.forEach((function(t){return lw(t,o[s++])})),a}function dw(t,e){var n=new Map;if(t.forEach((function(t){return n.set(t,[])})),0==e.length)return n;var i=new Set(e),r=new Map;return e.forEach((function(t){var e=function t(e){if(!e)return 1;var o=r.get(e);if(o)return o;var a=e.parentNode;return o=n.has(a)?a:i.has(a)?1:t(a),r.set(e,o),o}(t);1!==e&&n.get(e).push(t)})),n}function pw(t,e){if(t.classList)t.classList.add(e);else{var n=t.$$classes;n||(n=t.$$classes={}),n[e]=!0}}function hw(t,e){if(t.classList)t.classList.remove(e);else{var n=t.$$classes;n&&delete n[e]}}function fw(t,e,n){Lb(n).onDone((function(){return t.processLeaveNode(e)}))}function mw(t,e,n){var i=n.get(t);if(!i)return!1;var r=e.get(t);return r?i.forEach((function(t){return r.add(t)})):e.set(t,i),n.delete(t),!0}var gw=function(){function t(t,e,n){var i=this;this.bodyNode=t,this._driver=e,this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new aw(t,e,n),this._timelineEngine=new J_(t,e,n),this._transitionEngine.onRemovalComplete=function(t,e){return i.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,i,r){var o=t+"-"+i,a=this._triggerCache[o];if(!a){var s=[],u=D_(this._driver,r,s);if(s.length)throw new Error('The animation trigger "'+i+'" has failed to build due to the following errors:\n - '+s.join("\n - "));a=function(t,e){return new $_(t,e)}(i,u),this._triggerCache[o]=a}this._transitionEngine.registerTrigger(e,i,a)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,i){this._transitionEngine.insertNode(t,e,n,i)},t.prototype.onRemove=function(t,e,n,i){this._transitionEngine.removeNode(t,e,i||!1,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,i){if("@"==n.charAt(0)){var r=s(Hb(n),2);this._timelineEngine.command(r[0],e,r[1],i)}else this._transitionEngine.trigger(t,e,n,i)},t.prototype.listen=function(t,e,n,i,r){if("@"==n.charAt(0)){var o=s(Hb(n),2);return this._timelineEngine.listen(o[0],e,o[1],r)}return this._transitionEngine.listen(t,e,n,i,r)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}();function yw(t,e){var n=null,i=null;return Array.isArray(e)&&e.length?(n=bw(e[0]),e.length>1&&(i=bw(e[e.length-1]))):e&&(n=bw(e)),n||i?new vw(t,n,i):null}var vw=function(){function t(e,n,i){this._element=e,this._startStyles=n,this._endStyles=i,this._state=0;var r=t.initialStylesByElement.get(e);r||t.initialStylesByElement.set(e,r={}),this._initialStyles=r}return t.prototype.start=function(){this._state<1&&(this._startStyles&&l_(this._element,this._startStyles,this._initialStyles),this._state=1)},t.prototype.finish=function(){this.start(),this._state<2&&(l_(this._element,this._initialStyles),this._endStyles&&(l_(this._element,this._endStyles),this._endStyles=null),this._state=1)},t.prototype.destroy=function(){this.finish(),this._state<3&&(t.initialStylesByElement.delete(this._element),this._startStyles&&(c_(this._element,this._startStyles),this._endStyles=null),this._endStyles&&(c_(this._element,this._endStyles),this._endStyles=null),l_(this._element,this._initialStyles),this._state=3)},t.initialStylesByElement=new WeakMap,t}();function bw(t){for(var e=null,n=Object.keys(t),i=0;i=this._delay&&n>=this._duration&&this.finish()},t.prototype.finish=function(){this._finished||(this._finished=!0,this._onDoneFn(),Sw(this._element,this._eventFn,!0))},t.prototype.destroy=function(){var t,e,n,i;this._destroyed||(this._destroyed=!0,this.finish(),e=this._name,(i=kw(n=Ew(t=this._element,"").split(","),e))>=0&&(n.splice(i,1),Dw(t,"",n.join(","))))},t}();function Cw(t,e,n){Dw(t,"PlayState",n,xw(t,e))}function xw(t,e){var n=Ew(t,"");return n.indexOf(",")>0?kw(n.split(","),e):kw([n],e)}function kw(t,e){for(var n=0;n=0)return n;return-1}function Sw(t,e,n){n?t.removeEventListener("animationend",e):t.addEventListener("animationend",e)}function Dw(t,e,n,i){var r="animation"+e;if(null!=i){var o=t.style[r];if(o.length){var a=o.split(",");a[i]=n,n=a.join(",")}}t.style[r]=n}function Ew(t,e){return t.style["animation"+e]}var Aw=function(){function t(t,e,n,i,r,o,a,s){this.element=t,this.keyframes=e,this.animationName=n,this._duration=i,this._delay=r,this._finalStyles=a,this._specialStyles=s,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this.currentSnapshot={},this._state=0,this.easing=o||"linear",this.totalTime=i+r,this._buildStyler()}return t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.destroy=function(){this.init(),this._state>=4||(this._state=4,this._styler.destroy(),this._flushStartFns(),this._flushDoneFns(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype._flushDoneFns=function(){this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[]},t.prototype._flushStartFns=function(){this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[]},t.prototype.finish=function(){this.init(),this._state>=3||(this._state=3,this._styler.finish(),this._flushStartFns(),this._specialStyles&&this._specialStyles.finish(),this._flushDoneFns())},t.prototype.setPosition=function(t){this._styler.setPosition(t)},t.prototype.getPosition=function(){return this._styler.getPosition()},t.prototype.hasStarted=function(){return this._state>=2},t.prototype.init=function(){this._state>=1||(this._state=1,this._styler.apply(),this._delay&&this._styler.pause())},t.prototype.play=function(){this.init(),this.hasStarted()||(this._flushStartFns(),this._state=2,this._specialStyles&&this._specialStyles.start()),this._styler.resume()},t.prototype.pause=function(){this.init(),this._styler.pause()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.reset=function(){this._styler.destroy(),this._buildStyler(),this._styler.apply()},t.prototype._buildStyler=function(){var t=this;this._styler=new ww(this.element,this.animationName,this._duration,this._delay,this.easing,"forwards",(function(){return t.finish()}))},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t.prototype.beforeDestroy=function(){var t=this;this.init();var e={};if(this.hasStarted()){var n=this._state>=3;Object.keys(this._finalStyles).forEach((function(i){"offset"!=i&&(e[i]=n?t._finalStyles[i]:w_(t.element,i))}))}this.currentSnapshot=e},t}(),Ow=function(t){function e(e,n){var i=t.call(this)||this;return i.element=e,i._startingStyles={},i.__initialized=!1,i._styles=Jb(n),i}return r(e,t),e.prototype.init=function(){var e=this;!this.__initialized&&this._startingStyles&&(this.__initialized=!0,Object.keys(this._styles).forEach((function(t){e._startingStyles[t]=e.element.style[t]})),t.prototype.init.call(this))},e.prototype.play=function(){var e=this;this._startingStyles&&(this.init(),Object.keys(this._styles).forEach((function(t){return e.element.style.setProperty(t,e._styles[t])})),t.prototype.play.call(this))},e.prototype.destroy=function(){var e=this;this._startingStyles&&(Object.keys(this._startingStyles).forEach((function(t){var n=e._startingStyles[t];n?e.element.style.setProperty(t,n):e.element.style.removeProperty(t)})),this._startingStyles=null,t.prototype.destroy.call(this))},e}(vy),Iw=function(){function t(){this._count=0,this._head=document.querySelector("head"),this._warningIssued=!1}return t.prototype.validateStyleProperty=function(t){return Zb(t)},t.prototype.matchesElement=function(t,e){return $b(t,e)},t.prototype.containsElement=function(t,e){return Xb(t,e)},t.prototype.query=function(t,e,n){return Qb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.buildKeyframeElement=function(t,e,n){n=n.map((function(t){return Jb(t)}));var i="@keyframes "+e+" {\n",r="";n.forEach((function(t){r=" ";var e=parseFloat(t.offset);i+=""+r+100*e+"% {\n",r+=" ",Object.keys(t).forEach((function(e){var n=t[e];switch(e){case"offset":return;case"easing":return void(n&&(i+=r+"animation-timing-function: "+n+";\n"));default:return void(i+=""+r+e+": "+n+";\n")}})),i+=r+"}\n"})),i+="}\n";var o=document.createElement("style");return o.innerHTML=i,o},t.prototype.animate=function(t,e,n,i,r,o,a){void 0===o&&(o=[]),a&&this._notifyFaultyScrubber();var s=o.filter((function(t){return t instanceof Aw})),u={};v_(n,i)&&s.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var l=function(t){var e={};return t&&(Array.isArray(t)?t:[t]).forEach((function(t){Object.keys(t).forEach((function(n){"offset"!=n&&"easing"!=n&&(e[n]=t[n])}))})),e}(e=b_(t,e,u));if(0==n)return new Ow(t,l);var c="gen_css_kf_"+this._count++,d=this.buildKeyframeElement(t,c,e);document.querySelector("head").appendChild(d);var p=yw(t,e),h=new Aw(t,e,c,n,i,r,l,p);return h.onDestroy((function(){var t;(t=d).parentNode.removeChild(t)})),h},t.prototype._notifyFaultyScrubber=function(){this._warningIssued||(console.warn("@angular/animations: please load the web-animations.js polyfill to allow programmatic access...\n"," visit http://bit.ly/IWukam to learn more about using the web-animation-js polyfill."),this._warningIssued=!0)},t}(),Pw=function(){function t(t,e,n,i){this.element=t,this.keyframes=e,this.options=n,this._specialStyles=i,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach((function(t){return t()})),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes;this.domPlayer=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this.domPlayer.addEventListener("finish",(function(){return t._onFinish()}))}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this.domPlayer.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach((function(t){return t()})),this._onStartFns=[],this._started=!0,this._specialStyles&&this._specialStyles.start()),this.domPlayer.play()},t.prototype.pause=function(){this.init(),this.domPlayer.pause()},t.prototype.finish=function(){this.init(),this._specialStyles&&this._specialStyles.finish(),this._onFinish(),this.domPlayer.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this.domPlayer&&this.domPlayer.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._specialStyles&&this._specialStyles.destroy(),this._onDestroyFns.forEach((function(t){return t()})),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this.domPlayer.currentTime=t*this.time},t.prototype.getPosition=function(){return this.domPlayer.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach((function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:w_(t.element,n))})),this.currentSnapshot=e},t.prototype.triggerCallback=function(t){var e="start"==t?this._onStartFns:this._onDoneFns;e.forEach((function(t){return t()})),e.length=0},t}(),Tw=function(){function t(){this._isNativeImpl=/\{\s*\[native\s+code\]\s*\}/.test(Rw().toString()),this._cssKeyframesDriver=new Iw}return t.prototype.validateStyleProperty=function(t){return Zb(t)},t.prototype.matchesElement=function(t,e){return $b(t,e)},t.prototype.containsElement=function(t,e){return Xb(t,e)},t.prototype.query=function(t,e,n){return Qb(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.overrideWebAnimationsSupport=function(t){this._isNativeImpl=t},t.prototype.animate=function(t,e,n,i,r,o,a){if(void 0===o&&(o=[]),!a&&!this._isNativeImpl)return this._cssKeyframesDriver.animate(t,e,n,i,r,o);var s={duration:n,delay:i,fill:0==i?"both":"forwards"};r&&(s.easing=r);var u={},l=o.filter((function(t){return t instanceof Pw}));v_(n,i)&&l.forEach((function(t){var e=t.currentSnapshot;Object.keys(e).forEach((function(t){return u[t]=e[t]}))}));var c=yw(t,e=b_(t,e=e.map((function(t){return a_(t,!1)})),u));return new Pw(t,e,s,c)},t}();function Rw(){return"undefined"!=typeof window&&void 0!==window.document&&Element.prototype.animate||{}}var Mw=function(t){function e(e,n){var i=t.call(this)||this;return i._nextAnimationId=0,i._renderer=e.createRenderer(n.body,{id:"0",encapsulation:ge.None,styles:[],data:{animation:[]}}),i}return r(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?cy(t):t;return jw(this._renderer,null,e,"register",[n]),new Fw(e,this._renderer)},e.\u0275fac=function(t){return new(t||e)(ee($s),ee(vc))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(oy),Fw=function(t){function e(e,n){var i=t.call(this)||this;return i._id=e,i._renderer=n,i}return r(e,t),e.prototype.create=function(t,e){return new Lw(this._id,t,e||{},this._renderer)},e}(ay),Lw=function(){function t(t,e,n,i){this.id=t,this.element=e,this._renderer=i,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n=0&&t0?n:t},t}(),cC=new Gt("mat-date-formats");try{sC="undefined"!=typeof Intl}catch(bB){sC=!1}var dC={long:["January","February","March","April","May","June","July","August","September","October","November","December"],short:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],narrow:["J","F","M","A","M","J","J","A","S","O","N","D"]},pC=mC(31,(function(t){return String(t+1)})),hC={long:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],short:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],narrow:["S","M","T","W","T","F","S"]},fC=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/;function mC(t,e){for(var n=Array(t),i=0;i11)throw Error('Invalid month index "'+e+'". Month index has to be between 0 and 11.');if(n<1)throw Error('Invalid date "'+n+'". Date has to be greater than 0.');var i=this._createDateWithOverflow(t,e,n);if(i.getMonth()!=e)throw Error('Invalid date "'+n+'" for month with index "'+e+'".');return i},e.prototype.today=function(){return new Date},e.prototype.parse=function(t){return"number"==typeof t?new Date(t):t?new Date(Date.parse(t)):null},e.prototype.format=function(t,e){if(!this.isValid(t))throw Error("NativeDateAdapter: Cannot format invalid date.");if(sC){this._clampDate&&(t.getFullYear()<1||t.getFullYear()>9999)&&(t=this.clone(t)).setFullYear(Math.max(1,Math.min(9999,t.getFullYear()))),e=o({},e,{timeZone:"utc"});var n=new Intl.DateTimeFormat(this.locale,e);return this._stripDirectionalityCharacters(this._format(n,t))}return this._stripDirectionalityCharacters(t.toDateString())},e.prototype.addCalendarYears=function(t,e){return this.addCalendarMonths(t,12*e)},e.prototype.addCalendarMonths=function(t,e){var n=this._createDateWithOverflow(this.getYear(t),this.getMonth(t)+e,this.getDate(t));return this.getMonth(n)!=((this.getMonth(t)+e)%12+12)%12&&(n=this._createDateWithOverflow(this.getYear(n),this.getMonth(n),0)),n},e.prototype.addCalendarDays=function(t,e){return this._createDateWithOverflow(this.getYear(t),this.getMonth(t),this.getDate(t)+e)},e.prototype.toIso8601=function(t){return[t.getUTCFullYear(),this._2digit(t.getUTCMonth()+1),this._2digit(t.getUTCDate())].join("-")},e.prototype.deserialize=function(e){if("string"==typeof e){if(!e)return null;if(fC.test(e)){var n=new Date(e);if(this.isValid(n))return n}}return t.prototype.deserialize.call(this,e)},e.prototype.isDateInstance=function(t){return t instanceof Date},e.prototype.isValid=function(t){return!isNaN(t.getTime())},e.prototype.invalid=function(){return new Date(NaN)},e.prototype._createDateWithOverflow=function(t,e,n){var i=new Date(t,e,n);return t>=0&&t<100&&i.setFullYear(this.getYear(i)-1900),i},e.prototype._2digit=function(t){return("00"+t).slice(-2)},e.prototype._stripDirectionalityCharacters=function(t){return t.replace(/[\u200e\u200f]/g,"")},e.prototype._format=function(t,e){var n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()));return t.format(n)},e.\u0275fac=function(t){return new(t||e)(ee(uC,8),ee(gv))},e.\u0275prov=yt({token:e,factory:function(t){return e.\u0275fac(t)}}),e}(lC),yC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:lC,useClass:gC}],imports:[[yv]]}),t}(),vC={parse:{dateInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"}}},bC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:cC,useValue:vC}],imports:[[yC]]}),t}(),_C=function(){function t(){}return t.prototype.isErrorState=function(t,e){return!!(t&&t.invalid&&(t.touched||e&&e.submitted))},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),wC=new Gt("MAT_HAMMER_OPTIONS"),CC=["longpress","slide","slidestart","slideend","slideright","slideleft"],xC={on:function(){},off:function(){}},kC=function(t){function e(e,n){var i=t.call(this)||this;return i._hammerOptions=e,i.events=CC,n&&n._checkHammerIsAvailable(),i}return r(e,t),e.prototype.buildHammer=function(t){var e="undefined"!=typeof window?window.Hammer:null;if(!e)return xC;var n=new e(t,this._hammerOptions||void 0),i=new e.Pan,r=new e.Swipe,o=new e.Press,a=this._createRecognizer(i,{event:"slide",threshold:0},r),s=this._createRecognizer(o,{event:"longpress",time:500});return i.recognizeWith(r),s.recognizeWith(a),n.add([r,o,i,a,s]),n},e.prototype._createRecognizer=function(t,e){for(var n=[],i=2;in+i?Math.max(0,r-i+e):n}var UC=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[TC,op,MC]]}),t}(),qC=new Gt("mat-label-global-options");function WC(t,e){}var GC=function(){return function(){this.role="dialog",this.panelClass="",this.hasBackdrop=!0,this.backdropClass="",this.disableClose=!1,this.width="",this.height="",this.maxWidth="80vw",this.data=null,this.ariaDescribedBy=null,this.ariaLabelledBy=null,this.ariaLabel=null,this.autoFocus=!0,this.restoreFocus=!0,this.closeOnNavigation=!0}}(),YC=[py("void, exit",dy({opacity:0,transform:"scale(0.7)"})),py("enter",dy({transform:"none"})),fy("* => enter",uy("150ms cubic-bezier(0, 0, 0.2, 1)",dy({transform:"none",opacity:1}))),fy("* => void, * => exit",uy("75ms cubic-bezier(0.4, 0.0, 0.2, 1)",dy({opacity:0})))],KC={dialogContainer:sy("dialogContainer",YC),slideDialog:sy("slideDialog",YC)};function ZC(){throw Error("Attempting to attach dialog content after content is already attached")}var $C=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._elementRef=e,a._focusTrapFactory=n,a._changeDetectorRef=i,a._document=r,a._config=o,a._elementFocusedBeforeDialogWasOpened=null,a._state="enter",a._animationStateChanged=new Zu,a._ariaLabelledBy=o.ariaLabelledBy||null,a}return r(e,t),e.prototype.attachComponentPortal=function(t){return this._portalOutlet.hasAttached()&&ZC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._portalOutlet.hasAttached()&&ZC(),this._savePreviouslyFocusedElement(),this._portalOutlet.attachTemplatePortal(t)},e.prototype._trapFocus=function(){var t=this._elementRef.nativeElement;if(this._focusTrap||(this._focusTrap=this._focusTrapFactory.create(t)),this._config.autoFocus)this._focusTrap.focusInitialElementWhenReady();else{var e=this._document.activeElement;e===t||t.contains(e)||t.focus()}},e.prototype._restoreFocus=function(){var t=this._elementFocusedBeforeDialogWasOpened;this._config.restoreFocus&&t&&"function"==typeof t.focus&&t.focus(),this._focusTrap&&this._focusTrap.destroy()},e.prototype._savePreviouslyFocusedElement=function(){var t=this;this._document&&(this._elementFocusedBeforeDialogWasOpened=this._document.activeElement,this._elementRef.nativeElement.focus&&Promise.resolve().then((function(){return t._elementRef.nativeElement.focus()})))},e.prototype._onAnimationDone=function(t){"enter"===t.toState?this._trapFocus():"exit"===t.toState&&this._restoreFocus(),this._animationStateChanged.emit(t)},e.prototype._onAnimationStart=function(t){this._animationStateChanged.emit(t)},e.prototype._startExitAnimation=function(){this._state="exit",this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(kb),Ia(Ko),Ia(vc,8),Ia(GC))},e.\u0275cmp=we({type:e,selectors:[["mat-dialog-container"]],viewQuery:function(t,e){var n;1&t&&sl(Ey,!0),2&t&&al(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:["tabindex","-1","aria-modal","true",1,"mat-dialog-container"],hostVars:6,hostBindings:function(t,e){1&t&&Wa("@dialogContainer.start",(function(t){return e._onAnimationStart(t)}))("@dialogContainer.done",(function(t){return e._onAnimationDone(t)})),2&t&&(Da("id",e._id)("role",e._config.role)("aria-labelledby",e._config.ariaLabel?null:e._ariaLabelledBy)("aria-label",e._config.ariaLabel)("aria-describedby",e._config.ariaDescribedBy||null),Ss("@dialogContainer",e._state))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,WC,0,0,"ng-template",0)},directives:[Ey],styles:[".mat-dialog-container{display:block;padding:24px;border-radius:4px;box-sizing:border-box;overflow:auto;outline:0;width:100%;height:100%;min-height:inherit;max-height:inherit}@media (-ms-high-contrast:active){.mat-dialog-container{outline:solid 1px}}.mat-dialog-content{display:block;margin:0 -24px;padding:0 24px;max-height:65vh;overflow:auto;-webkit-overflow-scrolling:touch}.mat-dialog-title{margin:0 0 20px;display:block}.mat-dialog-actions{padding:8px 0;display:flex;flex-wrap:wrap;min-height:52px;align-items:center;margin-bottom:-24px}.mat-dialog-actions[align=end]{justify-content:flex-end}.mat-dialog-actions[align=center]{justify-content:center}.mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:8px}[dir=rtl] .mat-dialog-actions .mat-button-base+.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[KC.dialogContainer]}}),e}(ky),XC=0,QC=function(){function t(t,e,n,i){var r=this;void 0===i&&(i="mat-dialog-"+XC++),this._overlayRef=t,this._containerInstance=e,this.id=i,this.disableClose=this._containerInstance._config.disableClose,this._afterOpened=new P,this._afterClosed=new P,this._beforeClosed=new P,this._state=0,e._id=i,e._animationStateChanged.pipe(Hp((function(t){return"done"===t.phaseName&&"enter"===t.toState})),Kh(1)).subscribe((function(){r._afterOpened.next(),r._afterOpened.complete()})),e._animationStateChanged.pipe(Hp((function(t){return"done"===t.phaseName&&"exit"===t.toState})),Kh(1)).subscribe((function(){clearTimeout(r._closeFallbackTimeout),r._overlayRef.dispose()})),t.detachments().subscribe((function(){r._beforeClosed.next(r._result),r._beforeClosed.complete(),r._afterClosed.next(r._result),r._afterClosed.complete(),r.componentInstance=null,r._overlayRef.dispose()})),t.keydownEvents().pipe(Hp((function(t){return 27===t.keyCode&&!r.disableClose&&!Py(t)}))).subscribe((function(t){t.preventDefault(),r.close()}))}return t.prototype.close=function(t){var e=this;this._result=t,this._containerInstance._animationStateChanged.pipe(Hp((function(t){return"start"===t.phaseName})),Kh(1)).subscribe((function(n){e._beforeClosed.next(t),e._beforeClosed.complete(),e._state=2,e._overlayRef.detachBackdrop(),e._closeFallbackTimeout=setTimeout((function(){e._overlayRef.dispose()}),n.totalTime+100)})),this._containerInstance._startExitAnimation(),this._state=1},t.prototype.afterOpened=function(){return this._afterOpened.asObservable()},t.prototype.afterClosed=function(){return this._afterClosed.asObservable()},t.prototype.beforeClosed=function(){return this._beforeClosed.asObservable()},t.prototype.backdropClick=function(){return this._overlayRef.backdropClick()},t.prototype.keydownEvents=function(){return this._overlayRef.keydownEvents()},t.prototype.updatePosition=function(t){var e=this._getPositionStrategy();return t&&(t.left||t.right)?t.left?e.left(t.left):e.right(t.right):e.centerHorizontally(),t&&(t.top||t.bottom)?t.top?e.top(t.top):e.bottom(t.bottom):e.centerVertically(),this._overlayRef.updatePosition(),this},t.prototype.updateSize=function(t,e){return void 0===t&&(t=""),void 0===e&&(e=""),this._getPositionStrategy().width(t).height(e),this._overlayRef.updatePosition(),this},t.prototype.addPanelClass=function(t){return this._overlayRef.addPanelClass(t),this},t.prototype.removePanelClass=function(t){return this._overlayRef.removePanelClass(t),this},t.prototype.afterOpen=function(){return this.afterOpened()},t.prototype.beforeClose=function(){return this.beforeClosed()},t.prototype.getState=function(){return this._state},t.prototype._getPositionStrategy=function(){return this._overlayRef.getConfig().positionStrategy},t}(),JC=new Gt("MatDialogData"),tx=new Gt("mat-dialog-default-options"),ex=new Gt("mat-dialog-scroll-strategy"),nx={provide:ex,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.block()}}},ix=function(){function t(t,e,n,i,r,o,a){var s=this;this._overlay=t,this._injector=e,this._location=n,this._defaultOptions=i,this._parentDialog=o,this._overlayContainer=a,this._openDialogsAtThisLevel=[],this._afterAllClosedAtThisLevel=new P,this._afterOpenedAtThisLevel=new P,this._ariaHiddenElements=new Map,this.afterAllClosed=Ph((function(){return s.openDialogs.length?s._afterAllClosed:s._afterAllClosed.pipe(of(void 0))})),this._scrollStrategy=r}return Object.defineProperty(t.prototype,"openDialogs",{get:function(){return this._parentDialog?this._parentDialog.openDialogs:this._openDialogsAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpened",{get:function(){return this._parentDialog?this._parentDialog.afterOpened:this._afterOpenedAtThisLevel},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"afterOpen",{get:function(){return this.afterOpened},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_afterAllClosed",{get:function(){var t=this._parentDialog;return t?t._afterAllClosed:this._afterAllClosedAtThisLevel},enumerable:!0,configurable:!0}),t.prototype.open=function(t,e){var n=this;if((e=function(t,e){return o({},e,t)}(e,this._defaultOptions||new GC)).id&&this.getDialogById(e.id))throw Error('Dialog with id "'+e.id+'" exists already. The dialog id must be unique.');var i=this._createOverlay(e),r=this._attachDialogContainer(i,e),a=this._attachDialogContent(t,r,i,e);return this.openDialogs.length||this._hideNonDialogContentFromAssistiveTechnology(),this.openDialogs.push(a),a.afterClosed().subscribe((function(){return n._removeOpenDialog(a)})),this.afterOpened.next(a),a},t.prototype.closeAll=function(){this._closeDialogs(this.openDialogs)},t.prototype.getDialogById=function(t){return this.openDialogs.find((function(e){return e.id===t}))},t.prototype.ngOnDestroy=function(){this._closeDialogs(this._openDialogsAtThisLevel),this._afterAllClosedAtThisLevel.complete(),this._afterOpenedAtThisLevel.complete()},t.prototype._createOverlay=function(t){var e=this._getOverlayConfig(t);return this._overlay.create(e)},t.prototype._getOverlayConfig=function(t){var e=new Lv({positionStrategy:this._overlay.position().global(),scrollStrategy:t.scrollStrategy||this._scrollStrategy(),panelClass:t.panelClass,hasBackdrop:t.hasBackdrop,direction:t.direction,minWidth:t.minWidth,minHeight:t.minHeight,maxWidth:t.maxWidth,maxHeight:t.maxHeight,disposeOnNavigation:t.closeOnNavigation});return t.backdropClass&&(e.backdropClass=t.backdropClass),e},t.prototype._attachDialogContainer=function(t,e){var n=new Iy(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[GC,e]])),i=new Cy($C,e.viewContainerRef,n,e.componentFactoryResolver);return t.attach(i).instance},t.prototype._attachDialogContent=function(t,e,n,i){var r=new QC(n,e,this._location,i.id);if(i.hasBackdrop&&n.backdropClick().subscribe((function(){r.disableClose||r.close()})),t instanceof vu)e.attachTemplatePortal(new xy(t,null,{$implicit:i.data,dialogRef:r}));else{var o=this._createInjector(i,r,e),a=e.attachComponentPortal(new Cy(t,void 0,o));r.componentInstance=a.instance}return r.updateSize(i.width,i.height).updatePosition(i.position),r},t.prototype._createInjector=function(t,e,n){var i=t&&t.viewContainerRef&&t.viewContainerRef.injector,r=new WeakMap([[$C,n],[JC,t.data],[QC,e]]);return!t.direction||i&&i.get(Ry,null)||r.set(Ry,{value:t.direction,change:Vp()}),new Iy(i||this._injector,r)},t.prototype._removeOpenDialog=function(t){var e=this.openDialogs.indexOf(t);e>-1&&(this.openDialogs.splice(e,1),this.openDialogs.length||(this._ariaHiddenElements.forEach((function(t,e){t?e.setAttribute("aria-hidden",t):e.removeAttribute("aria-hidden")})),this._ariaHiddenElements.clear(),this._afterAllClosed.next()))},t.prototype._hideNonDialogContentFromAssistiveTechnology=function(){var t=this._overlayContainer.getContainerElement();if(t.parentElement)for(var e=t.parentElement.children,n=e.length-1;n>-1;n--){var i=e[n];i===t||"SCRIPT"===i.nodeName||"STYLE"===i.nodeName||i.hasAttribute("aria-live")||(this._ariaHiddenElements.set(i,i.getAttribute("aria-hidden")),i.setAttribute("aria-hidden","true"))}},t.prototype._closeDialogs=function(t){for(var e=t.length;e--;)t[e].close()},t.\u0275fac=function(e){return new(e||t)(ee($v),ee(ca),ee(Rc,8),ee(tx,8),ee(ex),ee(t,12),ee(Hv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),rx=0,ox=function(){function t(t,e,n){this.dialogRef=t,this._elementRef=e,this._dialog=n,this.type="button"}return t.prototype.ngOnInit=function(){this.dialogRef||(this.dialogRef=lx(this._elementRef,this._dialog.openDialogs))},t.prototype.ngOnChanges=function(t){var e=t._matDialogClose||t._matDialogCloseResult;e&&(this.dialogResult=e.currentValue)},t.\u0275fac=function(e){return new(e||t)(Ia(QC,8),Ia(Ks),Ia(ix))},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-close",""],["","matDialogClose",""]],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e.dialogRef.close(e.dialogResult)})),2&t&&Da("aria-label",e.ariaLabel||null)("type",e.type)},inputs:{type:"type",dialogResult:["mat-dialog-close","dialogResult"],ariaLabel:["aria-label","ariaLabel"],_matDialogClose:["matDialogClose","_matDialogClose"]},exportAs:["matDialogClose"],features:[Rs()]}),t}(),ax=function(){function t(t,e,n){this._dialogRef=t,this._elementRef=e,this._dialog=n,this.id="mat-dialog-title-"+rx++}return t.prototype.ngOnInit=function(){var t=this;this._dialogRef||(this._dialogRef=lx(this._elementRef,this._dialog.openDialogs)),this._dialogRef&&Promise.resolve().then((function(){var e=t._dialogRef._containerInstance;e&&!e._ariaLabelledBy&&(e._ariaLabelledBy=t.id)}))},t.\u0275fac=function(e){return new(e||t)(Ia(QC,8),Ia(Ks),Ia(ix))},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-title",""],["","matDialogTitle",""]],hostAttrs:[1,"mat-dialog-title"],hostVars:1,hostBindings:function(t,e){2&t&&ks("id",e.id)},inputs:{id:"id"},exportAs:["matDialogTitle"]}),t}(),sx=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-content",""],["mat-dialog-content"],["","matDialogContent",""]],hostAttrs:[1,"mat-dialog-content"]}),t}(),ux=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","mat-dialog-actions",""],["mat-dialog-actions"],["","matDialogActions",""]],hostAttrs:[1,"mat-dialog-actions"]}),t}();function lx(t,e){for(var n=t.nativeElement.parentElement;n&&!n.classList.contains("mat-dialog-container");)n=n.parentElement;return n?e.find((function(t){return t.id===n.id})):null}var cx=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[ix,nx],imports:[[op,nb,Oy,tC],tC]}),t}();function dx(t){var e=t.subscriber,n=t.counter,i=t.period;e.next(n),this.schedule({subscriber:e,counter:n+1,period:i},i)}var px=["mat-button",""],hx=["*"],fx=["mat-button","mat-flat-button","mat-icon-button","mat-raised-button","mat-stroked-button","mat-mini-fab","mat-fab"],mx=function(t){function e(e,n,i){var r=t.call(this,e)||this;r._focusMonitor=n,r._animationMode=i,r.isRoundButton=r._hasHostAttributes("mat-fab","mat-mini-fab"),r.isIconButton=r._hasHostAttributes("mat-icon-button");for(var o=0,a=fx;o*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(nC(eC(iC(function(){return function(t){this._elementRef=t}}())))),gx=function(t){function e(e,n,i){return t.call(this,n,e,i)||this}return r(e,t),e.prototype._haltDisabledEvents=function(t){this.disabled&&(t.preventDefault(),t.stopImmediatePropagation())},e.\u0275fac=function(t){return new(t||e)(Ia(Pb),Ia(Ks),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["a","mat-button",""],["a","mat-raised-button",""],["a","mat-icon-button",""],["a","mat-fab",""],["a","mat-mini-fab",""],["a","mat-stroked-button",""],["a","mat-flat-button",""]],hostVars:5,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._haltDisabledEvents(t)})),2&t&&(Da("tabindex",e.disabled?-1:e.tabIndex||0)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString()),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex"},exportAs:["matButton","matAnchor"],features:[Es],attrs:px,ngContentSelectors:hx,decls:4,vars:5,consts:[[1,"mat-button-wrapper"],["matRipple","",1,"mat-button-ripple",3,"matRippleDisabled","matRippleCentered","matRippleTrigger"],[1,"mat-button-focus-overlay"]],template:function(t,e){1&t&&(Xa(),Fa(0,"span",0),Qa(1),La(),ja(2,"div",1),ja(3,"div",2)),2&t&&(vr(2),ls("mat-button-ripple-round",e.isRoundButton||e.isIconButton),Ra("matRippleDisabled",e._isRippleDisabled())("matRippleCentered",e.isIconButton)("matRippleTrigger",e._getHostElement()))},directives:[PC],styles:[".mat-button .mat-button-focus-overlay,.mat-icon-button .mat-button-focus-overlay{opacity:0}.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:.04}@media (hover:none){.mat-button:hover .mat-button-focus-overlay,.mat-stroked-button:hover .mat-button-focus-overlay{opacity:0}}.mat-button,.mat-flat-button,.mat-icon-button,.mat-stroked-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-button[disabled],.mat-flat-button[disabled],.mat-icon-button[disabled],.mat-stroked-button[disabled]{cursor:default}.mat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-button.cdk-program-focused .mat-button-focus-overlay,.mat-flat-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-flat-button.cdk-program-focused .mat-button-focus-overlay,.mat-icon-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-icon-button.cdk-program-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-stroked-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-button::-moz-focus-inner,.mat-flat-button::-moz-focus-inner,.mat-icon-button::-moz-focus-inner,.mat-stroked-button::-moz-focus-inner{border:0}.mat-raised-button{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-raised-button::-moz-focus-inner{border:0}.mat-raised-button[disabled]{cursor:default}.mat-raised-button.cdk-keyboard-focused .mat-button-focus-overlay,.mat-raised-button.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-raised-button::-moz-focus-inner{border:0}._mat-animation-noopable.mat-raised-button{transition:none;animation:none}.mat-stroked-button{border:1px solid currentColor;padding:0 15px;line-height:34px}.mat-stroked-button .mat-button-focus-overlay,.mat-stroked-button .mat-button-ripple.mat-ripple{top:-1px;left:-1px;right:-1px;bottom:-1px}.mat-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:56px;height:56px;padding:0;flex-shrink:0}.mat-fab::-moz-focus-inner{border:0}.mat-fab[disabled]{cursor:default}.mat-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-fab{transition:none;animation:none}.mat-fab .mat-button-wrapper{padding:16px 0;display:inline-block;line-height:24px}.mat-mini-fab{box-sizing:border-box;position:relative;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;display:inline-block;white-space:nowrap;text-decoration:none;vertical-align:baseline;text-align:center;margin:0;min-width:64px;line-height:36px;padding:0 16px;border-radius:4px;overflow:visible;transform:translate3d(0,0,0);transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);min-width:0;border-radius:50%;width:40px;height:40px;padding:0;flex-shrink:0}.mat-mini-fab::-moz-focus-inner{border:0}.mat-mini-fab[disabled]{cursor:default}.mat-mini-fab.cdk-keyboard-focused .mat-button-focus-overlay,.mat-mini-fab.cdk-program-focused .mat-button-focus-overlay{opacity:.12}.mat-mini-fab::-moz-focus-inner{border:0}._mat-animation-noopable.mat-mini-fab{transition:none;animation:none}.mat-mini-fab .mat-button-wrapper{padding:8px 0;display:inline-block;line-height:24px}.mat-icon-button{padding:0;min-width:0;width:40px;height:40px;flex-shrink:0;line-height:40px;border-radius:50%}.mat-icon-button .mat-icon,.mat-icon-button i{line-height:24px}.mat-button-focus-overlay,.mat-button-ripple.mat-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none;border-radius:inherit}.mat-button-ripple.mat-ripple:not(:empty){transform:translateZ(0)}.mat-button-focus-overlay{opacity:0;transition:opacity .2s cubic-bezier(.35,0,.25,1),background-color .2s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable .mat-button-focus-overlay{transition:none}@media (-ms-high-contrast:active){.mat-button-focus-overlay{background-color:#fff}}@media (-ms-high-contrast:black-on-white){.mat-button-focus-overlay{background-color:#000}}.mat-button-ripple-round{border-radius:50%;z-index:1}.mat-button .mat-button-wrapper>*,.mat-fab .mat-button-wrapper>*,.mat-flat-button .mat-button-wrapper>*,.mat-icon-button .mat-button-wrapper>*,.mat-mini-fab .mat-button-wrapper>*,.mat-raised-button .mat-button-wrapper>*,.mat-stroked-button .mat-button-wrapper>*{vertical-align:middle}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button{display:block;font-size:inherit;width:2.5em;height:2.5em}@media (-ms-high-contrast:active){.mat-button,.mat-fab,.mat-flat-button,.mat-icon-button,.mat-mini-fab,.mat-raised-button{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(mx),yx=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,TC,tC],tC]}),t}(),vx=function(){function t(t){this.el=t}return t.prototype.ngOnInit=function(){this.el.nativeElement.innerHTML=django.gettext(this.el.nativeElement.innerHTML.trim())},t.\u0275fac=function(e){return new(e||t)(Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["uds-translate"]]}),t}(),bx=function(){function t(t){this.sanitizer=t}return t.prototype.transform=function(t,e){return this.sanitizer.bypassSecurityTrustHtml(t)},t.\u0275fac=function(e){return new(e||t)(Ia(Fp))},t.\u0275pipe=Ae({name:"safeHtml",type:t,pure:!0}),t}();function _x(t,e){if(1&t){var n=za();Fa(0,"button",4),qa("click",(function(t){return Ue(n),Za().close()})),Fa(1,"uds-translate"),_s(2,"Close"),La(),_s(3),La()}if(2&t){var i=Za();vr(3),ws(i.extra)}}function wx(t,e){if(1&t){var n=za();Fa(0,"button",5),qa("click",(function(t){return Ue(n),Za().yes()})),Fa(1,"uds-translate"),_s(2,"Yes"),La(),La()}2&t&&Ra("color",Za().yesColor)}function Cx(t,e){if(1&t){var n=za();Fa(0,"button",5),qa("click",(function(t){return Ue(n),Za().no()})),Fa(1,"uds-translate"),_s(2,"No"),La(),La()}2&t&&Ra("color",Za().noColor)}var xx=function(t){return t[t.alert=0]="alert",t[t.yesno=1]="yesno",t}({}),kx=function(){function t(t,e){var n=this;this.dialogRef=t,this.data=e,this.yesColor="primary",this.noColor="warn",this.subscription=null,this.resetCallbacks(),this.yesno=new D((function(t){n.yes=function(){t.next(!0),t.complete()},n.no=function(){t.next(!1),t.complete()},n.close=function(){n.doClose(),t.next(!1),t.complete()};var e=n;return{unsubscribe:function(){e.resetCallbacks()}}}))}return t.prototype.resetCallbacks=function(){var t=this;this.yes=this.no=function(){t.close()},this.close=function(){t.doClose()}},t.prototype.closed=function(){null!==this.subscription&&this.subscription.unsubscribe()},t.prototype.doClose=function(){this.dialogRef.close()},t.prototype.setExtra=function(t){this.extra=" ("+Math.floor(t/1e3)+" "+django.gettext("seconds")+") "},t.prototype.initAlert=function(){var t,e,n=this;this.data.autoclose>0&&(this.dialogRef.afterClosed().subscribe((function(t){n.closed()})),this.setExtra(this.data.autoclose),this.subscription=(t=1e3,void 0===t&&(t=0),void 0===e&&(e=Jy),(!nv(t)||t<0)&&(t=0),e&&"function"==typeof e.schedule||(e=Jy),new D((function(n){return n.add(e.schedule(dx,t,{subscriber:n,counter:0,period:t})),n}))).subscribe((function(t){var e=n.data.autoclose-1e3*(t+1);n.setExtra(e),e<=0&&n.close()})))},t.prototype.initYesNo=function(){},t.prototype.ngOnInit=function(){!0===this.data.warnOnYes&&(this.yesColor="warn",this.noColor="primary"),this.data.type===xx.yesno?this.initYesNo():this.initAlert()},t.\u0275fac=function(e){return new(e||t)(Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-modal"]],decls:8,vars:9,consts:[["mat-dialog-title","",3,"innerHtml"],[3,"innerHTML"],["mat-raised-button","","mat-dialog-close","",3,"click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"color","click",4,"ngIf"],["mat-raised-button","","mat-dialog-close","",3,"click"],["mat-raised-button","","mat-dialog-close","",3,"color","click"]],template:function(t,e){1&t&&(ja(0,"h4",0),qu(1,"safeHtml"),ja(2,"mat-dialog-content",1),qu(3,"safeHtml"),Fa(4,"mat-dialog-actions"),Aa(5,_x,4,1,"button",2),Aa(6,wx,3,1,"button",3),Aa(7,Cx,3,1,"button",3),La()),2&t&&(Ra("innerHtml",Wu(1,5,e.data.title),Ui),vr(2),Ra("innerHTML",Wu(3,7,e.data.body),Ui),vr(3),Ra("ngIf",0==e.data.type),vr(1),Ra("ngIf",1==e.data.type),vr(1),Ra("ngIf",1==e.data.type))},directives:[ax,sx,ux,Sd,mx,ox,vx],pipes:[bx],styles:[".uds-modal-footer[_ngcontent-%COMP%]{display:flex;justify-content:left}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),Sx=function(t){return t.TEXT="text",t.TEXTBOX="textbox",t.NUMERIC="numeric",t.PASSWORD="password",t.HIDDEN="hidden",t.CHOICE="choice",t.MULTI_CHOICE="multichoice",t.EDITLIST="editlist",t.CHECKBOX="checkbox",t.IMAGECHOICE="imgchoice",t.DATE="date",t.DATETIME="datetime",t.TAGLIST="taglist",t}({}),Dx=function(){function t(){}return t.locateChoice=function(t,e){var n=e.gui.values.find((function(e){return e.id===t}));if(void 0===n)try{n=e.gui.values[0]}catch(i){n={id:"",img:"",text:""}}return n},t}();function Ex(t,e){1&t&&Qa(0)}var Ax=["*"];function Ox(t,e){}var Ix=function(t){return{animationDuration:t}},Px=function(t,e){return{value:t,params:e}},Tx=["tabBodyWrapper"],Rx=["tabHeader"];function Mx(t,e){}function Fx(t,e){1&t&&Aa(0,Mx,0,0,"ng-template",9),2&t&&Ra("cdkPortalOutlet",Za().$implicit.templateLabel)}function Lx(t,e){1&t&&_s(0),2&t&&ws(Za().$implicit.textLabel)}function jx(t,e){if(1&t){var n=za();Fa(0,"div",6),qa("click",(function(t){Ue(n);var i=e.$implicit,r=e.index,o=Za(),a=Oa(1);return o._handleClick(i,a,r)})),Fa(1,"div",7),Aa(2,Fx,1,1,"ng-template",8),Aa(3,Lx,1,1,"ng-template",8),La(),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za();ls("mat-tab-label-active",o.selectedIndex==r),Ra("id",o._getTabLabelId(r))("disabled",i.disabled)("matRippleDisabled",i.disabled||o.disableRipple),Da("tabIndex",o._getTabIndex(i,r))("aria-posinset",r+1)("aria-setsize",o._tabs.length)("aria-controls",o._getTabContentId(r))("aria-selected",o.selectedIndex==r)("aria-label",i.ariaLabel||null)("aria-labelledby",!i.ariaLabel&&i.ariaLabelledby?i.ariaLabelledby:null),vr(2),Ra("ngIf",i.templateLabel),vr(1),Ra("ngIf",!i.templateLabel)}}function Nx(t,e){if(1&t){var n=za();Fa(0,"mat-tab-body",10),qa("_onCentered",(function(t){return Ue(n),Za()._removeTabBodyWrapperHeight()}))("_onCentering",(function(t){return Ue(n),Za()._setTabBodyWrapperHeight(t)})),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za();ls("mat-tab-body-active",o.selectedIndex==r),Ra("id",o._getTabContentId(r))("content",i.content)("position",i.position)("origin",i.origin)("animationDuration",o.animationDuration),Da("aria-labelledby",o._getTabLabelId(r))}}var Bx=["tabListContainer"],Vx=["tabList"],zx=["nextPaginator"],Hx=["previousPaginator"],Ux=["mat-tab-nav-bar",""],qx=new Gt("MatInkBarPositioner",{providedIn:"root",factory:function(){return function(t){return{left:t?(t.offsetLeft||0)+"px":"0",width:t?(t.offsetWidth||0)+"px":"0"}}}}),Wx=function(){function t(t,e,n,i){this._elementRef=t,this._ngZone=e,this._inkBarPositioner=n,this._animationMode=i}return t.prototype.alignToElement=function(t){var e=this;this.show(),"undefined"!=typeof requestAnimationFrame?this._ngZone.runOutsideAngular((function(){requestAnimationFrame((function(){return e._setStyles(t)}))})):this._setStyles(t)},t.prototype.show=function(){this._elementRef.nativeElement.style.visibility="visible"},t.prototype.hide=function(){this._elementRef.nativeElement.style.visibility="hidden"},t.prototype._setStyles=function(t){var e=this._inkBarPositioner(t),n=this._elementRef.nativeElement;n.style.left=e.left,n.style.width=e.width},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl),Ia(qx),Ia(Hw,8))},t.\u0275dir=Ee({type:t,selectors:[["mat-ink-bar"]],hostAttrs:[1,"mat-ink-bar"],hostVars:2,hostBindings:function(t,e){2&t&&ls("_mat-animation-noopable","NoopAnimations"===e._animationMode)}}),t}(),Gx=function(){function t(t){this.template=t}return t.\u0275fac=function(e){return new(e||t)(Ia(vu))},t.\u0275dir=Ee({type:t,selectors:[["","matTabContent",""]]}),t}(),Yx=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","mat-tab-label",""],["","matTabLabel",""]],features:[Es]});var n=ei(e);return e}(Dy),Kx=function(t){function e(e){var n=t.call(this)||this;return n._viewContainerRef=e,n.textLabel="",n._contentPortal=null,n._stateChanges=new P,n.position=null,n.origin=null,n.isActive=!1,n}return r(e,t),Object.defineProperty(e.prototype,"content",{get:function(){return this._contentPortal},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){(t.hasOwnProperty("textLabel")||t.hasOwnProperty("disabled"))&&this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.prototype.ngOnInit=function(){this._contentPortal=new xy(this._explicitContent||this._implicitContent,this._viewContainerRef)},e.\u0275fac=function(t){return new(t||e)(Ia(_u))},e.\u0275cmp=we({type:e,selectors:[["mat-tab"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,Yx,!0),dl(n,Gx,!0,vu)),2&t&&(al(i=hl())&&(e.templateLabel=i.first),al(i=hl())&&(e._explicitContent=i.first))},viewQuery:function(t,e){var n;1&t&&sl(vu,!0),2&t&&al(n=hl())&&(e._implicitContent=n.first)},inputs:{disabled:"disabled",textLabel:["label","textLabel"],ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},exportAs:["matTab"],features:[Es,Rs()],ngContentSelectors:Ax,decls:1,vars:0,template:function(t,e){1&t&&(Xa(),Aa(0,Ex,1,0,"ng-template"))},encapsulation:2,changeDetection:0}),e}(eC(function(){return function(){}}())),Zx={translateTab:sy("translateTab",[py("center, void, left-origin-center, right-origin-center",dy({transform:"none"})),py("left",dy({transform:"translate3d(-100%, 0, 0)",minHeight:"1px"})),py("right",dy({transform:"translate3d(100%, 0, 0)",minHeight:"1px"})),fy("* => left, * => right, left => center, right => center",uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")),fy("void => left-origin-center",[dy({transform:"translate3d(-100%, 0, 0)"}),uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")]),fy("void => right-origin-center",[dy({transform:"translate3d(100%, 0, 0)"}),uy("{{animationDuration}} cubic-bezier(0.35, 0, 0.25, 1)")])])},$x=function(t){function e(e,n,i){var r=t.call(this,e,n)||this;return r._host=i,r._centeringSub=h.EMPTY,r._leavingSub=h.EMPTY,r}return r(e,t),e.prototype.ngOnInit=function(){var e=this;t.prototype.ngOnInit.call(this),this._centeringSub=this._host._beforeCentering.pipe(of(this._host._isCenterPosition(this._host._position))).subscribe((function(t){t&&!e.hasAttached()&&e.attach(e._host._content)})),this._leavingSub=this._host._afterLeavingCenter.subscribe((function(){e.detach()}))},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._centeringSub.unsubscribe(),this._leavingSub.unsubscribe()},e.\u0275fac=function(t){return new(t||e)(Ia(Ys),Ia(_u),Ia(It((function(){return Xx}))))},e.\u0275dir=Ee({type:e,selectors:[["","matTabBodyHost",""]],features:[Es]}),e}(Ey),Xx=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ry,8),Ia(Ko))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-body"]],viewQuery:function(t,e){var n;1&t&&ul(Ay,!0),2&t&&al(n=hl())&&(e._portalHost=n.first)},hostAttrs:[1,"mat-tab-body"],features:[Es],decls:3,vars:6,consts:[[1,"mat-tab-body-content"],["content",""],["matTabBodyHost",""]],template:function(t,e){1&t&&(Fa(0,"div",0,1),qa("@translateTab.start",(function(t){return e._onTranslateTabStarted(t)}))("@translateTab.done",(function(t){return e._translateTabComplete.next(t)})),Aa(2,Ox,0,0,"ng-template",2),La()),2&t&&Ra("@translateTab",zu(3,Px,e._position,Vu(1,Ix,e.animationDuration)))},directives:[$x],styles:[".mat-tab-body-content{height:100%;overflow:auto}.mat-tab-group-dynamic-height .mat-tab-body-content{overflow:hidden}"],encapsulation:2,data:{animation:[Zx.translateTab]},changeDetection:0}),e}(function(){function t(t,e,n){var i=this;this._elementRef=t,this._dir=e,this._dirChangeSubscription=h.EMPTY,this._translateTabComplete=new P,this._onCentering=new Zu,this._beforeCentering=new Zu,this._afterLeavingCenter=new Zu,this._onCentered=new Zu(!0),this.animationDuration="500ms",e&&(this._dirChangeSubscription=e.change.subscribe((function(t){i._computePositionAnimationState(t),n.markForCheck()}))),this._translateTabComplete.pipe($y((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){i._isCenterPosition(t.toState)&&i._isCenterPosition(i._position)&&i._onCentered.emit(),i._isCenterPosition(t.fromState)&&!i._isCenterPosition(i._position)&&i._afterLeavingCenter.emit()}))}return Object.defineProperty(t.prototype,"position",{set:function(t){this._positionIndex=t,this._computePositionAnimationState()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){"center"==this._position&&null!=this.origin&&(this._position=this._computePositionFromOrigin())},t.prototype.ngOnDestroy=function(){this._dirChangeSubscription.unsubscribe(),this._translateTabComplete.complete()},t.prototype._onTranslateTabStarted=function(t){var e=this._isCenterPosition(t.toState);this._beforeCentering.emit(e),e&&this._onCentering.emit(this._elementRef.nativeElement.clientHeight)},t.prototype._getLayoutDirection=function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},t.prototype._isCenterPosition=function(t){return"center"==t||"left-origin-center"==t||"right-origin-center"==t},t.prototype._computePositionAnimationState=function(t){void 0===t&&(t=this._getLayoutDirection()),this._position=this._positionIndex<0?"ltr"==t?"left":"right":this._positionIndex>0?"ltr"==t?"right":"left":"center"},t.prototype._computePositionFromOrigin=function(){var t=this._getLayoutDirection();return"ltr"==t&&this.origin<=0||"rtl"==t&&this.origin>0?"left-origin-center":"right-origin-center"},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Ry,8),Ia(Ko))},t.\u0275dir=Ee({type:t,selectors:[["do-not-use-abstract-mat-tab-body-base"]],inputs:{animationDuration:"animationDuration",position:"position",_content:["content","_content"],origin:"origin"},outputs:{_onCentering:"_onCentering",_beforeCentering:"_beforeCentering",_afterLeavingCenter:"_afterLeavingCenter",_onCentered:"_onCentered"}}),t}()),Qx=0,Jx=function(){return function(){}}(),tk=new Gt("MAT_TABS_CONFIG"),ek=function(t){function e(e,n,i,r){return t.call(this,e,n,i,r)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(tk,8),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-group"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,Kx,!1),2&t&&al(i=hl())&&(e._tabs=i)},viewQuery:function(t,e){var n;1&t&&(ul(Tx,!0),ul(Rx,!0)),2&t&&(al(n=hl())&&(e._tabBodyWrapper=n.first),al(n=hl())&&(e._tabHeader=n.first))},hostAttrs:[1,"mat-tab-group"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-tab-group-dynamic-height",e.dynamicHeight)("mat-tab-group-inverted-header","below"===e.headerPosition)},inputs:{color:"color",disableRipple:"disableRipple"},exportAs:["matTabGroup"],features:[Es],decls:6,vars:6,consts:[[3,"selectedIndex","disableRipple","indexFocused","selectFocusedIndex"],["tabHeader",""],["class","mat-tab-label","role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",3,"id","mat-tab-label-active","disabled","matRippleDisabled","click",4,"ngFor","ngForOf"],[1,"mat-tab-body-wrapper"],["tabBodyWrapper",""],["role","tabpanel",3,"id","mat-tab-body-active","content","position","origin","animationDuration","_onCentered","_onCentering",4,"ngFor","ngForOf"],["role","tab","matTabLabelWrapper","","mat-ripple","","cdkMonitorElementFocus","",1,"mat-tab-label",3,"id","disabled","matRippleDisabled","click"],[1,"mat-tab-label-content"],[3,"ngIf"],[3,"cdkPortalOutlet"],["role","tabpanel",3,"id","content","position","origin","animationDuration","_onCentered","_onCentering"]],template:function(t,e){1&t&&(Fa(0,"mat-tab-header",0,1),qa("indexFocused",(function(t){return e._focusChanged(t)}))("selectFocusedIndex",(function(t){return e.selectedIndex=t})),Aa(2,jx,4,14,"div",2),La(),Fa(3,"div",3,4),Aa(5,Nx,1,8,"mat-tab-body",5),La()),2&t&&(Ra("selectedIndex",e.selectedIndex)("disableRipple",e.disableRipple),vr(2),Ra("ngForOf",e._tabs),vr(1),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode),vr(2),Ra("ngForOf",e._tabs))},directives:function(){return[ok,xd,nk,PC,Tb,Sd,Ey,Xx]},styles:[".mat-tab-group{display:flex;flex-direction:column}.mat-tab-group.mat-tab-group-inverted-header{flex-direction:column-reverse}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-high-contrast:active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media (-ms-high-contrast:active){.mat-tab-label{opacity:1}}@media (max-width:599px){.mat-tab-label{padding:0 12px}}@media (max-width:959px){.mat-tab-label{padding:0 12px}}.mat-tab-group[mat-stretch-tabs]>.mat-tab-header .mat-tab-label{flex-basis:0;flex-grow:1}.mat-tab-body-wrapper{position:relative;overflow:hidden;display:flex;transition:height .5s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable.mat-tab-body-wrapper{transition:none;animation:none}.mat-tab-body{top:0;left:0;right:0;bottom:0;position:absolute;display:block;overflow:hidden;flex-basis:100%}.mat-tab-body.mat-tab-body-active{position:relative;overflow-x:hidden;overflow-y:auto;z-index:1;flex-grow:1}.mat-tab-group.mat-tab-group-dynamic-height .mat-tab-body.mat-tab-body-active{overflow-y:hidden}"],encapsulation:2,changeDetection:0}),e}(function(t){function e(e,n,i,r){var o=t.call(this,e)||this;return o._changeDetectorRef=n,o._animationMode=r,o._indexToSelect=0,o._tabBodyWrapperHeight=0,o._tabsSubscription=h.EMPTY,o._tabLabelSubscription=h.EMPTY,o._dynamicHeight=!1,o._selectedIndex=null,o.headerPosition="above",o.selectedIndexChange=new Zu,o.focusChange=new Zu,o.animationDone=new Zu,o.selectedTabChange=new Zu(!0),o._groupId=Qx++,o.animationDuration=i&&i.animationDuration?i.animationDuration:"500ms",o}return r(e,t),Object.defineProperty(e.prototype,"dynamicHeight",{get:function(){return this._dynamicHeight},set:function(t){this._dynamicHeight=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectedIndex",{get:function(){return this._selectedIndex},set:function(t){this._indexToSelect=jy(t,null)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"animationDuration",{get:function(){return this._animationDuration},set:function(t){this._animationDuration=/^\d+$/.test(t)?t+"ms":t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement;e.classList.remove("mat-background-"+this.backgroundColor),t&&e.classList.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentChecked=function(){var t=this,e=this._indexToSelect=this._clampTabIndex(this._indexToSelect);if(this._selectedIndex!=e){var n=null==this._selectedIndex;n||this.selectedTabChange.emit(this._createChangeEvent(e)),Promise.resolve().then((function(){t._tabs.forEach((function(t,n){return t.isActive=n===e})),n||t.selectedIndexChange.emit(e)}))}this._tabs.forEach((function(n,i){n.position=i-e,null==t._selectedIndex||0!=n.position||n.origin||(n.origin=e-t._selectedIndex)})),this._selectedIndex!==e&&(this._selectedIndex=e,this._changeDetectorRef.markForCheck())},e.prototype.ngAfterContentInit=function(){var t=this;this._subscribeToTabLabels(),this._tabsSubscription=this._tabs.changes.subscribe((function(){if(t._clampTabIndex(t._indexToSelect)===t._selectedIndex)for(var e=t._tabs.toArray(),n=0;nl&&(this.scrollDistance+=i-l+60)}},t.prototype._checkPaginationEnabled=function(){var t=this._tabList.nativeElement.scrollWidth>this._elementRef.nativeElement.offsetWidth;t||(this.scrollDistance=0),t!==this._showPaginationControls&&this._changeDetectorRef.markForCheck(),this._showPaginationControls=t},t.prototype._checkScrollingControls=function(){this._disableScrollBefore=0==this.scrollDistance,this._disableScrollAfter=this.scrollDistance==this._getMaxScrollDistance(),this._changeDetectorRef.markForCheck()},t.prototype._getMaxScrollDistance=function(){return this._tabList.nativeElement.scrollWidth-this._tabListContainer.nativeElement.offsetWidth||0},t.prototype._alignInkBarToSelectedTab=function(){var t=this._items&&this._items.length?this._items.toArray()[this.selectedIndex]:null,e=t?t.elementRef.nativeElement:null;e?this._inkBar.alignToElement(e):this._inkBar.hide()},t.prototype._stopInterval=function(){this._stopScrolling.next()},t.prototype._handlePaginatorPress=function(t){var e=this;this._stopInterval(),iv(650,100).pipe(av(tt(this._stopScrolling,this._destroyed))).subscribe((function(){var n=e._scrollHeader(t),i=n.distance;(0===i||i>=n.maxScrollDistance)&&e._stopInterval()}))},t.prototype._scrollTo=function(t){var e=this._getMaxScrollDistance();return this._scrollDistance=Math.max(0,Math.min(e,t)),this._scrollDistanceChanged=!0,this._checkScrollingControls(),{maxScrollDistance:e,distance:this._scrollDistance}},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},t.\u0275dir=Ee({type:t,selectors:[["do-not-use-abstract-mat-paginated-tab-header"]]}),t}(),ok=function(t){function e(e,n,i,r,o,a,s){return t.call(this,e,n,i,r,o,a,s)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-tab-header"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,nk,!1),2&t&&al(i=hl())&&(e._items=i)},viewQuery:function(t,e){var n;1&t&&(sl(Wx,!0),sl(Bx,!0),sl(Vx,!0),ul(zx,!0),ul(Hx,!0)),2&t&&(al(n=hl())&&(e._inkBar=n.first),al(n=hl())&&(e._tabListContainer=n.first),al(n=hl())&&(e._tabList=n.first),al(n=hl())&&(e._nextPaginator=n.first),al(n=hl())&&(e._previousPaginator=n.first))},hostAttrs:[1,"mat-tab-header"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-tab-header-pagination-controls-enabled",e._showPaginationControls)("mat-tab-header-rtl","rtl"==e._getLayoutDirection())},inputs:{selectedIndex:"selectedIndex"},outputs:{selectFocusedIndex:"selectFocusedIndex",indexFocused:"indexFocused"},features:[Es],ngContentSelectors:Ax,decls:13,vars:8,consts:[["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-before","mat-elevation-z4",3,"matRippleDisabled","click","mousedown","touchend"],["previousPaginator",""],[1,"mat-tab-header-pagination-chevron"],[1,"mat-tab-label-container",3,"keydown"],["tabListContainer",""],["role","tablist",1,"mat-tab-list",3,"cdkObserveContent"],["tabList",""],[1,"mat-tab-labels"],["aria-hidden","true","mat-ripple","",1,"mat-tab-header-pagination","mat-tab-header-pagination-after","mat-elevation-z4",3,"matRippleDisabled","mousedown","click","touchend"],["nextPaginator",""]],template:function(t,e){1&t&&(Xa(),Fa(0,"div",0,1),qa("click",(function(t){return e._handlePaginatorClick("before")}))("mousedown",(function(t){return e._handlePaginatorPress("before")}))("touchend",(function(t){return e._stopInterval()})),ja(2,"div",2),La(),Fa(3,"div",3,4),qa("keydown",(function(t){return e._handleKeydown(t)})),Fa(5,"div",5,6),qa("cdkObserveContent",(function(t){return e._onContentChanges()})),Fa(7,"div",7),Qa(8),La(),ja(9,"mat-ink-bar"),La(),La(),Fa(10,"div",8,9),qa("mousedown",(function(t){return e._handlePaginatorPress("after")}))("click",(function(t){return e._handlePaginatorClick("after")}))("touchend",(function(t){return e._stopInterval()})),ja(12,"div",2),La()),2&t&&(ls("mat-tab-header-pagination-disabled",e._disableScrollBefore),Ra("matRippleDisabled",e._disableScrollBefore||e.disableRipple),vr(5),ls("_mat-animation-noopable","NoopAnimations"===e._animationMode),vr(5),ls("mat-tab-header-pagination-disabled",e._disableScrollAfter),Ra("matRippleDisabled",e._disableScrollAfter||e.disableRipple))},directives:[PC,cb,Wx],styles:[".mat-tab-header{display:flex;overflow:hidden;position:relative;flex-shrink:0}.mat-tab-header-pagination{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;display:none;justify-content:center;align-items:center;min-width:32px;cursor:pointer;z-index:2;-webkit-tap-highlight-color:transparent;touch-action:none}.mat-tab-header-pagination-controls-enabled .mat-tab-header-pagination{display:flex}.mat-tab-header-pagination-before,.mat-tab-header-rtl .mat-tab-header-pagination-after{padding-left:4px}.mat-tab-header-pagination-before .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-after .mat-tab-header-pagination-chevron{transform:rotate(-135deg)}.mat-tab-header-pagination-after,.mat-tab-header-rtl .mat-tab-header-pagination-before{padding-right:4px}.mat-tab-header-pagination-after .mat-tab-header-pagination-chevron,.mat-tab-header-rtl .mat-tab-header-pagination-before .mat-tab-header-pagination-chevron{transform:rotate(45deg)}.mat-tab-header-pagination-chevron{border-style:solid;border-width:2px 2px 0 0;content:'';height:8px;width:8px}.mat-tab-header-pagination-disabled{box-shadow:none;cursor:default}.mat-tab-list{flex-grow:1;position:relative;transition:transform .5s cubic-bezier(.35,0,.25,1)}.mat-ink-bar{position:absolute;bottom:0;height:2px;transition:.5s cubic-bezier(.35,0,.25,1)}._mat-animation-noopable.mat-ink-bar{transition:none;animation:none}.mat-tab-group-inverted-header .mat-ink-bar{bottom:auto;top:0}@media (-ms-high-contrast:active){.mat-ink-bar{outline:solid 2px;height:0}}.mat-tab-labels{display:flex}[mat-align-tabs=center] .mat-tab-labels{justify-content:center}[mat-align-tabs=end] .mat-tab-labels{justify-content:flex-end}.mat-tab-label-container{display:flex;flex-grow:1;overflow:hidden;z-index:1}._mat-animation-noopable.mat-tab-list{transition:none;animation:none}.mat-tab-label{height:48px;padding:0 24px;cursor:pointer;box-sizing:border-box;opacity:.6;min-width:160px;text-align:center;display:inline-flex;justify-content:center;align-items:center;white-space:nowrap;position:relative}.mat-tab-label:focus{outline:0}.mat-tab-label:focus:not(.mat-tab-disabled){opacity:1}@media (-ms-high-contrast:active){.mat-tab-label:focus{outline:dotted 2px}}.mat-tab-label.mat-tab-disabled{cursor:default}@media (-ms-high-contrast:active){.mat-tab-label.mat-tab-disabled{opacity:.5}}.mat-tab-label .mat-tab-label-content{display:inline-flex;justify-content:center;align-items:center;white-space:nowrap}@media (-ms-high-contrast:active){.mat-tab-label{opacity:1}}@media (max-width:599px){.mat-tab-label{min-width:72px}}"],encapsulation:2,changeDetection:0}),e}(function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i,r,o,a,s)||this;return u._disableRipple=!1,u}return r(e,t),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Ly(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(t){t.preventDefault()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Ev),Ia(Ry,8),Ia(Vl),Ia(gv),Ia(Hw,8))},e.\u0275dir=Ee({type:e,selectors:[["do-not-use-abstract-mat-tab-header-base"]],inputs:{disableRipple:"disableRipple"},features:[Es]}),e}(rk)),ak=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,r,o,n,i,a,s)||this;return u._disableRipple=!1,u.color="primary",u}return r(e,t),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._backgroundColor},set:function(t){var e=this._elementRef.nativeElement.classList;e.remove("mat-background-"+this.backgroundColor),t&&e.add("mat-background-"+t),this._backgroundColor=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableRipple",{get:function(){return this._disableRipple},set:function(t){this._disableRipple=Ly(t)},enumerable:!0,configurable:!0}),e.prototype._itemSelected=function(){},e.prototype.ngAfterContentInit=function(){var e=this;this._items.changes.pipe(of(null),av(this._destroyed)).subscribe((function(){e.updateActiveLink()})),t.prototype.ngAfterContentInit.call(this)},e.prototype.updateActiveLink=function(t){if(this._items){for(var e=this._items.toArray(),n=0;n1)("ngIfElse",n)}},directives:[Sd,ek,xd,Kx,Yx,Ck],styles:[".content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap} .mat-form-field-wrapper{padding-bottom:1em} .mat-tab-label{height:32px!important}"]}),t}();function Pk(t,e){if(1&t){var n=za();Fa(0,"button",9),qa("click",(function(t){return Ue(n),Za().customButtonClicked()})),_s(1),La()}if(2&t){var i=Za();vr(1),ws(i.data.customButton)}}var Tk,Rk=function(){function t(t,e){this.dialogRef=t,this.data=e,this.onEvent=new Zu(!0),this.saving=!1}return t.prototype.ngOnInit=function(){this.onEvent.emit({type:"init",data:null,dialog:this.dialogRef})},t.prototype.changed=function(t){this.onEvent.emit({type:"changed",data:t,dialog:this.dialogRef})},t.prototype.getFields=function(){var t={},e=[];return this.data.guiFields.forEach((function(n){var i=void 0!==n.values?n.values:n.value;console.log(i,n.gui,typeof i),n.gui.required&&(!i||i instanceof Array&&0===i.length)&&e.push(n.gui.label),"number"==typeof i&&(i=i.toString()),t[n.name]=i})),{data:t,errors:e}},t.prototype.save=function(){var t=this.getFields();t.errors.length>0?this.data.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+t.errors.join(", ")):this.onEvent.emit({data:t.data,type:"save",dialog:this.dialogRef})},t.prototype.customButtonClicked=function(){var t=this.getFields();this.onEvent.emit({data:t.data,type:this.data.customButton,errors:t.errors,dialog:this.dialogRef})},t.\u0275fac=function(e){return new(e||t)(Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-modal-form"]],decls:16,vars:7,consts:[["mat-dialog-title","",3,"innerHtml"],["vc",""],[3,"fields","changed"],[1,"buttons"],[1,"group1"],["ngClass","custom","mat-raised-button","",3,"click",4,"ngIf"],[1,"group2"],["mat-raised-button","",3,"disabled","click"],["mat-raised-button","","color","primary",3,"disabled","click"],["ngClass","custom","mat-raised-button","",3,"click"]],template:function(t,e){1&t&&(ja(0,"h4",0),qu(1,"safeHtml"),Fa(2,"mat-dialog-content",null,1),Fa(4,"uds-form",2),qa("changed",(function(t){return e.changed(t)})),La(),La(),Fa(5,"mat-dialog-actions"),Fa(6,"div",3),Fa(7,"div",4),Aa(8,Pk,2,1,"button",5),La(),Fa(9,"div",6),Fa(10,"button",7),qa("click",(function(t){return e.dialogRef.close()})),Fa(11,"uds-translate"),_s(12,"Discard & close"),La(),La(),Fa(13,"button",8),qa("click",(function(t){return e.save()})),Fa(14,"uds-translate"),_s(15,"Save"),La(),La(),La(),La(),La()),2&t&&(Ra("innerHtml",Wu(1,5,e.data.title),Ui),vr(4),Ra("fields",e.data.guiFields),vr(4),Ra("ngIf",null!=e.data.customButton),vr(2),Ra("disabled",e.saving),vr(3),Ra("disabled",e.saving))},directives:[ax,sx,Ik,ux,Sd,mx,vx,_d],pipes:[bx],styles:["h4[_ngcontent-%COMP%]{margin-bottom:0}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:space-between;width:100%} uds-field{flex:1 100%}button.custom[_ngcontent-%COMP%]{background-color:#4682b4;color:#fff}"]}),t}(),Mk=function(){function t(t){this.gui=t}return t.prototype.executeCallback=function(t,e,n,i){var r=this;void 0===i&&(i={});var o=new Array;e.gui.fills.parameters.forEach((function(t){o.push(t+"="+encodeURIComponent(n[t].value))})),t.table.rest.callback(e.gui.fills.callbackName,o.join("&")).subscribe((function(e){var o=new Array;e.forEach((function(t){var e=n[t.name];void 0!==e&&(void 0!==e.gui.fills&&o.push(e),e.gui.values.length=0,t.values.forEach((function(t){return e.gui.values.push(t)})),e.value||(e.value=t.values.length>0?t.values[0].id:""))})),o.forEach((function(e){void 0===i[e.name]&&(i[e.name]=!0,r.executeCallback(t,e,n,i))}))}))},t.prototype.modalForm=function(t,e,n,i){void 0===n&&(n=null),e.sort((function(t,e){return t.gui.order>e.gui.order?1:-1}));var r=null!=n;n=r?n:{},e.forEach((function(t){!1!==r&&void 0!==t.gui.rdonly||(t.gui.rdonly=!1),t.gui.type===Sx.TEXT&&t.gui.multiline&&(t.gui.type=Sx.TEXTBOX);var e=n[t.name];void 0!==e&&(e instanceof Array?(t.values=new Array,e.forEach((function(e){return t.values.push(e)}))):t.value=e)}));var o=window.innerWidth<800?"80%":"50%";return this.gui.dialog.open(Rk,{position:{top:"64px"},width:o,data:{title:t,guiFields:e,customButton:i,gui:this.gui},disableClose:!0}).componentInstance.onEvent},t.prototype.typedForm=function(t,e,n,i,r,o,a){var s=this;a=a||{};var u=new Zu,l=n?"test":void 0,c={},d={},p=function(e){d.hasOwnProperty(e.name)&&""!==e.value&&void 0!==e.value&&s.executeCallback(t,e,c)};return a.snack||(a.snack=this.gui.snackbar.open(django.gettext("Loading data..."),django.gettext("dismiss"))),t.table.rest.gui(o).subscribe((function(n){a.snack.dismiss(),void 0!==i&&i.forEach((function(t){n.push(t)})),n.forEach((function(t){c[t.name]=t,void 0!==t.gui.fills&&(d[t.name]=t.gui.fills)})),s.modalForm(e,n,r,l).subscribe((function(e){switch(e.data&&(e.data.data_type=o),e.type){case l:if(e.errors.length>0)return void s.gui.alert(django.gettext("Error"),django.gettext("Please, fill in require fields: ")+e.errors.join(", "));s.gui.snackbar.open(django.gettext("Testing..."),django.gettext("dismiss")),t.table.rest.test(o,e.data).subscribe((function(t){"ok"!==t?s.gui.snackbar.open(django.gettext("Test failed:")+" "+t,django.gettext("dismiss")):s.gui.snackbar.open(django.gettext("Test passed successfully"),django.gettext("dismiss"),{duration:2e3})}));break;case"changed":case"init":if(null===e.data)for(var i=0,d=n;i"+i.join(", ")+"";this.gui.yesno(e,o,!0).subscribe((function(e){if(e){var i=r.length,o=function(){n.gui.snackbar.open(django.gettext("Deletion finished"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()};r.forEach((function(e){t.table.rest.delete(e).subscribe((function(t){0==--i&&o()}),(function(t){0==--i&&o()}))}))}}))},t}(),Fk=function(){function t(t,e){this.dialog=t,this.snackbar=e,this.forms=new Mk(this)}return t.prototype.alert=function(t,e,n,i){void 0===n&&(n=0);var r=i||(window.innerWidth<800?"80%":"40%");return this.dialog.open(kx,{width:r,data:{title:t,body:e,autoclose:n,type:xx.alert},disableClose:!0}).componentInstance.yesno},t.prototype.yesno=function(t,e,n){void 0===n&&(n=!1);var i=window.innerWidth<800?"80%":"40%";return this.dialog.open(kx,{width:i,data:{title:t,body:e,type:xx.yesno,warnOnYes:n},disableClose:!0}).componentInstance.yesno},t.prototype.icon=function(t,e){return void 0===e&&(e="24px"),''},t}(),Lk=function(t){return t.NUMERIC="numeric",t.ALPHANUMERIC="alphanumeric",t.DATETIME="datetime",t.DATETIMESEC="datetimesec",t.DATE="date",t.TIME="time",t.ICON="iconType",t.CALLBACK="callback",t.DICTIONARY="dict",t.IMAGE="image",t}({}),jk=function(t){return t[t.ALWAYS=0]="ALWAYS",t[t.SINGLE_SELECT=1]="SINGLE_SELECT",t[t.MULTI_SELECT=2]="MULTI_SELECT",t[t.ONLY_MENU=3]="ONLY_MENU",t[t.ACCELERATOR=4]="ACCELERATOR",t}({}),Nk={provider:django.gettext("provider"),service:django.gettext("service"),pool:django.gettext("service pool"),authenticator:django.gettext("authenticator"),user:django.gettext("user"),group:django.gettext("group"),transport:django.gettext("transport"),osmanager:django.gettext("OS manager"),calendar:django.gettext("calendar"),poolgroup:django.gettext("pool group")},Bk=function(){function t(t){this.router=t}return t.getGotoButton=function(t,e,n){return{id:t,html:'link'+django.gettext("Go to")+" "+Nk[t]+"",type:jk.ACCELERATOR,acceleratorProperties:[e,n]}},t.prototype.gotoProvider=function(t){this.router.navigate(void 0!==t?["providers",t]:["providers"])},t.prototype.gotoService=function(t,e){this.router.navigate(void 0!==e?["providers",t,"detail",e]:["providers",t,"detail"])},t.prototype.gotoServicePool=function(t){this.router.navigate(["pools","service-pools",t])},t.prototype.gotoServicePoolDetail=function(t){this.router.navigate(["pools","service-pools",t,"detail"])},t.prototype.gotoMetapool=function(t){this.router.navigate(["pools","meta-pools",t])},t.prototype.gotoMetapoolDetail=function(t){this.router.navigate(["pools","meta-pools",t,"detail"])},t.prototype.gotoCalendar=function(t){this.router.navigate(["pools","calendars",t])},t.prototype.gotoCalendarDetail=function(t){this.router.navigate(["pools","calendars",t,"detail"])},t.prototype.gotoAccount=function(t){this.router.navigate(["pools","accounts",t])},t.prototype.gotoAccountDetail=function(t){this.router.navigate(["pools","accounts",t,"detail"])},t.prototype.gotoPoolGroup=function(t){this.router.navigate(["pools","pool-groups",t=t||""])},t.prototype.gotoAuthenticator=function(t){this.router.navigate(["authenticators",t])},t.prototype.gotoAuthenticatorDetail=function(t){this.router.navigate(["authenticators",t,"detail"])},t.prototype.gotoUser=function(t,e){this.router.navigate(["authenticators",t,"detail","users",e])},t.prototype.gotoGroup=function(t,e){this.router.navigate(["authenticators",t,"detail","groups",e])},t.prototype.gotoTransport=function(t){this.router.navigate(["transports",t])},t.prototype.gotoOSManager=function(t){this.router.navigate(["osmanagers",t])},t.prototype.goto=function(t,e,n){var i=function(t){var i=e;if(n[t].split(".").forEach((function(t){return i=i[t]})),!i)throw new Error("not going :)");return i};try{switch(t){case"provider":this.gotoProvider(i(0));break;case"service":this.gotoService(i(0),i(1));break;case"pool":this.gotoServicePool(i(0));break;case"authenticator":this.gotoAuthenticator(i(0));break;case"user":this.gotoUser(i(0),i(1));break;case"group":this.gotoGroup(i(0),i(1));break;case"transport":this.gotoTransport(i(0));break;case"osmanager":this.gotoOSManager(i(0));break;case"calendar":this.gotoCalendar(i(0));break;case"poolgroup":this.gotoPoolGroup(i(0))}}catch(r){}},t}(),Vk=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new zk(t,this.total))},t}(),zk=function(t){function e(e,n){var i=t.call(this,e)||this;return i.total=n,i.count=0,i}return r(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(_),Hk=new Set,Uk=function(){function t(t){this._platform=t,this._matchMedia=this._platform.isBrowser&&window.matchMedia?window.matchMedia.bind(window):qk}return t.prototype.matchMedia=function(t){return this._platform.WEBKIT&&function(t){if(!Hk.has(t))try{Tk||((Tk=document.createElement("style")).setAttribute("type","text/css"),document.head.appendChild(Tk)),Tk.sheet&&(Tk.sheet.insertRule("@media "+t+" {.fx-query-test{ }}",0),Hk.add(t))}catch(e){console.error(e)}}(t),this._matchMedia(t)},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function qk(t){return{matches:"all"===t||""===t,media:t,addListener:function(){},removeListener:function(){}}}var Wk=function(){function t(t,e){this._mediaMatcher=t,this._zone=e,this._queries=new Map,this._destroySubject=new P}return t.prototype.ngOnDestroy=function(){this._destroySubject.next(),this._destroySubject.complete()},t.prototype.isMatched=function(t){var e=this;return Gk(By(t)).some((function(t){return e._registerQuery(t).mql.matches}))},t.prototype.observe=function(t){var e=this,n=Dh(Gk(By(t)).map((function(t){return e._registerQuery(t).observable})));return(n=rf(n.pipe(Kh(1)),n.pipe((function(t){return t.lift(new Vk(1))}),rb(0)))).pipe(U((function(t){var e={matches:!1,breakpoints:{}};return t.forEach((function(t){e.matches=e.matches||t.matches,e.breakpoints[t.query]=t.matches})),e})))},t.prototype._registerQuery=function(t){var e=this;if(this._queries.has(t))return this._queries.get(t);var n=this._mediaMatcher.matchMedia(t),i={observable:new D((function(t){var i=function(n){return e._zone.run((function(){return t.next(n)}))};return n.addListener(i),function(){n.removeListener(i)}})).pipe(of(n),U((function(e){return{query:t,matches:e.matches}})),av(this._destroySubject)),mql:n};return this._queries.set(t,i),i},t.ngInjectableDef=yt({factory:function(){return new t(ee(Uk),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(Uk),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}();function Gk(t){return t.map((function(t){return t.split(",")})).reduce((function(t,e){return t.concat(e)})).map((function(t){return t.trim()}))}function Yk(t,e){if(1&t){var n=za();Fa(0,"div",1),Fa(1,"button",2),qa("click",(function(t){return Ue(n),Za().action()})),_s(2),La(),La()}if(2&t){var i=Za();vr(2),ws(i.data.action)}}function Kk(t,e){}var Zk=function(){function t(t,e){var n=this;this._overlayRef=e,this._afterDismissed=new P,this._afterOpened=new P,this._onAction=new P,this._dismissedByAction=!1,this.containerInstance=t,this.onAction().subscribe((function(){return n.dismiss()})),t._onExit.subscribe((function(){return n._finishDismiss()}))}return t.prototype.dismiss=function(){this._afterDismissed.closed||this.containerInstance.exit(),clearTimeout(this._durationTimeoutId)},t.prototype.dismissWithAction=function(){this._onAction.closed||(this._dismissedByAction=!0,this._onAction.next(),this._onAction.complete())},t.prototype.closeWithAction=function(){this.dismissWithAction()},t.prototype._dismissAfter=function(t){var e=this;this._durationTimeoutId=setTimeout((function(){return e.dismiss()}),t)},t.prototype._open=function(){this._afterOpened.closed||(this._afterOpened.next(),this._afterOpened.complete())},t.prototype._finishDismiss=function(){this._overlayRef.dispose(),this._onAction.closed||this._onAction.complete(),this._afterDismissed.next({dismissedByAction:this._dismissedByAction}),this._afterDismissed.complete(),this._dismissedByAction=!1},t.prototype.afterDismissed=function(){return this._afterDismissed.asObservable()},t.prototype.afterOpened=function(){return this.containerInstance._onEnter},t.prototype.onAction=function(){return this._onAction.asObservable()},t}(),$k=new Gt("MatSnackBarData"),Xk=function(){return function(){this.politeness="assertive",this.announcementMessage="",this.duration=0,this.data=null,this.horizontalPosition="center",this.verticalPosition="bottom"}}(),Qk=function(){function t(t,e){this.snackBarRef=t,this.data=e}return t.prototype.action=function(){this.snackBarRef.dismissWithAction()},Object.defineProperty(t.prototype,"hasAction",{get:function(){return!!this.data.action},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)(Ia(Zk),Ia($k))},t.\u0275cmp=we({type:t,selectors:[["simple-snack-bar"]],hostAttrs:[1,"mat-simple-snackbar"],decls:3,vars:2,consts:[["class","mat-simple-snackbar-action",4,"ngIf"],[1,"mat-simple-snackbar-action"],["mat-button","",3,"click"]],template:function(t,e){1&t&&(Fa(0,"span"),_s(1),La(),Aa(2,Yk,3,1,"div",0)),2&t&&(vr(1),ws(e.data.message),vr(1),Ra("ngIf",e.hasAction))},directives:[Sd,mx],styles:[".mat-simple-snackbar{display:flex;justify-content:space-between;align-items:center;line-height:20px;opacity:1}.mat-simple-snackbar-action{flex-shrink:0;margin:-8px -8px -8px 8px}.mat-simple-snackbar-action button{max-height:36px;min-width:0}[dir=rtl] .mat-simple-snackbar-action{margin-left:-8px;margin-right:8px}"],encapsulation:2,changeDetection:0}),t}(),Jk={snackBarState:sy("state",[py("void, hidden",dy({transform:"scale(0.8)",opacity:0})),py("visible",dy({transform:"scale(1)",opacity:1})),fy("* => visible",uy("150ms cubic-bezier(0, 0, 0.2, 1)")),fy("* => void, * => hidden",uy("75ms cubic-bezier(0.4, 0.0, 1, 1)",dy({opacity:0})))])},tS=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngZone=e,o._elementRef=n,o._changeDetectorRef=i,o.snackBarConfig=r,o._destroyed=!1,o._onExit=new P,o._onEnter=new P,o._animationState="void",o._role="assertive"!==r.politeness||r.announcementMessage?"off"===r.politeness?null:"status":"alert",o}return r(e,t),e.prototype.attachComponentPortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachComponentPortal(t)},e.prototype.attachTemplatePortal=function(t){return this._assertNotAttached(),this._applySnackBarClasses(),this._portalOutlet.attachTemplatePortal(t)},e.prototype.onAnimationEnd=function(t){var e=t.toState;if(("void"===e&&"void"!==t.fromState||"hidden"===e)&&this._completeExit(),"visible"===e){var n=this._onEnter;this._ngZone.run((function(){n.next(),n.complete()}))}},e.prototype.enter=function(){this._destroyed||(this._animationState="visible",this._changeDetectorRef.detectChanges())},e.prototype.exit=function(){return this._animationState="hidden",this._onExit},e.prototype.ngOnDestroy=function(){this._destroyed=!0,this._completeExit()},e.prototype._completeExit=function(){var t=this;this._ngZone.onMicrotaskEmpty.asObservable().pipe(Kh(1)).subscribe((function(){t._onExit.next(),t._onExit.complete()}))},e.prototype._applySnackBarClasses=function(){var t=this._elementRef.nativeElement,e=this.snackBarConfig.panelClass;e&&(Array.isArray(e)?e.forEach((function(e){return t.classList.add(e)})):t.classList.add(e)),"center"===this.snackBarConfig.horizontalPosition&&t.classList.add("mat-snack-bar-center"),"top"===this.snackBarConfig.verticalPosition&&t.classList.add("mat-snack-bar-top")},e.prototype._assertNotAttached=function(){if(this._portalOutlet.hasAttached())throw Error("Attempting to attach snack bar content after content is already attached")},e.\u0275fac=function(t){return new(t||e)(Ia(Vl),Ia(Ks),Ia(Ko),Ia(Xk))},e.\u0275cmp=we({type:e,selectors:[["snack-bar-container"]],viewQuery:function(t,e){var n;1&t&&sl(Ey,!0),2&t&&al(n=hl())&&(e._portalOutlet=n.first)},hostAttrs:[1,"mat-snack-bar-container"],hostVars:2,hostBindings:function(t,e){1&t&&Wa("@state.done",(function(t){return e.onAnimationEnd(t)})),2&t&&(Da("role",e._role),Ss("@state",e._animationState))},features:[Es],decls:1,vars:0,consts:[["cdkPortalOutlet",""]],template:function(t,e){1&t&&Aa(0,Kk,0,0,"ng-template",0)},directives:[Ey],styles:[".mat-snack-bar-container{border-radius:4px;box-sizing:border-box;display:block;margin:24px;max-width:33vw;min-width:344px;padding:14px 16px;min-height:48px;transform-origin:center}@media (-ms-high-contrast:active){.mat-snack-bar-container{border:solid 1px}}.mat-snack-bar-handset{width:100%}.mat-snack-bar-handset .mat-snack-bar-container{margin:8px;max-width:100%;min-width:0;width:100%}"],encapsulation:2,data:{animation:[Jk.snackBarState]}}),e}(ky),eS=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[nb,Oy,op,yx,tC],tC]}),t}(),nS=new Gt("mat-snack-bar-default-options",{providedIn:"root",factory:function(){return new Xk}}),iS=function(){function t(t,e,n,i,r,o){this._overlay=t,this._live=e,this._injector=n,this._breakpointObserver=i,this._parentSnackBar=r,this._defaultConfig=o,this._snackBarRefAtThisLevel=null}return Object.defineProperty(t.prototype,"_openedSnackBarRef",{get:function(){var t=this._parentSnackBar;return t?t._openedSnackBarRef:this._snackBarRefAtThisLevel},set:function(t){this._parentSnackBar?this._parentSnackBar._openedSnackBarRef=t:this._snackBarRefAtThisLevel=t},enumerable:!0,configurable:!0}),t.prototype.openFromComponent=function(t,e){return this._attach(t,e)},t.prototype.openFromTemplate=function(t,e){return this._attach(t,e)},t.prototype.open=function(t,e,n){void 0===e&&(e="");var i=o({},this._defaultConfig,n);return i.data={message:t,action:e},i.announcementMessage||(i.announcementMessage=t),this.openFromComponent(Qk,i)},t.prototype.dismiss=function(){this._openedSnackBarRef&&this._openedSnackBarRef.dismiss()},t.prototype.ngOnDestroy=function(){this._snackBarRefAtThisLevel&&this._snackBarRefAtThisLevel.dismiss()},t.prototype._attachSnackBarContainer=function(t,e){var n=new Iy(e&&e.viewContainerRef&&e.viewContainerRef.injector||this._injector,new WeakMap([[Xk,e]])),i=new Cy(tS,e.viewContainerRef,n),r=t.attach(i);return r.instance.snackBarConfig=e,r.instance},t.prototype._attach=function(t,e){var n=o({},new Xk,this._defaultConfig,e),i=this._createOverlay(n),r=this._attachSnackBarContainer(i,n),a=new Zk(r,i);if(t instanceof vu){var s=new xy(t,null,{$implicit:n.data,snackBarRef:a});a.instance=r.attachTemplatePortal(s)}else{var u=this._createInjector(n,a),l=(s=new Cy(t,void 0,u),r.attachComponentPortal(s));a.instance=l.instance}return this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait)").pipe(av(i.detachments())).subscribe((function(t){var e=i.overlayElement.classList;t.matches?e.add("mat-snack-bar-handset"):e.remove("mat-snack-bar-handset")})),this._animateSnackBar(a,n),this._openedSnackBarRef=a,this._openedSnackBarRef},t.prototype._animateSnackBar=function(t,e){var n=this;t.afterDismissed().subscribe((function(){n._openedSnackBarRef==t&&(n._openedSnackBarRef=null),e.announcementMessage&&n._live.clear()})),this._openedSnackBarRef?(this._openedSnackBarRef.afterDismissed().subscribe((function(){t.containerInstance.enter()})),this._openedSnackBarRef.dismiss()):t.containerInstance.enter(),e.duration&&e.duration>0&&t.afterOpened().subscribe((function(){return t._dismissAfter(e.duration)})),e.announcementMessage&&this._live.announce(e.announcementMessage,e.politeness)},t.prototype._createOverlay=function(t){var e=new Lv;e.direction=t.direction;var n=this._overlay.position().global(),i="rtl"===t.direction,r="left"===t.horizontalPosition||"start"===t.horizontalPosition&&!i||"end"===t.horizontalPosition&&i,o=!r&&"center"!==t.horizontalPosition;return r?n.left("0"):o?n.right("0"):n.centerHorizontally(),"top"===t.verticalPosition?n.top("0"):n.bottom("0"),e.positionStrategy=n,this._overlay.create(e)},t.prototype._createInjector=function(t,e){return new Iy(t&&t.viewContainerRef&&t.viewContainerRef.injector||this._injector,new WeakMap([[Zk,e],[$k,t.data]]))},t.ngInjectableDef=yt({factory:function(){return new t(ee($v),ee(Ab),ee(Yt),ee(Wk),ee(t,12),ee(nS))},token:t,providedIn:eS}),t.\u0275fac=function(e){return new(e||t)(ee($v),ee(Ab),ee(ca),ee(Wk),ee(t,12),ee(nS))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:eS}),t}(),rS=function(){function t(t,e,n,i,r,o){this.http=t,this.router=e,this.dialog=n,this.snackbar=i,this.sanitizer=r,this.dateAdapter=o,this.user=new ry(udsData.profile),this.navigation=new Bk(this.router),this.gui=new Fk(this.dialog,this.snackbar),this.dateAdapter.setLocale(this.config.language)}return Object.defineProperty(t.prototype,"config",{get:function(){return udsData.config},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"notices",{get:function(){return udsData.errors},enumerable:!0,configurable:!0}),t.prototype.restPath=function(t){return this.config.urls.rest+t},t.prototype.staticURL=function(t){return this.config.urls.static+t},t.prototype.logout=function(){window.location.href=this.config.urls.logout},t.prototype.gotoUser=function(){window.location.href=this.config.urls.user},t.prototype.putOnStorage=function(t,e){void 0!==typeof Storage&&sessionStorage.setItem(t,e)},t.prototype.getFromStorage=function(t){return void 0!==typeof Storage?sessionStorage.getItem(t):null},t.prototype.safeString=function(t){return this.sanitizer.bypassSecurityTrustHtml(t)},t.prototype.yesno=function(t){return t?django.gettext("yes"):django.gettext("no")},t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(sh),ee(Pg),ee(ix),ee(iS),ee(Fp),ee(lC))},providedIn:"root"}),t}(),oS=function(){function t(t){this.api=t}return t.prototype.canActivate=function(t,e){return!!this.api.user.isStaff||(window.location.href=this.api.config.urls.user,!1)},t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(rS))},providedIn:"root"}),t}(),aS=function(t){return t[t.NONE=0]="NONE",t[t.READ=32]="READ",t[t.MANAGEMENT=64]="MANAGEMENT",t[t.ALL=96]="ALL",t}({}),sS=function(){function t(t,e,n){this.api=t,void 0===n&&(n={}),void 0===n.base&&(n.base=e);var i=function(t,e){return void 0===t?e:t};this.id=e,this.paths={base:n.base,get:i(n.get,n.base),log:i(n.log,n.base),put:i(n.put,n.base),test:i(n.test,n.base+"/test"),delete:i(n.delete,n.base),types:i(n.types,n.base+"/types"),gui:i(n.gui,n.base+"/gui"),tableInfo:i(n.tableInfo,n.base+"/tableinfo")},this.headers=(new Yp).set("Content-Type","application/json; charset=utf8").set(this.api.config.auth_header,this.api.config.auth_token)}return t.prototype.handleError=function(t,e){var n;return void 0===e&&(e=!1),n=t.error instanceof ErrorEvent?t.error.message:e?django.gettext("Error saving: ")+t.error:"Error "+t.status+": "+t.error,this.api.gui.alert(e?django.gettext("Error saving element"):django.gettext("Error handling your request"),n),lv(n)},t.prototype.getPath=function(t,e){return this.api.restPath(t+(void 0!==e?"/"+e:""))},t.prototype.doGet=function(t){var e=this;return this.api.http.get(t,{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.get=function(t){return this.doGet(this.getPath(this.paths.get,t))},t.prototype.getLogs=function(t){return this.doGet(this.getPath(this.paths.log,t)+"/log")},t.prototype.overview=function(t){return this.get("overview"+(void 0!==t?"?filter="+t:""))},t.prototype.summary=function(t){return this.get("overview?summarize"+(void 0!==t?"&filter="+t:""))},t.prototype.put=function(t,e){var n=this;return this.api.http.put(this.getPath(this.paths.put,e),t,{headers:this.headers}).pipe(Wh((function(t){return n.handleError(t,!0)})))},t.prototype.create=function(t){return this.put(t)},t.prototype.save=function(t,e){return this.put(t,e=void 0!==e?e:t.id)},t.prototype.test=function(t,e){var n=this;return this.api.http.post(this.getPath(this.paths.test,t),e,{headers:this.headers}).pipe(Wh((function(t){return n.handleError(t)})))},t.prototype.delete=function(t){var e=this;return this.api.http.delete(this.getPath(this.paths.delete,t),{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.permision=function(){return this.api.user.isAdmin?aS.ALL:aS.NONE},t.prototype.getPermissions=function(t){return this.doGet(this.getPath("permissions/"+this.paths.base+"/"+t))},t.prototype.addPermission=function(t,e,n,i){var r=this,o=this.getPath("permissions/"+this.paths.base+"/"+t+"/"+e+"/add/"+n);return this.api.http.put(o,{perm:i},{headers:this.headers}).pipe(Wh((function(t){return r.handleError(t)})))},t.prototype.revokePermission=function(t){var e=this,n=this.getPath("permissions/revoke");return this.api.http.put(n,{items:t},{headers:this.headers}).pipe(Wh((function(t){return e.handleError(t)})))},t.prototype.types=function(){return this.doGet(this.getPath(this.paths.types))},t.prototype.gui=function(t){var e=this.getPath(this.paths.gui+(void 0!==t?"/"+t:""));return this.doGet(e)},t.prototype.callback=function(t,e){var n=this.getPath("gui/callback/"+t+"?"+e);return this.doGet(n)},t.prototype.tableInfo=function(){return this.doGet(this.getPath(this.paths.tableInfo))},t.prototype.detail=function(t,e){return new uS(this,t,e)},t.prototype.invoke=function(t,e){var n=t;return e&&(n=n+"?"+e),this.get(n)},t}(),uS=function(t){function e(e,n,i,r){var o=t.call(this,e.api,[e.paths.base,n,i].join("/"))||this;return o.parentModel=e,o.parentId=n,o.model=i,o.perm=r,o}return r(e,t),e.prototype.permision=function(){return this.perm||aS.ALL},e}(sS),lS=function(t){function e(e){var n=t.call(this,e,"providers")||this;return n.api=e,n}return r(e,t),e.prototype.allServices=function(){return this.get("allservices")},e.prototype.service=function(t){return this.get("service/"+t)},e.prototype.maintenance=function(t){return this.get(t+"/maintenance")},e}(sS),cS=function(t){function e(e){var n=t.call(this,e,"authenticators")||this;return n.api=e,n}return r(e,t),e.prototype.search=function(t,e,n,i){return void 0===i&&(i=12),this.get(t+"/search?type="+encodeURIComponent(e)+"&term="+encodeURIComponent(n)+"&limit="+i)},e}(sS),dS=function(t){function e(e){var n=t.call(this,e,"osmanagers")||this;return n.api=e,n}return r(e,t),e}(sS),pS=function(t){function e(e){var n=t.call(this,e,"transports")||this;return n.api=e,n}return r(e,t),e}(sS),hS=function(t){function e(e){var n=t.call(this,e,"networks")||this;return n.api=e,n}return r(e,t),e}(sS),fS=function(t){function e(e){var n=t.call(this,e,"servicespools")||this;return n.api=e,n}return r(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e.prototype.actionsList=function(t){return this.get(t+"/actionsList")},e.prototype.listAssignables=function(t){return this.get(t+"/listAssignables")},e.prototype.createFromAssignable=function(t,e,n){return this.get(t+"/createFromAssignable?user_id="+encodeURIComponent(e)+"&assignable_id="+encodeURIComponent(n))},e}(sS),mS=function(t){function e(e){var n=t.call(this,e,"metapools")||this;return n.api=e,n}return r(e,t),e.prototype.setFallbackAccess=function(t,e){return this.get(t+"/setFallbackAccess?fallbackAccess="+e)},e.prototype.getFallbackAccess=function(t){return this.get(t+"/getFallbackAccess")},e}(sS),gS=function(t){function e(e){var n=t.call(this,e,"config")||this;return n.api=e,n}return r(e,t),e}(sS),yS=function(t){function e(e){var n=t.call(this,e,"gallery/images")||this;return n.api=e,n}return r(e,t),e}(sS),vS=function(t){function e(e){var n=t.call(this,e,"gallery/servicespoolgroups")||this;return n.api=e,n}return r(e,t),e}(sS),bS=function(t){function e(e){var n=t.call(this,e,"system")||this;return n.api=e,n}return r(e,t),e.prototype.information=function(){return this.get("overview")},e.prototype.stats=function(t){return this.get("stats/"+t)},e.prototype.flushCache=function(){return this.doGet(this.getPath("cache","flush"))},e}(sS),_S=function(t){function e(e){var n=t.call(this,e,"reports")||this;return n.api=e,n}return r(e,t),e.prototype.types=function(){return Vp([])},e}(sS),wS=function(t){function e(e){var n=t.call(this,e,"calendars")||this;return n.api=e,n}return r(e,t),e}(sS),CS=function(t){function e(e){var n=t.call(this,e,"accounts")||this;return n.api=e,n}return r(e,t),e.prototype.timemark=function(t){return this.get(t+"/timemark")},e}(sS),xS=function(t){function e(e){var n=t.call(this,e,"proxies")||this;return n.api=e,n}return r(e,t),e}(sS),kS=function(t){function e(e){var n=t.call(this,e,"actortokens")||this;return n.api=e,n}return r(e,t),e}(sS),SS=function(){function t(t){this.api=t,this.providers=new lS(t),this.authenticators=new cS(t),this.osManagers=new dS(t),this.transports=new pS(t),this.networks=new hS(t),this.servicesPools=new fS(t),this.metaPools=new mS(t),this.gallery=new yS(t),this.servicesPoolGroups=new vS(t),this.calendars=new wS(t),this.accounts=new CS(t),this.proxy=new xS(t),this.system=new bS(t),this.configuration=new gS(t),this.actorToken=new kS(t),this.reports=new _S(t)}return t.\u0275prov=yt({token:t,factory:t.\u0275fac=function(e){return new(e||t)(ee(rS))},providedIn:"root"}),t}();function DS(t,e){if(1&t&&(Fa(0,"div",17),Fa(1,"div",11),ja(2,"img",3),Fa(3,"div",12),_s(4),La(),La(),Fa(5,"div",13),Fa(6,"a",15),Fa(7,"uds-translate"),_s(8,"View service pools"),La(),La(),La(),La()),2&t){var n=Za(2);vr(2),Ra("src",n.api.staticURL("admin/img/icons/logs.png"),qi),vr(2),Cs(" ",n.data.restrained," ")}}function ES(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"div",8),Fa(2,"div",9),Fa(3,"div",10),Fa(4,"div",11),ja(5,"img",3),Fa(6,"div",12),_s(7),La(),La(),Fa(8,"div",13),Fa(9,"a",14),Fa(10,"uds-translate"),_s(11,"View authenticators"),La(),La(),La(),La(),Fa(12,"div",10),Fa(13,"div",11),ja(14,"img",3),Fa(15,"div",12),_s(16),La(),La(),Fa(17,"div",13),Fa(18,"a",15),Fa(19,"uds-translate"),_s(20,"View service pools"),La(),La(),La(),La(),Fa(21,"div",10),Fa(22,"div",11),ja(23,"img",3),Fa(24,"div",12),_s(25),La(),La(),Fa(26,"div",13),Fa(27,"a",15),Fa(28,"uds-translate"),_s(29,"View service pools"),La(),La(),La(),La(),Aa(30,DS,9,2,"div",16),La(),La(),La()),2&t){var n=Za();vr(5),Ra("src",n.api.staticURL("admin/img/icons/authenticators.png"),qi),vr(2),Cs(" ",n.data.users," "),vr(7),Ra("src",n.api.staticURL("admin/img/icons/pools.png"),qi),vr(2),Cs(" ",n.data.pools," "),vr(7),Ra("src",n.api.staticURL("admin/img/icons/services.png"),qi),vr(2),Cs(" ",n.data.user_services," "),vr(5),Ra("ngIf",n.data.restrained)}}function AS(t,e){1&t&&(Fa(0,"div",18),Fa(1,"div",19),Fa(2,"p"),Fa(3,"uds-translate"),_s(4,"You are accessing UDS Administration as staff member."),La(),La(),Fa(5,"p"),Fa(6,"uds-translate"),_s(7,"This means that you have restricted access to elements."),La(),La(),Fa(8,"p"),Fa(9,"uds-translate"),_s(10,"In order to increase your access privileges, please contact your local UDS administrator."),La(),La(),ja(11,"br"),Fa(12,"p"),Fa(13,"uds-translate"),_s(14,"Thank you."),La(),La(),La(),La())}var OS=function(){function t(t,e){this.api=t,this.rest=e,this.data={}}return t.prototype.ngOnInit=function(){var t=this;this.api.user.isAdmin&&this.rest.system.information().subscribe((function(e){t.data={users:django.gettext("#USR_NUMBER# users, #GRP_NUMBER# groups").replace("#USR_NUMBER#",e.users).replace("#GRP_NUMBER#",e.groups),pools:django.gettext("#POOLS_NUMBER# service pools").replace("#POOLS_NUMBER#",e.service_pools),user_services:django.gettext("#SERVICES_NUMBER# user services").replace("#SERVICES_NUMBER#",e.user_services)},e.restrained_services_pools>0&&(t.data.restrained=django.gettext("#RESTRAINED_NUMBER# restrained services!").replace("#RESTRAINED_NUMBER#",e.restrained_services_pools))}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-summary"]],decls:11,vars:3,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-subtitle"],[1,"card-content"],[4,"ngIf","ngIfElse"],["noAdmin",""],[1,"admin"],[1,"information"],[1,"info-panel"],[1,"info-panel-data"],[1,"info-text"],[1,"info-panel-link"],["mat-button","","routerLink","/authenticators"],["mat-button","","routerLink","/pools/service-pools"],["class","info-panel info-danger",4,"ngIf"],[1,"info-panel","info-danger"],[1,"staff"],[1,"content"]],template:function(t,e){if(1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"div",2),ja(3,"img",3),Fa(4,"uds-translate"),_s(5,"Dashboard"),La(),La(),ja(6,"div",4),La(),Fa(7,"div",5),Aa(8,ES,31,7,"div",6),Aa(9,AS,15,0,"ng-template",null,7,yl),La(),La()),2&t){var n=Oa(10);vr(3),Ra("src",e.api.staticURL("admin/img/icons/dashboard-monitor.png"),qi),vr(5),Ra("ngIf",e.api.user.isAdmin)("ngIfElse",n)}},directives:[vx,Sd,gx,Rg],styles:[".card[_ngcontent-%COMP%]{height:80%}.staff[_ngcontent-%COMP%]{display:flex;justify-content:center}.admin[_ngcontent-%COMP%]{display:flex;flex-direction:column}.information[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;width:100%}.info-panel[_ngcontent-%COMP%]{border-color:#333;background-image:linear-gradient(135deg,#fdfcfb,#e2d1c3);box-shadow:0 1px 4px 0 rgba(0,0,0,.14);box-sizing:border-box;color:#333;display:flex;flex-direction:column;margin:2rem 1rem;width:100%}.info-danger[_ngcontent-%COMP%]{background-image:linear-gradient(90deg,#f83600 0,#f9d423);color:#fff;font-weight:700;font-size:1.5em}.info-panel-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;align-items:center;padding:1rem}.info-panel-data[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{margin-right:1rem;width:5rem}.info-text[_ngcontent-%COMP%]{width:100%;text-align:center}.info-panel-link[_ngcontent-%COMP%]{background:#4682b4}.info-panel-link[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{width:100%;color:#fff}"]}),t}(),IS=["underline"],PS=["connectionContainer"],TS=["inputContainer"],RS=["label"];function MS(t,e){1&t&&(Na(0),Fa(1,"div",14),ja(2,"div",15),ja(3,"div",16),ja(4,"div",17),La(),Fa(5,"div",18),ja(6,"div",15),ja(7,"div",16),ja(8,"div",17),La(),Ba())}function FS(t,e){1&t&&(Fa(0,"div",19),Qa(1,1),La())}function LS(t,e){if(1&t&&(Na(0),Qa(1,2),Fa(2,"span"),_s(3),La(),Ba()),2&t){var n=Za(2);vr(3),ws(n._control.placeholder)}}function jS(t,e){1&t&&Qa(0,3,["*ngSwitchCase","true"])}function NS(t,e){1&t&&(Fa(0,"span",23),_s(1," *"),La())}function BS(t,e){if(1&t){var n=za();Fa(0,"label",20,21),qa("cdkObserveContent",(function(t){return Ue(n),Za().updateOutlineGap()})),Aa(2,LS,4,1,"ng-container",12),Aa(3,jS,1,0,void 0,12),Aa(4,NS,2,0,"span",22),La()}if(2&t){var i=Za();ls("mat-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-form-field-empty",i._control.empty&&!i._shouldAlwaysFloat)("mat-accent","accent"==i.color)("mat-warn","warn"==i.color),Ra("cdkObserveContentDisabled","outline"!=i.appearance)("id",i._labelId)("ngSwitch",i._hasLabel()),Da("for",i._control.id)("aria-owns",i._control.id),vr(2),Ra("ngSwitchCase",!1),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngIf",!i.hideRequiredMarker&&i._control.required&&!i._control.disabled)}}function VS(t,e){1&t&&(Fa(0,"div",24),Qa(1,4),La())}function zS(t,e){if(1&t&&(Fa(0,"div",25,26),ja(2,"span",27),La()),2&t){var n=Za();vr(2),ls("mat-accent","accent"==n.color)("mat-warn","warn"==n.color)}}function HS(t,e){1&t&&(Fa(0,"div"),Qa(1,5),La()),2&t&&Ra("@transitionMessages",Za()._subscriptAnimationState)}function US(t,e){if(1&t&&(Fa(0,"div",31),_s(1),La()),2&t){var n=Za(2);Ra("id",n._hintLabelId),vr(1),ws(n.hintLabel)}}function qS(t,e){if(1&t&&(Fa(0,"div",28),Aa(1,US,2,2,"div",29),Qa(2,6),ja(3,"div",30),Qa(4,7),La()),2&t){var n=Za();Ra("@transitionMessages",n._subscriptAnimationState),vr(1),Ra("ngIf",n.hintLabel)}}var WS=["*",[["","matPrefix",""]],[["mat-placeholder"]],[["mat-label"]],[["","matSuffix",""]],[["mat-error"]],[["mat-hint",3,"align","end"]],[["mat-hint","align","end"]]],GS=["*","[matPrefix]","mat-placeholder","mat-label","[matSuffix]","mat-error","mat-hint:not([align='end'])","mat-hint[align='end']"],YS=0,KS=function(){function t(){this.id="mat-error-"+YS++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-error"]],hostAttrs:["role","alert",1,"mat-error"],hostVars:1,hostBindings:function(t,e){2&t&&Da("id",e.id)},inputs:{id:"id"}}),t}(),ZS={transitionMessages:sy("transitionMessages",[py("enter",dy({opacity:1,transform:"translateY(0%)"})),fy("void => enter",[dy({opacity:0,transform:"translateY(-100%)"}),uy("300ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},$S=function(){return function(){}}();function XS(t){return Error("A hint was already declared for 'align=\""+t+"\"'.")}var QS=0,JS=function(){function t(){this.align="start",this.id="mat-hint-"+QS++}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-hint"]],hostAttrs:[1,"mat-hint"],hostVars:4,hostBindings:function(t,e){2&t&&(Da("id",e.id)("align",null),ls("mat-right","end"==e.align))},inputs:{align:"align",id:"id"}}),t}(),tD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-label"]]}),t}(),eD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-placeholder"]]}),t}(),nD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matPrefix",""]]}),t}(),iD=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matSuffix",""]]}),t}(),rD=0,oD=nC(function(){return function(t){this._elementRef=t}}(),"primary"),aD=new Gt("MAT_FORM_FIELD_DEFAULT_OPTIONS"),sD=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;return l._elementRef=e,l._changeDetectorRef=n,l._dir=r,l._defaults=o,l._platform=a,l._ngZone=s,l._outlineGapCalculationNeededImmediately=!1,l._outlineGapCalculationNeededOnStable=!1,l._destroyed=new P,l._showAlwaysAnimate=!1,l._subscriptAnimationState="",l._hintLabel="",l._hintLabelId="mat-hint-"+rD++,l._labelId="mat-form-field-label-"+rD++,l._previousDirection="ltr",l._labelOptions=i||{},l.floatLabel=l._labelOptions.float||"auto",l._animationsEnabled="NoopAnimations"!==u,l.appearance=o&&o.appearance?o.appearance:"legacy",l._hideRequiredMarker=!(!o||null==o.hideRequiredMarker)&&o.hideRequiredMarker,l}return r(e,t),Object.defineProperty(e.prototype,"appearance",{get:function(){return this._appearance},set:function(t){var e=this._appearance;this._appearance=t||this._defaults&&this._defaults.appearance||"legacy","outline"===this._appearance&&e!==t&&(this._outlineGapCalculationNeededOnStable=!0)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hideRequiredMarker",{get:function(){return this._hideRequiredMarker},set:function(t){this._hideRequiredMarker=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_shouldAlwaysFloat",{get:function(){return"always"===this.floatLabel&&!this._showAlwaysAnimate},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_canLabelFloat",{get:function(){return"never"!==this.floatLabel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hintLabel",{get:function(){return this._hintLabel},set:function(t){this._hintLabel=t,this._processHints()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"floatLabel",{get:function(){return"legacy"!==this.appearance&&"never"===this._floatLabel?"auto":this._floatLabel},set:function(t){t!==this._floatLabel&&(this._floatLabel=t||this._labelOptions.float||"auto",this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_control",{get:function(){return this._explicitFormFieldControl||this._controlNonStatic||this._controlStatic},set:function(t){this._explicitFormFieldControl=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_labelChild",{get:function(){return this._labelChildNonStatic||this._labelChildStatic},enumerable:!0,configurable:!0}),e.prototype.getConnectedOverlayOrigin=function(){return this._connectionContainerRef||this._elementRef},e.prototype.ngAfterContentInit=function(){var t=this;this._validateControlChild();var e=this._control;e.controlType&&this._elementRef.nativeElement.classList.add("mat-form-field-type-"+e.controlType),e.stateChanges.pipe(of(null)).subscribe((function(){t._validatePlaceholders(),t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),e.ngControl&&e.ngControl.valueChanges&&e.ngControl.valueChanges.pipe(av(this._destroyed)).subscribe((function(){return t._changeDetectorRef.markForCheck()})),this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(av(t._destroyed)).subscribe((function(){t._outlineGapCalculationNeededOnStable&&t.updateOutlineGap()}))})),tt(this._prefixChildren.changes,this._suffixChildren.changes).subscribe((function(){t._outlineGapCalculationNeededOnStable=!0,t._changeDetectorRef.markForCheck()})),this._hintChildren.changes.pipe(of(null)).subscribe((function(){t._processHints(),t._changeDetectorRef.markForCheck()})),this._errorChildren.changes.pipe(of(null)).subscribe((function(){t._syncDescribedByIds(),t._changeDetectorRef.markForCheck()})),this._dir&&this._dir.change.pipe(av(this._destroyed)).subscribe((function(){t.updateOutlineGap(),t._previousDirection=t._dir.value}))},e.prototype.ngAfterContentChecked=function(){this._validateControlChild(),this._outlineGapCalculationNeededImmediately&&this.updateOutlineGap()},e.prototype.ngAfterViewInit=function(){this._subscriptAnimationState="enter",this._changeDetectorRef.detectChanges()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},e.prototype._shouldForward=function(t){var e=this._control?this._control.ngControl:null;return e&&e[t]},e.prototype._hasPlaceholder=function(){return!!(this._control&&this._control.placeholder||this._placeholderChild)},e.prototype._hasLabel=function(){return!!this._labelChild},e.prototype._shouldLabelFloat=function(){return this._canLabelFloat&&(this._control.shouldLabelFloat||this._shouldAlwaysFloat)},e.prototype._hideControlPlaceholder=function(){return"legacy"===this.appearance&&!this._hasLabel()||this._hasLabel()&&!this._shouldLabelFloat()},e.prototype._hasFloatingLabel=function(){return this._hasLabel()||"legacy"===this.appearance&&this._hasPlaceholder()},e.prototype._getDisplayedMessages=function(){return this._errorChildren&&this._errorChildren.length>0&&this._control.errorState?"error":"hint"},e.prototype._animateAndLockLabel=function(){var t=this;this._hasFloatingLabel()&&this._canLabelFloat&&(this._animationsEnabled&&(this._showAlwaysAnimate=!0,Hy(this._label.nativeElement,"transitionend").pipe(Kh(1)).subscribe((function(){t._showAlwaysAnimate=!1}))),this.floatLabel="always",this._changeDetectorRef.markForCheck())},e.prototype._validatePlaceholders=function(){if(this._control.placeholder&&this._placeholderChild)throw Error("Placeholder attribute and child element were both specified.")},e.prototype._processHints=function(){this._validateHints(),this._syncDescribedByIds()},e.prototype._validateHints=function(){var t,e,n=this;this._hintChildren&&this._hintChildren.forEach((function(i){if("start"===i.align){if(t||n.hintLabel)throw XS("start");t=i}else if("end"===i.align){if(e)throw XS("end");e=i}}))},e.prototype._syncDescribedByIds=function(){if(this._control){var t=[];if("hint"===this._getDisplayedMessages()){var e=this._hintChildren?this._hintChildren.find((function(t){return"start"===t.align})):null,n=this._hintChildren?this._hintChildren.find((function(t){return"end"===t.align})):null;e?t.push(e.id):this._hintLabel&&t.push(this._hintLabelId),n&&t.push(n.id)}else this._errorChildren&&(t=this._errorChildren.map((function(t){return t.id})));this._control.setDescribedByIds(t)}},e.prototype._validateControlChild=function(){if(!this._control)throw Error("mat-form-field must contain a MatFormFieldControl.")},e.prototype.updateOutlineGap=function(){var t=this._label?this._label.nativeElement:null;if("outline"===this.appearance&&t&&t.children.length&&t.textContent.trim()&&this._platform.isBrowser)if(document.documentElement.contains(this._elementRef.nativeElement)){var e=0,n=0,i=this._connectionContainerRef.nativeElement,r=i.querySelectorAll(".mat-form-field-outline-start"),o=i.querySelectorAll(".mat-form-field-outline-gap");if(this._label&&this._label.nativeElement.children.length){var a=i.getBoundingClientRect();if(0===a.width&&0===a.height)return this._outlineGapCalculationNeededOnStable=!0,void(this._outlineGapCalculationNeededImmediately=!1);for(var s=this._getStartEnd(a),u=this._getStartEnd(t.children[0].getBoundingClientRect()),l=0,c=0,d=t.children;c0?.75*l+10:0}for(var p=0;pt?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return xD(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return xD(t.value)?null:DD.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(xD(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?(i="","^"!==e.charAt(0)&&(i+="^"),i+=e,"$"!==e.charAt(e.length-1)&&(i+="$"),n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(xD(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}):t.nullValidator;var n,i},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(AD);return 0==e.length?null:function(t){return ID(function(t,e){return e.map((function(e){return e(t)}))}(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(AD);return 0==e.length?null:function(t){return function(){for(var t=[],e=0;e=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.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),jD=function(){function t(t,e,n,i){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=i,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get(bD),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: \n ')},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks),Ia(LD),Ia(ca))},t.\u0275dir=Ee({type:t,selectors:[["input","type","radio","formControlName",""],["input","type","radio","formControl",""],["input","type","radio","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange()}))("blur",(function(t){return e.onTouched()}))},inputs:{name:"name",formControlName:"formControlName",value:"value"},features:[Us([FD])]}),t}(),ND={provide:cD,useExisting:It((function(){return BD})),multi:!0},BD=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["input","type","range","formControlName",""],["input","type","range","formControl",""],["input","type","range","ngModel",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("input",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},features:[Us([ND])]}),t}(),VD='\n

\n \n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',zD='\n
\n
\n \n
\n
\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',HD='\n
\n
\n \n
\n
',UD=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+VD)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+zD+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+HD)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+VD)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+zD)},t.arrayParentException=function(){throw new Error('formArrayName must be used with a parent formGroup directive. You\'ll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n \n
\n
\n
\n \n
\n
\n
\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });')},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t.ngModelWarning=function(t){console.warn("\n It looks like you're using ngModel on the same form field as "+t+". \n Support for using the ngModel input property and ngModelChange event with \n reactive form directives has been deprecated in Angular v6 and will be removed \n in Angular v7.\n \n For more information on this, see our API docs here:\n https://angular.io/api/forms/"+("formControl"===t?"FormControlDirective":"FormControlName")+"#use-with-ngmodel\n ")},t}(),qD={provide:cD,useExisting:It((function(){return GD})),multi:!0};function WD(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var GD=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=va}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=WD(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){var e,n;try{for(var i=a(Array.from(this._optionMap.keys())),r=i.next();!r.done;r=i.next()){var o=r.value;if(this._compareWith(this._optionMap.get(o),t))return o}}catch(s){e={error:s}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(e)throw e.error}}return null},t.prototype._getOptionValue=function(t){var e=function(t){return t.split(":")[0]}(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t.\u0275fac=function(e){return new(e||t)(Ia(Qs),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["select","formControlName","",3,"multiple",""],["select","formControl","",3,"multiple",""],["select","ngModel","",3,"multiple",""]],hostBindings:function(t,e){1&t&&qa("change",(function(t){return e.onChange(t.target.value)}))("blur",(function(t){return e.onTouched()}))},inputs:{compareWith:"compareWith"},features:[Us([qD])]}),t}(),YD=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(WD(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Qs),Ia(GD,9))},t.\u0275dir=Ee({type:t,selectors:[["option"]],inputs:{ngValue:"ngValue",value:"value"}}),t}(),KD={provide:cD,useExisting:It((function(){return $D})),multi:!0};function ZD(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}var $D=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=va}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e,n=this;if(this.value=t,Array.isArray(t)){var i=t.map((function(t){return n._getOptionId(t)}));e=function(t,e){t._setSelected(i.indexOf(e.toString())>-1)}}else e=function(t,e){t._setSelected(!1)};this._optionMap.forEach(e)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var i=[];if(n.hasOwnProperty("selectedOptions"))for(var r=n.selectedOptions,o=0;o1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function rE(t){return null!=t?ED.compose(t.map(PD)):null}function oE(t){return null!=t?ED.composeAsync(t.map(TD)):null}function aE(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!va(e,n.currentValue)}var sE=[pD,BD,MD,GD,$D,jD];function uE(t,e){t._syncPendingControls(),e.forEach((function(t){var e=t.control;"submit"===e.updateOn&&e._pendingChange&&(t.viewToModelUpdate(e._pendingValue),e._pendingChange=!1)}))}function lE(t,e){if(!e)return null;Array.isArray(e)||iE(t,"Value accessor was not provided as an array for form control with");var n=void 0,i=void 0,r=void 0;return e.forEach((function(e){var o;e.constructor===mD?n=e:(o=e,sE.some((function(t){return o.constructor===t}))?(i&&iE(t,"More than one built-in value accessor matches form control with"),i=e):(r&&iE(t,"More than one custom value accessor matches form control with"),r=e))})),r||i||n||(iE(t,"No valid value accessor for form control with"),null)}function cE(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function dE(t,e,n,i){yi()&&"never"!==i&&((null!==i&&"once"!==i||e._ngModelWarningSentOnce)&&("always"!==i||n._ngModelWarningSent)||(UD.ngModelWarning(t),e._ngModelWarningSentOnce=!0,n._ngModelWarningSent=!0))}function pE(t){var e=fE(t)?t.validators:t;return Array.isArray(e)?rE(e):e||null}function hE(t,e){var n=fE(e)?e.asyncValidators:t;return Array.isArray(n)?oE(n):n||null}function fE(t){return null!=t&&!Array.isArray(t)&&"object"==typeof t}var mE=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=pE(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=hE(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.markAllAsTouched=function(){this.markAsTouched({onlySelf:!0}),this._forEachChild((function(t){return t.markAllAsTouched()}))},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={});var e=this._parentMarkedDirty(t.onlySelf);this.status="DISABLED",this.errors=null,this._forEachChild((function(e){e.disable(o(o({},t),{onlySelf:!0}))})),this._updateValue(),!1!==t.emitEvent&&(this.valueChanges.emit(this.value),this.statusChanges.emit(this.status)),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!0)}))},t.prototype.enable=function(t){void 0===t&&(t={});var e=this._parentMarkedDirty(t.onlySelf);this.status="VALID",this._forEachChild((function(e){e.enable(o(o({},t),{onlySelf:!0}))})),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(o(o({},t),{skipPristineCheck:e})),this._onDisabledChange.forEach((function(t){return t(!1)}))},t.prototype._updateAncestors=function(t){this._parent&&!t.onlySelf&&(this._parent.updateValueAndValidity(t),t.skipPristineCheck||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=OD(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){if(null==e)return null;if(Array.isArray(e)||(e=e.split(".")),Array.isArray(e)&&0===e.length)return null;var i=t;return e.forEach((function(t){i=i instanceof yE?i.controls.hasOwnProperty(t)?i.controls[t]:null:i instanceof vE&&i.at(t)||null})),i}(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 Zu,this.statusChanges=new Zu},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){fE(t)&&null!=t.updateOn&&(this._updateOn=t.updateOn)},t.prototype._parentMarkedDirty=function(t){return!t&&this._parent&&this._parent.dirty&&!this._parent._anyControlsDirty()},t}(),gE=function(t){function e(e,n,i){void 0===e&&(e=null);var r=t.call(this,pE(n),hE(i,n))||this;return r._onChange=[],r._applyFormState(e),r._setUpdateStrategy(n),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r._initObservables(),r}return r(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}(mE),yE=function(t){function e(e,n,i){var r=t.call(this,pE(n),hE(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(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(i){n._throwIfControlMissing(i),n.controls[i].setValue(t[i],{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(i){n.controls[i]&&n.controls[i].patchValue(t[i],{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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},(function(t,e,n){return t[n]=e instanceof gE?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(i,r){n=n||e.contains(r)&&t(i)})),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},(function(e,n,i){return(n.enabled||t.disabled)&&(e[i]=n.value),e}))},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild((function(t,i){n=e(n,t,i)})),n},e.prototype._allControlsDisabled=function(){var t,e;try{for(var n=a(Object.keys(this.controls)),i=n.next();!i.done;i=n.next())if(this.controls[i.value].enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild((function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")}))},e}(mE),vE=function(t){function e(e,n,i){var r=t.call(this,pE(n),hE(i,n))||this;return r.controls=e,r._initObservables(),r._setUpdateStrategy(n),r._setUpControls(),r.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),r}return r(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,i){n._throwIfControlMissing(i),n.at(i).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,i){n.at(i)&&n.at(i).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,i){n.reset(t[i],{onlySelf:!0,emitEvent:e.emitEvent})})),this._updatePristine(e),this._updateTouched(e),this.updateValueAndValidity(e)},e.prototype.getRawValue=function(){return this.controls.map((function(t){return t instanceof gE?t.value:t.getRawValue()}))},e.prototype.clear=function(){this.controls.length<1||(this._forEachChild((function(t){return t._registerOnCollectionChange((function(){}))})),this.controls.splice(0),this.updateValueAndValidity())},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),i=n.next();!i.done;i=n.next())if(i.value.enabled)return!1}catch(r){t={error:r}}finally{try{i&&!i.done&&(e=n.return)&&e.call(n)}finally{if(t)throw t.error}}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(mE),bE={provide:yD,useExisting:It((function(){return wE}))},_E=function(){return Promise.resolve(null)}(),wE=function(t){function e(e,n){var i=t.call(this)||this;return i.submitted=!1,i._directives=[],i.ngSubmit=new Zu,i.form=new yE({},rE(e),oE(n)),i}return r(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;_E.then((function(){var n=e._findContainer(t.path);t.control=n.registerControl(t.name,t.control),JD(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;_E.then((function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name),cE(e._directives,t)}))},e.prototype.addFormGroup=function(t){var e=this;_E.then((function(){var n=e._findContainer(t.path),i=new yE({});eE(i,t),n.registerControl(t.name,i),i.updateValueAndValidity({emitEvent:!1})}))},e.prototype.removeFormGroup=function(t){var e=this;_E.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;_E.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,uE(this.form,this._directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.form._updateOn=this.options.updateOn)},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["form",3,"ngNoForm","",3,"formGroup",""],["ng-form"],["","ngForm",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{options:["ngFormOptions","options"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([bE]),Es]}),e}(yD),CE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,features:[Es]});var n=ei(e);return e}(yD),xE=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+VD+'\n\n Or, if you\'d like to avoid registering this form control, indicate that it\'s standalone in ngModelOptions:\n\n Example:\n\n \n
\n \n \n
\n ')},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+zD+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+HD)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: \n Example 2: ')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+zD+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+HD)},t}(),kE={provide:yD,useExisting:It((function(){return SE}))},SE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}var n;return r(e,t),n=e,e.prototype._checkParentType=function(){this._parent instanceof n||this._parent instanceof wE||xE.modelGroupParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,5),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","ngModelGroup",""]],inputs:{name:["ngModelGroup","name"]},exportAs:["ngModelGroup"],features:[Us([kE]),Es]}),e}(CE),DE={provide:bD,useExisting:It((function(){return AE}))},EE=function(){return Promise.resolve(null)}(),AE=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o.control=new gE,o._registered=!1,o.update=new Zu,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=i||[],o.valueAccessor=lE(o,r),o}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),aE(t,this.viewModel)&&(this._updateValue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?QD(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._setUpdateStrategy(),this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._setUpdateStrategy=function(){this.options&&null!=this.options.updateOn&&(this.control._updateOn=this.options.updateOn)},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){JD(this.control,this),this.control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof SE)&&this._parent instanceof CE?xE.formGroupNameException():this._parent instanceof SE||this._parent instanceof wE||xE.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||xE.missingNameException()},e.prototype._updateValue=function(t){var e=this;EE.then((function(){e.control.setValue(t,{emitViewToModelChange:!1})}))},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,i=""===n||n&&"false"!==n;EE.then((function(){i&&!e.control.disabled?e.control.disable():!i&&e.control.disabled&&e.control.enable()}))},e.\u0275fac=function(t){return new(t||e)(Ia(yD,9),Ia(kD,10),Ia(SD,10),Ia(cD,10))},e.\u0275dir=Ee({type:e,selectors:[["","ngModel","",3,"formControlName","",3,"formControl",""]],inputs:{name:"name",isDisabled:["disabled","isDisabled"],model:["ngModel","model"],options:["ngModelOptions","options"]},outputs:{update:"ngModelChange"},exportAs:["ngModel"],features:[Us([DE]),Es,Rs()]}),e}(bD),OE=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["form",3,"ngNoForm","",3,"ngNativeValidate",""]],hostAttrs:["novalidate",""]}),t}(),IE=new Gt("NgModelWithFormControlWarning"),PE={provide:bD,useExisting:It((function(){return TE}))},TE=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._ngModelWarningConfig=r,o.update=new Zu,o._ngModelWarningSent=!1,o._rawValidators=e||[],o._rawAsyncValidators=n||[],o.valueAccessor=lE(o,i),o}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){UD.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(JD(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),aE(t,this.viewModel)&&(dE("formControl",n,this,this._ngModelWarningConfig),this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10),Ia(cD,10),Ia(IE,8))},e.\u0275dir=Ee({type:e,selectors:[["","formControl",""]],inputs:{isDisabled:["disabled","isDisabled"],form:["formControl","form"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},exportAs:["ngForm"],features:[Us([PE]),Es,Rs()]}),e}(bD),RE={provide:yD,useExisting:It((function(){return ME}))},ME=function(t){function e(e,n){var i=t.call(this)||this;return i._validators=e,i._asyncValidators=n,i.submitted=!1,i.directives=[],i.form=null,i.ngSubmit=new Zu,i}return r(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return JD(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){cE(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);eE(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);eE(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this.submitted=!0,uE(this.form,this.directives),this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this.submitted=!1},e.prototype._updateDomValue=function(){var t=this;this.directives.forEach((function(e){var n=t.form.get(e.path);e.control!==n&&(function(t,e){e.valueAccessor.registerOnChange((function(){return nE(e)})),e.valueAccessor.registerOnTouched((function(){return nE(e)})),e._rawValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),e._rawAsyncValidators.forEach((function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)})),t&&t._clearChangeFns()}(e.control,e),n&&JD(n,e),e.control=n)})),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange((function(){return t._updateDomValue()})),this._oldForm&&this._oldForm._registerOnCollectionChange((function(){})),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=rE(this._validators);this.form.validator=ED.compose([this.form.validator,t]);var e=oE(this._asyncValidators);this.form.asyncValidator=ED.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||UD.missingFormException()},e.\u0275fac=function(t){return new(t||e)(Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroup",""]],hostBindings:function(t,e){1&t&&qa("submit",(function(t){return e.onSubmit(t)}))("reset",(function(t){return e.onReset()}))},inputs:{form:["formGroup","form"]},outputs:{ngSubmit:"ngSubmit"},exportAs:["ngForm"],features:[Us([RE]),Es,Rs()]}),e}(yD),FE={provide:yD,useExisting:It((function(){return LE}))},LE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype._checkParentType=function(){BE(this._parent)&&UD.groupParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formGroupName",""]],inputs:{name:["formGroupName","name"]},features:[Us([FE]),Es]}),e}(CE),jE={provide:yD,useExisting:It((function(){return NE}))},NE=function(t){function e(e,n,i){var r=t.call(this)||this;return r._parent=e,r._validators=n,r._asyncValidators=i,r}return r(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){BE(this._parent)&&UD.arrayParentException()},e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10))},e.\u0275dir=Ee({type:e,selectors:[["","formArrayName",""]],inputs:{name:["formArrayName","name"]},features:[Us([jE]),Es]}),e}(yD);function BE(t){return!(t instanceof LE||t instanceof ME||t instanceof NE)}var VE={provide:bD,useExisting:It((function(){return zE}))},zE=function(t){function e(e,n,i,r,o){var a=t.call(this)||this;return a._ngModelWarningConfig=o,a._added=!1,a.update=new Zu,a._ngModelWarningSent=!1,a._parent=e,a._rawValidators=n||[],a._rawAsyncValidators=i||[],a.valueAccessor=lE(a,r),a}var n;return r(e,t),n=e,Object.defineProperty(e.prototype,"isDisabled",{set:function(t){UD.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),aE(t,this.viewModel)&&(dE("formControlName",n,this,this._ngModelWarningConfig),this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return QD(null==this.name?this.name:this.name.toString(),this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return rE(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return oE(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof LE)&&this._parent instanceof CE?UD.ngModelGroupException():this._parent instanceof LE||this._parent instanceof ME||this._parent instanceof NE||UD.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this.control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e._ngModelWarningSentOnce=!1,e.\u0275fac=function(t){return new(t||e)(Ia(yD,13),Ia(kD,10),Ia(SD,10),Ia(cD,10),Ia(IE,8))},e.\u0275dir=Ee({type:e,selectors:[["","formControlName",""]],inputs:{isDisabled:["disabled","isDisabled"],name:["formControlName","name"],model:["ngModel","model"]},outputs:{update:"ngModelChange"},features:[Us([VE]),Es,Rs()]}),e}(bD),HE={provide:kD,useExisting:It((function(){return qE})),multi:!0},UE={provide:kD,useExisting:It((function(){return WE})),multi:!0},qE=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?ED.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","required","","formControlName","",3,"type","checkbox"],["","required","","formControl","",3,"type","checkbox"],["","required","","ngModel","",3,"type","checkbox"]],hostVars:1,hostBindings:function(t,e){2&t&&Da("required",e.required?"":null)},inputs:{required:"required"},features:[Us([HE])]}),t}(),WE=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.prototype.validate=function(t){return this.required?ED.requiredTrue(t):null},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["input","type","checkbox","required","","formControlName",""],["input","type","checkbox","required","","formControl",""],["input","type","checkbox","required","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("required",e.required?"":null)},features:[Us([UE]),Es]});var n=ei(e);return e}(qE),GE={provide:kD,useExisting:It((function(){return YE})),multi:!0},YE=function(){function t(){}return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?ED.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","email","","formControlName",""],["","email","","formControl",""],["","email","","ngModel",""]],inputs:{email:"email"},features:[Us([GE])]}),t}(),KE={provide:kD,useExisting:It((function(){return ZE})),multi:!0},ZE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.minLength("number"==typeof this.minlength?this.minlength:parseInt(this.minlength,10))},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","minlength","","formControlName",""],["","minlength","","formControl",""],["","minlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("minlength",e.minlength?e.minlength:null)},inputs:{minlength:"minlength"},features:[Us([KE]),Rs()]}),t}(),$E={provide:kD,useExisting:It((function(){return XE})),multi:!0},XE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.maxLength("number"==typeof this.maxlength?this.maxlength:parseInt(this.maxlength,10))},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","maxlength","","formControlName",""],["","maxlength","","formControl",""],["","maxlength","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("maxlength",e.maxlength?e.maxlength:null)},inputs:{maxlength:"maxlength"},features:[Us([$E]),Rs()]}),t}(),QE={provide:kD,useExisting:It((function(){return JE})),multi:!0},JE=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=ED.pattern(this.pattern)},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","pattern","","formControlName",""],["","pattern","","formControl",""],["","pattern","","ngModel",""]],hostVars:1,hostBindings:function(t,e){2&t&&Da("pattern",e.pattern?e.pattern:null)},inputs:{pattern:"pattern"},features:[Us([QE]),Rs()]}),t}(),tA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),eA=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),i=null,r=null,o=void 0;return null!=e&&(function(t){return void 0!==t.asyncValidators||void 0!==t.validators||void 0!==t.updateOn}(e)?(i=null!=e.validators?e.validators:null,r=null!=e.asyncValidators?e.asyncValidators:null,o=null!=e.updateOn?e.updateOn:void 0):(i=null!=e.validator?e.validator:null,r=null!=e.asyncValidator?e.asyncValidator:null)),new yE(n,{asyncValidators:r,updateOn:o,validators:i})},t.prototype.control=function(t,e,n){return new gE(t,e,n)},t.prototype.array=function(t,e,n){var i=this,r=t.map((function(t){return i._createControl(t)}));return new vE(r,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach((function(i){n[i]=e._createControl(t[i])})),n},t.prototype._createControl=function(t){return t instanceof gE||t instanceof yE||t instanceof vE?t:Array.isArray(t)?this.control(t[0],t.length>1?t[1]:null,t.length>2?t[2]:null):this.control(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)}}),t}(),nA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[LD],imports:[tA]}),t}(),iA=function(){function t(){}var e;return e=t,t.withConfig=function(t){return{ngModule:e,providers:[{provide:IE,useValue:t.warnOnNgModelWithFormControl}]}},t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[eA,LD],imports:[tA]}),t}(),rA=["trigger"],oA=["panel"];function aA(t,e){if(1&t&&(Fa(0,"span",8),_s(1),La()),2&t){var n=Za();vr(1),ws(n.placeholder||"\xa0")}}function sA(t,e){if(1&t&&(Fa(0,"span"),_s(1),La()),2&t){var n=Za(2);vr(1),ws(n.triggerValue||"\xa0")}}function uA(t,e){1&t&&Qa(0,0,["*ngSwitchCase","true"])}function lA(t,e){1&t&&(Fa(0,"span",9),Aa(1,sA,2,1,"span",10),Aa(2,uA,1,0,void 0,11),La()),2&t&&(Ra("ngSwitch",!!Za().customTrigger),vr(2),Ra("ngSwitchCase",!0))}function cA(t,e){if(1&t){var n=za();Fa(0,"div",12),Fa(1,"div",13,14),qa("@transformPanel.done",(function(t){return Ue(n),Za()._panelDoneAnimatingStream.next(t.toState)}))("keydown",(function(t){return Ue(n),Za()._handleKeydown(t)})),Qa(3,1),La(),La()}if(2&t){var i=Za();Ra("@transformPanelWrap",void 0),vr(1),r="mat-select-panel ",o=i._getPanelTheme(),a="",function(t,e,n,i){var r=He(),o=Je(2);r.firstUpdatePass&&hs(r,null,o,!0);var a=ze();if(n!==gr&&ka(a,o,n)){var s=r.data[cn()+19];bs(s,!0)&&!ps(r,o)?("string"==typeof n&&(n=At(s.classes,n)),Ma(r,s,a,n,!0)):function(t,e,n,i,r,o,a,s){r===gr&&(r=es);for(var u=0,l=0,c=0 void",gy("@transformPanel",[my()],{optional:!0}))]),transformPanel:sy("transformPanel",[py("void",dy({transform:"scaleY(0.8)",minWidth:"100%",opacity:0})),py("showing",dy({opacity:1,minWidth:"calc(100% + 32px)",transform:"scaleY(1)"})),py("showing-multiple",dy({opacity:1,minWidth:"calc(100% + 64px)",transform:"scaleY(1)"})),fy("void => *",uy("120ms cubic-bezier(0, 0, 0.2, 1)")),fy("* => void",uy("100ms 25ms linear",dy({opacity:0})))]),fadeInContent:sy("fadeInContent",[py("showing",dy({opacity:1})),fy("void => showing",[dy({opacity:0}),uy("150ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},fA=0,mA=new Gt("mat-select-scroll-strategy"),gA={provide:mA,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},yA=function(){return function(t,e){this.source=t,this.value=e}}(),vA=iC(rC(eC(oC(function(){return function(t,e,n,i,r){this._elementRef=t,this._defaultErrorStateMatcher=e,this._parentForm=n,this._parentFormGroup=i,this.ngControl=r}}())))),bA=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-select-trigger"]]}),t}(),_A=function(t){function e(e,n,i,r,o,a,s,u,l,c,d,p,h){var f=t.call(this,o,r,s,u,c)||this;return f._viewportRuler=e,f._changeDetectorRef=n,f._ngZone=i,f._dir=a,f._parentFormField=l,f.ngControl=c,f._liveAnnouncer=h,f._panelOpen=!1,f._required=!1,f._scrollTop=0,f._multiple=!1,f._compareWith=function(t,e){return t===e},f._uid="mat-select-"+fA++,f._destroy=new P,f._triggerFontSize=0,f._onChange=function(){},f._onTouched=function(){},f._optionIds="",f._transformOrigin="top",f._panelDoneAnimatingStream=new P,f._offsetY=0,f._positions=[{originX:"start",originY:"top",overlayX:"start",overlayY:"top"},{originX:"start",originY:"bottom",overlayX:"start",overlayY:"bottom"}],f._disableOptionCentering=!1,f._focused=!1,f.controlType="mat-select",f.ariaLabel="",f.optionSelectionChanges=Ph((function(){var t=f.options;return t?t.changes.pipe(of(t),tf((function(){return tt.apply(void 0,t.map((function(t){return t.onSelectionChange})))}))):f._ngZone.onStable.asObservable().pipe(Kh(1),tf((function(){return f.optionSelectionChanges})))})),f.openedChange=new Zu,f._openedStream=f.openedChange.pipe(Hp((function(t){return t})),U((function(){}))),f._closedStream=f.openedChange.pipe(Hp((function(t){return!t})),U((function(){}))),f.selectionChange=new Zu,f.valueChange=new Zu,f.ngControl&&(f.ngControl.valueAccessor=f),f._scrollStrategyFactory=p,f._scrollStrategy=f._scrollStrategyFactory(),f.tabIndex=parseInt(d)||0,f.id=f.id,f}return r(e,t),Object.defineProperty(e.prototype,"focused",{get:function(){return this._focused||this._panelOpen},set:function(t){this._focused=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){if(this._selectionModel)throw Error("Cannot change `multiple` mode of select after initialization.");this._multiple=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disableOptionCentering",{get:function(){return this._disableOptionCentering},set:function(t){this._disableOptionCentering=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){if("function"!=typeof t)throw Error("`compareWith` must be a function.");this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){t!==this._value&&(this.writeValue(t),this._value=t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid,this.stateChanges.next()},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._selectionModel=new xv(this.multiple),this.stateChanges.next(),this._panelDoneAnimatingStream.pipe($y(),av(this._destroy)).subscribe((function(){t.panelOpen?(t._scrollTop=0,t.openedChange.emit(!0)):(t.openedChange.emit(!1),t.overlayDir.offsetX=0,t._changeDetectorRef.markForCheck())})),this._viewportRuler.change().pipe(av(this._destroy)).subscribe((function(){t._panelOpen&&(t._triggerRect=t.trigger.nativeElement.getBoundingClientRect(),t._changeDetectorRef.markForCheck())}))},e.prototype.ngAfterContentInit=function(){var t=this;this._initKeyManager(),this._selectionModel.onChange.pipe(av(this._destroy)).subscribe((function(t){t.added.forEach((function(t){return t.select()})),t.removed.forEach((function(t){return t.deselect()}))})),this.options.changes.pipe(of(null),av(this._destroy)).subscribe((function(){t._resetOptions(),t._initializeSelection()}))},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnChanges=function(t){t.disabled&&this.stateChanges.next(),t.typeaheadDebounceInterval&&this._keyManager&&this._keyManager.withTypeAhead(this.typeaheadDebounceInterval)},e.prototype.ngOnDestroy=function(){this._destroy.next(),this._destroy.complete(),this.stateChanges.complete()},e.prototype.toggle=function(){this.panelOpen?this.close():this.open()},e.prototype.open=function(){var t=this;!this.disabled&&this.options&&this.options.length&&!this._panelOpen&&(this._triggerRect=this.trigger.nativeElement.getBoundingClientRect(),this._triggerFontSize=parseInt(getComputedStyle(this.trigger.nativeElement).fontSize||"0"),this._panelOpen=!0,this._keyManager.withHorizontalOrientation(null),this._calculateOverlayPosition(),this._highlightCorrectOption(),this._changeDetectorRef.markForCheck(),this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._triggerFontSize&&t.overlayDir.overlayRef&&t.overlayDir.overlayRef.overlayElement&&(t.overlayDir.overlayRef.overlayElement.style.fontSize=t._triggerFontSize+"px")})))},e.prototype.close=function(){this._panelOpen&&(this._panelOpen=!1,this._keyManager.withHorizontalOrientation(this._isRtl()?"rtl":"ltr"),this._changeDetectorRef.markForCheck(),this._onTouched())},e.prototype.writeValue=function(t){this.options&&this._setSelectionByValue(t)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck(),this.stateChanges.next()},Object.defineProperty(e.prototype,"panelOpen",{get:function(){return this._panelOpen},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"triggerValue",{get:function(){if(this.empty)return"";if(this._multiple){var t=this._selectionModel.selected.map((function(t){return t.viewValue}));return this._isRtl()&&t.reverse(),t.join(", ")}return this._selectionModel.selected[0].viewValue},enumerable:!0,configurable:!0}),e.prototype._isRtl=function(){return!!this._dir&&"rtl"===this._dir.value},e.prototype._handleKeydown=function(t){this.disabled||(this.panelOpen?this._handleOpenKeydown(t):this._handleClosedKeydown(t))},e.prototype._handleClosedKeydown=function(t){var e=t.keyCode,n=40===e||38===e||37===e||39===e,i=this._keyManager;if((13===e||32===e)&&!Py(t)||(this.multiple||t.altKey)&&n)t.preventDefault(),this.open();else if(!this.multiple){var r=this.selected;36===e||35===e?(36===e?i.setFirstItemActive():i.setLastItemActive(),t.preventDefault()):i.onKeydown(t);var o=this.selected;this._liveAnnouncer&&o&&r!==o&&this._liveAnnouncer.announce(o.viewValue,1e4)}},e.prototype._handleOpenKeydown=function(t){var e=t.keyCode,n=40===e||38===e,i=this._keyManager;if(36===e||35===e)t.preventDefault(),36===e?i.setFirstItemActive():i.setLastItemActive();else if(n&&t.altKey)t.preventDefault(),this.close();else if(13!==e&&32!==e||!i.activeItem||Py(t))if(this._multiple&&65===e&&t.ctrlKey){t.preventDefault();var r=this.options.some((function(t){return!t.disabled&&!t.selected}));this.options.forEach((function(t){t.disabled||(r?t.select():t.deselect())}))}else{var o=i.activeItemIndex;i.onKeydown(t),this._multiple&&n&&t.shiftKey&&i.activeItem&&i.activeItemIndex!==o&&i.activeItem._selectViaInteraction()}else t.preventDefault(),i.activeItem._selectViaInteraction()},e.prototype._onFocus=function(){this.disabled||(this._focused=!0,this.stateChanges.next())},e.prototype._onBlur=function(){this._focused=!1,this.disabled||this.panelOpen||(this._onTouched(),this._changeDetectorRef.markForCheck(),this.stateChanges.next())},e.prototype._onAttached=function(){var t=this;this.overlayDir.positionChange.pipe(Kh(1)).subscribe((function(){t._changeDetectorRef.detectChanges(),t._calculateOverlayOffsetX(),t.panel.nativeElement.scrollTop=t._scrollTop}))},e.prototype._getPanelTheme=function(){return this._parentFormField?"mat-"+this._parentFormField.color:""},Object.defineProperty(e.prototype,"empty",{get:function(){return!this._selectionModel||this._selectionModel.isEmpty()},enumerable:!0,configurable:!0}),e.prototype._initializeSelection=function(){var t=this;Promise.resolve().then((function(){t._setSelectionByValue(t.ngControl?t.ngControl.value:t._value),t.stateChanges.next()}))},e.prototype._setSelectionByValue=function(t){var e=this;if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._selectionModel.clear(),t.forEach((function(t){return e._selectValue(t)})),this._sortValues()}else{this._selectionModel.clear();var n=this._selectValue(t);n?this._keyManager.setActiveItem(n):this.panelOpen||this._keyManager.setActiveItem(-1)}this._changeDetectorRef.markForCheck()},e.prototype._selectValue=function(t){var e=this,n=this.options.find((function(n){try{return null!=n.value&&e._compareWith(n.value,t)}catch(i){return yi()&&console.warn(i),!1}}));return n&&this._selectionModel.select(n),n},e.prototype._initKeyManager=function(){var t=this;this._keyManager=new vb(this.options).withTypeAhead(this.typeaheadDebounceInterval).withVerticalOrientation().withHorizontalOrientation(this._isRtl()?"rtl":"ltr").withAllowedModifierKeys(["shiftKey"]),this._keyManager.tabOut.pipe(av(this._destroy)).subscribe((function(){t.focus(),t.close()})),this._keyManager.change.pipe(av(this._destroy)).subscribe((function(){t._panelOpen&&t.panel?t._scrollActiveOptionIntoView():t._panelOpen||t.multiple||!t._keyManager.activeItem||t._keyManager.activeItem._selectViaInteraction()}))},e.prototype._resetOptions=function(){var t=this,e=tt(this.options.changes,this._destroy);this.optionSelectionChanges.pipe(av(e)).subscribe((function(e){t._onSelect(e.source,e.isUserInput),e.isUserInput&&!t.multiple&&t._panelOpen&&(t.close(),t.focus())})),tt.apply(void 0,this.options.map((function(t){return t._stateChanges}))).pipe(av(e)).subscribe((function(){t._changeDetectorRef.markForCheck(),t.stateChanges.next()})),this._setOptionIds()},e.prototype._onSelect=function(t,e){var n=this._selectionModel.isSelected(t);null!=t.value||this._multiple?(n!==t.selected&&(t.selected?this._selectionModel.select(t):this._selectionModel.deselect(t)),e&&this._keyManager.setActiveItem(t),this.multiple&&(this._sortValues(),e&&this.focus())):(t.deselect(),this._selectionModel.clear(),this._propagateChanges(t.value)),n!==this._selectionModel.isSelected(t)&&this._propagateChanges(),this.stateChanges.next()},e.prototype._sortValues=function(){var t=this;if(this.multiple){var e=this.options.toArray();this._selectionModel.sort((function(n,i){return t.sortComparator?t.sortComparator(n,i,e):e.indexOf(n)-e.indexOf(i)})),this.stateChanges.next()}},e.prototype._propagateChanges=function(t){var e;e=this.multiple?this.selected.map((function(t){return t.value})):this.selected?this.selected.value:t,this._value=e,this.valueChange.emit(e),this._onChange(e),this.selectionChange.emit(new yA(this,e)),this._changeDetectorRef.markForCheck()},e.prototype._setOptionIds=function(){this._optionIds=this.options.map((function(t){return t.id})).join(" ")},e.prototype._highlightCorrectOption=function(){this._keyManager&&(this.empty?this._keyManager.setFirstItemActive():this._keyManager.setActiveItem(this._selectionModel.selected[0]))},e.prototype._scrollActiveOptionIntoView=function(){var t=this._keyManager.activeItemIndex||0,e=zC(t,this.options,this.optionGroups);this.panel.nativeElement.scrollTop=HC(t+e,this._getItemHeight(),this.panel.nativeElement.scrollTop,256)},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._getOptionIndex=function(t){return this.options.reduce((function(e,n,i){return void 0===e?t===n?i:void 0:e}),void 0)},e.prototype._calculateOverlayPosition=function(){var t=this._getItemHeight(),e=this._getItemCount(),n=Math.min(e*t,256),i=e*t-n,r=this.empty?0:this._getOptionIndex(this._selectionModel.selected[0]);r+=zC(r,this.options,this.optionGroups);var o=n/2;this._scrollTop=this._calculateOverlayScroll(r,o,i),this._offsetY=this._calculateOverlayOffsetY(r,o,i),this._checkOverlayWithinViewport(i)},e.prototype._calculateOverlayScroll=function(t,e,n){var i=this._getItemHeight();return Math.min(Math.max(0,i*t-e+i/2),n)},e.prototype._getAriaLabel=function(){return this.ariaLabelledby?null:this.ariaLabel||this.placeholder},e.prototype._getAriaLabelledby=function(){return this.ariaLabelledby?this.ariaLabelledby:this._parentFormField&&this._parentFormField._hasFloatingLabel()&&!this._getAriaLabel()&&this._parentFormField._labelId||null},e.prototype._getAriaActiveDescendant=function(){return this.panelOpen&&this._keyManager&&this._keyManager.activeItem?this._keyManager.activeItem.id:null},e.prototype._calculateOverlayOffsetX=function(){var t,e=this.overlayDir.overlayRef.overlayElement.getBoundingClientRect(),n=this._viewportRuler.getViewportSize(),i=this._isRtl(),r=this.multiple?56:32;if(this.multiple)t=40;else{var o=this._selectionModel.selected[0]||this.options.first;t=o&&o.group?32:16}i||(t*=-1);var a=0-(e.left+t-(i?r:0)),s=e.right+t-n.width+(i?0:r);a>0?t+=a+8:s>0&&(t-=s+8),this.overlayDir.offsetX=Math.round(t),this.overlayDir.overlayRef.updatePosition()},e.prototype._calculateOverlayOffsetY=function(t,e,n){var i,r=this._getItemHeight(),o=(r-this._triggerRect.height)/2,a=Math.floor(256/r);return this._disableOptionCentering?0:(i=0===this._scrollTop?t*r:this._scrollTop===n?(t-(this._getItemCount()-a))*r+(r-(this._getItemCount()*r-256)%r):e-r/2,Math.round(-1*i-o))},e.prototype._checkOverlayWithinViewport=function(t){var e=this._getItemHeight(),n=this._viewportRuler.getViewportSize(),i=this._triggerRect.top-8,r=n.height-this._triggerRect.bottom-8,o=Math.abs(this._offsetY),a=Math.min(this._getItemCount()*e,256)-o-this._triggerRect.height;a>r?this._adjustPanelUp(a,r):o>i?this._adjustPanelDown(o,i,t):this._transformOrigin=this._getOriginBasedOnOption()},e.prototype._adjustPanelUp=function(t,e){var n=Math.round(t-e);this._scrollTop-=n,this._offsetY-=n,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop<=0&&(this._scrollTop=0,this._offsetY=0,this._transformOrigin="50% bottom 0px")},e.prototype._adjustPanelDown=function(t,e,n){var i=Math.round(t-e);if(this._scrollTop+=i,this._offsetY+=i,this._transformOrigin=this._getOriginBasedOnOption(),this._scrollTop>=n)return this._scrollTop=n,this._offsetY=0,void(this._transformOrigin="50% top 0px")},e.prototype._getOriginBasedOnOption=function(){var t=this._getItemHeight(),e=(t-this._triggerRect.height)/2;return"50% "+(Math.abs(this._offsetY)-e+t/2)+"px 0px"},e.prototype._getItemCount=function(){return this.options.length+this.optionGroups.length},e.prototype._getItemHeight=function(){return 3*this._triggerFontSize},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focus(),this.open()},Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return this._panelOpen||!this.empty},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return new(t||e)(Ia(Ev),Ia(Ko),Ia(Vl),Ia(_C),Ia(Ks),Ia(Ry,8),Ia(wE,8),Ia(ME,8),Ia(sD,8),Ia(bD,10),Pa("tabindex"),Ia(mA),Ia(Ab))},e.\u0275cmp=we({type:e,selectors:[["mat-select"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,bA,!0),cl(n,VC,!0),cl(n,LC,!1)),2&t&&(al(i=hl())&&(e.customTrigger=i.first),al(i=hl())&&(e.options=i),al(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(ul(rA,!0),ul(oA,!0),ul(tb,!0)),2&t&&(al(n=hl())&&(e.trigger=n.first),al(n=hl())&&(e.panel=n.first),al(n=hl())&&(e.overlayDir=n.first))},hostAttrs:["role","listbox",1,"mat-select"],hostVars:19,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(t){return e._onFocus()}))("blur",(function(t){return e._onBlur()})),2&t&&(Da("id",e.id)("tabindex",e.tabIndex)("aria-label",e._getAriaLabel())("aria-labelledby",e._getAriaLabelledby())("aria-required",e.required.toString())("aria-disabled",e.disabled.toString())("aria-invalid",e.errorState)("aria-owns",e.panelOpen?e._optionIds:null)("aria-multiselectable",e.multiple)("aria-describedby",e._ariaDescribedby||null)("aria-activedescendant",e._getAriaActiveDescendant()),ls("mat-select-disabled",e.disabled)("mat-select-invalid",e.errorState)("mat-select-required",e.required)("mat-select-empty",e.empty))},inputs:{disabled:"disabled",disableRipple:"disableRipple",tabIndex:"tabIndex",placeholder:"placeholder",required:"required",multiple:"multiple",disableOptionCentering:"disableOptionCentering",compareWith:"compareWith",value:"value",id:"id",panelClass:"panelClass",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],errorStateMatcher:"errorStateMatcher",typeaheadDebounceInterval:"typeaheadDebounceInterval",sortComparator:"sortComparator"},outputs:{openedChange:"openedChange",_openedStream:"opened",_closedStream:"closed",selectionChange:"selectionChange",valueChange:"valueChange"},exportAs:["matSelect"],features:[Us([{provide:$S,useExisting:e},{provide:BC,useExisting:e}]),Es,Rs()],ngContentSelectors:pA,decls:9,vars:9,consts:[["cdk-overlay-origin","","aria-hidden","true",1,"mat-select-trigger",3,"click"],["origin","cdkOverlayOrigin","trigger",""],[1,"mat-select-value",3,"ngSwitch"],["class","mat-select-placeholder",4,"ngSwitchCase"],["class","mat-select-value-text",3,"ngSwitch",4,"ngSwitchCase"],[1,"mat-select-arrow-wrapper"],[1,"mat-select-arrow"],["cdk-connected-overlay","","cdkConnectedOverlayLockPosition","","cdkConnectedOverlayHasBackdrop","","cdkConnectedOverlayBackdropClass","cdk-overlay-transparent-backdrop",3,"cdkConnectedOverlayScrollStrategy","cdkConnectedOverlayOrigin","cdkConnectedOverlayOpen","cdkConnectedOverlayPositions","cdkConnectedOverlayMinWidth","cdkConnectedOverlayOffsetY","backdropClick","attach","detach"],[1,"mat-select-placeholder"],[1,"mat-select-value-text",3,"ngSwitch"],[4,"ngSwitchDefault"],[4,"ngSwitchCase"],[1,"mat-select-panel-wrap"],[3,"ngClass","keydown"],["panel",""]],template:function(t,e){if(1&t&&(Xa(dA),Fa(0,"div",0,1),qa("click",(function(t){return e.toggle()})),Fa(3,"div",2),Aa(4,aA,2,1,"span",3),Aa(5,lA,3,2,"span",4),La(),Fa(6,"div",5),ja(7,"div",6),La(),La(),Aa(8,cA,4,10,"ng-template",7),qa("backdropClick",(function(t){return e.close()}))("attach",(function(t){return e._onAttached()}))("detach",(function(t){return e.close()}))),2&t){var n=Oa(1);vr(3),Ra("ngSwitch",e.empty),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1),vr(3),Ra("cdkConnectedOverlayScrollStrategy",e._scrollStrategy)("cdkConnectedOverlayOrigin",n)("cdkConnectedOverlayOpen",e.panelOpen)("cdkConnectedOverlayPositions",e._positions)("cdkConnectedOverlayMinWidth",null==e._triggerRect?null:e._triggerRect.width)("cdkConnectedOverlayOffsetY",e._offsetY)}},directives:[Jv,Od,Id,tb,Pd,_d],styles:[".mat-select{display:inline-block;width:100%;outline:0}.mat-select-trigger{display:inline-table;cursor:pointer;position:relative;box-sizing:border-box}.mat-select-disabled .mat-select-trigger{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.mat-select-value{display:table-cell;max-width:0;width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.mat-select-value-text{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-select-arrow-wrapper{display:table-cell;vertical-align:middle}.mat-form-field-appearance-fill .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-outline .mat-select-arrow-wrapper{transform:translateY(-25%)}.mat-form-field-appearance-standard.mat-form-field-has-label .mat-select:not(.mat-select-empty) .mat-select-arrow-wrapper{transform:translateY(-50%)}.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:transform .4s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable.mat-form-field-appearance-standard .mat-select.mat-select-empty .mat-select-arrow-wrapper{transition:none}.mat-select-arrow{width:0;height:0;border-left:5px solid transparent;border-right:5px solid transparent;border-top:5px solid;margin:0 4px}.mat-select-panel-wrap{flex-basis:100%}.mat-select-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;padding-top:0;padding-bottom:0;max-height:256px;min-width:100%;border-radius:4px}@media (-ms-high-contrast:active){.mat-select-panel{outline:solid 1px}}.mat-select-panel .mat-optgroup-label,.mat-select-panel .mat-option{font-size:inherit;line-height:3em;height:3em}.mat-form-field-type-mat-select:not(.mat-form-field-disabled) .mat-form-field-flex{cursor:pointer}.mat-form-field-type-mat-select .mat-form-field-label{width:calc(100% - 18px)}.mat-select-placeholder{transition:color .4s .133s cubic-bezier(.25,.8,.25,1)}._mat-animation-noopable .mat-select-placeholder{transition:none}.mat-form-field-hide-placeholder .mat-select-placeholder{color:transparent;-webkit-text-fill-color:transparent;transition:none;display:block}"],encapsulation:2,data:{animation:[hA.transformPanelWrap,hA.transformPanel]},changeDetection:0}),e}(vA),wA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[gA],imports:[[op,nb,UC,tC],uD,UC,tC]}),t}(),CA={tooltipState:sy("state",[py("initial, void, hidden",dy({opacity:0,transform:"scale(0)"})),py("visible",dy({transform:"scale(1)"})),fy("* => visible",uy("200ms cubic-bezier(0, 0, 0.2, 1)",hy([dy({opacity:0,transform:"scale(0)",offset:0}),dy({opacity:.5,transform:"scale(0.99)",offset:.5}),dy({opacity:1,transform:"scale(1)",offset:1})]))),fy("* => hidden",uy("100ms cubic-bezier(0, 0, 0.2, 1)",dy({opacity:0})))])};function xA(t){return Error('Tooltip position "'+t+'" is invalid.')}var kA=new Gt("mat-tooltip-scroll-strategy"),SA={provide:kA,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition({scrollThrottle:20})}}},DA=new Gt("mat-tooltip-default-options",{providedIn:"root",factory:function(){return{showDelay:0,hideDelay:0,touchendHideDelay:1500}}}),EA=function(){function t(t,e,n,i,r,o,a,s,u,l,c,d){var p=this;this._overlay=t,this._elementRef=e,this._scrollDispatcher=n,this._viewContainerRef=i,this._ngZone=r,this._ariaDescriber=a,this._focusMonitor=s,this._dir=l,this._defaultOptions=c,this._position="below",this._disabled=!1,this.showDelay=this._defaultOptions.showDelay,this.hideDelay=this._defaultOptions.hideDelay,this._message="",this._manualListeners=new Map,this._destroyed=new P,this._scrollStrategy=u;var h=e.nativeElement,f="undefined"==typeof window||window.Hammer||d;o.IOS||o.ANDROID?f||this._manualListeners.set("touchstart",(function(){return p.show()})):this._manualListeners.set("mouseenter",(function(){return p.show()})).set("mouseleave",(function(){return p.hide()})),this._manualListeners.forEach((function(t,e){return h.addEventListener(e,t)})),s.monitor(e).pipe(av(this._destroyed)).subscribe((function(t){t?"keyboard"===t&&r.run((function(){return p.show()})):r.run((function(){return p.hide(0)}))})),c&&c.position&&(this.position=c.position)}return Object.defineProperty(t.prototype,"position",{get:function(){return this._position},set:function(t){t!==this._position&&(this._position=t,this._overlayRef&&(this._updatePosition(),this._tooltipInstance&&this._tooltipInstance.show(0),this._overlayRef.updatePosition()))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t),this._disabled&&this.hide(0)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"message",{get:function(){return this._message},set:function(t){var e=this;this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this._message),this._message=null!=t?(""+t).trim():"",!this._message&&this._isTooltipVisible()?this.hide(0):(this._updateTooltipMessage(),this._ngZone.runOutsideAngular((function(){Promise.resolve().then((function(){e._ariaDescriber.describe(e._elementRef.nativeElement,e.message)}))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"tooltipClass",{get:function(){return this._tooltipClass},set:function(t){this._tooltipClass=t,this._tooltipInstance&&this._setTooltipClass(this._tooltipClass)},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement,e=t.style;"INPUT"!==t.nodeName&&"TEXTAREA"!==t.nodeName||(e.webkitUserSelect=e.userSelect=e.msUserSelect=""),t.draggable&&"none"===e.webkitUserDrag&&(e.webkitUserDrag="")},t.prototype.ngOnDestroy=function(){var t=this;this._overlayRef&&(this._overlayRef.dispose(),this._tooltipInstance=null),this._manualListeners.forEach((function(e,n){t._elementRef.nativeElement.removeEventListener(n,e)})),this._manualListeners.clear(),this._destroyed.next(),this._destroyed.complete(),this._ariaDescriber.removeDescription(this._elementRef.nativeElement,this.message),this._focusMonitor.stopMonitoring(this._elementRef)},t.prototype.show=function(t){var e=this;if(void 0===t&&(t=this.showDelay),!this.disabled&&this.message&&(!this._isTooltipVisible()||this._tooltipInstance._showTimeoutId||this._tooltipInstance._hideTimeoutId)){var n=this._createOverlay();this._detach(),this._portal=this._portal||new Cy(AA,this._viewContainerRef),this._tooltipInstance=n.attach(this._portal).instance,this._tooltipInstance.afterHidden().pipe(av(this._destroyed)).subscribe((function(){return e._detach()})),this._setTooltipClass(this._tooltipClass),this._updateTooltipMessage(),this._tooltipInstance.show(t)}},t.prototype.hide=function(t){void 0===t&&(t=this.hideDelay),this._tooltipInstance&&this._tooltipInstance.hide(t)},t.prototype.toggle=function(){this._isTooltipVisible()?this.hide():this.show()},t.prototype._isTooltipVisible=function(){return!!this._tooltipInstance&&this._tooltipInstance.isVisible()},t.prototype._handleKeydown=function(t){this._isTooltipVisible()&&27===t.keyCode&&!Py(t)&&(t.preventDefault(),t.stopPropagation(),this.hide(0))},t.prototype._handleTouchend=function(){this.hide(this._defaultOptions.touchendHideDelay)},t.prototype._createOverlay=function(){var t=this;if(this._overlayRef)return this._overlayRef;var e=this._scrollDispatcher.getAncestorScrollContainers(this._elementRef),n=this._overlay.position().flexibleConnectedTo(this._elementRef).withTransformOriginOn(".mat-tooltip").withFlexibleDimensions(!1).withViewportMargin(8).withScrollableContainers(e);return n.positionChanges.pipe(av(this._destroyed)).subscribe((function(e){t._tooltipInstance&&e.scrollableViewProperties.isOverlayClipped&&t._tooltipInstance.isVisible()&&t._ngZone.run((function(){return t.hide(0)}))})),this._overlayRef=this._overlay.create({direction:this._dir,positionStrategy:n,panelClass:"mat-tooltip-panel",scrollStrategy:this._scrollStrategy()}),this._updatePosition(),this._overlayRef.detachments().pipe(av(this._destroyed)).subscribe((function(){return t._detach()})),this._overlayRef},t.prototype._detach=function(){this._overlayRef&&this._overlayRef.hasAttached()&&this._overlayRef.detach(),this._tooltipInstance=null},t.prototype._updatePosition=function(){var t=this._overlayRef.getConfig().positionStrategy,e=this._getOrigin(),n=this._getOverlayPosition();t.withPositions([o({},e.main,n.main),o({},e.fallback,n.fallback)])},t.prototype._getOrigin=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n||"below"==n)t={originX:"center",originY:"above"==n?"top":"bottom"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={originX:"start",originY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw xA(n);t={originX:"end",originY:"center"}}var i=this._invertPosition(t.originX,t.originY);return{main:t,fallback:{originX:i.x,originY:i.y}}},t.prototype._getOverlayPosition=function(){var t,e=!this._dir||"ltr"==this._dir.value,n=this.position;if("above"==n)t={overlayX:"center",overlayY:"bottom"};else if("below"==n)t={overlayX:"center",overlayY:"top"};else if("before"==n||"left"==n&&e||"right"==n&&!e)t={overlayX:"end",overlayY:"center"};else{if(!("after"==n||"right"==n&&e||"left"==n&&!e))throw xA(n);t={overlayX:"start",overlayY:"center"}}var i=this._invertPosition(t.overlayX,t.overlayY);return{main:t,fallback:{overlayX:i.x,overlayY:i.y}}},t.prototype._updateTooltipMessage=function(){var t=this;this._tooltipInstance&&(this._tooltipInstance.message=this.message,this._tooltipInstance._markForCheck(),this._ngZone.onMicrotaskEmpty.asObservable().pipe(Kh(1),av(this._destroyed)).subscribe((function(){t._tooltipInstance&&t._overlayRef.updatePosition()})))},t.prototype._setTooltipClass=function(t){this._tooltipInstance&&(this._tooltipInstance.tooltipClass=t,this._tooltipInstance._markForCheck())},t.prototype._invertPosition=function(t,e){return"above"===this.position||"below"===this.position?"top"===e?e="bottom":"bottom"===e&&(e="top"):"end"===t?t="start":"start"===t&&(t="end"),{x:t,y:e}},t.\u0275fac=function(e){return new(e||t)(Ia($v),Ia(Ks),Ia(Sv),Ia(_u),Ia(Vl),Ia(gv),Ia(gb),Ia(Pb),Ia(kA),Ia(Ry,8),Ia(DA,8),Ia(Ap,8))},t.\u0275dir=Ee({type:t,selectors:[["","matTooltip",""]],hostBindings:function(t,e){1&t&&qa("longpress",(function(t){return e.show()}))("keydown",(function(t){return e._handleKeydown(t)}))("touchend",(function(t){return e._handleTouchend()}))},inputs:{showDelay:["matTooltipShowDelay","showDelay"],hideDelay:["matTooltipHideDelay","hideDelay"],position:["matTooltipPosition","position"],disabled:["matTooltipDisabled","disabled"],message:["matTooltip","message"],tooltipClass:["matTooltipClass","tooltipClass"]},exportAs:["matTooltip"]}),t}(),AA=function(){function t(t,e){this._changeDetectorRef=t,this._breakpointObserver=e,this._visibility="initial",this._closeOnInteraction=!1,this._onHide=new P,this._isHandset=this._breakpointObserver.observe("(max-width: 599.99px) and (orientation: portrait), (max-width: 959.99px) and (orientation: landscape)")}return t.prototype.show=function(t){var e=this;this._hideTimeoutId&&(clearTimeout(this._hideTimeoutId),this._hideTimeoutId=null),this._closeOnInteraction=!0,this._showTimeoutId=setTimeout((function(){e._visibility="visible",e._showTimeoutId=null,e._markForCheck()}),t)},t.prototype.hide=function(t){var e=this;this._showTimeoutId&&(clearTimeout(this._showTimeoutId),this._showTimeoutId=null),this._hideTimeoutId=setTimeout((function(){e._visibility="hidden",e._hideTimeoutId=null,e._markForCheck()}),t)},t.prototype.afterHidden=function(){return this._onHide.asObservable()},t.prototype.isVisible=function(){return"visible"===this._visibility},t.prototype.ngOnDestroy=function(){this._onHide.complete()},t.prototype._animationStart=function(){this._closeOnInteraction=!1},t.prototype._animationDone=function(t){var e=t.toState;"hidden"!==e||this.isVisible()||this._onHide.next(),"visible"!==e&&"hidden"!==e||(this._closeOnInteraction=!0)},t.prototype._handleBodyInteraction=function(){this._closeOnInteraction&&this.hide(0)},t.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(Wk))},t.\u0275cmp=we({type:t,selectors:[["mat-tooltip-component"]],hostAttrs:["aria-hidden","true"],hostVars:2,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleBodyInteraction()}),!1,jn),2&t&&us("zoom","visible"===e._visibility?1:null)},decls:3,vars:7,consts:[[1,"mat-tooltip",3,"ngClass"]],template:function(t,e){var n;1&t&&(Fa(0,"div",0),qa("@state.start",(function(t){return e._animationStart()}))("@state.done",(function(t){return e._animationDone(t)})),qu(1,"async"),_s(2),La()),2&t&&(ls("mat-tooltip-handset",null==(n=Wu(1,5,e._isHandset))?null:n.matches),Ra("ngClass",e.tooltipClass)("@state",e._visibility),vr(2),ws(e.message))},directives:[_d],pipes:[Vd],styles:[".mat-tooltip-panel{pointer-events:none!important}.mat-tooltip{color:#fff;border-radius:4px;margin:14px;max-width:250px;padding-left:8px;padding-right:8px;overflow:hidden;text-overflow:ellipsis}@media (-ms-high-contrast:active){.mat-tooltip{outline:solid 1px}}.mat-tooltip-handset{margin:24px;padding-left:16px;padding-right:16px}"],encapsulation:2,data:{animation:[CA.tooltipState]},changeDetection:0}),t}(),OA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[SA,{provide:Ep,useClass:kC}],imports:[[Mb,op,nb,tC],tC]}),t}();function IA(t,e){if(1&t&&(Fa(0,"mat-option",19),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n),vr(1),ws(n)}}function PA(t,e){if(1&t){var n=za();Fa(0,"mat-form-field",16),Fa(1,"mat-select",17),qa("selectionChange",(function(t){return Ue(n),Za(2)._changePageSize(t.value)})),Aa(2,IA,2,2,"mat-option",18),La(),La()}if(2&t){var i=Za(2);Ra("color",i.color),vr(1),Ra("value",i.pageSize)("disabled",i.disabled)("aria-label",i._intl.itemsPerPageLabel),vr(1),Ra("ngForOf",i._displayedPageSizeOptions)}}function TA(t,e){if(1&t&&(Fa(0,"div"),_s(1),La()),2&t){var n=Za(2);vr(1),ws(n.pageSize)}}function RA(t,e){if(1&t&&(Fa(0,"div",12),Fa(1,"div",13),_s(2),La(),Aa(3,PA,3,5,"mat-form-field",14),Aa(4,TA,2,1,"div",15),La()),2&t){var n=Za();vr(2),ws(n._intl.itemsPerPageLabel),vr(1),Ra("ngIf",n._displayedPageSizeOptions.length>1),vr(1),Ra("ngIf",n._displayedPageSizeOptions.length<=1)}}function MA(t,e){if(1&t){var n=za();Fa(0,"button",20),qa("click",(function(t){return Ue(n),Za().firstPage()})),pn(),Fa(1,"svg",7),ja(2,"path",21),La(),La()}if(2&t){var i=Za();Ra("matTooltip",i._intl.firstPageLabel)("matTooltipDisabled",i._previousButtonsDisabled())("matTooltipPosition","above")("disabled",i._previousButtonsDisabled()),Da("aria-label",i._intl.firstPageLabel)}}function FA(t,e){if(1&t){var n=za();pn(),hn(),Fa(0,"button",22),qa("click",(function(t){return Ue(n),Za().lastPage()})),pn(),Fa(1,"svg",7),ja(2,"path",23),La(),La()}if(2&t){var i=Za();Ra("matTooltip",i._intl.lastPageLabel)("matTooltipDisabled",i._nextButtonsDisabled())("matTooltipPosition","above")("disabled",i._nextButtonsDisabled()),Da("aria-label",i._intl.lastPageLabel)}}var LA=function(){function t(){this.changes=new P,this.itemsPerPageLabel="Items per page:",this.nextPageLabel="Next page",this.previousPageLabel="Previous page",this.firstPageLabel="First page",this.lastPageLabel="Last page",this.getRangeLabel=function(t,e,n){if(0==n||0==e)return"0 of "+n;var i=t*e;return i+1+" \u2013 "+(i<(n=Math.max(n,0))?Math.min(i+e,n):i+e)+" of "+n}}return t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),jA={provide:LA,deps:[[new dt,new ht,LA]],useFactory:function(t){return t||new LA}},NA=function(t){function e(e,n){var i=t.call(this)||this;return i._intl=e,i._changeDetectorRef=n,i._pageIndex=0,i._length=0,i._pageSizeOptions=[],i._hidePageSize=!1,i._showFirstLastButtons=!1,i.page=new Zu,i._intlChanges=e.changes.subscribe((function(){return i._changeDetectorRef.markForCheck()})),i}return r(e,t),Object.defineProperty(e.prototype,"pageIndex",{get:function(){return this._pageIndex},set:function(t){this._pageIndex=Math.max(jy(t),0),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"length",{get:function(){return this._length},set:function(t){this._length=jy(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSize",{get:function(){return this._pageSize},set:function(t){this._pageSize=Math.max(jy(t),0),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"pageSizeOptions",{get:function(){return this._pageSizeOptions},set:function(t){this._pageSizeOptions=(t||[]).map((function(t){return jy(t)})),this._updateDisplayedPageSizeOptions()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hidePageSize",{get:function(){return this._hidePageSize},set:function(t){this._hidePageSize=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"showFirstLastButtons",{get:function(){return this._showFirstLastButtons},set:function(t){this._showFirstLastButtons=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._initialized=!0,this._updateDisplayedPageSizeOptions(),this._markInitialized()},e.prototype.ngOnDestroy=function(){this._intlChanges.unsubscribe()},e.prototype.nextPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex++,this._emitPageEvent(t)}},e.prototype.previousPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex--,this._emitPageEvent(t)}},e.prototype.firstPage=function(){if(this.hasPreviousPage()){var t=this.pageIndex;this.pageIndex=0,this._emitPageEvent(t)}},e.prototype.lastPage=function(){if(this.hasNextPage()){var t=this.pageIndex;this.pageIndex=this.getNumberOfPages()-1,this._emitPageEvent(t)}},e.prototype.hasPreviousPage=function(){return this.pageIndex>=1&&0!=this.pageSize},e.prototype.hasNextPage=function(){var t=this.getNumberOfPages()-1;return this.pageIndex=i.length&&(r=0),i[r]},e.prototype.ngOnInit=function(){this._markInitialized()},e.prototype.ngOnChanges=function(){this._stateChanges.next()},e.prototype.ngOnDestroy=function(){this._stateChanges.complete()},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["","matSort",""]],inputs:{disabled:["matSortDisabled","disabled"],direction:["matSortDirection","direction"],disableClear:["matSortDisableClear","disableClear"],active:["matSortActive","active"],start:["matSortStart","start"]},outputs:{sortChange:"matSortChange"},exportAs:["matSort"],features:[Es,Rs()]});var n=ei(e);return e}(aC(eC(function(){return function(){}}()))),qA=Xw.ENTERING+" "+$w.STANDARD_CURVE,WA={indicator:sy("indicator",[py("active-asc, asc",dy({transform:"translateY(0px)"})),py("active-desc, desc",dy({transform:"translateY(10px)"})),fy("active-asc <=> active-desc",uy(qA))]),leftPointer:sy("leftPointer",[py("active-asc, asc",dy({transform:"rotate(-45deg)"})),py("active-desc, desc",dy({transform:"rotate(45deg)"})),fy("active-asc <=> active-desc",uy(qA))]),rightPointer:sy("rightPointer",[py("active-asc, asc",dy({transform:"rotate(45deg)"})),py("active-desc, desc",dy({transform:"rotate(-45deg)"})),fy("active-asc <=> active-desc",uy(qA))]),arrowOpacity:sy("arrowOpacity",[py("desc-to-active, asc-to-active, active",dy({opacity:1})),py("desc-to-hint, asc-to-hint, hint",dy({opacity:.54})),py("hint-to-desc, active-to-desc, desc, hint-to-asc, active-to-asc, asc, void",dy({opacity:0})),fy("* => asc, * => desc, * => active, * => hint, * => void",uy("0ms")),fy("* <=> *",uy(qA))]),arrowPosition:sy("arrowPosition",[fy("* => desc-to-hint, * => desc-to-active",uy(qA,hy([dy({transform:"translateY(-25%)"}),dy({transform:"translateY(0)"})]))),fy("* => hint-to-desc, * => active-to-desc",uy(qA,hy([dy({transform:"translateY(0)"}),dy({transform:"translateY(25%)"})]))),fy("* => asc-to-hint, * => asc-to-active",uy(qA,hy([dy({transform:"translateY(25%)"}),dy({transform:"translateY(0)"})]))),fy("* => hint-to-asc, * => active-to-asc",uy(qA,hy([dy({transform:"translateY(0)"}),dy({transform:"translateY(-25%)"})]))),py("desc-to-hint, asc-to-hint, hint, desc-to-active, asc-to-active, active",dy({transform:"translateY(0)"})),py("hint-to-desc, active-to-desc, desc",dy({transform:"translateY(-25%)"})),py("hint-to-asc, active-to-asc, asc",dy({transform:"translateY(25%)"}))]),allowChildren:sy("allowChildren",[fy("* <=> *",[gy("@*",my(),{optional:!0})])])},GA=function(){function t(){this.changes=new P,this.sortButtonLabel=function(t){return"Change sorting for "+t}}return t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),YA={provide:GA,deps:[[new dt,new ht,GA]],useFactory:function(t){return t||new GA}},KA=function(t){function e(e,n,i,r){var o=t.call(this)||this;if(o._intl=e,o._sort=i,o._columnDef=r,o._showIndicatorHint=!1,o._arrowDirection="",o._disableViewStateAnimation=!1,o.arrowPosition="after",!i)throw Error("MatSortHeader must be placed within a parent element with the MatSort directive.");return o._rerenderSubscription=tt(i.sortChange,i._stateChanges,e.changes).subscribe((function(){o._isSorted()&&o._updateArrowDirection(),!o._isSorted()&&o._viewState&&"active"===o._viewState.toState&&(o._disableViewStateAnimation=!1,o._setAnimationTransitionState({fromState:"active",toState:o._arrowDirection})),n.markForCheck()})),o}return r(e,t),Object.defineProperty(e.prototype,"disableClear",{get:function(){return this._disableClear},set:function(t){this._disableClear=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){!this.id&&this._columnDef&&(this.id=this._columnDef.name),this._updateArrowDirection(),this._setAnimationTransitionState({toState:this._isSorted()?"active":this._arrowDirection}),this._sort.register(this)},e.prototype.ngOnDestroy=function(){this._sort.deregister(this),this._rerenderSubscription.unsubscribe()},e.prototype._setIndicatorHintVisible=function(t){this._isDisabled()&&t||(this._showIndicatorHint=t,this._isSorted()||(this._updateArrowDirection(),this._setAnimationTransitionState(this._showIndicatorHint?{fromState:this._arrowDirection,toState:"hint"}:{fromState:"hint",toState:this._arrowDirection})))},e.prototype._setAnimationTransitionState=function(t){this._viewState=t,this._disableViewStateAnimation&&(this._viewState={toState:t.toState})},e.prototype._handleClick=function(){if(!this._isDisabled()){this._sort.sort(this),"hint"!==this._viewState.toState&&"active"!==this._viewState.toState||(this._disableViewStateAnimation=!0);var t=this._isSorted()?{fromState:this._arrowDirection,toState:"active"}:{fromState:"active",toState:this._arrowDirection};this._setAnimationTransitionState(t),this._showIndicatorHint=!1}},e.prototype._isSorted=function(){return this._sort.active==this.id&&("asc"===this._sort.direction||"desc"===this._sort.direction)},e.prototype._getArrowDirectionState=function(){return(this._isSorted()?"active-":"")+this._arrowDirection},e.prototype._getArrowViewState=function(){var t=this._viewState.fromState;return(t?t+"-to-":"")+this._viewState.toState},e.prototype._updateArrowDirection=function(){this._arrowDirection=this._isSorted()?this._sort.direction:this.start||this._sort.start},e.prototype._isDisabled=function(){return this._sort.disabled||this.disabled},e.prototype._getAriaSortAttribute=function(){return this._isSorted()?"asc"==this._sort.direction?"ascending":"descending":null},e.prototype._renderArrow=function(){return!this._isDisabled()||this._isSorted()},e.\u0275fac=function(t){return new(t||e)(Ia(GA),Ia(Ko),Ia(UA,8),Ia("MAT_SORT_HEADER_COLUMN_DEF",8))},e.\u0275cmp=we({type:e,selectors:[["","mat-sort-header",""]],hostVars:3,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick()}))("mouseenter",(function(t){return e._setIndicatorHintVisible(!0)}))("mouseleave",(function(t){return e._setIndicatorHintVisible(!1)})),2&t&&(Da("aria-sort",e._getAriaSortAttribute()),ls("mat-sort-header-disabled",e._isDisabled()))},inputs:{disabled:"disabled",disableClear:"disableClear",id:["mat-sort-header","id"],arrowPosition:"arrowPosition",start:"start"},exportAs:["matSortHeader"],features:[Es],attrs:VA,ngContentSelectors:HA,decls:4,vars:7,consts:[[1,"mat-sort-header-container"],["type","button",1,"mat-sort-header-button",3,"focus","blur"],["class","mat-sort-header-arrow",4,"ngIf"],[1,"mat-sort-header-arrow"],[1,"mat-sort-header-stem"],[1,"mat-sort-header-indicator"],[1,"mat-sort-header-pointer-left"],[1,"mat-sort-header-pointer-right"],[1,"mat-sort-header-pointer-middle"]],template:function(t,e){1&t&&(Xa(),Fa(0,"div",0),Fa(1,"button",1),qa("focus",(function(t){return e._setIndicatorHintVisible(!0)}))("blur",(function(t){return e._setIndicatorHintVisible(!1)})),Qa(2),La(),Aa(3,zA,6,6,"div",2),La()),2&t&&(ls("mat-sort-header-sorted",e._isSorted())("mat-sort-header-position-before","before"==e.arrowPosition),vr(1),Da("disabled",e._isDisabled()||null)("aria-label",e._intl.sortButtonLabel(e.id)),vr(2),Ra("ngIf",e._renderArrow()))},directives:[Sd],styles:[".mat-sort-header-container{display:flex;cursor:pointer;align-items:center}.mat-sort-header-disabled .mat-sort-header-container{cursor:default}.mat-sort-header-position-before{flex-direction:row-reverse}.mat-sort-header-button{border:none;background:0 0;display:flex;align-items:center;padding:0;cursor:inherit;outline:0;font:inherit;color:currentColor}.mat-sort-header-button::-moz-focus-inner{border:0}.mat-sort-header-arrow{height:12px;width:12px;min-width:12px;position:relative;display:flex;opacity:0}.mat-sort-header-arrow,[dir=rtl] .mat-sort-header-position-before .mat-sort-header-arrow{margin:0 0 0 6px}.mat-sort-header-position-before .mat-sort-header-arrow,[dir=rtl] .mat-sort-header-arrow{margin:0 6px 0 0}.mat-sort-header-stem{background:currentColor;height:10px;width:2px;margin:auto;display:flex;align-items:center}@media (-ms-high-contrast:active){.mat-sort-header-stem{width:0;border-left:solid 2px}}.mat-sort-header-indicator{width:100%;height:2px;display:flex;align-items:center;position:absolute;top:0;left:0}.mat-sort-header-pointer-middle{margin:auto;height:2px;width:2px;background:currentColor;transform:rotate(45deg)}@media (-ms-high-contrast:active){.mat-sort-header-pointer-middle{width:0;height:0;border-top:solid 2px;border-left:solid 2px}}.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{background:currentColor;width:6px;height:2px;position:absolute;top:0}@media (-ms-high-contrast:active){.mat-sort-header-pointer-left,.mat-sort-header-pointer-right{width:0;height:0;border-left:solid 6px;border-top:solid 2px}}.mat-sort-header-pointer-left{transform-origin:right;left:0}.mat-sort-header-pointer-right{transform-origin:left;right:0}"],encapsulation:2,data:{animation:[WA.indicator,WA.leftPointer,WA.rightPointer,WA.arrowOpacity,WA.arrowPosition,WA.allowChildren]},changeDetection:0}),e}(eC(function(){return function(){}}())),ZA=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[YA],imports:[[op]]}),t}(),$A=[[["caption"]]],XA=["caption"];function QA(t,e){if(1&t&&(Fa(0,"th",3),_s(1),La()),2&t){var n=Za();us("text-align",n.justify),vr(1),Cs(" ",n.headerText," ")}}function JA(t,e){if(1&t&&(Fa(0,"td",4),_s(1),La()),2&t){var n=e.$implicit,i=Za();us("text-align",i.justify),vr(1),Cs(" ",i.dataAccessor(n,i.name)," ")}}function tO(t){return function(t){function e(){for(var e=[],n=0;n0;r--)e[r]&&(n[r]=i,i+=t[r]);return n},t}();function bO(t){return Error('Could not find column with id "'+t+'".')}var _O=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","rowOutlet",""]]}),t}(),wO=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","headerRowOutlet",""]]}),t}(),CO=function(){function t(t,e){this.viewContainer=t,this.elementRef=e}return t.\u0275fac=function(e){return new(e||t)(Ia(_u),Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","footerRowOutlet",""]]}),t}(),xO=function(){function t(t,e,n,i,r,o,a){this._differs=t,this._changeDetectorRef=e,this._elementRef=n,this._dir=r,this._platform=a,this._onDestroy=new P,this._columnDefsByName=new Map,this._customColumnDefs=new Set,this._customRowDefs=new Set,this._customHeaderRowDefs=new Set,this._customFooterRowDefs=new Set,this._headerRowDefChanged=!0,this._footerRowDefChanged=!0,this._cachedRenderRowsMap=new Map,this.stickyCssClass="cdk-table-sticky",this._multiTemplateDataRows=!1,this.viewChange=new xh({start:0,end:Number.MAX_VALUE}),i||this._elementRef.nativeElement.setAttribute("role","grid"),this._document=o,this._isNativeHtmlTable="TABLE"===this._elementRef.nativeElement.nodeName}return Object.defineProperty(t.prototype,"trackBy",{get:function(){return this._trackByFn},set:function(t){yi()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+"."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dataSource",{get:function(){return this._dataSource},set:function(t){this._dataSource!==t&&this._switchDataSource(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiTemplateDataRows",{get:function(){return this._multiTemplateDataRows},set:function(t){this._multiTemplateDataRows=Ly(t),this._rowOutlet&&this._rowOutlet.viewContainer.length&&this._forceRenderDataRows()},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this;this._setupStickyStyler(),this._isNativeHtmlTable&&this._applyNativeTableSections(),this._dataDiffer=this._differs.find([]).create((function(e,n){return t.trackBy?t.trackBy(n.dataIndex,n.data):n}))},t.prototype.ngAfterContentChecked=function(){if(this._cacheRowDefs(),this._cacheColumnDefs(),!this._headerRowDefs.length&&!this._footerRowDefs.length&&!this._rowDefs.length)throw Error("Missing definitions for header, footer, and row; cannot determine which columns should be rendered.");this._renderUpdatedColumns(),this._headerRowDefChanged&&(this._forceRenderHeaderRows(),this._headerRowDefChanged=!1),this._footerRowDefChanged&&(this._forceRenderFooterRows(),this._footerRowDefChanged=!1),this.dataSource&&this._rowDefs.length>0&&!this._renderChangeSubscription&&this._observeRenderChanges(),this._checkStickyStates()},t.prototype.ngOnDestroy=function(){this._rowOutlet.viewContainer.clear(),this._headerRowOutlet.viewContainer.clear(),this._footerRowOutlet.viewContainer.clear(),this._cachedRenderRowsMap.clear(),this._onDestroy.next(),this._onDestroy.complete(),Cv(this.dataSource)&&this.dataSource.disconnect(this)},t.prototype.renderRows=function(){var t=this;this._renderRows=this._getAllRenderRows();var e=this._dataDiffer.diff(this._renderRows);if(e){var n=this._rowOutlet.viewContainer;e.forEachOperation((function(e,i,r){if(null==e.previousIndex)t._insertRow(e.item,r);else if(null==r)n.remove(i);else{var o=n.get(i);n.move(o,r)}})),this._updateRowIndexContext(),e.forEachIdentityChange((function(t){n.get(t.currentIndex).context.$implicit=t.item.data})),this.updateStickyColumnStyles()}},t.prototype.setHeaderRowDef=function(t){this._customHeaderRowDefs=new Set([t]),this._headerRowDefChanged=!0},t.prototype.setFooterRowDef=function(t){this._customFooterRowDefs=new Set([t]),this._footerRowDefChanged=!0},t.prototype.addColumnDef=function(t){this._customColumnDefs.add(t)},t.prototype.removeColumnDef=function(t){this._customColumnDefs.delete(t)},t.prototype.addRowDef=function(t){this._customRowDefs.add(t)},t.prototype.removeRowDef=function(t){this._customRowDefs.delete(t)},t.prototype.addHeaderRowDef=function(t){this._customHeaderRowDefs.add(t),this._headerRowDefChanged=!0},t.prototype.removeHeaderRowDef=function(t){this._customHeaderRowDefs.delete(t),this._headerRowDefChanged=!0},t.prototype.addFooterRowDef=function(t){this._customFooterRowDefs.add(t),this._footerRowDefChanged=!0},t.prototype.removeFooterRowDef=function(t){this._customFooterRowDefs.delete(t),this._footerRowDefChanged=!0},t.prototype.updateStickyHeaderRowStyles=function(){var t=this._getRenderedRows(this._headerRowOutlet),e=this._elementRef.nativeElement.querySelector("thead");e&&(e.style.display=t.length?"":"none");var n=this._headerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["top"]),this._stickyStyler.stickRows(t,n,"top"),this._headerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyFooterRowStyles=function(){var t=this._getRenderedRows(this._footerRowOutlet),e=this._elementRef.nativeElement.querySelector("tfoot");e&&(e.style.display=t.length?"":"none");var n=this._footerRowDefs.map((function(t){return t.sticky}));this._stickyStyler.clearStickyPositioning(t,["bottom"]),this._stickyStyler.stickRows(t,n,"bottom"),this._stickyStyler.updateStickyFooterContainer(this._elementRef.nativeElement,n),this._footerRowDefs.forEach((function(t){return t.resetStickyChanged()}))},t.prototype.updateStickyColumnStyles=function(){var t=this,e=this._getRenderedRows(this._headerRowOutlet),n=this._getRenderedRows(this._rowOutlet),i=this._getRenderedRows(this._footerRowOutlet);this._stickyStyler.clearStickyPositioning(e.concat(n,i),["left","right"]),e.forEach((function(e,n){t._addStickyColumnStyles([e],t._headerRowDefs[n])})),this._rowDefs.forEach((function(e){for(var i=[],r=0;r1)throw Error("There can only be one default row without a when predicate function.");this._defaultRowDef=t[0]},t.prototype._renderUpdatedColumns=function(){var t=function(t,e){return t||!!e.getColumnsDiff()};this._rowDefs.reduce(t,!1)&&this._forceRenderDataRows(),this._headerRowDefs.reduce(t,!1)&&this._forceRenderHeaderRows(),this._footerRowDefs.reduce(t,!1)&&this._forceRenderFooterRows()},t.prototype._switchDataSource=function(t){this._data=[],Cv(this.dataSource)&&this.dataSource.disconnect(this),this._renderChangeSubscription&&(this._renderChangeSubscription.unsubscribe(),this._renderChangeSubscription=null),t||(this._dataDiffer&&this._dataDiffer.diff([]),this._rowOutlet.viewContainer.clear()),this._dataSource=t},t.prototype._observeRenderChanges=function(){var t=this;if(this.dataSource){var e;if(Cv(this.dataSource)?e=this.dataSource.connect(this):this.dataSource instanceof D?e=this.dataSource:Array.isArray(this.dataSource)&&(e=Vp(this.dataSource)),void 0===e)throw Error("Provided data source did not match an array, Observable, or DataSource");this._renderChangeSubscription=e.pipe(av(this._onDestroy)).subscribe((function(e){t._data=e||[],t.renderRows()}))}},t.prototype._forceRenderHeaderRows=function(){var t=this;this._headerRowOutlet.viewContainer.length>0&&this._headerRowOutlet.viewContainer.clear(),this._headerRowDefs.forEach((function(e,n){return t._renderRow(t._headerRowOutlet,e,n)})),this.updateStickyHeaderRowStyles(),this.updateStickyColumnStyles()},t.prototype._forceRenderFooterRows=function(){var t=this;this._footerRowOutlet.viewContainer.length>0&&this._footerRowOutlet.viewContainer.clear(),this._footerRowDefs.forEach((function(e,n){return t._renderRow(t._footerRowOutlet,e,n)})),this.updateStickyFooterRowStyles(),this.updateStickyColumnStyles()},t.prototype._addStickyColumnStyles=function(t,e){var n=this,i=Array.from(e.columns||[]).map((function(t){var e=n._columnDefsByName.get(t);if(!e)throw bO(t);return(e)})),r=i.map((function(t){return t.sticky})),o=i.map((function(t){return t.stickyEnd}));this._stickyStyler.updateStickyColumns(t,r,o)},t.prototype._getRenderedRows=function(t){for(var e=[],n=0;na?s=1:o0)){var i=Math.ceil(n.length/n.pageSize)-1||0,r=Math.min(n.pageIndex,i);r!==n.pageIndex&&(n.pageIndex=r,e._internalPageChanges.next())}}))},e.prototype.connect=function(){return this._renderData},e.prototype.disconnect=function(){},e}(wv);function ZO(t,e){void 0===e&&(e=Jy);var n,i=(n=t)instanceof Date&&!isNaN(+n)?+t-e.now():Math.abs(t);return function(t){return t.lift(new $O(i,e))}}var $O=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new XO(t,this.delay,this.scheduler))},t}(),XO=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r.delay=n,r.scheduler=i,r.queue=[],r.active=!1,r.errored=!1,r}return r(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,i=t.scheduler,r=t.destination;n.length>0&&n[0].time-i.now()<=0;)n.shift().notification.observe(r);if(n.length>0){var o=Math.max(0,n[0].time-i.now());this.schedule(t,o)}else this.unsubscribe(),e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.destination.add(t.schedule(e.dispatch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new QO(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(pv.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.scheduleNotification(pv.createComplete()),this.unsubscribe()},e}(_),QO=function(){return function(t,e){this.time=t,this.notification=e}}(),JO=_v({passive:!0}),tI=function(){function t(t,e){this._platform=t,this._ngZone=e,this._monitoredElements=new Map}return t.prototype.monitor=function(t){var e=this;if(!this._platform.isBrowser)return Oh;var n=zy(t),i=this._monitoredElements.get(n);if(i)return i.subject.asObservable();var r=new P,o="cdk-text-field-autofilled",a=function(t){"cdk-text-field-autofill-start"!==t.animationName||n.classList.contains(o)?"cdk-text-field-autofill-end"===t.animationName&&n.classList.contains(o)&&(n.classList.remove(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!1})}))):(n.classList.add(o),e._ngZone.run((function(){return r.next({target:t.target,isAutofilled:!0})})))};return this._ngZone.runOutsideAngular((function(){n.addEventListener("animationstart",a,JO),n.classList.add("cdk-text-field-autofill-monitored")})),this._monitoredElements.set(n,{subject:r,unlisten:function(){n.removeEventListener("animationstart",a,JO)}}),r.asObservable()},t.prototype.stopMonitoring=function(t){var e=zy(t),n=this._monitoredElements.get(e);n&&(n.unlisten(),n.subject.complete(),e.classList.remove("cdk-text-field-autofill-monitored"),e.classList.remove("cdk-text-field-autofilled"),this._monitoredElements.delete(e))},t.prototype.ngOnDestroy=function(){var t=this;this._monitoredElements.forEach((function(e,n){return t.stopMonitoring(n)}))},t.ngInjectableDef=yt({factory:function(){return new t(ee(gv),ee(Vl))},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)(ee(gv),ee(Vl))},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),eI=function(){function t(t,e){this._elementRef=t,this._autofillMonitor=e,this.cdkAutofill=new Zu}return t.prototype.ngOnInit=function(){var t=this;this._autofillMonitor.monitor(this._elementRef).subscribe((function(e){return t.cdkAutofill.emit(e)}))},t.prototype.ngOnDestroy=function(){this._autofillMonitor.stopMonitoring(this._elementRef)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(tI))},t.\u0275dir=Ee({type:t,selectors:[["","cdkAutofill",""]],outputs:{cdkAutofill:"cdkAutofill"}}),t}(),nI=function(){function t(t,e,n){this._elementRef=t,this._platform=e,this._ngZone=n,this._destroyed=new P,this._enabled=!0,this._previousMinRows=-1,this._textareaElement=this._elementRef.nativeElement}return Object.defineProperty(t.prototype,"minRows",{get:function(){return this._minRows},set:function(t){this._minRows=t,this._setMinHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxRows",{get:function(){return this._maxRows},set:function(t){this._maxRows=t,this._setMaxHeight()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this._enabled},set:function(t){t=Ly(t),this._enabled!==t&&((this._enabled=t)?this.resizeToFitContent(!0):this.reset())},enumerable:!0,configurable:!0}),t.prototype._setMinHeight=function(){var t=this.minRows&&this._cachedLineHeight?this.minRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.minHeight=t)},t.prototype._setMaxHeight=function(){var t=this.maxRows&&this._cachedLineHeight?this.maxRows*this._cachedLineHeight+"px":null;t&&(this._textareaElement.style.maxHeight=t)},t.prototype.ngAfterViewInit=function(){var t=this;this._platform.isBrowser&&(this._initialHeight=this._textareaElement.style.height,this.resizeToFitContent(),this._ngZone.runOutsideAngular((function(){Hy(window,"resize").pipe(ov(16),av(t._destroyed)).subscribe((function(){return t.resizeToFitContent(!0)}))})))},t.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete()},t.prototype._cacheTextareaLineHeight=function(){if(!this._cachedLineHeight){var t=this._textareaElement.cloneNode(!1);t.rows=1,t.style.position="absolute",t.style.visibility="hidden",t.style.border="none",t.style.padding="0",t.style.height="",t.style.minHeight="",t.style.maxHeight="",t.style.overflow="hidden",this._textareaElement.parentNode.appendChild(t),this._cachedLineHeight=t.clientHeight,this._textareaElement.parentNode.removeChild(t),this._setMinHeight(),this._setMaxHeight()}},t.prototype.ngDoCheck=function(){this._platform.isBrowser&&this.resizeToFitContent()},t.prototype.resizeToFitContent=function(t){var e=this;if(void 0===t&&(t=!1),this._enabled&&(this._cacheTextareaLineHeight(),this._cachedLineHeight)){var n=this._elementRef.nativeElement,i=n.value;if(t||this._minRows!==this._previousMinRows||i!==this._previousValue){var r=n.placeholder;n.classList.add("cdk-textarea-autosize-measuring"),n.placeholder="",n.style.height=n.scrollHeight-4+"px",n.classList.remove("cdk-textarea-autosize-measuring"),n.placeholder=r,this._ngZone.runOutsideAngular((function(){"undefined"!=typeof requestAnimationFrame?requestAnimationFrame((function(){return e._scrollToCaretPosition(n)})):setTimeout((function(){return e._scrollToCaretPosition(n)}))})),this._previousValue=i,this._previousMinRows=this._minRows}}},t.prototype.reset=function(){void 0!==this._initialHeight&&(this._textareaElement.style.height=this._initialHeight)},t.prototype._noopInputHandler=function(){},t.prototype._scrollToCaretPosition=function(t){this._destroyed.isStopped||document.activeElement!==t||t.setSelectionRange(t.selectionStart,t.selectionEnd)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(gv),Ia(Vl))},t.\u0275dir=Ee({type:t,selectors:[["textarea","cdkTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize"],hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._noopInputHandler()}))},inputs:{minRows:["cdkAutosizeMinRows","minRows"],maxRows:["cdkAutosizeMaxRows","maxRows"],enabled:["cdkTextareaAutosize","enabled"]},exportAs:["cdkTextareaAutosize"]}),t}(),iI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[yv]]}),t}(),rI=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),Object.defineProperty(e.prototype,"matAutosizeMinRows",{get:function(){return this.minRows},set:function(t){this.minRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matAutosizeMaxRows",{get:function(){return this.maxRows},set:function(t){this.maxRows=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matAutosize",{get:function(){return this.enabled},set:function(t){this.enabled=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"matTextareaAutosize",{get:function(){return this.enabled},set:function(t){this.enabled=t},enumerable:!0,configurable:!0}),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["textarea","mat-autosize",""],["textarea","matTextareaAutosize",""]],hostAttrs:["rows","1",1,"cdk-textarea-autosize","mat-autosize"],hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._noopInputHandler()}))},inputs:{cdkAutosizeMinRows:"cdkAutosizeMinRows",cdkAutosizeMaxRows:"cdkAutosizeMaxRows",matAutosizeMinRows:"matAutosizeMinRows",matAutosizeMaxRows:"matAutosizeMaxRows",matAutosize:["mat-autosize","matAutosize"],matTextareaAutosize:"matTextareaAutosize"},exportAs:["matTextareaAutosize"],features:[Es]});var n=ei(e);return e}(nI),oI=new Gt("MAT_INPUT_VALUE_ACCESSOR"),aI=["button","checkbox","file","hidden","image","radio","range","reset","submit"],sI=0,uI=function(t){function e(e,n,i,r,o,a,s,u,l){var c=t.call(this,a,r,o,i)||this;c._elementRef=e,c._platform=n,c.ngControl=i,c._autofillMonitor=u,c._uid="mat-input-"+sI++,c._isServer=!1,c._isNativeSelect=!1,c.focused=!1,c.stateChanges=new P,c.controlType="mat-input",c.autofilled=!1,c._disabled=!1,c._required=!1,c._type="text",c._readonly=!1,c._neverEmptyInputTypes=["date","datetime","datetime-local","month","time","week"].filter((function(t){return bv().has(t)}));var d=c._elementRef.nativeElement;return c._inputValueAccessor=s||d,c._previousNativeValue=c.value,c.id=c.id,n.IOS&&l.runOutsideAngular((function(){e.nativeElement.addEventListener("keyup",(function(t){var e=t.target;e.value||e.selectionStart||e.selectionEnd||(e.setSelectionRange(1,1),e.setSelectionRange(0,0))}))})),c._isServer=!c._platform.isBrowser,c._isNativeSelect="select"===d.nodeName.toLowerCase(),c._isNativeSelect&&(c.controlType=d.multiple?"mat-native-select-multiple":"mat-native-select"),c}return r(e,t),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl&&null!==this.ngControl.disabled?this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Ly(t),this.focused&&(this.focused=!1,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._id},set:function(t){this._id=t||this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"type",{get:function(){return this._type},set:function(t){this._type=t||"text",this._validateType(),!this._isTextarea()&&bv().has(this._type)&&(this._elementRef.nativeElement.type=this._type)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._inputValueAccessor.value},set:function(t){t!==this.value&&(this._inputValueAccessor.value=t,this.stateChanges.next())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"readonly",{get:function(){return this._readonly},set:function(t){this._readonly=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this;this._platform.isBrowser&&this._autofillMonitor.monitor(this._elementRef.nativeElement).subscribe((function(e){t.autofilled=e.isAutofilled,t.stateChanges.next()}))},e.prototype.ngOnChanges=function(){this.stateChanges.next()},e.prototype.ngOnDestroy=function(){this.stateChanges.complete(),this._platform.isBrowser&&this._autofillMonitor.stopMonitoring(this._elementRef.nativeElement)},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState(),this._dirtyCheckNativeValue()},e.prototype.focus=function(t){this._elementRef.nativeElement.focus(t)},e.prototype._focusChanged=function(t){t===this.focused||this.readonly&&t||(this.focused=t,this.stateChanges.next())},e.prototype._onInput=function(){},e.prototype._dirtyCheckNativeValue=function(){var t=this._elementRef.nativeElement.value;this._previousNativeValue!==t&&(this._previousNativeValue=t,this.stateChanges.next())},e.prototype._validateType=function(){if(aI.indexOf(this._type)>-1)throw Error('Input type "'+this._type+"\" isn't supported by matInput.")},e.prototype._isNeverEmpty=function(){return this._neverEmptyInputTypes.indexOf(this._type)>-1},e.prototype._isBadInput=function(){var t=this._elementRef.nativeElement.validity;return t&&t.badInput},e.prototype._isTextarea=function(){return"textarea"===this._elementRef.nativeElement.nodeName.toLowerCase()},Object.defineProperty(e.prototype,"empty",{get:function(){return!(this._isNeverEmpty()||this._elementRef.nativeElement.value||this._isBadInput()||this.autofilled)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){if(this._isNativeSelect){var t=this._elementRef.nativeElement,e=t.options[0];return this.focused||t.multiple||!this.empty||!!(t.selectedIndex>-1&&e&&e.label)}return this.focused||!this.empty},enumerable:!0,configurable:!0}),e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.onContainerClick=function(){this.focused||this.focus()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(bD,10),Ia(wE,8),Ia(ME,8),Ia(_C),Ia(oI,10),Ia(tI),Ia(Vl))},e.\u0275dir=Ee({type:e,selectors:[["input","matInput",""],["textarea","matInput",""],["select","matNativeControl",""],["input","matNativeControl",""],["textarea","matNativeControl",""]],hostAttrs:[1,"mat-input-element","mat-form-field-autofill-control"],hostVars:10,hostBindings:function(t,e){1&t&&qa("blur",(function(t){return e._focusChanged(!1)}))("focus",(function(t){return e._focusChanged(!0)}))("input",(function(t){return e._onInput()})),2&t&&(ks("disabled",e.disabled)("required",e.required),Da("id",e.id)("placeholder",e.placeholder)("readonly",e.readonly&&!e._isNativeSelect||null)("aria-describedby",e._ariaDescribedby||null)("aria-invalid",e.errorState)("aria-required",e.required.toString()),ls("mat-input-server",e._isServer))},inputs:{disabled:"disabled",id:"id",required:"required",type:"type",value:"value",readonly:"readonly",placeholder:"placeholder",errorStateMatcher:"errorStateMatcher"},exportAs:["matInput"],features:[Us([{provide:$S,useExisting:e}]),Es,Rs()]}),e}(oC(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}())),lI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[_C],imports:[[op,iI,uD],iI,uD]}),t}(),cI=["searchSelectInput"],dI=["innerSelectSearch"];function pI(t,e){if(1&t){var n=za();Fa(0,"button",6),qa("click",(function(t){return Ue(n),Za()._reset(!0)})),Fa(1,"i",7),_s(2,"close"),La(),La()}}var hI=function(t){return{"mat-select-search-inner-multiple":t}},fI=function(){function t(t,e){this.matSelect=t,this.changeDetectorRef=e,this.placeholderLabel=django.gettext("Filter"),this.noEntriesFoundLabel=django.gettext("No entries found"),this.clearSearchInput=!0,this.disableInitialFocus=!1,this.changed=new Zu,this.overlayClassSet=!1,this.change=new Zu,this._onDestroy=new P}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){var t=this,e="mat-select-search-panel";this.matSelect.panelClass?Array.isArray(this.matSelect.panelClass)?this.matSelect.panelClass.push(e):"string"==typeof this.matSelect.panelClass?this.matSelect.panelClass=[this.matSelect.panelClass,e]:"object"==typeof this.matSelect.panelClass&&(this.matSelect.panelClass[e]=!0):this.matSelect.panelClass=e,this.matSelect.openedChange.pipe(ZO(1),av(this._onDestroy)).subscribe((function(e){e?(t.getWidth(),t.disableInitialFocus||t._focus()):t.clearSearchInput&&t._reset()})),this.matSelect.openedChange.pipe(Kh(1)).pipe(av(this._onDestroy)).subscribe((function(){t._options=t.matSelect.options,t._options.changes.pipe(av(t._onDestroy)).subscribe((function(){var e=t.matSelect._keyManager;e&&t.matSelect.panelOpen&&setTimeout((function(){e.setFirstItemActive(),t.getWidth()}),1)}))})),this.change.pipe(av(this._onDestroy)).subscribe((function(){t.changeDetectorRef.detectChanges()})),this.initMultipleHandling()},t.prototype.ngOnDestroy=function(){this._onDestroy.next(),this._onDestroy.complete()},t.prototype.ngAfterViewInit=function(){var t=this;setTimeout((function(){t.setOverlayClass()})),this.matSelect.openedChange.pipe(Kh(1),av(this._onDestroy)).subscribe((function(){t.matSelect.options.changes.pipe(av(t._onDestroy)).subscribe((function(){t.changeDetectorRef.markForCheck()}))}))},t.prototype._handleKeydown=function(t){(t.key&&1===t.key.length||t.keyCode>=65&&t.keyCode<=90||t.keyCode>=48&&t.keyCode<=57||32===t.keyCode)&&t.stopPropagation()},t.prototype.writeValue=function(t){t!==this._value&&(this._value=t,this.change.emit(t))},t.prototype.onInputChange=function(t){t!==this._value&&(this.initMultiSelectedValues(),this._value=t,this.changed.emit(t),this.change.emit(t))},t.prototype.onBlur=function(t){this.writeValue(t)},t.prototype._focus=function(){if(this.searchSelectInput&&this.matSelect.panel){var t=this.matSelect.panel.nativeElement,e=t.scrollTop;this.searchSelectInput.nativeElement.focus(),t.scrollTop=e}},t.prototype._reset=function(t){this.searchSelectInput&&(this.searchSelectInput.nativeElement.value="",this.onInputChange(""),t&&this._focus())},t.prototype.setOverlayClass=function(){var t=this;this.overlayClassSet||(this.matSelect.overlayDir.attach.pipe(av(this._onDestroy)).subscribe((function(){for(var e,n=t.searchSelectInput.nativeElement;n=n.parentElement;)if(n.classList.contains("cdk-overlay-pane")){e=n;break}e&&e.classList.add("cdk-overlay-pane-select-search")})),this.overlayClassSet=!0)},t.prototype.initMultipleHandling=function(){var t=this;this.matSelect.valueChange.pipe(av(this._onDestroy)).subscribe((function(e){if(t.matSelect.multiple){var n=!1;if(t._value&&t._value.length&&t.previousSelectedValues&&Array.isArray(t.previousSelectedValues)){e&&Array.isArray(e)||(e=[]);var i=t.matSelect.options.map((function(t){return t.value}));t.previousSelectedValues.forEach((function(t){-1===e.indexOf(t)&&-1===i.indexOf(t)&&(e.push(t),n=!0)}))}n&&t.matSelect._onChange(e),t.previousSelectedValues=e}}))},t.prototype.getWidth=function(){if(this.innerSelectSearch&&this.innerSelectSearch.nativeElement){for(var t,e=this.innerSelectSearch.nativeElement;e=e.parentElement;)if(e.classList.contains("mat-select-panel")){t=e;break}t&&(this.innerSelectSearch.nativeElement.style.width=t.clientWidth+"px")}},t.prototype.initMultiSelectedValues=function(){this.matSelect.multiple&&!this._value&&(this.previousSelectedValues=this.matSelect.options.filter((function(t){return t.selected})).map((function(t){return t.value})))},t.\u0275fac=function(e){return new(e||t)(Ia(_A),Ia(Ko))},t.\u0275cmp=we({type:t,selectors:[["uds-mat-select-search"]],viewQuery:function(t,e){var n;1&t&&(sl(cI,!0,Ks),sl(dI,!0,Ks)),2&t&&(al(n=hl())&&(e.searchSelectInput=n.first),al(n=hl())&&(e.innerSelectSearch=n.first))},inputs:{placeholderLabel:"placeholderLabel",noEntriesFoundLabel:"noEntriesFoundLabel",clearSearchInput:"clearSearchInput",disableInitialFocus:"disableInitialFocus"},outputs:{changed:"changed"},features:[Us([{provide:cD,useExisting:It((function(){return t})),multi:!0}])],decls:6,vars:5,consts:[["matInput","",1,"mat-select-search-input","mat-select-search-hidden"],[1,"mat-select-search-inner","mat-typography","mat-datepicker-content","mat-tab-header",3,"ngClass"],["innerSelectSearch",""],["matInput","","autocomplete","off",1,"mat-select-search-input",3,"placeholder","keydown","input","blur"],["searchSelectInput",""],["mat-button","","mat-icon-button","","aria-label","Clear","class","mat-select-search-clear",3,"click",4,"ngIf"],["mat-button","","mat-icon-button","","aria-label","Clear",1,"mat-select-search-clear",3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(ja(0,"input",0),Fa(1,"div",1,2),Fa(3,"input",3,4),qa("keydown",(function(t){return e._handleKeydown(t)}))("input",(function(t){return e.onInputChange(t.target.value)}))("blur",(function(t){return e.onBlur(t.target.value)})),La(),Aa(5,pI,3,0,"button",5),La()),2&t&&(vr(1),Ra("ngClass",Vu(3,hI,e.matSelect.multiple)),vr(2),Ra("placeholder",e.placeholderLabel),vr(2),Ra("ngIf",e.value))},directives:[uI,_d,Sd,mx],styles:[".mat-select-search-hidden[_ngcontent-%COMP%]{visibility:hidden}.mat-select-search-inner[_ngcontent-%COMP%]{position:absolute;top:0;width:100%;border-bottom-width:1px;border-bottom-style:solid;z-index:100;font-size:inherit;box-shadow:none;border-radius:0}.mat-select-search-inner.mat-select-search-inner-multiple[_ngcontent-%COMP%]{width:100%} .mat-select-search-panel{transform:none!important;overflow-x:hidden}.mat-select-search-input[_ngcontent-%COMP%]{padding:16px 36px 16px 16px;box-sizing:border-box}.mat-select-search-no-entries-found[_ngcontent-%COMP%]{padding:16px}.mat-select-search-clear[_ngcontent-%COMP%]{position:absolute;right:4px;top:5px} .cdk-overlay-pane-select-search{margin-top:-50px}"],changeDetection:0}),t}();function mI(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New user permission for"),La())}function gI(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New group permission for"),La())}function yI(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}function vI(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",12),qa("changed",(function(t){return Ue(n),Za().filterUser=t})),La()}}function bI(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}function _I(t,e){if(1&t&&(Fa(0,"mat-option",11),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),ws(n.text)}}var wI=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.filterUser="",this.authenticators=[],this.entities=[],this.permissions=[{id:"1",text:django.gettext("Read only")},{id:"2",text:django.gettext("Full Access")}],this.authenticator="",this.entity="",this.permission="1",this.onSave=new Zu(!0)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"50%";return e.gui.dialog.open(t,{width:r,data:{type:n,item:i},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){e.forEach((function(e){t.authenticators.push({id:e.id,text:e.name})}))}))},t.prototype.changeAuth=function(t){var e=this;this.entities.length=0,this.entity="",this.rest.authenticators.detail(t,this.data.type+"s").summary().subscribe((function(t){t.forEach((function(t){e.entities.push({id:t.id,text:t.name})}))}))},t.prototype.save=function(){this.onSave.emit({authenticator:this.authenticator,entity:this.entity,permissision:this.permission}),this.dialogRef.close()},t.prototype.filteredEntities=function(){var t=this,e=new Array;return this.entities.forEach((function(n){(""===t.filterUser||n.text.toLocaleLowerCase().includes(t.filterUser.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.getFieldLabel=function(t){return"user"===t?django.gettext("User"):"group"===t?django.gettext("Group"):"auth"===t?django.gettext("Authenticator"):django.gettext("Permission")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-permission"]],decls:24,vars:13,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],[3,"innerHTML"],["titleGroup",""],[1,"container"],[3,"placeholder","ngModel","valueChange","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[3,"placeholder","ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,mI,2,0,"uds-translate",1),ja(2,"b",2),Aa(3,gI,2,0,"ng-template",null,3,yl),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",4),Fa(7,"mat-form-field"),Fa(8,"mat-select",5),qa("valueChange",(function(t){return e.changeAuth(t)}))("ngModelChange",(function(t){return e.authenticator=t})),Aa(9,yI,2,2,"mat-option",6),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-select",7),qa("ngModelChange",(function(t){return e.entity=t})),Aa(12,vI,1,0,"uds-mat-select-search",8),Aa(13,bI,2,2,"mat-option",6),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-select",7),qa("ngModelChange",(function(t){return e.permission=t})),Aa(16,_I,2,2,"mat-option",6),La(),La(),La(),La(),Fa(17,"mat-dialog-actions"),Fa(18,"button",9),Fa(19,"uds-translate"),_s(20,"Cancel"),La(),La(),Fa(21,"button",10),qa("click",(function(t){return e.save()})),Fa(22,"uds-translate"),_s(23,"Ok"),La(),La(),La()),2&t){var n=Oa(4);vr(1),Ra("ngIf","user"===e.data.type)("ngIfElse",n),vr(1),Ra("innerHTML",e.data.item.name,Ui),vr(6),Ra("placeholder",e.getFieldLabel("auth"))("ngModel",e.authenticator),vr(1),Ra("ngForOf",e.authenticators),vr(2),Ra("placeholder",e.getFieldLabel(e.data.type))("ngModel",e.entity),vr(1),Ra("ngIf",e.entities.length>10),vr(1),Ra("ngForOf",e.filteredEntities()),vr(2),Ra("placeholder",e.getFieldLabel("perm"))("ngModel",e.permission),vr(1),Ra("ngForOf",e.permissions)}},directives:[ax,Sd,sx,sD,_A,wD,AE,xd,ux,mx,ox,vx,VC,fI],styles:[".container[_ngcontent-%COMP%]{display:flex;flex-direction:column}.container[_ngcontent-%COMP%] > *[_ngcontent-%COMP%]{width:100%}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function CI(t,e){if(1&t){var n=za();Fa(0,"div",11),Fa(1,"div",12),_s(2),La(),Fa(3,"div",13),_s(4),Fa(5,"a",14),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).revokePermission(i)})),Fa(6,"i",15),_s(7,"close"),La(),La(),La(),La()}if(2&t){var i=e.$implicit;vr(2),xs(" ",i.entity_name,"@",i.auth_name," "),vr(2),Cs(" ",i.perm_name," \xa0")}}function xI(t,e){if(1&t){var n=za();Fa(0,"div",7),Fa(1,"div",8),Fa(2,"div",9),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za().newPermission(i),t.preventDefault()})),Fa(3,"uds-translate"),_s(4,"New permission..."),La(),La(),Aa(5,CI,8,3,"div",10),La(),La()}if(2&t){var i=e.$implicit;vr(5),Ra("ngForOf",i)}}var kI=function(t,e){return[t,e]},SI=function(){function t(t,e,n){this.api=t,this.dialogRef=e,this.data=n,this.userPermissions=[],this.groupPermissions=[]}return t.launch=function(e,n,i){var r=window.innerWidth<800?"90%":"60%";e.gui.dialog.open(t,{width:r,data:{rest:n,item:i},disableClose:!1})},t.prototype.ngOnInit=function(){this.reload()},t.prototype.reload=function(){var t=this;this.data.rest.getPermissions(this.data.item.id).subscribe((function(e){t.updatePermissions(e)}))},t.prototype.updatePermissions=function(t){var e=this;this.userPermissions.length=0,this.groupPermissions.length=0,t.forEach((function(t){"user"===t.type?e.userPermissions.push(t):e.groupPermissions.push(t)}))},t.prototype.revokePermission=function(t){var e=this;this.api.gui.yesno(django.gettext("Remove"),django.gettext("Confirm revokation of permission")+" "+t.entity_name+"@"+t.auth_name+" "+t.perm_name+"").subscribe((function(n){n&&e.data.rest.revokePermission([t.id]).subscribe((function(t){e.reload()}))}))},t.prototype.newPermission=function(t){var e=this,n=t===this.userPermissions?"user":"group";wI.launch(this.api,n,this.data.item).subscribe((function(t){e.data.rest.addPermission(e.data.item.id,n+"s",t.entity,t.permissision).subscribe((function(t){e.reload()}))}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-permissions-form"]],decls:17,vars:5,consts:[["mat-dialog-title",""],[3,"innerHTML"],[1,"titles"],[1,"title"],[1,"permissions"],["class","content",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","primary"],[1,"content"],[1,"perms"],[1,"perm","new",3,"click"],["class","perm",4,"ngFor","ngForOf"],[1,"perm"],[1,"owner"],[1,"permission"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Permissions for"),La(),_s(3,"\xa0"),ja(4,"b",1),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",2),Fa(7,"uds-translate",3),_s(8,"Users"),La(),Fa(9,"uds-translate",3),_s(10,"Groups"),La(),La(),Fa(11,"div",4),Aa(12,xI,6,1,"div",5),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",6),Fa(15,"uds-translate"),_s(16,"Ok"),La(),La(),La()),2&t&&(vr(4),Ra("innerHTML",e.data.item.name,Ui),vr(8),Ra("ngForOf",zu(2,kI,e.userPermissions,e.groupPermissions)))},directives:[ax,vx,sx,xd,ux,mx,ox],styles:[".titles[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:space-around;margin-bottom:.4rem}.title[_ngcontent-%COMP%]{font-size:1.4rem}.permissions[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:flex-start}.perms[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);margin-bottom:1rem;margin-right:1rem;padding:.5rem}.perm[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.perm[_ngcontent-%COMP%]:hover:not(.new){background-color:#333;color:#fff;cursor:default}.owner[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.new[_ngcontent-%COMP%]{color:#00f;justify-content:center}.new[_ngcontent-%COMP%]:hover{color:#fff;background-color:#00f;cursor:pointer}.content[_ngcontent-%COMP%]{width:100%;display:flex;flex-direction:column;justify-content:space-between}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),DI=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")],EI=[django.gettext("January"),django.gettext("February"),django.gettext("March"),django.gettext("April"),django.gettext("May"),django.gettext("June"),django.gettext("July"),django.gettext("August"),django.gettext("September"),django.gettext("October"),django.gettext("November"),django.gettext("December")],AI={days:DI,shortDays:OI(DI),months:EI,shortMonths:OI(EI),AM:"AM",PM:"PM",am:"am",pm:"pm"};function OI(t){var e=[];return t.forEach((function(t){e.push(t.substr(0,3))})),e}function II(t,e,n){return function t(e,n,i,r){r=r||{},n=n||new Date,(i=i||AI).formats=i.formats||{};var o=n.getTime();return(r.utc||"number"==typeof r.timezone)&&(n=function(t){var e;return e=6e4*(t.getTimezoneOffset()||0),new Date(t.getTime()+e)}(n)),"number"==typeof r.timezone&&(n=new Date(n.getTime()+6e4*r.timezone)),e.replace(/%([-_0]?.)/g,(function(e,a){var s,u,l,c,d,p,h;if(u=null,c=null,2===a.length){if("-"===(u=a[0]))c="";else if("_"===u)c=" ";else{if("0"!==u)return e;c="0"}a=a[1]}switch(a){case"A":return i.days[n.getDay()];case"a":return i.shortDays[n.getDay()];case"B":return i.months[n.getMonth()];case"b":return i.shortMonths[n.getMonth()];case"C":return PI(Math.floor(n.getFullYear()/100),c);case"D":return t(i.formats.D||"%m/%d/%y",n,i);case"d":return PI(n.getDate(),c);case"e":return n.getDate();case"F":return t(i.formats.F||"%Y-%m-%d",n,i);case"H":return PI(n.getHours(),c);case"h":return i.shortMonths[n.getMonth()];case"I":return PI(TI(n),c);case"j":return p=new Date(n.getFullYear(),0,1),PI(Math.ceil((n.getTime()-p.getTime())/864e5),3);case"k":return PI(n.getHours(),void 0===c?" ":c);case"L":return PI(Math.floor(o%1e3),3);case"l":return PI(TI(n),void 0===c?" ":c);case"M":return PI(n.getMinutes(),c);case"m":return PI(n.getMonth()+1,c);case"n":return"\n";case"o":return String(n.getDate())+function(t){var e,n;if(e=t%10,(n=t%100)>=11&&n<=13||0===e||e>=4)return"th";switch(e){case 1:return"st";case 2:return"nd";case 3:return"rd"}}(n.getDate());case"P":case"p":return"";case"R":return t(i.formats.R||"%H:%M",n,i);case"r":return t(i.formats.r||"%I:%M:%S %p",n,i);case"S":return PI(n.getSeconds(),c);case"s":return Math.floor(o/1e3);case"T":return t(i.formats.T||"%H:%M:%S",n,i);case"t":return"\t";case"U":return PI(RI(n,"sunday"),c);case"u":return 0===(s=n.getDay())?7:s;case"v":return t(i.formats.v||"%e-%b-%Y",n,i);case"W":return PI(RI(n,"monday"),c);case"w":return n.getDay();case"Y":return n.getFullYear();case"y":return(h=String(n.getFullYear())).slice(h.length-2);case"Z":return r.utc?"GMT":(d=n.toString().match(/\((\w+)\)/))&&d[1]||"";case"z":return r.utc?"+0000":((l="number"==typeof r.timezone?r.timezone:-n.getTimezoneOffset())<0?"-":"+")+PI(Math.abs(l/60))+PI(l%60);default:return a}}))}(t,e,n)}function PI(t,e,n){"number"==typeof e&&(n=e,e="0"),e=null==e?"0":e,n=null==n?2:n;var i=String(t);if(e)for(;i.length12&&(e-=12),e}function RI(t,e){var n,i;return e=e||"sunday",i=t.getDay(),"monday"===e&&(0===i?i=6:i--),n=new Date(t.getFullYear(),0,1),Math.floor(((t-n)/864e5+7-i)/7)}function MI(t){return t.replace(/./g,(function(t){switch(t){case"a":case"A":return"%p";case"b":case"d":case"m":case"w":case"W":case"y":case"Y":return"%"+t;case"c":return"%FT%TZ";case"D":return"%a";case"e":return"%z";case"f":return"%I:%M";case"F":return"%F";case"h":case"g":return"%I";case"H":case"G":return"%H";case"i":return"%M";case"I":return"";case"j":return"%d";case"l":return"%A";case"L":return"";case"M":return"%b";case"n":return"%m";case"N":return"%b";case"o":return"%W";case"O":return"%z";case"P":return"%R %p";case"r":return"%a, %d %b %Y %T %z";case"s":return"%S";case"S":case"t":return"";case"T":return"%Z";case"u":return"0";case"U":return"";case"z":return"%j";case"Z":return"z";default:return t}}))}function FI(t,e,n){var i;if(void 0===n&&(n=null),"None"===e||null==e)e=7226578800,i=django.gettext("Never");else{var r=django.get_format(t);n&&(r+=n),i=II(MI(r),new Date(1e3*e))}return i}function LI(t){return"yes"===t||!0===t||"true"===t||1===t}var jI=n("dunZ");function NI(t){return void 0!==t.changingThisBreaksApplicationSecurity&&(t=t.changingThisBreaksApplicationSecurity.replace(/<.*>/g,"")),'"'+(t=""+t).replace('"','""')+'"'}function BI(t){var e="";t.columns.forEach((function(t){e+=NI(t.title)+","})),e=e.slice(0,-1)+"\r\n",t.dataSource.data.forEach((function(n){t.columns.forEach((function(t){var i=n[t.name];switch(t.type){case Lk.DATE:i=FI("SHORT_DATE_FORMAT",i);break;case Lk.DATETIME:i=FI("SHORT_DATETIME_FORMAT",i);break;case Lk.DATETIMESEC:i=FI("SHORT_DATE_FORMAT",i," H:i:s");break;case Lk.TIME:i=FI("TIME_FORMAT",i)}e+=NI(i)+","})),e=e.slice(0,-1)+"\r\n"}));var n=new Blob([e],{type:"text/csv"});setTimeout((function(){Object(jI.saveAs)(n,t.title+".csv")}),100)}function VI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function zI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function HI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("animation-name","mat-progress-spinner-stroke-rotate-"+n.diameter)("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}function UI(t,e){if(1&t&&(pn(),ja(0,"circle",3)),2&t){var n=Za();us("stroke-dashoffset",n._strokeDashOffset,"px")("stroke-dasharray",n._strokeCircumference,"px")("stroke-width",n._circleStrokeWidth,"%"),Da("r",n._circleRadius)}}var qI=nC(function(){return function(t){this._elementRef=t}}(),"primary"),WI=new Gt("mat-progress-spinner-default-options",{providedIn:"root",factory:function(){return{diameter:100}}}),GI=function(t){function e(n,i,r,o,a){var s=t.call(this,n)||this;s._elementRef=n,s._document=r,s._diameter=100,s._value=0,s._fallbackAnimation=!1,s.mode="determinate";var u=e._diameters;return u.has(r.head)||u.set(r.head,new Set([100])),s._fallbackAnimation=i.EDGE||i.TRIDENT,s._noopAnimations="NoopAnimations"===o&&!!a&&!a._forceAnimations,a&&(a.diameter&&(s.diameter=a.diameter),a.strokeWidth&&(s.strokeWidth=a.strokeWidth)),s}return r(e,t),Object.defineProperty(e.prototype,"diameter",{get:function(){return this._diameter},set:function(t){this._diameter=jy(t),!this._fallbackAnimation&&this._styleRoot&&this._attachStyleNode()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"strokeWidth",{get:function(){return this._strokeWidth||this.diameter/10},set:function(t){this._strokeWidth=jy(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return"determinate"===this.mode?this._value:0},set:function(t){this._value=Math.max(0,Math.min(100,jy(t)))},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){var t=this._elementRef.nativeElement;this._styleRoot=function(t,e){if("undefined"!=typeof window){var n=e.head;if(n&&(n.createShadowRoot||n.attachShadow)){var i=t.getRootNode?t.getRootNode():null;if(i instanceof window.ShadowRoot)return i}}return null}(t,this._document)||this._document.head,this._attachStyleNode(),t.classList.add("mat-progress-spinner-indeterminate"+(this._fallbackAnimation?"-fallback":"")+"-animation")},Object.defineProperty(e.prototype,"_circleRadius",{get:function(){return(this.diameter-10)/2},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_viewBox",{get:function(){var t=2*this._circleRadius+this.strokeWidth;return"0 0 "+t+" "+t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeCircumference",{get:function(){return 2*Math.PI*this._circleRadius},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_strokeDashOffset",{get:function(){return"determinate"===this.mode?this._strokeCircumference*(100-this._value)/100:this._fallbackAnimation&&"indeterminate"===this.mode?.2*this._strokeCircumference:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"_circleStrokeWidth",{get:function(){return this.strokeWidth/this.diameter*100},enumerable:!0,configurable:!0}),e.prototype._attachStyleNode=function(){var t=this._styleRoot,n=this._diameter,i=e._diameters,r=i.get(t);if(!r||!r.has(n)){var o=this._document.createElement("style");o.setAttribute("mat-spinner-animation",n+""),o.textContent=this._getAnimationText(),t.appendChild(o),r||(r=new Set,i.set(t,r)),r.add(n)}},e.prototype._getAnimationText=function(){return"\n @keyframes mat-progress-spinner-stroke-rotate-DIAMETER {\n 0% { stroke-dashoffset: START_VALUE; transform: rotate(0); }\n 12.5% { stroke-dashoffset: END_VALUE; transform: rotate(0); }\n 12.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n 25% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(72.5deg); }\n\n 25.0001% { stroke-dashoffset: START_VALUE; transform: rotate(270deg); }\n 37.5% { stroke-dashoffset: END_VALUE; transform: rotate(270deg); }\n 37.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n 50% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(161.5deg); }\n\n 50.0001% { stroke-dashoffset: START_VALUE; transform: rotate(180deg); }\n 62.5% { stroke-dashoffset: END_VALUE; transform: rotate(180deg); }\n 62.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n 75% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(251.5deg); }\n\n 75.0001% { stroke-dashoffset: START_VALUE; transform: rotate(90deg); }\n 87.5% { stroke-dashoffset: END_VALUE; transform: rotate(90deg); }\n 87.5001% { stroke-dashoffset: END_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n 100% { stroke-dashoffset: START_VALUE; transform: rotateX(180deg) rotate(341.5deg); }\n }\n".replace(/START_VALUE/g,""+.95*this._strokeCircumference).replace(/END_VALUE/g,""+.2*this._strokeCircumference).replace(/DIAMETER/g,""+this.diameter)},e._diameters=new WeakMap,e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc,8),Ia(Hw,8),Ia(WI))},e.\u0275cmp=we({type:e,selectors:[["mat-progress-spinner"]],hostAttrs:["role","progressbar",1,"mat-progress-spinner"],hostVars:10,hostBindings:function(t,e){2&t&&(Da("aria-valuemin","determinate"===e.mode?0:null)("aria-valuemax","determinate"===e.mode?100:null)("aria-valuenow","determinate"===e.mode?e.value:null)("mode",e.mode),us("width",e.diameter,"px")("height",e.diameter,"px"),ls("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color",diameter:"diameter",strokeWidth:"strokeWidth",value:"value",mode:"mode"},exportAs:["matProgressSpinner"],features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(pn(),Fa(0,"svg",0),Aa(1,VI,1,9,"circle",1),Aa(2,zI,1,7,"circle",2),La()),2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Da("viewBox",e._viewBox),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1))},directives:[Od,Id],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],encapsulation:2,changeDetection:0}),e}(qI),YI=function(t){function e(e,n,i,r,o){var a=t.call(this,e,n,i,r,o)||this;return a.mode="indeterminate",a}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc,8),Ia(Hw,8),Ia(WI))},e.\u0275cmp=we({type:e,selectors:[["mat-spinner"]],hostAttrs:["role","progressbar","mode","indeterminate",1,"mat-spinner","mat-progress-spinner"],hostVars:6,hostBindings:function(t,e){2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),ls("_mat-animation-noopable",e._noopAnimations))},inputs:{color:"color"},features:[Es],decls:3,vars:8,consts:[["preserveAspectRatio","xMidYMid meet","focusable","false",3,"ngSwitch"],["cx","50%","cy","50%",3,"animation-name","stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%",3,"stroke-dashoffset","stroke-dasharray","stroke-width",4,"ngSwitchCase"],["cx","50%","cy","50%"]],template:function(t,e){1&t&&(pn(),Fa(0,"svg",0),Aa(1,HI,1,9,"circle",1),Aa(2,UI,1,7,"circle",2),La()),2&t&&(us("width",e.diameter,"px")("height",e.diameter,"px"),Ra("ngSwitch","indeterminate"===e.mode),Da("viewBox",e._viewBox),vr(1),Ra("ngSwitchCase",!0),vr(1),Ra("ngSwitchCase",!1))},directives:[Od,Id],styles:[".mat-progress-spinner{display:block;position:relative}.mat-progress-spinner svg{position:absolute;transform:rotate(-90deg);top:0;left:0;transform-origin:center;overflow:visible}.mat-progress-spinner circle{fill:transparent;transform-origin:center;transition:stroke-dashoffset 225ms linear}._mat-animation-noopable.mat-progress-spinner circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{animation:mat-progress-spinner-linear-rotate 2s linear infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition-property:stroke;animation-duration:4s;animation-timing-function:cubic-bezier(.35,0,.25,1);animation-iteration-count:infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-animation[mode=indeterminate] circle{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{animation:mat-progress-spinner-stroke-rotate-fallback 10s cubic-bezier(.87,.03,.33,1) infinite}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate]{transition:none;animation:none}.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition-property:stroke}._mat-animation-noopable.mat-progress-spinner.mat-progress-spinner-indeterminate-fallback-animation[mode=indeterminate] circle{transition:none;animation:none}@keyframes mat-progress-spinner-linear-rotate{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}@keyframes mat-progress-spinner-stroke-rotate-100{0%{stroke-dashoffset:268.60617px;transform:rotate(0)}12.5%{stroke-dashoffset:56.54867px;transform:rotate(0)}12.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(72.5deg)}25%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(72.5deg)}25.0001%{stroke-dashoffset:268.60617px;transform:rotate(270deg)}37.5%{stroke-dashoffset:56.54867px;transform:rotate(270deg)}37.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(161.5deg)}50%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(161.5deg)}50.0001%{stroke-dashoffset:268.60617px;transform:rotate(180deg)}62.5%{stroke-dashoffset:56.54867px;transform:rotate(180deg)}62.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(251.5deg)}75%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(251.5deg)}75.0001%{stroke-dashoffset:268.60617px;transform:rotate(90deg)}87.5%{stroke-dashoffset:56.54867px;transform:rotate(90deg)}87.5001%{stroke-dashoffset:56.54867px;transform:rotateX(180deg) rotate(341.5deg)}100%{stroke-dashoffset:268.60617px;transform:rotateX(180deg) rotate(341.5deg)}}@keyframes mat-progress-spinner-stroke-rotate-fallback{0%{transform:rotate(0)}25%{transform:rotate(1170deg)}50%{transform:rotate(2340deg)}75%{transform:rotate(3510deg)}100%{transform:rotate(4680deg)}}"],encapsulation:2,changeDetection:0}),e}(GI),KI=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,op],tC]}),t}(),ZI=["mat-menu-item",""],$I=["*"];function XI(t,e){if(1&t){var n=za();Fa(0,"div",0),qa("keydown",(function(t){return Ue(n),Za()._handleKeydown(t)}))("click",(function(t){return Ue(n),Za().closed.emit("click")}))("@transformMenu.start",(function(t){return Ue(n),Za()._onAnimationStart(t)}))("@transformMenu.done",(function(t){return Ue(n),Za()._onAnimationDone(t)})),Fa(1,"div",1),Qa(2),La(),La()}if(2&t){var i=Za();Ra("ngClass",i._classList)("@transformMenu",i._panelAnimationState)}}var QI={transformMenu:sy("transformMenu",[py("void",dy({opacity:0,transform:"scale(0.8)"})),fy("void => enter",ly([gy(".mat-menu-content, .mat-mdc-menu-content",uy("100ms linear",dy({opacity:1}))),uy("120ms cubic-bezier(0, 0, 0.2, 1)",dy({transform:"scale(1)"}))])),fy("* => void",uy("100ms 25ms linear",dy({opacity:0})))]),fadeInItems:sy("fadeInItems",[py("showing",dy({opacity:1})),fy("void => *",[dy({opacity:0}),uy("400ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)")])])},JI=function(){function t(t,e,n,i,r,o,a){this._template=t,this._componentFactoryResolver=e,this._appRef=n,this._injector=i,this._viewContainerRef=r,this._document=o,this._changeDetectorRef=a,this._attached=new P}return t.prototype.attach=function(t){void 0===t&&(t={}),this._portal||(this._portal=new xy(this._template,this._viewContainerRef)),this.detach(),this._outlet||(this._outlet=new Sy(this._document.createElement("div"),this._componentFactoryResolver,this._appRef,this._injector));var e=this._template.elementRef.nativeElement;e.parentNode.insertBefore(this._outlet.outletElement,e),this._changeDetectorRef&&this._changeDetectorRef.markForCheck(),this._portal.attach(this._outlet,t),this._attached.next()},t.prototype.detach=function(){this._portal.isAttached&&this._portal.detach()},t.prototype.ngOnDestroy=function(){this._outlet&&this._outlet.dispose()},t.\u0275fac=function(e){return new(e||t)(Ia(vu),Ia(Ys),Ia(oc),Ia(ca),Ia(_u),Ia(vc),Ia(Ko))},t.\u0275dir=Ee({type:t,selectors:[["ng-template","matMenuContent",""]]}),t}(),tP=new Gt("MAT_MENU_PANEL"),eP=function(t){function e(e,n,i,r){var o=t.call(this)||this;return o._elementRef=e,o._focusMonitor=i,o._parentMenu=r,o.role="menuitem",o._hovered=new P,o._highlighted=!1,o._triggersSubmenu=!1,i&&i.monitor(o._elementRef,!1),r&&r.addItem&&r.addItem(o),o._document=n,o}return r(e,t),e.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._getHostElement(),t,e):this._getHostElement().focus(e)},e.prototype.ngOnDestroy=function(){this._focusMonitor&&this._focusMonitor.stopMonitoring(this._elementRef),this._parentMenu&&this._parentMenu.removeItem&&this._parentMenu.removeItem(this),this._hovered.complete()},e.prototype._getTabIndex=function(){return this.disabled?"-1":"0"},e.prototype._getHostElement=function(){return this._elementRef.nativeElement},e.prototype._checkDisabled=function(t){this.disabled&&(t.preventDefault(),t.stopPropagation())},e.prototype._handleMouseEnter=function(){this._hovered.next(this)},e.prototype.getLabel=function(){var t=this._elementRef.nativeElement,e=this._document?this._document.TEXT_NODE:3,n="";if(t.childNodes)for(var i=t.childNodes.length,r=0;r')}(),this._xPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"yPosition",{get:function(){return this._yPosition},set:function(t){"above"!==t&&"below"!==t&&function(){throw Error('yPosition value must be either \'above\' or below\'.\n Example: ')}(),this._yPosition=t,this.setPositionClasses()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"overlapTrigger",{get:function(){return this._overlapTrigger},set:function(t){this._overlapTrigger=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"hasBackdrop",{get:function(){return this._hasBackdrop},set:function(t){this._hasBackdrop=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"panelClass",{set:function(t){var e=this,n=this._previousPanelClass;n&&n.length&&n.split(" ").forEach((function(t){e._classList[t]=!1})),this._previousPanelClass=t,t&&t.length&&(t.split(" ").forEach((function(t){e._classList[t]=!0})),this._elementRef.nativeElement.className="")},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"classList",{get:function(){return this.panelClass},set:function(t){this.panelClass=t},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.setPositionClasses()},t.prototype.ngAfterContentInit=function(){var t=this;this._updateDirectDescendants(),this._keyManager=new bb(this._directDescendantItems).withWrap().withTypeAhead(),this._tabSubscription=this._keyManager.tabOut.subscribe((function(){return t.closed.emit("tab")}))},t.prototype.ngOnDestroy=function(){this._directDescendantItems.destroy(),this._tabSubscription.unsubscribe(),this.closed.complete()},t.prototype._hovered=function(){return this._directDescendantItems.changes.pipe(of(this._directDescendantItems),tf((function(t){return tt.apply(void 0,t.map((function(t){return t._hovered})))})))},t.prototype.addItem=function(t){},t.prototype.removeItem=function(t){},t.prototype._handleKeydown=function(t){var e=t.keyCode,n=this._keyManager;switch(e){case 27:Py(t)||(t.preventDefault(),this.closed.emit("keydown"));break;case 37:this.parentMenu&&"ltr"===this.direction&&this.closed.emit("keydown");break;case 39:this.parentMenu&&"rtl"===this.direction&&this.closed.emit("keydown");break;case 36:case 35:Py(t)||(36===e?n.setFirstItemActive():n.setLastItemActive(),t.preventDefault());break;default:38!==e&&40!==e||n.setFocusOrigin("keyboard"),n.onKeydown(t)}},t.prototype.focusFirstItem=function(t){void 0===t&&(t="program");var e=this._keyManager;if(this.lazyContent?this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){return e.setFocusOrigin(t).setFirstItemActive()})):e.setFocusOrigin(t).setFirstItemActive(),!e.activeItem&&this._directDescendantItems.length)for(var n=this._directDescendantItems.first._getHostElement().parentElement;n;){if("menu"===n.getAttribute("role")){n.focus();break}n=n.parentElement}},t.prototype.resetActiveItem=function(){this._keyManager.setActiveItem(-1)},t.prototype.setElevation=function(t){var e="mat-elevation-z"+(4+t),n=Object.keys(this._classList).find((function(t){return t.startsWith("mat-elevation-z")}));n&&n!==this._previousElevation||(this._previousElevation&&(this._classList[this._previousElevation]=!1),this._classList[e]=!0,this._previousElevation=e)},t.prototype.setPositionClasses=function(t,e){void 0===t&&(t=this.xPosition),void 0===e&&(e=this.yPosition);var n=this._classList;n["mat-menu-before"]="before"===t,n["mat-menu-after"]="after"===t,n["mat-menu-above"]="above"===e,n["mat-menu-below"]="below"===e},t.prototype._startAnimation=function(){this._panelAnimationState="enter"},t.prototype._resetAnimation=function(){this._panelAnimationState="void"},t.prototype._onAnimationDone=function(t){this._animationDone.next(t),this._isAnimating=!1},t.prototype._onAnimationStart=function(t){this._isAnimating=!0,"enter"===t.toState&&0===this._keyManager.activeItemIndex&&(t.element.scrollTop=0)},t.prototype._updateDirectDescendants=function(){var t=this;this._allItems.changes.pipe(of(this._allItems)).subscribe((function(e){t._directDescendantItems.reset(e.filter((function(e){return e._parentMenu===t}))),t._directDescendantItems.notifyOnChanges()}))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl),Ia(nP))},t.\u0275dir=Ee({type:t,contentQueries:function(t,e,n){var i;1&t&&(cl(n,JI,!0),cl(n,eP,!0),cl(n,eP,!1)),2&t&&(al(i=hl())&&(e.lazyContent=i.first),al(i=hl())&&(e._allItems=i),al(i=hl())&&(e.items=i))},viewQuery:function(t,e){var n;1&t&&ul(vu,!0),2&t&&al(n=hl())&&(e.templateRef=n.first)},inputs:{backdropClass:"backdropClass",xPosition:"xPosition",yPosition:"yPosition",overlapTrigger:"overlapTrigger",hasBackdrop:"hasBackdrop",panelClass:["class","panelClass"],classList:"classList"},outputs:{closed:"closed",close:"close"}}),t}()),rP=function(t){function e(e,n,i){return t.call(this,e,n,i)||this}return r(e,t),e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Vl),Ia(nP))},e.\u0275cmp=we({type:e,selectors:[["mat-menu"]],exportAs:["matMenu"],features:[Us([{provide:tP,useExisting:iP},{provide:iP,useExisting:e}]),Es],ngContentSelectors:$I,decls:1,vars:0,consts:[["tabindex","-1","role","menu",1,"mat-menu-panel",3,"ngClass","keydown","click"],[1,"mat-menu-content"]],template:function(t,e){1&t&&(Xa(),Aa(0,XI,3,2,"ng-template"))},directives:[_d],styles:[".mat-menu-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;max-height:calc(100vh - 48px);border-radius:4px;outline:0;min-height:64px}.mat-menu-panel.ng-animating{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-panel{outline:solid 1px}}.mat-menu-content:not(:empty){padding-top:8px;padding-bottom:8px}.mat-menu-item{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:pointer;outline:0;border:none;-webkit-tap-highlight-color:transparent;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;line-height:48px;height:48px;padding:0 16px;text-align:left;text-decoration:none;max-width:100%;position:relative}.mat-menu-item::-moz-focus-inner{border:0}.mat-menu-item[disabled]{cursor:default}[dir=rtl] .mat-menu-item{text-align:right}.mat-menu-item .mat-icon{margin-right:16px;vertical-align:middle}.mat-menu-item .mat-icon svg{vertical-align:top}[dir=rtl] .mat-menu-item .mat-icon{margin-left:16px;margin-right:0}.mat-menu-item[disabled]{pointer-events:none}@media (-ms-high-contrast:active){.mat-menu-item-highlighted,.mat-menu-item.cdk-keyboard-focused,.mat-menu-item.cdk-program-focused{outline:dotted 1px}}.mat-menu-item-submenu-trigger{padding-right:32px}.mat-menu-item-submenu-trigger::after{width:0;height:0;border-style:solid;border-width:5px 0 5px 5px;border-color:transparent transparent transparent currentColor;content:'';display:inline-block;position:absolute;top:50%;right:16px;transform:translateY(-50%)}[dir=rtl] .mat-menu-item-submenu-trigger{padding-right:16px;padding-left:32px}[dir=rtl] .mat-menu-item-submenu-trigger::after{right:auto;left:16px;transform:rotateY(180deg) translateY(-50%)}button.mat-menu-item{width:100%}.mat-menu-item .mat-menu-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}"],encapsulation:2,data:{animation:[QI.transformMenu,QI.fadeInItems]},changeDetection:0}),e}(iP),oP=new Gt("mat-menu-scroll-strategy"),aP={provide:oP,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},sP=_v({passive:!0}),uP=function(){function t(t,e,n,i,r,o,a,s){var u=this;this._overlay=t,this._element=e,this._viewContainerRef=n,this._parentMenu=r,this._menuItemInstance=o,this._dir=a,this._focusMonitor=s,this._overlayRef=null,this._menuOpen=!1,this._closingActionsSubscription=h.EMPTY,this._hoverSubscription=h.EMPTY,this._menuCloseSubscription=h.EMPTY,this._handleTouchStart=function(){return u._openedBy="touch"},this._openedBy=null,this.restoreFocus=!0,this.menuOpened=new Zu,this.onMenuOpen=this.menuOpened,this.menuClosed=new Zu,this.onMenuClose=this.menuClosed,e.nativeElement.addEventListener("touchstart",this._handleTouchStart,sP),o&&(o._triggersSubmenu=this.triggersSubmenu()),this._scrollStrategy=i}return Object.defineProperty(t.prototype,"_deprecatedMatMenuTriggerFor",{get:function(){return this.menu},set:function(t){this.menu=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"menu",{get:function(){return this._menu},set:function(t){var e=this;t!==this._menu&&(this._menu=t,this._menuCloseSubscription.unsubscribe(),t&&(this._menuCloseSubscription=t.close.asObservable().subscribe((function(t){e._destroyMenu(),"click"!==t&&"tab"!==t||!e._parentMenu||e._parentMenu.closed.emit(t)}))))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._checkMenu(),this._handleHover()},t.prototype.ngOnDestroy=function(){this._overlayRef&&(this._overlayRef.dispose(),this._overlayRef=null),this._element.nativeElement.removeEventListener("touchstart",this._handleTouchStart,sP),this._menuCloseSubscription.unsubscribe(),this._closingActionsSubscription.unsubscribe(),this._hoverSubscription.unsubscribe()},Object.defineProperty(t.prototype,"menuOpen",{get:function(){return this._menuOpen},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dir",{get:function(){return this._dir&&"rtl"===this._dir.value?"rtl":"ltr"},enumerable:!0,configurable:!0}),t.prototype.triggersSubmenu=function(){return!(!this._menuItemInstance||!this._parentMenu)},t.prototype.toggleMenu=function(){return this._menuOpen?this.closeMenu():this.openMenu()},t.prototype.openMenu=function(){var t=this;if(!this._menuOpen){this._checkMenu();var e=this._createOverlay(),n=e.getConfig();this._setPosition(n.positionStrategy),n.hasBackdrop=null==this.menu.hasBackdrop?!this.triggersSubmenu():this.menu.hasBackdrop,e.attach(this._getPortal()),this.menu.lazyContent&&this.menu.lazyContent.attach(this.menuData),this._closingActionsSubscription=this._menuClosingActions().subscribe((function(){return t.closeMenu()})),this._initMenu(),this.menu instanceof iP&&this.menu._startAnimation()}},t.prototype.closeMenu=function(){this.menu.close.emit()},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor?this._focusMonitor.focusVia(this._element,t,e):this._element.nativeElement.focus(e)},t.prototype._destroyMenu=function(){var t=this;if(this._overlayRef&&this.menuOpen){var e=this.menu;this._closingActionsSubscription.unsubscribe(),this._overlayRef.detach(),e instanceof iP?(e._resetAnimation(),e.lazyContent?e._animationDone.pipe(Hp((function(t){return"void"===t.toState})),Kh(1),av(e.lazyContent._attached)).subscribe({next:function(){return e.lazyContent.detach()},complete:function(){return t._setIsMenuOpen(!1)}}):this._setIsMenuOpen(!1)):(this._setIsMenuOpen(!1),e.lazyContent&&e.lazyContent.detach()),this._restoreFocus()}},t.prototype._initMenu=function(){this.menu.parentMenu=this.triggersSubmenu()?this._parentMenu:void 0,this.menu.direction=this.dir,this._setMenuElevation(),this._setIsMenuOpen(!0),this.menu.focusFirstItem(this._openedBy||"program")},t.prototype._setMenuElevation=function(){if(this.menu.setElevation){for(var t=0,e=this.menu.parentMenu;e;)t++,e=e.parentMenu;this.menu.setElevation(t)}},t.prototype._restoreFocus=function(){this.restoreFocus&&(this._openedBy?this.triggersSubmenu()||this.focus(this._openedBy):this.focus()),this._openedBy=null},t.prototype._setIsMenuOpen=function(t){this._menuOpen=t,this._menuOpen?this.menuOpened.emit():this.menuClosed.emit(),this.triggersSubmenu()&&(this._menuItemInstance._highlighted=t)},t.prototype._checkMenu=function(){this.menu||function(){throw Error('matMenuTriggerFor: must pass in an mat-menu instance.\n\n Example:\n \n ')}()},t.prototype._createOverlay=function(){if(!this._overlayRef){var t=this._getOverlayConfig();this._subscribeToPositions(t.positionStrategy),this._overlayRef=this._overlay.create(t),this._overlayRef.keydownEvents().subscribe()}return this._overlayRef},t.prototype._getOverlayConfig=function(){return new Lv({positionStrategy:this._overlay.position().flexibleConnectedTo(this._element).withLockedPosition().withTransformOriginOn(".mat-menu-panel, .mat-mdc-menu-panel"),backdropClass:this.menu.backdropClass||"cdk-overlay-transparent-backdrop",scrollStrategy:this._scrollStrategy(),direction:this._dir})},t.prototype._subscribeToPositions=function(t){var e=this;this.menu.setPositionClasses&&t.positionChanges.subscribe((function(t){e.menu.setPositionClasses("start"===t.connectionPair.overlayX?"after":"before","top"===t.connectionPair.overlayY?"below":"above")}))},t.prototype._setPosition=function(t){var e="before"===this.menu.xPosition?["end","start"]:["start","end"],n=e[0],i=e[1],r="above"===this.menu.yPosition?["bottom","top"]:["top","bottom"],o=r[0],a=r[1],s=[o,a],u=s[0],l=s[1],c=[n,i],d=c[0],p=c[1],h=0;this.triggersSubmenu()?(p=n="before"===this.menu.xPosition?"start":"end",i=d="end"===n?"start":"end",h="bottom"===o?8:-8):this.menu.overlapTrigger||(u="top"===o?"bottom":"top",l="top"===a?"bottom":"top"),t.withPositions([{originX:n,originY:u,overlayX:d,overlayY:o,offsetY:h},{originX:i,originY:u,overlayX:p,overlayY:o,offsetY:h},{originX:n,originY:l,overlayX:d,overlayY:a,offsetY:-h},{originX:i,originY:l,overlayX:p,overlayY:a,offsetY:-h}])},t.prototype._menuClosingActions=function(){var t=this,e=this._overlayRef.backdropClick(),n=this._overlayRef.detachments();return tt(e,this._parentMenu?this._parentMenu.closed:Vp(),this._parentMenu?this._parentMenu._hovered().pipe(Hp((function(e){return e!==t._menuItemInstance})),Hp((function(){return t._menuOpen}))):Vp(),n)},t.prototype._handleMousedown=function(t){Rb(t)||(this._openedBy=0===t.button?"mouse":null,this.triggersSubmenu()&&t.preventDefault())},t.prototype._handleKeydown=function(t){var e=t.keyCode;this.triggersSubmenu()&&(39===e&&"ltr"===this.dir||37===e&&"rtl"===this.dir)&&this.openMenu()},t.prototype._handleClick=function(t){this.triggersSubmenu()?(t.stopPropagation(),this.openMenu()):this.toggleMenu()},t.prototype._handleHover=function(){var t=this;this.triggersSubmenu()&&(this._hoverSubscription=this._parentMenu._hovered().pipe(Hp((function(e){return e===t._menuItemInstance&&!e.disabled})),ZO(0,Zy)).subscribe((function(){t._openedBy="mouse",t.menu instanceof iP&&t.menu._isAnimating?t.menu._animationDone.pipe(Kh(1),ZO(0,Zy),av(t._parentMenu._hovered())).subscribe((function(){return t.openMenu()})):t.openMenu()})))},t.prototype._getPortal=function(){return this._portal&&this._portal.templateRef===this.menu.templateRef||(this._portal=new xy(this.menu.templateRef,this._viewContainerRef)),this._portal},t.\u0275fac=function(e){return new(e||t)(Ia($v),Ia(Ks),Ia(_u),Ia(oP),Ia(iP,8),Ia(eP,10),Ia(Ry,8),Ia(Pb))},t.\u0275dir=Ee({type:t,selectors:[["","mat-menu-trigger-for",""],["","matMenuTriggerFor",""]],hostAttrs:["aria-haspopup","true",1,"mat-menu-trigger"],hostVars:1,hostBindings:function(t,e){1&t&&qa("mousedown",(function(t){return e._handleMousedown(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("click",(function(t){return e._handleClick(t)})),2&t&&Da("aria-expanded",e.menuOpen||null)},inputs:{restoreFocus:["matMenuTriggerRestoreFocus","restoreFocus"],_deprecatedMatMenuTriggerFor:["mat-menu-trigger-for","_deprecatedMatMenuTriggerFor"],menu:["matMenuTriggerFor","menu"],menuData:["matMenuTriggerData","menuData"]},outputs:{menuOpened:"menuOpened",onMenuOpen:"onMenuOpen",menuClosed:"menuClosed",onMenuClose:"onMenuClose"},exportAs:["matMenuTrigger"]}),t}(),lP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[aP],imports:[tC]}),t}(),cP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[aP],imports:[[op,tC,TC,nb,lP],lP]}),t}(),dP=function(){function t(){this._vertical=!1,this._inset=!1}return Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"inset",{get:function(){return this._inset},set:function(t){this._inset=Ly(t)},enumerable:!0,configurable:!0}),t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["mat-divider"]],hostAttrs:["role","separator",1,"mat-divider"],hostVars:7,hostBindings:function(t,e){2&t&&(Da("aria-orientation",e.vertical?"vertical":"horizontal"),ls("mat-divider-vertical",e.vertical)("mat-divider-horizontal",!e.vertical)("mat-divider-inset",e.inset))},inputs:{vertical:"vertical",inset:"inset"},decls:0,vars:0,template:function(t,e){},styles:[".mat-divider{display:block;margin:0;border-top-width:1px;border-top-style:solid}.mat-divider.mat-divider-vertical{border-top:0;border-right-width:1px;border-right-style:solid}.mat-divider.mat-divider-inset{margin-left:80px}[dir=rtl] .mat-divider.mat-divider-inset{margin-left:auto;margin-right:80px}"],encapsulation:2,changeDetection:0}),t}(),pP=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,op],tC]}),t}(),hP=function(){function t(){}return t.prototype.transform=function(t,e){return t.sort(void 0===e?function(t,e){return t>e?1:-1}:function(t,n){return t[e]>n[e]?1:-1})},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ae({name:"sort",type:t,pure:!0}),t}(),fP=["trigger"];function mP(t,e){1&t&&ja(0,"img",36),2&t&&Ra("src",Za().icon,qi)}function gP(t,e){if(1&t){var n=za();Fa(0,"button",46),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za(5);return r.newAction.emit({param:i,table:r})})),La()}if(2&t){var i=e.$implicit,r=Za(5);Ra("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ui)}}function yP(t,e){if(1&t&&(Na(0),Fa(1,"button",42),_s(2),La(),Fa(3,"mat-menu",43,44),Aa(5,gP,1,1,"button",45),qu(6,"sort"),La(),Ba()),2&t){var n=e.$implicit,i=Oa(4);vr(1),Ra("matMenuTriggerFor",i),vr(1),ws(n.key),vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Gu(6,4,n.value,"name"))}}function vP(t,e){if(1&t&&(Na(0),Fa(1,"mat-menu",37,38),Aa(3,yP,7,7,"ng-container",39),qu(4,"keyvalue"),La(),Fa(5,"a",40),Fa(6,"i",17),_s(7,"insert_drive_file"),La(),Fa(8,"span",41),Fa(9,"uds-translate"),_s(10,"New"),La(),La(),Fa(11,"i",17),_s(12,"arrow_drop_down"),La(),La(),Ba()),2&t){var n=Oa(2),i=Za(3);vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Wu(4,3,i.grpTypes)),vr(2),Ra("matMenuTriggerFor",n)}}function bP(t,e){if(1&t){var n=za();Fa(0,"button",46),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za(4);return r.newAction.emit({param:i,table:r})})),La()}if(2&t){var i=e.$implicit,r=Za(4);Ra("innerHTML",r.api.safeString(r.api.gui.icon(i.icon)+i.name),Ui)}}function _P(t,e){if(1&t&&(Na(0),Fa(1,"mat-menu",37,38),Aa(3,bP,1,1,"button",45),qu(4,"sort"),La(),Fa(5,"a",40),Fa(6,"i",17),_s(7,"insert_drive_file"),La(),Fa(8,"span",41),Fa(9,"uds-translate"),_s(10,"New"),La(),La(),Fa(11,"i",17),_s(12,"arrow_drop_down"),La(),La(),Ba()),2&t){var n=Oa(2),i=Za(3);vr(1),Ra("overlapTrigger",!1),vr(2),Ra("ngForOf",Gu(4,3,i.oTypes,"name")),vr(2),Ra("matMenuTriggerFor",n)}}function wP(t,e){if(1&t&&(Na(0),Aa(1,vP,13,5,"ng-container",8),Aa(2,_P,13,6,"ng-container",8),Ba()),2&t){var n=Za(2);vr(1),Ra("ngIf",n.newGrouped),vr(1),Ra("ngIf",!n.newGrouped)}}function CP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",47),qa("click",(function(t){Ue(n);var e=Za(2);return e.newAction.emit({param:void 0,table:e})})),Fa(2,"i",17),_s(3,"insert_drive_file"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"New"),La(),La(),La(),Ba()}}function xP(t,e){if(1&t&&(Na(0),Aa(1,wP,3,2,"ng-container",8),Aa(2,CP,7,0,"ng-container",8),Ba()),2&t){var n=Za();vr(1),Ra("ngIf",null!=n.oTypes&&0!=n.oTypes.length),vr(1),Ra("ngIf",null!=n.oTypes&&0==n.oTypes.length)}}function kP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",48),qa("click",(function(t){Ue(n);var e=Za();return e.emitIfSelection(e.editAction)})),Fa(2,"i",17),_s(3,"edit"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Edit"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",1!=i.selection.selected.length)}}function SP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",48),qa("click",(function(t){return Ue(n),Za().permissions()})),Fa(2,"i",17),_s(3,"perm_identity"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Permissions"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",1!=i.selection.selected.length)}}function DP(t,e){if(1&t){var n=za();Fa(0,"a",50),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(2).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function EP(t,e){if(1&t&&(Na(0),Aa(1,DP,1,2,"a",49),Ba()),2&t){var n=Za();vr(1),Ra("ngForOf",n.getcustomButtons())}}function AP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",51),qa("click",(function(t){return Ue(n),Za().export()})),Fa(2,"i",17),_s(3,"import_export"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Export"),La(),La(),La(),Ba()}}function OP(t,e){if(1&t){var n=za();Na(0),Fa(1,"a",52),qa("click",(function(t){Ue(n);var e=Za();return e.emitIfSelection(e.deleteAction,!0)})),Fa(2,"i",17),_s(3,"delete_forever"),La(),Fa(4,"span",41),Fa(5,"uds-translate"),_s(6,"Delete"),La(),La(),La(),Ba()}if(2&t){var i=Za();vr(1),Ra("disabled",i.selection.isEmpty())}}function IP(t,e){if(1&t){var n=za();Fa(0,"button",53),qa("click",(function(t){Ue(n);var e=Za();return e.filterText="",e.applyFilter()})),Fa(1,"i",17),_s(2,"close"),La(),La()}}function PP(t,e){1&t&&ja(0,"mat-header-cell")}function TP(t,e){1&t&&(Fa(0,"i",17),_s(1,"check_box"),La())}function RP(t,e){1&t&&(Fa(0,"i",17),_s(1,"check_box_outline_blank"),La())}function MP(t,e){if(1&t){var n=za();Fa(0,"mat-cell",56),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).clickRow(i,t)})),Aa(1,TP,2,0,"i",57),Aa(2,RP,2,0,"ng-template",null,58,yl),La()}if(2&t){var i=e.$implicit,r=Oa(3),o=Za(2);vr(1),Ra("ngIf",o.selection.isSelected(i))("ngIfElse",r)}}function FP(t,e){1&t&&(Na(0,54),Aa(1,PP,1,0,"mat-header-cell",22),Aa(2,MP,4,2,"mat-cell",55),Ba())}function LP(t,e){1&t&&ja(0,"mat-header-cell")}function jP(t,e){if(1&t){var n=za();Fa(0,"mat-cell"),Fa(1,"div",59),qa("click",(function(t){Ue(n);var i=e.$implicit,r=Za();return r.detailAction.emit({param:i,table:r}),t.stopPropagation()})),Fa(2,"i",17),_s(3,"subdirectory_arrow_right"),La(),La(),La()}}function NP(t,e){if(1&t&&(Fa(0,"mat-header-cell",63),_s(1),La()),2&t){var n=Za().$implicit;vr(1),ws(n.title)}}function BP(t,e){if(1&t){var n=za();Fa(0,"mat-cell",64),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).clickRow(i,t)}))("contextmenu",(function(t){Ue(n);var i=e.$implicit;return Za(2).onContextMenu(i,t)})),ja(1,"div",65),La()}if(2&t){var i=e.$implicit,r=Za().$implicit,o=Za();vr(1),Ra("innerHtml",o.getRowColumn(i,r),Ui)}}function VP(t,e){1&t&&(Na(0,60),Aa(1,NP,2,1,"mat-header-cell",61),Aa(2,BP,2,1,"mat-cell",62),Ba()),2&t&&Ja("matColumnDef",e.$implicit.name)}function zP(t,e){1&t&&ja(0,"mat-header-row")}function HP(t,e){if(1&t&&ja(0,"mat-row",66),2&t){var n=e.$implicit;Ra("ngClass",Za().rowClass(n))}}function UP(t,e){if(1&t&&(Fa(0,"div",67),_s(1),Fa(2,"uds-translate"),_s(3,"Selected items"),La(),La()),2&t){var n=Za();vr(1),Cs(" ",n.selection.selected.length," ")}}function qP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){Ue(n);var e=Za().item,i=Za();return i.detailAction.emit({param:e,table:i})})),Fa(1,"i",72),_s(2,"subdirectory_arrow_right"),La(),Fa(3,"uds-translate"),_s(4,"Detail"),La(),La()}}function WP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){Ue(n);var e=Za(2);return e.emitIfSelection(e.editAction)})),Fa(1,"i",72),_s(2,"edit"),La(),Fa(3,"uds-translate"),_s(4,"Edit"),La(),La()}}function GP(t,e){if(1&t){var n=za();Fa(0,"button",71),qa("click",(function(t){return Ue(n),Za(2).permissions()})),Fa(1,"i",72),_s(2,"perm_identity"),La(),Fa(3,"uds-translate"),_s(4,"Permissions"),La(),La()}}function YP(t,e){if(1&t){var n=za();Fa(0,"button",73),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(2).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function KP(t,e){if(1&t){var n=za();Fa(0,"button",74),qa("click",(function(t){Ue(n);var e=Za(2);return e.emitIfSelection(e.deleteAction)})),Fa(1,"i",72),_s(2,"delete_forever"),La(),Fa(3,"uds-translate"),_s(4,"Delete"),La(),La()}}function ZP(t,e){if(1&t){var n=za();Fa(0,"button",73),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(3).emitCustom(i)})),La()}if(2&t){var i=e.$implicit;Ra("disabled",Za(3).isCustomDisabled(i))("innerHTML",i.html,Ui)}}function $P(t,e){if(1&t&&(Na(0),ja(1,"mat-divider"),Aa(2,ZP,1,2,"button",69),Ba()),2&t){var n=Za(2);vr(2),Ra("ngForOf",n.getCustomAccelerators())}}function XP(t,e){if(1&t&&(Aa(0,qP,5,0,"button",68),Aa(1,WP,5,0,"button",68),Aa(2,GP,5,0,"button",68),Aa(3,YP,1,2,"button",69),Aa(4,KP,5,0,"button",70),Aa(5,$P,3,1,"ng-container",8)),2&t){var n=Za();Ra("ngIf",n.detailAction.observers.length>0),vr(1),Ra("ngIf",n.editAction.observers.length>0),vr(1),Ra("ngIf",!0===n.hasPermissions),vr(1),Ra("ngForOf",n.getCustomMenu()),vr(1),Ra("ngIf",n.deleteAction.observers.length>0),vr(1),Ra("ngIf",n.hasAccelerators)}}var QP=function(){return[5,10,25,100,1e3]},JP=function(){function t(t){this.api=t,this.title="",this.subtitle="",this.displayedColumns=[],this.columns=[],this.rowStyleInfo=null,this.dataSource=new KO([]),this.firstLoad=!0,this.loading=!1,this.lastClickInfo={time:0,x:-1e4,y:-1e4},this.contextMenuPosition={x:"0px",y:"0px"},this.filterText="",this.pageSize=10,this.newGrouped=!1,this.loaded=new Zu,this.rowSelected=new Zu,this.newAction=new Zu,this.editAction=new Zu,this.deleteAction=new Zu,this.customButtonAction=new Zu,this.detailAction=new Zu}return t.prototype.ngOnInit=function(){var t=this;this.hasCustomButtons=void 0!==this.customButtons&&0!==this.customButtons.length&&0!==this.customButtonAction.observers.length&&this.getcustomButtons().length>0,this.hasAccelerators=this.getCustomAccelerators().length>0,this.hasButtons=this.hasCustomButtons||0!==this.detailAction.observers.length||0!==this.editAction.observers.length||this.hasPermissions||0!==this.deleteAction.observers.length,this.hasActions=this.hasButtons||void 0!==this.customButtons&&this.customButtons.length>0,this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sortingDataAccessor=function(t,e){if(!(e in t))return"";var n=t[e];return"number"==typeof n?n:"string"==typeof n?n.toLocaleLowerCase():(null===n&&(n=7226578800),n.changingThisBreaksApplicationSecurity&&(n=n.changingThisBreaksApplicationSecurity),(""+n).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase())},this.dataSource.filterPredicate=function(e,n){try{t.columns.forEach((function(t){if((""+e[t.name]).replace(/<(span|\/span)[^>]*>/g,"").toLocaleLowerCase().includes(n))throw!0}))}catch(i){return!0}return!1},this.dataSource.sort.active=this.api.getFromStorage(this.tableId+"sort-column")||"name",this.dataSource.sort.direction=this.api.getFromStorage(this.tableId+"sort-direction")||"asc",this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.selection=new xv(!0===this.multiSelect,[]);var e=this.rest.permision();0==(e&aS.MANAGEMENT)&&(this.newAction.observers.length=0,this.editAction.observers.length=0,this.deleteAction.observers.length=0,this.customButtonAction.observers.length=0),e!==aS.ALL&&(this.hasPermissions=!1),void 0!==this.icon&&(this.icon=this.api.staticURL("admin/img/icons/"+this.icon+".png")),this.rest.types().subscribe((function(e){t.rest.tableInfo().subscribe((function(n){t.initialize(n,e)}))}))},t.prototype.initialize=function(t,e){var n=this;this.oTypes=e,this.types=new Map,this.grpTypes=new Map,e.forEach((function(t){n.types.set(t.type,t),void 0!==t.group&&(n.grpTypes.has(t.group)||n.grpTypes.set(t.group,[]),n.grpTypes.get(t.group).push(t))})),this.rowStyleInfo=void 0!==t["row-style"]&&void 0!==t["row-style"].field?t["row-style"]:null,this.title=t.title,this.subtitle=t.subtitle||"",this.hasButtons&&this.displayedColumns.push("selection-column");var i=[];t.fields.forEach((function(t){for(var e in t)if(t.hasOwnProperty(e)){var r=t[e];i.push({name:e,title:r.title,type:void 0===r.type?Lk.ALPHANUMERIC:r.type,dict:r.dict}),(void 0===r.visible||r.visible)&&n.displayedColumns.push(e)}})),this.columns=i,this.detailAction.observers.length>0&&this.displayedColumns.push("detail-column"),this.overview()},t.prototype.overview=function(){var t=this;this.loading||(this.selection.clear(),this.dataSource.data=[],this.loading=!0,this.rest.overview().subscribe((function(e){t.loading=!1,void 0!==t.onItem&&e.forEach((function(e){t.onItem(e)})),t.dataSource.data=e,t.loaded.emit({param:t.firstLoad,table:t}),t.firstLoad=!1}),(function(e){t.loading=!1})))},t.prototype.getcustomButtons=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==jk.ONLY_MENU&&t.type!==jk.ACCELERATOR})):[]},t.prototype.getCustomMenu=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type!==jk.ACCELERATOR})):[]},t.prototype.getCustomAccelerators=function(){return this.customButtons?this.customButtons.filter((function(t){return t.type===jk.ACCELERATOR})):[]},t.prototype.getRowColumn=function(t,e){var n=t[e.name];switch(e.type){case Lk.IMAGE:return this.api.safeString(this.api.gui.icon(n,"48px"));case Lk.DATE:n=FI("SHORT_DATE_FORMAT",n);break;case Lk.DATETIME:n=FI("SHORT_DATETIME_FORMAT",n);break;case Lk.TIME:n=FI("TIME_FORMAT",n);break;case Lk.DATETIMESEC:n=FI("SHORT_DATE_FORMAT",n," H:i:s");break;case Lk.ICON:try{n=this.api.gui.icon(this.types.get(t.type).icon)+n}catch(i){}return this.api.safeString(n);case Lk.CALLBACK:break;case Lk.DICTIONARY:try{n=e.dict[n]}catch(i){n=""}}return n},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage(this.tableId+"sort-column",t.active),this.api.putOnStorage(this.tableId+"sort-direction",t.direction)},t.prototype.rowClass=function(t){var e=[];return this.selection.isSelected(t)&&e.push("selected"),null!==this.rowStyleInfo&&e.push(this.rowStyleInfo.prefix+t[this.rowStyleInfo.field]),e},t.prototype.emitIfSelection=function(t,e){void 0===e&&(e=!1);var n=this.selection.selected.length;n>0&&(!0!==e&&1!==n||t.emit({table:this,param:n}))},t.prototype.isCustomDisabled=function(t){switch(t.type){case void 0:case jk.SINGLE_SELECT:return 1!==this.selection.selected.length||!0===t.disabled;case jk.MULTI_SELECT:return this.selection.isEmpty()||!0===t.disabled;default:return!1}},t.prototype.emitCustom=function(t){(this.selection.selected.length||t.type===jk.ALWAYS)&&(t.type===jk.ACCELERATOR?this.api.navigation.goto(t.id,this.selection.selected[0],t.acceleratorProperties):this.customButtonAction.emit({param:t,table:this}))},t.prototype.clickRow=function(t,e){var n=(new Date).getTime();if((this.detailAction.observers.length||this.editAction.observers.length)&&Math.abs(this.lastClickInfo.x-e.x)<16&&Math.abs(this.lastClickInfo.y-e.y)<16&&n-this.lastClickInfo.time<250)return this.selection.clear(),this.selection.select(t),void(this.detailAction.observers.length?this.detailAction.emit({param:t,table:this}):this.emitIfSelection(this.editAction,!1));this.lastClickInfo={time:n,x:e.x,y:e.y},this.doSelect(t,e)},t.prototype.doSelect=function(t,e){if(e.ctrlKey)this.lastSel=t,this.selection.toggle(t);else if(e.shiftKey){if(this.selection.isEmpty())this.selection.toggle(t);else if(this.selection.clear(),this.lastSel!==t)for(var n=!1,i=this.dataSource.sortData(this.dataSource.data,this.dataSource.sort),r=0;r0),vr(1),Ra("ngIf",e.editAction.observers.length>0),vr(1),Ra("ngIf",!0===e.hasPermissions),vr(1),Ra("ngIf",e.hasCustomButtons),vr(1),Ra("ngIf",1==e.allowExport),vr(1),Ra("ngIf",e.deleteAction.observers.length>0),vr(7),Ra("ngModel",e.filterText),vr(1),Ra("ngIf",e.filterText),vr(2),Ra("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Bu(27,QP))("showFirstLastButtons",!0),vr(6),Ra("dataSource",e.dataSource),vr(1),Ra("ngIf",e.hasButtons),vr(4),Ra("ngForOf",e.columns),vr(1),Ra("matHeaderRowDef",e.displayedColumns),vr(1),Ra("matRowDefColumns",e.displayedColumns),vr(1),Ra("hidden",!e.loading),vr(5),Ra("ngIf",e.hasButtons&&e.selection.selected.length>0),vr(1),us("left",e.contextMenuPosition.x)("top",e.contextMenuPosition.y),Ra("matMenuTriggerFor",n)}},directives:[Sd,vx,sD,uI,mD,wD,AE,NA,gx,TO,UA,LO,MO,RO,xd,VO,HO,GI,uP,rP,JI,eP,mx,iD,jO,BO,KA,UO,WO,_d,dP],pipes:[$d,hP],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.buttons[_ngcontent-%COMP%], .header[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.buttons[_ngcontent-%COMP%]{flex-direction:row;align-items:center}.buttons[_ngcontent-%COMP%] a[_ngcontent-%COMP%]{margin-right:1em;margin-bottom:1em}.buttons[_ngcontent-%COMP%] .material-icons[_ngcontent-%COMP%]{margin-right:.4rem}.buttons[_ngcontent-%COMP%] .mat-raised-button[_ngcontent-%COMP%]:hover:not([disabled]){background-color:#000;color:#fff}button.mat-menu-item[_ngcontent-%COMP%]{height:32px;line-height:32px}.navigation[_ngcontent-%COMP%]{display:flex;justify-content:flex-start;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.footer[_ngcontent-%COMP%]{margin:1em;display:flex;justify-content:flex-end}mat-cell[_ngcontent-%COMP%]:first-of-type, mat-header-cell[_ngcontent-%COMP%]:first-of-type{padding-left:.5rem}mat-row[_ngcontent-%COMP%]:hover{background-color:#f0f8ff;cursor:pointer}mat-table[_ngcontent-%COMP%]{width:100%;font-weight:300}.mat-column-detail-column[_ngcontent-%COMP%]{max-width:1.5rem;justify-content:center;color:#000!important;padding-right:.5rem}.detail-launcher[_ngcontent-%COMP%]{display:none}.mat-row[_ngcontent-%COMP%]:hover .detail-launcher[_ngcontent-%COMP%]{display:block}.mat-column-selection-column[_ngcontent-%COMP%]{max-width:2rem;justify-content:center;color:#000!important}.menu-warn[_ngcontent-%COMP%]{color:red}.menu-link[_ngcontent-%COMP%]{color:#00f}.loading[_ngcontent-%COMP%]{margin-top:2rem;margin-bottom:2rem;display:flex;justify-content:center} .mat-menu-panel{min-height:48px} .mat-paginator-range-label{min-width:6em}"]}),t}(),tT='pause'+django.gettext("Maintenance")+"",eT='pause'+django.gettext("Exit maintenance mode")+"",nT='pause'+django.gettext("Enter maintenance mode")+"",iT=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"maintenance",html:tT,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New provider"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit provider"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete provider"))},t.prototype.onMaintenance=function(t){var e=this,n=t.table.selection.selected[0],i=n.maintenance_mode?django.gettext("Exit maintenance mode?"):django.gettext("Enter maintenance mode?");this.api.gui.yesno(django.gettext("Maintenance mode for")+" "+n.name,i).subscribe((function(i){i&&e.rest.providers.maintenance(n.id).subscribe((function(){t.table.overview()}))}))},t.prototype.onRowSelect=function(t){var e=t.table;this.customButtons[0].html=e.selection.selected.length>1||0===e.selection.selected.length?tT:e.selection.selected[0].maintenance_mode?eT:nT},t.prototype.onDetail=function(t){this.api.navigation.gotoService(t.param.id)},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("provider"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-services"]],decls:1,vars:6,consts:[["tableId","service-providers","icon","providers",3,"rest","onItem","multiSelect","allowExport","hasPermissions","customButtons","customButtonAction","newAction","editAction","deleteAction","rowSelected","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("customButtonAction",(function(t){return e.onMaintenance(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("rowSelected",(function(t){return e.onRowSelect(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.providers)("onItem",e.processElement)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)},directives:[JP],styles:[".row-maintenance-true>mat-cell{color:orange!important} .mat-column-maintenance_state, .mat-column-services_count, .mat-column-user_services_count{max-width:7rem;justify-content:center}"]}),t}(),rT=n("MCLT"),oT=function(){function t(t,e,n,i){this.title=t,this.data=e,this.columns=n,this.id=i,this.columnsDefinition=Array.from(n,(function(t){var e={};return e[t.field]={visible:!0,title:t.title,type:void 0===t.type?Lk.ALPHANUMERIC:t.type},e}))}return t.prototype.get=function(t){return Oh},t.prototype.getLogs=function(t){return Oh},t.prototype.overview=function(t){return Object(rT.isFunction)(this.data)?this.data():Vp([])},t.prototype.summary=function(t){return this.overview()},t.prototype.put=function(t,e){return Oh},t.prototype.create=function(t){return Oh},t.prototype.save=function(t,e){return Oh},t.prototype.test=function(t,e){return Oh},t.prototype.delete=function(t){return Oh},t.prototype.permision=function(){return aS.ALL},t.prototype.getPermissions=function(t){return Oh},t.prototype.addPermission=function(t,e,n,i){return Oh},t.prototype.revokePermission=function(t){return Oh},t.prototype.types=function(){return Vp([])},t.prototype.gui=function(t){return Oh},t.prototype.callback=function(t,e){return Oh},t.prototype.tableInfo=function(){return Vp({fields:this.columnsDefinition,title:this.title})},t.prototype.detail=function(t,e){return null},t.prototype.invoke=function(t,e){return Oh},t}();function aT(t,e){if(1&t){var n=za();Fa(0,"button",24),qa("click",(function(t){Ue(n);var e=Za();return e.filterText="",e.applyFilter()})),Fa(1,"i",8),_s(2,"close"),La(),La()}}function sT(t,e){if(1&t&&(Fa(0,"mat-header-cell",28),_s(1),La()),2&t){var n=Za().$implicit;vr(1),ws(n)}}function uT(t,e){if(1&t&&(Fa(0,"mat-cell"),ja(1,"div",29),La()),2&t){var n=e.$implicit,i=Za().$implicit,r=Za();vr(1),Ra("innerHtml",r.getRowColumn(n,i),Ui)}}function lT(t,e){1&t&&(Na(0,25),Aa(1,sT,2,1,"mat-header-cell",26),Aa(2,uT,2,1,"mat-cell",27),Ba()),2&t&&Ra("matColumnDef",e.$implicit)}function cT(t,e){1&t&&ja(0,"mat-header-row")}function dT(t,e){if(1&t&&ja(0,"mat-row",30),2&t){var n=e.$implicit;Ra("ngClass",Za().rowClass(n))}}var pT=function(){return[5,10,25,100,1e3]},hT=function(){function t(t){this.api=t,this.filterText="",this.title="Logs",this.displayedColumns=["date","level","source","message"],this.columns=[],this.dataSource=new KO([]),this.selection=new xv,this.pageSize=10}return t.prototype.ngOnInit=function(){var t=this;this.tableId=this.tableId||this.rest.id,this.dataSource.paginator=this.paginator,this.dataSource.sort=this.sort,this.dataSource.sort.active=this.api.getFromStorage("logs-sort-column")||"date",this.dataSource.sort.direction=this.api.getFromStorage("logs-sort-direction")||"desc",this.displayedColumns.forEach((function(e){t.columns.push({name:e,title:e,type:"date"===e?Lk.DATETIMESEC:Lk.ALPHANUMERIC})})),this.filterText=this.api.getFromStorage(this.tableId+"filterValue")||"",this.applyFilter(),this.overview()},t.prototype.overview=function(){var t=this;this.rest.getLogs(this.itemId).subscribe((function(e){t.dataSource.data=e}))},t.prototype.selectElement=function(t,e){},t.prototype.getRowColumn=function(t,e){var n=t[e];return"date"===e?n=FI("SHORT_DATE_FORMAT",n," H:i:s"):"level"===e&&(n={1e4:"OTHER",2e4:"DEBUG",3e4:"INFO",4e4:"WARN",5e4:"ERROR",6e4:"FATAL"}[n]||"OTHER"),n},t.prototype.rowClass=function(t){return["level-"+t.level]},t.prototype.applyFilter=function(){this.api.putOnStorage(this.tableId+"filterValue",this.filterText),this.dataSource.filter=this.filterText.trim().toLowerCase()},t.prototype.sortChanged=function(t){this.api.putOnStorage("logs-sort-column",t.active),this.api.putOnStorage("logs-sort-direction",t.direction)},t.prototype.export=function(){BI(this)},t.prototype.keyDown=function(t){switch(t.keyCode){case 36:this.paginator.firstPage(),t.preventDefault();break;case 35:this.paginator.lastPage(),t.preventDefault();break;case 39:this.paginator.nextPage(),t.preventDefault();break;case 37:this.paginator.previousPage(),t.preventDefault()}},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-logs-table"]],viewQuery:function(t,e){var n;1&t&&(sl(NA,!0),sl(UA,!0)),2&t&&(al(n=hl())&&(e.paginator=n.first),al(n=hl())&&(e.sort=n.first))},inputs:{rest:"rest",itemId:"itemId",tableId:"tableId",pageSize:"pageSize"},decls:36,vars:12,consts:[[1,"card"],[1,"card-header"],[1,"card-title"],[3,"src"],[1,"card-content"],[1,"header"],[1,"buttons"],["mat-raised-button","",3,"click"],[1,"material-icons"],[1,"button-text"],[1,"navigation"],[1,"filter"],["matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click",4,"ngIf"],[1,"paginator"],[3,"pageSize","hidePageSize","pageSizeOptions","showFirstLastButtons"],[1,"reload"],["mat-icon-button","",3,"click"],["tabindex","0",1,"table",3,"keydown"],["matSort","",3,"dataSource","matSortChange"],[3,"matColumnDef",4,"ngFor","ngForOf"],[4,"matHeaderRowDef"],[3,"ngClass",4,"matRowDef","matRowDefColumns"],[1,"footer"],["mat-button","","matSuffix","","mat-icon-button","","aria-label","Clear",3,"click"],[3,"matColumnDef"],["mat-sort-header","",4,"matHeaderCellDef"],[4,"matCellDef"],["mat-sort-header",""],[3,"innerHtml"],[3,"ngClass"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"div",2),ja(3,"img",3),_s(4," \xa0"),Fa(5,"uds-translate"),_s(6,"Logs"),La(),La(),La(),Fa(7,"div",4),Fa(8,"div",5),Fa(9,"div",6),Fa(10,"a",7),qa("click",(function(t){return e.export()})),Fa(11,"i",8),_s(12,"import_export"),La(),Fa(13,"span",9),Fa(14,"uds-translate"),_s(15,"Export"),La(),La(),La(),La(),Fa(16,"div",10),Fa(17,"div",11),Fa(18,"uds-translate"),_s(19,"Filter"),La(),_s(20,"\xa0 "),Fa(21,"mat-form-field"),Fa(22,"input",12),qa("keyup",(function(t){return e.applyFilter()}))("ngModelChange",(function(t){return e.filterText=t})),La(),Aa(23,aT,3,0,"button",13),La(),La(),Fa(24,"div",14),ja(25,"mat-paginator",15),La(),Fa(26,"div",16),Fa(27,"a",17),qa("click",(function(t){return e.overview()})),Fa(28,"i",8),_s(29,"autorenew"),La(),La(),La(),La(),La(),Fa(30,"div",18),qa("keydown",(function(t){return e.keyDown(t)})),Fa(31,"mat-table",19),qa("matSortChange",(function(t){return e.sortChanged(t)})),Aa(32,lT,3,1,"ng-container",20),Aa(33,cT,1,0,"mat-header-row",21),Aa(34,dT,1,1,"mat-row",22),La(),La(),ja(35,"div",23),La(),La()),2&t&&(vr(3),Ra("src",e.api.staticURL("admin/img/icons/logs.png"),qi),vr(19),Ra("ngModel",e.filterText),vr(1),Ra("ngIf",e.filterText),vr(2),Ra("pageSize",e.pageSize)("hidePageSize",!0)("pageSizeOptions",Bu(11,pT))("showFirstLastButtons",!0),vr(6),Ra("dataSource",e.dataSource),vr(1),Ra("ngForOf",e.displayedColumns),vr(1),Ra("matHeaderRowDef",e.displayedColumns),vr(1),Ra("matRowDefColumns",e.displayedColumns))},directives:[vx,gx,sD,uI,mD,wD,AE,Sd,NA,TO,UA,xd,VO,HO,mx,iD,LO,MO,RO,jO,KA,BO,UO,WO,_d],styles:[".header[_ngcontent-%COMP%]{justify-content:space-between;margin:1rem 1rem 0}.header[_ngcontent-%COMP%], .navigation[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap}.navigation[_ngcontent-%COMP%]{justify-content:flex-start}.reload[_ngcontent-%COMP%]{margin-top:.5rem}.table[_ngcontent-%COMP%]{margin:0 1rem;-webkit-user-select:none;-moz-user-select:none;-o-user-select:none;-ms-user-select:none;user-select:none}.mat-column-date[_ngcontent-%COMP%]{max-width:160px}.mat-column-level[_ngcontent-%COMP%]{max-width:96px;text-align:center}.mat-column-source[_ngcontent-%COMP%]{max-width:128px} .level-50000>.mat-cell, .level-60000>.mat-cell{color:#ff1e1e!important} .level-40000>.mat-cell{color:#d65014!important}"]}),t}();function fT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services pools"),La())}function mT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}var gT=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],yT=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.customButtons=[Bk.getGotoButton("pool","id")],this.services=i.services,this.service=i.service}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{service:i,services:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.servicePools=new oT(django.gettext("Service pools"),(function(){return t.services.invoke(t.service.id+"/servicesPools")}),gT,this.service.id+"infopsls")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-information"]],decls:17,vars:7,consts:[["mat-dialog-title",""],["mat-tab-label",""],["pageSize","6",3,"rest","customButtons"],[1,"content"],[3,"rest","itemId","tableId","pageSize"],["mat-raised-button","","mat-dialog-close","","color","primary"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"mat-tab-group"),Fa(6,"mat-tab"),Aa(7,fT,2,0,"ng-template",1),ja(8,"uds-table",2),La(),Fa(9,"mat-tab"),Aa(10,mT,2,0,"ng-template",1),Fa(11,"div",3),ja(12,"uds-logs-table",4),La(),La(),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",5),Fa(15,"uds-translate"),_s(16,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.service.name,"\n"),vr(5),Ra("rest",e.servicePools)("customButtons",e.customButtons),vr(4),Ra("rest",e.services)("itemId",e.service.id)("tableId","serviceInfo-d-log"+e.service.id)("pageSize",5))},directives:[ax,vx,sx,ek,Kx,Yx,JP,hT,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.mat-column-count[_ngcontent-%COMP%], .mat-column-image[_ngcontent-%COMP%], .mat-column-state[_ngcontent-%COMP%]{max-width:7rem;justify-content:center}.navigation[_ngcontent-%COMP%]{margin-top:1rem;display:flex;justify-content:flex-end;flex-wrap:wrap}.reload[_ngcontent-%COMP%]{margin-top:.5rem}"]}),t}();function vT(t,e){if(1&t&&(Fa(0,"div",3),ja(1,"div",4),ja(2,"div",5),La()),2&t){var n=e.$implicit;vr(1),Ra("innerHTML",n.gui.label,Ui),vr(1),Ra("innerHTML",n.value,Ui)}}var bT=function(){function t(t){this.api=t,this.displayables=null}return t.prototype.ngOnInit=function(){this.processFields()},t.prototype.processFields=function(){var t=this;if(!this.gui||!this.value)return[];var e=this.gui.filter((function(t){return t.gui.type!==Sx.HIDDEN}));e.forEach((function(e){var n=t.value[e.name];switch(e.gui.type){case Sx.CHECKBOX:e.value=n?django.gettext("Yes"):django.gettext("No");break;case Sx.PASSWORD:e.value=django.gettext("(hidden)");break;case Sx.CHOICE:var i=Dx.locateChoice(n,e);e.value=i.text;break;case Sx.MULTI_CHOICE:e.value=django.gettext("Selected items :")+n.length;break;case Sx.IMAGECHOICE:i=Dx.locateChoice(n,e),e.value=t.api.safeString(t.api.gui.icon(i.img)+" "+i.text);break;default:e.value=n}""!==e.value&&null!=e.value||(e.value="(empty)")})),this.displayables=e},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-information"]],inputs:{value:"value",gui:"gui"},decls:4,vars:1,consts:[[1,"card"],[1,"card-content"],["class","item",4,"ngFor","ngForOf"],[1,"item"],[1,"label",3,"innerHTML"],[1,"value",3,"innerHTML"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Aa(2,vT,3,2,"div",2),La(),ja(3,"div"),La()),2&t&&(vr(2),Ra("ngForOf",e.displayables))},directives:[xd],styles:[".card-content[_ngcontent-%COMP%]{padding:1rem;display:flex;flex-direction:column}.item[_ngcontent-%COMP%]{padding-bottom:.5rem;display:flex}.label[_ngcontent-%COMP%]{font-weight:700;width:32rem;overflow-x:hidden;text-overflow:ellipsis;text-align:end;margin-right:1rem;align-self:center}"]}),t}();function _T(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function wT(t,e){if(1&t&&ja(0,"uds-information",15),2&t){var n=Za(2);Ra("value",n.provider)("gui",n.gui)}}function CT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services"),La())}function xT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Usage"),La())}function kT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function ST(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,_T,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,wT,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,CT,2,0,"ng-template",9),Fa(9,"div",10),Fa(10,"uds-table",12),qa("newAction",(function(t){return Ue(n),Za().onNewService(t)}))("editAction",(function(t){return Ue(n),Za().onEditService(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteService(t)}))("customButtonAction",(function(t){return Ue(n),Za().onInformation(t)}))("loaded",(function(t){return Ue(n),Za().onLoad(t)})),La(),La(),La(),Fa(11,"mat-tab"),Aa(12,xT,2,0,"ng-template",9),Fa(13,"div",10),Fa(14,"uds-table",13),qa("deleteAction",(function(t){return Ue(n),Za().onDeleteUsage(t)})),La(),La(),La(),Fa(15,"mat-tab"),Aa(16,kT,2,0,"ng-template",9),Fa(17,"div",10),ja(18,"uds-logs-table",14),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.provider&&i.gui),vr(4),Ra("rest",i.services)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","providers-d-services"+i.provider.id),vr(4),Ra("rest",i.usage)("multiSelect",!0)("allowExport",!0)("tableId","providers-d-usage"+i.provider.id),vr(4),Ra("rest",i.services.parentModel)("itemId",i.provider.id)("tableId","providers-d-log"+i.provider.id)}}var DT=function(t){return["/providers",t]},ET=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:jk.ONLY_MENU}],this.provider=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("provider");this.services=this.rest.providers.detail(e,"services"),this.usage=this.rest.providers.detail(e,"usage"),this.services.parentModel.get(e).subscribe((function(e){t.provider=e,t.services.parentModel.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onInformation=function(t){yT.launch(this.api,this.services,t.table.selection.selected[0])},t.prototype.onNewService=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service"),!1)},t.prototype.onEditService=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit service"),!1)},t.prototype.onDeleteService=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service"))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user service"))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("service");if(void 0!==e){this.selectedTab=1;var n=t.table;n.dataSource.data.forEach((function(t){t.id===e&&n.selection.select(t)}))}}},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-services-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","providers",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","editAction","deleteAction","customButtonAction","loaded"],["icon","usage",3,"rest","multiSelect","allowExport","tableId","deleteAction"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,ST,19,15,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,DT,e.services.parentId)),vr(4),Ra("src",e.api.staticURL("admin/img/icons/services.png"),qi),vr(1),Cs(" \xa0",null==e.provider?null:e.provider.name," "),vr(1),Ra("ngIf",null!==e.provider))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[""]}),t}(),AT=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("authenticator")},t.prototype.onDetail=function(t){this.api.navigation.gotoAuthenticatorDetail(t.param.id)},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Authenticator"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Authenticator"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Authenticator"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("authenticator"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible)},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-authenticators"]],decls:2,vars:5,consts:[["icon","authenticators",3,"rest","multiSelect","allowExport","hasPermissions","onItem","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.authenticators)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement))},directives:[JP],styles:[""]}),t}(),OT=["panel"];function IT(t,e){if(1&t&&(Fa(0,"div",0,1),Qa(2),La()),2&t){var n=Za();Ra("id",n.id)("ngClass",n._classList)}}var PT=["*"],TT=0,RT=function(){return function(t,e){this.source=t,this.option=e}}(),MT=iC(function(){return function(){}}()),FT=new Gt("mat-autocomplete-default-options",{providedIn:"root",factory:function(){return{autoActiveFirstOption:!1}}}),LT=function(t){function e(e,n,i){var r=t.call(this)||this;return r._changeDetectorRef=e,r._elementRef=n,r.showPanel=!1,r._isOpen=!1,r.displayWith=null,r.optionSelected=new Zu,r.opened=new Zu,r.closed=new Zu,r._classList={},r.id="mat-autocomplete-"+TT++,r._autoActiveFirstOption=!!i.autoActiveFirstOption,r}return r(e,t),Object.defineProperty(e.prototype,"isOpen",{get:function(){return this._isOpen&&this.showPanel},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"autoActiveFirstOption",{get:function(){return this._autoActiveFirstOption},set:function(t){this._autoActiveFirstOption=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"classList",{set:function(t){this._classList=t&&t.length?t.split(" ").reduce((function(t,e){return t[e.trim()]=!0,t}),{}):{},this._setVisibilityClasses(this._classList),this._elementRef.nativeElement.className=""},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new vb(this.options).withWrap(),this._setVisibility()},e.prototype._setScrollTop=function(t){this.panel&&(this.panel.nativeElement.scrollTop=t)},e.prototype._getScrollTop=function(){return this.panel?this.panel.nativeElement.scrollTop:0},e.prototype._setVisibility=function(){this.showPanel=!!this.options.length,this._setVisibilityClasses(this._classList),this._changeDetectorRef.markForCheck()},e.prototype._emitSelectEvent=function(t){var e=new RT(this,t);this.optionSelected.emit(e)},e.prototype._setVisibilityClasses=function(t){t["mat-autocomplete-visible"]=this.showPanel,t["mat-autocomplete-hidden"]=!this.showPanel},e.\u0275fac=function(t){return new(t||e)(Ia(Ko),Ia(Ks),Ia(FT))},e.\u0275cmp=we({type:e,selectors:[["mat-autocomplete"]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,VC,!0),cl(n,LC,!1)),2&t&&(al(i=hl())&&(e.options=i),al(i=hl())&&(e.optionGroups=i))},viewQuery:function(t,e){var n;1&t&&(sl(vu,!0),ul(OT,!0)),2&t&&(al(n=hl())&&(e.template=n.first),al(n=hl())&&(e.panel=n.first))},hostAttrs:[1,"mat-autocomplete"],inputs:{disableRipple:"disableRipple",autoActiveFirstOption:"autoActiveFirstOption",classList:["class","classList"],displayWith:"displayWith",panelWidth:"panelWidth"},outputs:{optionSelected:"optionSelected",opened:"opened",closed:"closed"},exportAs:["matAutocomplete"],features:[Us([{provide:BC,useExisting:e}]),Es],ngContentSelectors:PT,decls:1,vars:0,consts:[["role","listbox",1,"mat-autocomplete-panel",3,"id","ngClass"],["panel",""]],template:function(t,e){1&t&&(Xa(),Aa(0,IT,3,2,"ng-template"))},directives:[_d],styles:[".mat-autocomplete-panel{min-width:112px;max-width:280px;overflow:auto;-webkit-overflow-scrolling:touch;visibility:hidden;max-width:none;max-height:256px;position:relative;width:100%;border-bottom-left-radius:4px;border-bottom-right-radius:4px}.mat-autocomplete-panel.mat-autocomplete-visible{visibility:visible}.mat-autocomplete-panel.mat-autocomplete-hidden{visibility:hidden}.mat-autocomplete-panel-above .mat-autocomplete-panel{border-radius:0;border-top-left-radius:4px;border-top-right-radius:4px}.mat-autocomplete-panel .mat-divider-horizontal{margin-top:-1px}@media (-ms-high-contrast:active){.mat-autocomplete-panel{outline:solid 1px}}"],encapsulation:2,changeDetection:0}),e}(MT),jT=function(){function t(t){this.elementRef=t}return t.\u0275fac=function(e){return new(e||t)(Ia(Ks))},t.\u0275dir=Ee({type:t,selectors:[["","matAutocompleteOrigin",""]],exportAs:["matAutocompleteOrigin"]}),t}(),NT=new Gt("mat-autocomplete-scroll-strategy"),BT={provide:NT,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},VT={provide:cD,useExisting:It((function(){return zT})),multi:!0},zT=function(){function t(t,e,n,i,r,o,a,s,u,l){var c=this;this._element=t,this._overlay=e,this._viewContainerRef=n,this._zone=i,this._changeDetectorRef=r,this._dir=a,this._formField=s,this._document=u,this._viewportRuler=l,this._componentDestroyed=!1,this._autocompleteDisabled=!1,this._manuallyFloatingLabel=!1,this._viewportSubscription=h.EMPTY,this._canOpenOnNextFocus=!0,this._closeKeyEventStream=new P,this._windowBlurHandler=function(){c._canOpenOnNextFocus=c._document.activeElement!==c._element.nativeElement||c.panelOpen},this._onChange=function(){},this._onTouched=function(){},this.position="auto",this.autocompleteAttribute="off",this._overlayAttached=!1,this.optionSelections=Ph((function(){return c.autocomplete&&c.autocomplete.options?tt.apply(void 0,c.autocomplete.options.map((function(t){return t.onSelectionChange}))):c._zone.onStable.asObservable().pipe(Kh(1),tf((function(){return c.optionSelections})))})),this._scrollStrategy=o}return Object.defineProperty(t.prototype,"autocompleteDisabled",{get:function(){return this._autocompleteDisabled},set:function(t){this._autocompleteDisabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngAfterViewInit=function(){var t=this;if("undefined"!=typeof window&&(this._zone.runOutsideAngular((function(){window.addEventListener("blur",t._windowBlurHandler)})),function(){if(null==mv){var t="undefined"!=typeof document?document.head:null;mv=!(!t||!t.createShadowRoot&&!t.attachShadow)}return mv}())){var e=this._element.nativeElement,n=e.getRootNode?e.getRootNode():null;this._isInsideShadowRoot=n instanceof window.ShadowRoot}},t.prototype.ngOnChanges=function(t){t.position&&this._positionStrategy&&(this._setStrategyPositions(this._positionStrategy),this.panelOpen&&this._overlayRef.updatePosition())},t.prototype.ngOnDestroy=function(){"undefined"!=typeof window&&window.removeEventListener("blur",this._windowBlurHandler),this._viewportSubscription.unsubscribe(),this._componentDestroyed=!0,this._destroyPanel(),this._closeKeyEventStream.complete()},Object.defineProperty(t.prototype,"panelOpen",{get:function(){return this._overlayAttached&&this.autocomplete.showPanel},enumerable:!0,configurable:!0}),t.prototype.openPanel=function(){this._attachOverlay(),this._floatLabel()},t.prototype.closePanel=function(){this._resetLabel(),this._overlayAttached&&(this.panelOpen&&this.autocomplete.closed.emit(),this.autocomplete._isOpen=this._overlayAttached=!1,this._overlayRef&&this._overlayRef.hasAttached()&&(this._overlayRef.detach(),this._closingActionsSubscription.unsubscribe()),this._componentDestroyed||this._changeDetectorRef.detectChanges())},t.prototype.updatePosition=function(){this._overlayAttached&&this._overlayRef.updatePosition()},Object.defineProperty(t.prototype,"panelClosingActions",{get:function(){var t=this;return tt(this.optionSelections,this.autocomplete._keyManager.tabOut.pipe(Hp((function(){return t._overlayAttached}))),this._closeKeyEventStream,this._getOutsideClickStream(),this._overlayRef?this._overlayRef.detachments().pipe(Hp((function(){return t._overlayAttached}))):Vp()).pipe(U((function(t){return t instanceof NC?t:null})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activeOption",{get:function(){return this.autocomplete&&this.autocomplete._keyManager?this.autocomplete._keyManager.activeItem:null},enumerable:!0,configurable:!0}),t.prototype._getOutsideClickStream=function(){var t=this;return tt(Hy(this._document,"click"),Hy(this._document,"touchend")).pipe(Hp((function(e){var n=t._isInsideShadowRoot&&e.composedPath?e.composedPath()[0]:e.target,i=t._formField?t._formField._elementRef.nativeElement:null;return t._overlayAttached&&n!==t._element.nativeElement&&(!i||!i.contains(n))&&!!t._overlayRef&&!t._overlayRef.overlayElement.contains(n)})))},t.prototype.writeValue=function(t){var e=this;Promise.resolve(null).then((function(){return e._setTriggerValue(t)}))},t.prototype.registerOnChange=function(t){this._onChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this._element.nativeElement.disabled=t},t.prototype._handleKeydown=function(t){var e=t.keyCode;if(27===e&&t.preventDefault(),this.activeOption&&13===e&&this.panelOpen)this.activeOption._selectViaInteraction(),this._resetActiveItem(),t.preventDefault();else if(this.autocomplete){var n=this.autocomplete._keyManager.activeItem,i=38===e||40===e;this.panelOpen||9===e?this.autocomplete._keyManager.onKeydown(t):i&&this._canOpen()&&this.openPanel(),(i||this.autocomplete._keyManager.activeItem!==n)&&this._scrollToOption()}},t.prototype._handleInput=function(t){var e=t.target,n=e.value;"number"===e.type&&(n=""==n?null:parseFloat(n)),this._previousValue!==n&&(this._previousValue=n,this._onChange(n),this._canOpen()&&this._document.activeElement===t.target&&this.openPanel())},t.prototype._handleFocus=function(){this._canOpenOnNextFocus?this._canOpen()&&(this._previousValue=this._element.nativeElement.value,this._attachOverlay(),this._floatLabel(!0)):this._canOpenOnNextFocus=!0},t.prototype._floatLabel=function(t){void 0===t&&(t=!1),this._formField&&"auto"===this._formField.floatLabel&&(t?this._formField._animateAndLockLabel():this._formField.floatLabel="always",this._manuallyFloatingLabel=!0)},t.prototype._resetLabel=function(){this._manuallyFloatingLabel&&(this._formField.floatLabel="auto",this._manuallyFloatingLabel=!1)},t.prototype._scrollToOption=function(){var t=this.autocomplete._keyManager.activeItemIndex||0,e=zC(t,this.autocomplete.options,this.autocomplete.optionGroups);if(0===t&&1===e)this.autocomplete._setScrollTop(0);else{var n=HC(t+e,48,this.autocomplete._getScrollTop(),256);this.autocomplete._setScrollTop(n)}},t.prototype._subscribeToClosingActions=function(){var t=this;return tt(this._zone.onStable.asObservable().pipe(Kh(1)),this.autocomplete.options.changes.pipe(lf((function(){return t._positionStrategy.reapplyLastPosition()})),ZO(0))).pipe(tf((function(){var e=t.panelOpen;return t._resetActiveItem(),t.autocomplete._setVisibility(),t.panelOpen&&(t._overlayRef.updatePosition(),e!==t.panelOpen&&t.autocomplete.opened.emit()),t.panelClosingActions})),Kh(1)).subscribe((function(e){return t._setValueAndClose(e)}))},t.prototype._destroyPanel=function(){this._overlayRef&&(this.closePanel(),this._overlayRef.dispose(),this._overlayRef=null)},t.prototype._setTriggerValue=function(t){var e=this.autocomplete&&this.autocomplete.displayWith?this.autocomplete.displayWith(t):t,n=null!=e?e:"";this._formField?this._formField._control.value=n:this._element.nativeElement.value=n,this._previousValue=n},t.prototype._setValueAndClose=function(t){t&&t.source&&(this._clearPreviousSelectedOption(t.source),this._setTriggerValue(t.source.value),this._onChange(t.source.value),this._element.nativeElement.focus(),this.autocomplete._emitSelectEvent(t.source)),this.closePanel()},t.prototype._clearPreviousSelectedOption=function(t){this.autocomplete.options.forEach((function(e){e!=t&&e.selected&&e.deselect()}))},t.prototype._attachOverlay=function(){var t=this;if(!this.autocomplete)throw Error("Attempting to open an undefined instance of `mat-autocomplete`. Make sure that the id passed to the `matAutocomplete` is correct and that you're attempting to open it after the ngAfterContentInit hook.");var e=this._overlayRef;e?(this._positionStrategy.setOrigin(this._getConnectedElement()),e.updateSize({width:this._getPanelWidth()})):(this._portal=new xy(this.autocomplete.template,this._viewContainerRef),e=this._overlay.create(this._getOverlayConfig()),this._overlayRef=e,e.keydownEvents().subscribe((function(e){(27===e.keyCode||38===e.keyCode&&e.altKey)&&(t._resetActiveItem(),t._closeKeyEventStream.next(),e.stopPropagation(),e.preventDefault())})),this._viewportRuler&&(this._viewportSubscription=this._viewportRuler.change().subscribe((function(){t.panelOpen&&e&&e.updateSize({width:t._getPanelWidth()})})))),e&&!e.hasAttached()&&(e.attach(this._portal),this._closingActionsSubscription=this._subscribeToClosingActions());var n=this.panelOpen;this.autocomplete._setVisibility(),this.autocomplete._isOpen=this._overlayAttached=!0,this.panelOpen&&n!==this.panelOpen&&this.autocomplete.opened.emit()},t.prototype._getOverlayConfig=function(){return new Lv({positionStrategy:this._getOverlayPosition(),scrollStrategy:this._scrollStrategy(),width:this._getPanelWidth(),direction:this._dir})},t.prototype._getOverlayPosition=function(){var t=this._overlay.position().flexibleConnectedTo(this._getConnectedElement()).withFlexibleDimensions(!1).withPush(!1);return this._setStrategyPositions(t),this._positionStrategy=t,t},t.prototype._setStrategyPositions=function(t){var e={originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},n={originX:"start",originY:"top",overlayX:"start",overlayY:"bottom",panelClass:"mat-autocomplete-panel-above"};t.withPositions("above"===this.position?[n]:"below"===this.position?[e]:[e,n])},t.prototype._getConnectedElement=function(){return this.connectedTo?this.connectedTo.elementRef:this._formField?this._formField.getConnectedOverlayOrigin():this._element},t.prototype._getPanelWidth=function(){return this.autocomplete.panelWidth||this._getHostWidth()},t.prototype._getHostWidth=function(){return this._getConnectedElement().nativeElement.getBoundingClientRect().width},t.prototype._resetActiveItem=function(){this.autocomplete._keyManager.setActiveItem(this.autocomplete.autoActiveFirstOption?0:-1)},t.prototype._canOpen=function(){var t=this._element.nativeElement;return!t.readOnly&&!t.disabled&&!this._autocompleteDisabled},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia($v),Ia(_u),Ia(Vl),Ia(Ko),Ia(NT),Ia(Ry,8),Ia(sD,9),Ia(vc,8),Ia(Ev))},t.\u0275dir=Ee({type:t,selectors:[["input","matAutocomplete",""],["textarea","matAutocomplete",""]],hostAttrs:[1,"mat-autocomplete-trigger"],hostVars:7,hostBindings:function(t,e){1&t&&qa("focusin",(function(t){return e._handleFocus()}))("blur",(function(t){return e._onTouched()}))("input",(function(t){return e._handleInput(t)}))("keydown",(function(t){return e._handleKeydown(t)})),2&t&&Da("autocomplete",e.autocompleteAttribute)("role",e.autocompleteDisabled?null:"combobox")("aria-autocomplete",e.autocompleteDisabled?null:"list")("aria-activedescendant",e.panelOpen&&e.activeOption?e.activeOption.id:null)("aria-expanded",e.autocompleteDisabled?null:e.panelOpen.toString())("aria-owns",e.autocompleteDisabled||!e.panelOpen?null:null==e.autocomplete?null:e.autocomplete.id)("aria-haspopup",!e.autocompleteDisabled)},inputs:{position:["matAutocompletePosition","position"],autocompleteAttribute:["autocomplete","autocompleteAttribute"],autocompleteDisabled:["matAutocompleteDisabled","autocompleteDisabled"],autocomplete:["matAutocomplete","autocomplete"],connectedTo:["matAutocompleteConnectedTo","connectedTo"]},exportAs:["matAutocompleteTrigger"],features:[Us([VT]),Rs()]}),t}(),HT=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[BT],imports:[[UC,nb,tC,op],UC,tC]}),t}();function UT(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"uds-translate"),_s(2,"Edit user"),La(),_s(3),La()),2&t){var n=Za();vr(3),Cs(" ",n.user.name," ")}}function qT(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New user"),La())}function WT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",18),qa("ngModelChange",(function(t){return Ue(n),Za().user.name=t})),La(),La()}if(2&t){var i=Za();vr(2),Cs(" ",i.authenticator.type_info.userNameLabel," "),vr(1),Ra("ngModel",i.user.name)("disabled",i.user.id)}}function GT(t,e){if(1&t&&(Fa(0,"mat-option",21),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),xs(" ",n.id," (",n.name,") ")}}function YT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",19),qa("ngModelChange",(function(t){return Ue(n),Za().user.name=t}))("input",(function(t){return Ue(n),Za().filterUser(t)})),La(),Fa(4,"mat-autocomplete",null,20),Aa(6,GT,2,3,"mat-option",15),La(),La()}if(2&t){var i=Oa(5),r=Za();vr(2),Cs(" ",r.authenticator.type_info.userNameLabel," "),vr(1),Ra("ngModel",r.user.name)("matAutocomplete",i),vr(3),Ra("ngForOf",r.users)}}function KT(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",22),qa("ngModelChange",(function(t){return Ue(n),Za().user.password=t})),La(),La()}if(2&t){var i=Za();vr(2),Cs(" ",i.authenticator.type_info.passwordLabel," "),vr(1),Ra("ngModel",i.user.password)}}function ZT(t,e){if(1&t&&(Fa(0,"mat-option",21),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var $T=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.users=[],this.authenticator=i.authenticator,this.user={id:void 0,name:"",real_name:"",comments:"",state:"A",is_admin:!1,staff_member:!1,password:"",role:"user",groups:[]},void 0!==i.user&&(this.user.id=i.user.id,this.user.name=i.user.name)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,user:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").overview().subscribe((function(e){t.groups=e})),this.user.id&&this.rest.authenticators.detail(this.authenticator.id,"users").get(this.user.id).subscribe((function(e){t.user=e,t.user.role=e.is_admin?"admin":e.staff_member?"staff":"user"}),(function(e){t.dialogRef.close()}))},t.prototype.roleChanged=function(t){this.user.is_admin="admin"===t,this.user.staff_member="admin"===t||"staff"===t},t.prototype.filterUser=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"user",t.target.value,100).subscribe((function(t){e.users.length=0,t.forEach((function(t){e.users.push(t)}))}))},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"users").save(this.user).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-user"]],decls:60,vars:11,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["value","B"],[3,"ngModel","ngModelChange","valueChange"],["value","admin"],["value","staff"],["value","user"],["multiple","",3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value"],["type","password","matInput","",3,"ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,UT,4,1,"div",1),Aa(2,qT,2,0,"ng-template",null,2,yl),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",3),Aa(6,WT,4,3,"mat-form-field",4),Aa(7,YT,7,4,"mat-form-field",4),Fa(8,"mat-form-field"),Fa(9,"mat-label"),Fa(10,"uds-translate"),_s(11,"Real name"),La(),La(),Fa(12,"input",5),qa("ngModelChange",(function(t){return e.user.real_name=t})),La(),La(),Fa(13,"mat-form-field"),Fa(14,"mat-label"),Fa(15,"uds-translate"),_s(16,"Comments"),La(),La(),Fa(17,"input",5),qa("ngModelChange",(function(t){return e.user.comments=t})),La(),La(),Fa(18,"mat-form-field"),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"State"),La(),La(),Fa(22,"mat-select",6),qa("ngModelChange",(function(t){return e.user.state=t})),Fa(23,"mat-option",7),Fa(24,"uds-translate"),_s(25,"Enabled"),La(),La(),Fa(26,"mat-option",8),Fa(27,"uds-translate"),_s(28,"Disabled"),La(),La(),Fa(29,"mat-option",9),Fa(30,"uds-translate"),_s(31,"Blocked"),La(),La(),La(),La(),Fa(32,"mat-form-field"),Fa(33,"mat-label"),Fa(34,"uds-translate"),_s(35,"Role"),La(),La(),Fa(36,"mat-select",10),qa("ngModelChange",(function(t){return e.user.role=t}))("valueChange",(function(t){return e.roleChanged(t)})),Fa(37,"mat-option",11),Fa(38,"uds-translate"),_s(39,"Admin"),La(),La(),Fa(40,"mat-option",12),Fa(41,"uds-translate"),_s(42,"Staff member"),La(),La(),Fa(43,"mat-option",13),Fa(44,"uds-translate"),_s(45,"User"),La(),La(),La(),La(),Aa(46,KT,4,2,"mat-form-field",4),Fa(47,"mat-form-field"),Fa(48,"mat-label"),Fa(49,"uds-translate"),_s(50,"Groups"),La(),La(),Fa(51,"mat-select",14),qa("ngModelChange",(function(t){return e.user.groups=t})),Aa(52,ZT,2,2,"mat-option",15),La(),La(),La(),La(),Fa(53,"mat-dialog-actions"),Fa(54,"button",16),Fa(55,"uds-translate"),_s(56,"Cancel"),La(),La(),Fa(57,"button",17),qa("click",(function(t){return e.save()})),Fa(58,"uds-translate"),_s(59,"Ok"),La(),La(),La()),2&t){var n=Oa(3);vr(1),Ra("ngIf",e.user.id)("ngIfElse",n),vr(5),Ra("ngIf",!1===e.authenticator.type_info.canSearchUsers||e.user.id),vr(1),Ra("ngIf",!0===e.authenticator.type_info.canSearchUsers&&!e.user.id),vr(5),Ra("ngModel",e.user.real_name),vr(5),Ra("ngModel",e.user.comments),vr(5),Ra("ngModel",e.user.state),vr(14),Ra("ngModel",e.user.role),vr(10),Ra("ngIf",e.authenticator.type_info.needsPassword),vr(5),Ra("ngModel",e.user.groups),vr(1),Ra("ngForOf",e.groups)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,_A,VC,xd,ux,mx,ox,zT,LT],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),XT=["thumbContainer"],QT=["toggleBar"],JT=["input"],tR=function(){return{enterDuration:150}},eR=["*"],nR=new Gt("mat-slide-toggle-default-options",{providedIn:"root",factory:function(){return{disableToggleValue:!1,disableDragValue:!1}}}),iR=0,rR={provide:cD,useExisting:It((function(){return aR})),multi:!0},oR=function(){return function(t,e){this.source=t,this.checked=e}}(),aR=function(t){function e(e,n,i,r,o,a,s,u){var l=t.call(this,e)||this;return l._focusMonitor=n,l._changeDetectorRef=i,l._ngZone=o,l.defaults=a,l._animationMode=s,l._dir=u,l._onChange=function(t){},l._onTouched=function(){},l._uniqueId="mat-slide-toggle-"+ ++iR,l._required=!1,l._checked=!1,l._dragging=!1,l.name=null,l.id=l._uniqueId,l.labelPosition="after",l.ariaLabel=null,l.ariaLabelledby=null,l.change=new Zu,l.toggleChange=new Zu,l.dragChange=new Zu,l.tabIndex=parseInt(r)||0,l}return r(e,t),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){this._checked=Ly(t),this._changeDetectorRef.markForCheck()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._focusMonitor.monitor(this._elementRef,!0).subscribe((function(e){e||Promise.resolve().then((function(){return t._onTouched()}))}))},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},e.prototype._onChangeEvent=function(t){t.stopPropagation(),this._dragging||this.toggleChange.emit(),this._dragging||this.defaults.disableToggleValue?this._inputElement.nativeElement.checked=this.checked:(this.checked=this._inputElement.nativeElement.checked,this._emitChangeEvent())},e.prototype._onInputClick=function(t){t.stopPropagation()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this._changeDetectorRef.markForCheck()},e.prototype.focus=function(t){this._focusMonitor.focusVia(this._inputElement,"keyboard",t)},e.prototype.toggle=function(){this.checked=!this.checked,this._onChange(this.checked)},e.prototype._emitChangeEvent=function(){this._onChange(this.checked),this.change.emit(new oR(this,this.checked))},e.prototype._getDragPercentage=function(t){var e=t/this._thumbBarWidth*100;return this._previousChecked&&(e+=100),Math.max(0,Math.min(e,100))},e.prototype._onDragStart=function(){if(!this.disabled&&!this._dragging){var t=this._thumbEl.nativeElement;this._thumbBarWidth=this._thumbBarEl.nativeElement.clientWidth-t.clientWidth,t.classList.add("mat-dragging"),this._previousChecked=this.checked,this._dragging=!0}},e.prototype._onDrag=function(t){if(this._dragging){var e=this._dir&&"rtl"===this._dir.value?-1:1;this._dragPercentage=this._getDragPercentage(t.deltaX*e),this._thumbEl.nativeElement.style.transform="translate3d("+this._dragPercentage/100*this._thumbBarWidth*e+"px, 0, 0)"}},e.prototype._onDragEnd=function(){var t=this;if(this._dragging){var e=this._dragPercentage>50;e!==this.checked&&(this.dragChange.emit(),this.defaults.disableDragValue||(this.checked=e,this._emitChangeEvent())),this._ngZone.runOutsideAngular((function(){return setTimeout((function(){t._dragging&&(t._dragging=!1,t._thumbEl.nativeElement.classList.remove("mat-dragging"),t._thumbEl.nativeElement.style.transform="")}))}))}},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Pb),Ia(Ko),Pa("tabindex"),Ia(Vl),Ia(nR),Ia(Hw,8),Ia(Ry,8))},e.\u0275cmp=we({type:e,selectors:[["mat-slide-toggle"]],viewQuery:function(t,e){var n;1&t&&(ul(XT,!0),ul(QT,!0),ul(JT,!0)),2&t&&(al(n=hl())&&(e._thumbEl=n.first),al(n=hl())&&(e._thumbBarEl=n.first),al(n=hl())&&(e._inputElement=n.first))},hostAttrs:[1,"mat-slide-toggle"],hostVars:12,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e._inputElement.nativeElement.focus()})),2&t&&(ks("id",e.id),Da("tabindex",e.disabled?null:-1)("aria-label",null)("aria-labelledby",null),ls("mat-checked",e.checked)("mat-disabled",e.disabled)("mat-slide-toggle-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disabled:"disabled",disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",name:"name",id:"id",labelPosition:"labelPosition",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"]},outputs:{change:"change",toggleChange:"toggleChange",dragChange:"dragChange"},exportAs:["matSlideToggle"],features:[Us([rR]),Es],ngContentSelectors:eR,decls:16,vars:18,consts:[[1,"mat-slide-toggle-label"],["label",""],[1,"mat-slide-toggle-bar"],["toggleBar",""],["type","checkbox","role","switch",1,"mat-slide-toggle-input","cdk-visually-hidden",3,"id","required","tabIndex","checked","disabled","change","click"],["input",""],[1,"mat-slide-toggle-thumb-container",3,"slidestart","slide","slideend"],["thumbContainer",""],[1,"mat-slide-toggle-thumb"],["mat-ripple","",1,"mat-slide-toggle-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleCentered","matRippleRadius","matRippleAnimation"],[1,"mat-ripple-element","mat-slide-toggle-persistent-ripple"],[1,"mat-slide-toggle-content",3,"cdkObserveContent"],["labelContent",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"label",0,1),Fa(2,"div",2,3),Fa(4,"input",4,5),qa("change",(function(t){return e._onChangeEvent(t)}))("click",(function(t){return e._onInputClick(t)})),La(),Fa(6,"div",6,7),qa("slidestart",(function(t){return e._onDragStart()}))("slide",(function(t){return e._onDrag(t)}))("slideend",(function(t){return e._onDragEnd()})),ja(8,"div",8),Fa(9,"div",9),ja(10,"div",10),La(),La(),La(),Fa(11,"span",11,12),qa("cdkObserveContent",(function(t){return e._onLabelTextChange()})),Fa(13,"span",13),_s(14,"\xa0"),La(),Qa(15),La(),La()),2&t){var n=Oa(1),i=Oa(12);Da("for",e.inputId),vr(2),ls("mat-slide-toggle-bar-no-side-margin",!i.textContent||!i.textContent.trim()),vr(2),Ra("id",e.inputId)("required",e.required)("tabIndex",e.tabIndex)("checked",e.checked)("disabled",e.disabled),Da("name",e.name)("aria-checked",e.checked.toString())("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),vr(5),Ra("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)("matRippleCentered",!0)("matRippleRadius",20)("matRippleAnimation",Bu(17,tR))}},directives:[PC,cb],styles:[".mat-slide-toggle{display:inline-block;height:24px;max-width:100%;line-height:24px;white-space:nowrap;outline:0;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(16px,0,0)}[dir=rtl] .mat-slide-toggle.mat-checked .mat-slide-toggle-thumb-container{transform:translate3d(-16px,0,0)}.mat-slide-toggle.mat-disabled{opacity:.38}.mat-slide-toggle.mat-disabled .mat-slide-toggle-label,.mat-slide-toggle.mat-disabled .mat-slide-toggle-thumb-container{cursor:default}.mat-slide-toggle-label{display:flex;flex:1;flex-direction:row;align-items:center;height:inherit;cursor:pointer}.mat-slide-toggle-content{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mat-slide-toggle-label-before .mat-slide-toggle-label{order:1}.mat-slide-toggle-label-before .mat-slide-toggle-bar{order:2}.mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-label-before .mat-slide-toggle-bar{margin-right:8px;margin-left:0}.mat-slide-toggle-label-before .mat-slide-toggle-bar,[dir=rtl] .mat-slide-toggle-bar{margin-left:8px;margin-right:0}.mat-slide-toggle-bar-no-side-margin{margin-left:0;margin-right:0}.mat-slide-toggle-thumb-container{position:absolute;z-index:1;width:20px;height:20px;top:-3px;left:0;transform:translate3d(0,0,0);transition:all 80ms linear;transition-property:transform;cursor:-webkit-grab;cursor:grab}.mat-slide-toggle-thumb-container.mat-dragging{transition-duration:0s}.mat-slide-toggle-thumb-container:active{cursor:-webkit-grabbing;cursor:grabbing}._mat-animation-noopable .mat-slide-toggle-thumb-container{transition:none}[dir=rtl] .mat-slide-toggle-thumb-container{left:auto;right:0}.mat-slide-toggle-thumb{height:20px;width:20px;border-radius:50%}.mat-slide-toggle-bar{position:relative;width:36px;height:14px;flex-shrink:0;border-radius:8px}.mat-slide-toggle-input{bottom:0;left:10px}[dir=rtl] .mat-slide-toggle-input{left:auto;right:10px}.mat-slide-toggle-bar,.mat-slide-toggle-thumb{transition:all 80ms linear;transition-property:background-color;transition-delay:50ms}._mat-animation-noopable .mat-slide-toggle-bar,._mat-animation-noopable .mat-slide-toggle-thumb{transition:none}.mat-slide-toggle .mat-slide-toggle-ripple{position:absolute;top:calc(50% - 20px);left:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}.mat-slide-toggle .mat-slide-toggle-ripple .mat-ripple-element:not(.mat-slide-toggle-persistent-ripple){opacity:.12}.mat-slide-toggle-persistent-ripple{width:100%;height:100%;transform:none}.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:.04}.mat-slide-toggle:not(.mat-disabled).cdk-keyboard-focused .mat-slide-toggle-persistent-ripple{opacity:.12}.mat-slide-toggle-persistent-ripple,.mat-slide-toggle.mat-disabled .mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{opacity:0}@media (hover:none){.mat-slide-toggle-bar:hover .mat-slide-toggle-persistent-ripple{display:none}}@media (-ms-high-contrast:active){.mat-slide-toggle-thumb{background:#fff;border:1px solid #000}.mat-slide-toggle.mat-checked .mat-slide-toggle-thumb{background:#000;border:1px solid #fff}.mat-slide-toggle-bar{background:#fff}.mat-slide-toggle.cdk-keyboard-focused .mat-slide-toggle-bar{outline:1px dotted;outline-offset:5px}}@media (-ms-high-contrast:black-on-white){.mat-slide-toggle-bar{border:1px solid #000}}"],encapsulation:2,changeDetection:0}),e}(rC(nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"accent"))),sR={provide:kD,useExisting:It((function(){return uR})),multi:!0},uR=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-slide-toggle","required","","formControlName",""],["mat-slide-toggle","required","","formControl",""],["mat-slide-toggle","required","","ngModel",""]],features:[Us([sR]),Es]});var n=ei(e);return e}(WE),lR=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),cR=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:Ep,useClass:kC}],imports:[[lR,TC,tC,db],lR,tC]}),t}();function dR(t,e){if(1&t&&(Fa(0,"div"),Fa(1,"uds-translate"),_s(2,"Edit group"),La(),_s(3),La()),2&t){var n=Za();vr(3),Cs(" ",n.group.name," ")}}function pR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New group"),La())}function hR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",13),qa("ngModelChange",(function(t){return Ue(n),Za(2).group.name=t})),La(),La()}if(2&t){var i=Za(2);vr(2),Cs(" ",i.authenticator.type_info.groupNameLabel," "),vr(1),Ra("ngModel",i.group.name)("disabled",i.group.id)}}function fR(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),xs(" ",n.id," (",n.name,") ")}}function mR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",14),qa("ngModelChange",(function(t){return Ue(n),Za(2).group.name=t}))("input",(function(t){return Ue(n),Za(2).filterGroup(t)})),La(),Fa(4,"mat-autocomplete",null,15),Aa(6,fR,2,3,"mat-option",16),La(),La()}if(2&t){var i=Oa(5),r=Za(2);vr(2),Cs(" ",r.authenticator.type_info.groupNameLabel," "),vr(1),Ra("ngModel",r.group.name)("matAutocomplete",i),vr(3),Ra("ngForOf",r.fltrGroup)}}function gR(t,e){if(1&t&&(Na(0),Aa(1,hR,4,3,"mat-form-field",12),Aa(2,mR,7,4,"mat-form-field",12),Ba()),2&t){var n=Za();vr(1),Ra("ngIf",!1===n.authenticator.type_info.canSearchGroups||n.group.id),vr(1),Ra("ngIf",!0===n.authenticator.type_info.canSearchGroups&&!n.group.id)}}function yR(t,e){if(1&t){var n=za();Fa(0,"mat-form-field"),Fa(1,"mat-label"),Fa(2,"uds-translate"),_s(3,"Meta group name"),La(),La(),Fa(4,"input",13),qa("ngModelChange",(function(t){return Ue(n),Za().group.name=t})),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.group.name)("disabled",i.group.id)}}function vR(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function bR(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Service Pools"),La(),La(),Fa(5,"mat-select",18),qa("ngModelChange",(function(t){return Ue(n),Za().group.pools=t})),Aa(6,vR,2,2,"mat-option",16),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.group.pools),vr(1),Ra("ngForOf",i.servicePools)}}function _R(t,e){if(1&t&&(Fa(0,"mat-option",17),_s(1),La()),2&t){var n=Za().$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function wR(t,e){if(1&t&&(Na(0),Aa(1,_R,2,2,"mat-option",22),Ba()),2&t){var n=e.$implicit;vr(1),Ra("ngIf","group"===n.type)}}function CR(t,e){if(1&t){var n=za();Fa(0,"div",19),Fa(1,"span",20),Fa(2,"uds-translate"),_s(3,"Match mode"),La(),La(),Fa(4,"mat-slide-toggle",6),qa("ngModelChange",(function(t){return Ue(n),Za().group.meta_if_any=t})),_s(5),La(),La(),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Selected Groups"),La(),La(),Fa(10,"mat-select",18),qa("ngModelChange",(function(t){return Ue(n),Za().group.groups=t})),Aa(11,wR,2,1,"ng-container",21),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.group.meta_if_any),vr(1),Cs(" ",i.getMatchValue()," "),vr(5),Ra("ngModel",i.group.groups),vr(1),Ra("ngForOf",i.groups)}}var xR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.fltrGroup=[],this.authenticator=i.authenticator,this.group={id:void 0,type:i.groupType,name:"",comments:"",meta_if_any:!1,state:"A",groups:[],pools:[]},void 0!==i.group&&(this.group.id=i.group.id,this.group.type=i.group.type,this.group.name=i.group.name)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{authenticator:n,groupType:i,group:r},disableClose:!0}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.authenticator.id,"groups");void 0!==this.group.id&&e.get(this.group.id).subscribe((function(e){t.group=e}),(function(e){t.dialogRef.close()})),"meta"===this.group.type?e.summary().subscribe((function(e){return t.groups=e})):this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e}))},t.prototype.filterGroup=function(t){var e=this;this.rest.authenticators.search(this.authenticator.id,"group",t.target.value,100).subscribe((function(t){e.fltrGroup.length=0,t.forEach((function(t){e.fltrGroup.push(t)}))}))},t.prototype.getMatchValue=function(){return this.group.meta_if_any?django.gettext("Any"):django.gettext("All")},t.prototype.save=function(){var t=this;this.rest.authenticators.detail(this.authenticator.id,"groups").save(this.group).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-new-group"]],decls:35,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["nousertitle",""],[1,"content"],["metafirst",""],["type","text","matInput","",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],["value","A"],["value","I"],["metasecond",""],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[4,"ngIf"],["type","text","matInput","",3,"ngModel","disabled","ngModelChange"],["type","text","aria-label","Number","matInput","",3,"ngModel","matAutocomplete","ngModelChange","input"],["auto","matAutocomplete"],[3,"value",4,"ngFor","ngForOf"],[3,"value"],["multiple","",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-match"],[4,"ngFor","ngForOf"],[3,"value",4,"ngIf"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,dR,4,1,"div",1),Aa(2,pR,2,0,"ng-template",null,2,yl),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",3),Aa(6,gR,3,2,"ng-container",1),Aa(7,yR,5,2,"ng-template",null,4,yl),Fa(9,"mat-form-field"),Fa(10,"mat-label"),Fa(11,"uds-translate"),_s(12,"Comments"),La(),La(),Fa(13,"input",5),qa("ngModelChange",(function(t){return e.group.comments=t})),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-label"),Fa(16,"uds-translate"),_s(17,"State"),La(),La(),Fa(18,"mat-select",6),qa("ngModelChange",(function(t){return e.group.state=t})),Fa(19,"mat-option",7),Fa(20,"uds-translate"),_s(21,"Enabled"),La(),La(),Fa(22,"mat-option",8),Fa(23,"uds-translate"),_s(24,"Disabled"),La(),La(),La(),La(),Aa(25,bR,7,2,"ng-container",1),Aa(26,CR,12,4,"ng-template",null,9,yl),La(),La(),Fa(28,"mat-dialog-actions"),Fa(29,"button",10),Fa(30,"uds-translate"),_s(31,"Cancel"),La(),La(),Fa(32,"button",11),qa("click",(function(t){return e.save()})),Fa(33,"uds-translate"),_s(34,"Ok"),La(),La(),La()),2&t){var n=Oa(3),i=Oa(8),r=Oa(27);vr(1),Ra("ngIf",e.group.id)("ngIfElse",n),vr(5),Ra("ngIf","group"===e.group.type)("ngIfElse",i),vr(7),Ra("ngModel",e.group.comments),vr(5),Ra("ngModel",e.group.state),vr(7),Ra("ngIf","group"===e.group.type)("ngIfElse",r)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,_A,VC,ux,mx,ox,zT,LT,xd,aR],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-match[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function kR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function SR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,kR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.group)}}function DR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services Pools"),La())}function ER(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,DR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.servicesPools)}}function AR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned Services"),La())}function OR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,AR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.userServices)}}var IR=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],PR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],TR=[{field:"unique_id",title:django.gettext("Unique ID")},{field:"friendly_name",title:django.gettext("Friendly Name")},{field:"in_use",title:django.gettext("In Use")},{field:"ip",title:django.gettext("IP")},{field:"pool",title:django.gettext("Services Pool")}],RR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.users=i.users,this.user=i.user}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{users:n,user:i},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.detail(this.users.parentId,"users").get(this.user.id).subscribe((function(e){t.group=new oT(django.gettext("Groups"),(function(){return t.rest.authenticators.detail(t.users.parentId,"groups").overview().pipe(U((function(t){return t.filter((function(t){return e.groups.includes(t.id)}))})))}),IR,t.user.id+"infogrp"),t.servicesPools=new oT(django.gettext("Services Pools"),(function(){return t.users.invoke(t.user.id+"/servicesPools")}),PR,t.user.id+"infopool"),t.userServices=new oT(django.gettext("Assigned services"),(function(){return t.users.invoke(t.user.id+"/userServices").pipe(U((function(e){return e.map((function(e){return e.in_use=t.api.yesno(e.in_use),e}))})))}),TR,t.user.id+"userservpool")}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-user-information"]],decls:13,vars:4,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"mat-tab-group"),Aa(6,SR,3,1,"mat-tab",1),Aa(7,ER,3,1,"mat-tab",1),Aa(8,OR,3,1,"mat-tab",1),La(),La(),Fa(9,"mat-dialog-actions"),Fa(10,"button",2),Fa(11,"uds-translate"),_s(12,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.user.name,"\n"),vr(3),Ra("ngIf",e.group),vr(1),Ra("ngIf",e.servicesPools),vr(1),Ra("ngIf",e.userServices))},directives:[ax,vx,sx,ek,Sd,ux,mx,ox,Kx,Yx,JP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function MR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Services Pools"),La())}function FR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,MR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.servicesPools)}}function LR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Users"),La())}function jR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,LR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.users)}}function NR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function BR(t,e){if(1&t&&(Fa(0,"mat-tab"),Aa(1,NR,2,0,"ng-template",3),ja(2,"uds-table",4),La()),2&t){var n=Za();vr(2),Ra("rest",n.groups)}}var VR=[{field:"name",title:django.gettext("Pool")},{field:"state",title:django.gettext("State")},{field:"user_services_count",title:django.gettext("User Services")}],zR=[{field:"name",title:django.gettext("Name")},{field:"real_name",title:django.gettext("Real Name")},{field:"state",title:django.gettext("state")},{field:"last_access",title:django.gettext("Last access"),type:Lk.DATETIME}],HR=[{field:"name",title:django.gettext("Group")},{field:"comments",title:django.gettext("Comments")}],UR=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.data=i}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{group:i,groups:n},disableClose:!1})},t.prototype.ngOnInit=function(){var t=this,e=this.rest.authenticators.detail(this.data.groups.parentId,"groups");this.servicesPools=new oT(django.gettext("Service pools"),(function(){return e.invoke(t.data.group.id+"/servicesPools")}),VR,this.data.group.id+"infopls"),this.users=new oT(django.gettext("Users"),(function(){return e.invoke(t.data.group.id+"/users").pipe(U((function(t){return t.map((function(t){return t.state="A"===t.state?django.gettext("Enabled"):"I"===t.state?django.gettext("Disabled"):django.gettext("Blocked"),t}))})))}),zR,this.data.group.id+"infousr"),"meta"===this.data.group.type&&(this.groups=new oT(django.gettext("Groups"),(function(){return e.overview().pipe(U((function(e){return e.filter((function(e){return t.data.group.groups.includes(e.id)}))})))}),HR,this.data.group.id+"infogrps"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-group-information"]],decls:12,vars:3,consts:[["mat-dialog-title",""],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","primary"],["mat-tab-label",""],["pageSize","6",3,"rest"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Information for"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"mat-tab-group"),Aa(5,FR,3,1,"mat-tab",1),Aa(6,jR,3,1,"mat-tab",1),Aa(7,BR,3,1,"mat-tab",1),La(),La(),Fa(8,"mat-dialog-actions"),Fa(9,"button",2),Fa(10,"uds-translate"),_s(11,"Ok"),La(),La(),La()),2&t&&(vr(5),Ra("ngIf",e.servicesPools),vr(1),Ra("ngIf",e.users),vr(1),Ra("ngIf",e.groups))},directives:[ax,vx,sx,ek,Sd,ux,mx,ox,Kx,Yx,JP],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function qR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function WR(t,e){if(1&t&&ja(0,"uds-information",16),2&t){var n=Za(2);Ra("value",n.authenticator)("gui",n.gui)}}function GR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Users"),La())}function YR(t,e){if(1&t){var n=za();Fa(0,"uds-table",17),qa("loaded",(function(t){return Ue(n),Za(2).onLoad(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewUser(t)}))("editAction",(function(t){return Ue(n),Za(2).onEditUser(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteUser(t)}))("customButtonAction",(function(t){return Ue(n),Za(2).onUserInformation(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function KR(t,e){if(1&t){var n=za();Fa(0,"uds-table",18),qa("loaded",(function(t){return Ue(n),Za(2).onLoad(t)}))("editAction",(function(t){return Ue(n),Za(2).onEditUser(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteUser(t)}))("customButtonAction",(function(t){return Ue(n),Za(2).onUserInformation(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.users)("multiSelect",!0)("allowExport",!0)("tableId","authenticators-d-users"+i.authenticator.id)("customButtons",i.customButtons)}}function ZR(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function $R(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function XR(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,qR,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,WR,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,GR,2,0,"ng-template",9),Fa(9,"div",10),Aa(10,YR,1,5,"uds-table",12),Aa(11,KR,1,5,"uds-table",13),La(),La(),Fa(12,"mat-tab"),Aa(13,ZR,2,0,"ng-template",9),Fa(14,"div",10),Fa(15,"uds-table",14),qa("loaded",(function(t){return Ue(n),Za().onLoad(t)}))("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("editAction",(function(t){return Ue(n),Za().onEditGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)}))("customButtonAction",(function(t){return Ue(n),Za().onGroupInformation(t)})),La(),La(),La(),Fa(16,"mat-tab"),Aa(17,$R,2,0,"ng-template",9),Fa(18,"div",10),ja(19,"uds-logs-table",15),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.authenticator&&i.gui),vr(4),Ra("ngIf",i.authenticator.type_info.canCreateUsers),vr(1),Ra("ngIf",!i.authenticator.type_info.canCreateUsers),vr(4),Ra("rest",i.groups)("multiSelect",!0)("allowExport",!0)("customButtons",i.customButtons)("tableId","authenticators-d-groups"+i.authenticator.id),vr(4),Ra("rest",i.rest.authenticators)("itemId",i.authenticator.id)("tableId","authenticators-d-log"+i.authenticator.id)}}var QR=function(t){return["/authenticators",t]},JR=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"info",html:'info '+django.gettext("Information")+"",type:jk.ONLY_MENU}],this.authenticator=null,this.selectedTab=1,this.selectedTab=this.route.snapshot.paramMap.get("group")?2:1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("authenticator");this.users=this.rest.authenticators.detail(e,"users"),this.groups=this.rest.authenticators.detail(e,"groups"),this.rest.authenticators.get(e).subscribe((function(e){t.authenticator=e,t.rest.authenticators.gui(e.type).subscribe((function(e){t.gui=e}))}))},t.prototype.onLoad=function(t){if(!0===t.param){var e=this.route.snapshot.paramMap.get("user"),n=this.route.snapshot.paramMap.get("group");t.table.selectElement("id",e||n)}},t.prototype.processElement=function(t){t.maintenance_state=t.maintenance_mode?django.gettext("In Maintenance"):django.gettext("Active")},t.prototype.onNewUser=function(t){$T.launch(this.api,this.authenticator).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditUser=function(t){$T.launch(this.api,this.authenticator,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteUser=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete user"))},t.prototype.onNewGroup=function(t){xR.launch(this.api,this.authenticator,t.param.type).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditGroup=function(t){xR.launch(this.api,this.authenticator,t.param.type,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete group"))},t.prototype.onUserInformation=function(t){RR.launch(this.api,this.users,t.table.selection.selected[0])},t.prototype.onGroupInformation=function(t){UR.launch(this.api,this.groups,t.table.selection.selected[0])},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-authenticators-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction",4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","loaded","newAction","editAction","deleteAction","customButtonAction"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","newAction","editAction","deleteAction","customButtonAction"],["icon","users",3,"rest","multiSelect","allowExport","tableId","customButtons","loaded","editAction","deleteAction","customButtonAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,XR,20,13,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,QR,e.authenticator?e.authenticator.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/services.png"),qi),vr(1),Cs(" \xa0",null==e.authenticator?null:e.authenticator.name," "),vr(1),Ra("ngIf",e.authenticator))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[""]}),t}(),tM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("osmanager")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New OS Manager"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit OS Manager"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete OS Manager"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("osmanager"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-osmanagers"]],decls:2,vars:4,consts:[["icon","osmanagers",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.osManagers)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),eM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("transport")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Transport"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Transport"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Transport"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("transport"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-transports"]],decls:2,vars:5,consts:[["icon","transports",3,"rest","multiSelect","allowExport","hasPermissions","newGrouped","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.transports)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("newGrouped",!0))},directives:[JP],styles:[".mat-column-priority{max-width:7rem;justify-content:center}"]}),t}(),nM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("network")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Network"),!1)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Network"),!1)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Network"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("network"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-networks"]],decls:2,vars:4,consts:[["icon","networks",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.networks)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),iM=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){this.route.snapshot.paramMap.get("proxy")},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New Proxy"),!0)},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit Proxy"),!0)},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete Proxy"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("proxy"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-proxies"]],decls:2,vars:4,consts:[["icon","proxy",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.proxy)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0))},directives:[JP],styles:[""]}),t}(),rM=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[Bk.getGotoButton("provider","provider_id"),Bk.getGotoButton("service","provider_id","service_id"),Bk.getGotoButton("osmanager","osmanager_id"),Bk.getGotoButton("poolgroup","pool_group_id")],this.editing=!1}return t.prototype.ngOnInit=function(){},t.prototype.onChange=function(t){var e=this,n=["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"];if(null===t.on||"service_id"===t.on.field.name){if(""===t.all.service_id.value)return t.all.osmanager_id.gui.values.length=0,void n.forEach((function(e){return t.all[e].gui.rdonly=!0}));this.rest.providers.service(t.all.service_id.value).subscribe((function(i){t.all.allow_users_reset.gui.rdonly=!i.info.can_reset,t.all.osmanager_id.gui.values.length=0,e.editing||(t.all.osmanager_id.gui.rdonly=!i.info.needs_manager),!0===i.info.needs_manager?e.rest.osManagers.overview().subscribe((function(e){e.forEach((function(e){e.servicesTypes.forEach((function(n){i.info.servicesTypeProvided.includes(n)&&t.all.osmanager_id.gui.values.push({id:e.id,text:e.name})}))})),t.all.osmanager_id.value=t.all.osmanager_id.gui.values.length>0?t.all.osmanager_id.gui.values[0].id:""})):(t.all.osmanager_id.gui.values.push({id:"",text:django.gettext("(This service does not requires an OS Manager)")}),t.all.osmanager_id.value=""),n.forEach((function(e){return t.all[e].gui.rdonly=!i.info.uses_cache})),!0===i.info.uses_cache&&!1===i.info.uses_cache_l2&&(t.all.cache_l2_srvs.gui.rdonly=!1),t.all.publish_on_save&&(t.all.publish_on_save.gui.rdonly=!i.info.needs_publication)})),n.forEach((function(e){t.all[e].gui.rdonly=!0}))}},t.prototype.onNew=function(t){var e=this;this.editing=!1,this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1,[{name:"publish_on_save",value:!0,gui:{label:django.gettext("Publish on creation"),tooltip:django.gettext("If selected, will initiate the publication inmediatly after creation"),type:Sx.CHECKBOX,order:150,defvalue:"true"}}]).subscribe((function(t){return e.onChange(t)}))},t.prototype.onEdit=function(t){var e=this;this.editing=!0,this.api.gui.forms.typedEditForm(t,django.gettext("Edit Service Pool"),!1).subscribe((function(t){return e.onChange(t)}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete service pool"))},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.show_transports=this.api.yesno(t.show_transports),t.restrained?(t.name='warning '+this.api.gui.icon(t.info.icon)+t.name,t.state="T"):(t.name=this.api.gui.icon(t.info.icon)+t.name,t.meta_member.length>0&&(t.state="V")),t.name=this.api.safeString(t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onDetail=function(t){this.api.navigation.gotoServicePoolDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("pool"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools"]],decls:1,vars:6,consts:[["icon","pools",3,"rest","multiSelect","allowExport","hasPermissions","onItem","customButtons","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.servicesPools)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("onItem",e.processElement)("customButtons",e.customButtons)},directives:[JP],styles:[".mat-column-state, .mat-column-usage, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center} .mat-column-show_transports{max-width:10rem;justify-content:center} .mat-column-pool_group_name{max-width:12rem} .row-state-T>.mat-cell{color:#d65014!important}"]}),t}();function oM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function aM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",9),qa("changed",(function(t){return Ue(n),Za().userFilter=t})),La()}}function sM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var uM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.auths=[],this.users=[],this.userFilter="",this.userService=i.userService,this.userServices=i.userServices}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,userServices:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId=this.userService.owner_info.auth_id||"",this.userId=this.userService.owner_info.user_id||"",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){(""===t.userFilter||n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase()))&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.userServices.save({id:this.userService.id,auth_id:this.authId,user_id:this.userId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-change-assigned-service-owner"]],decls:25,vars:5,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Change owner of assigned service"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",1),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Authenticator"),La(),La(),Fa(9,"mat-select",2),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(10,oM,2,2,"mat-option",3),La(),La(),Fa(11,"mat-form-field"),Fa(12,"mat-label"),Fa(13,"uds-translate"),_s(14,"User"),La(),La(),Fa(15,"mat-select",4),qa("ngModelChange",(function(t){return e.userId=t})),Aa(16,aM,1,0,"uds-mat-select-search",5),Aa(17,sM,2,2,"mat-option",3),La(),La(),La(),La(),Fa(18,"mat-dialog-actions"),Fa(19,"button",6),Fa(20,"uds-translate"),_s(21,"Cancel"),La(),La(),Fa(22,"button",7),qa("click",(function(t){return e.save()})),Fa(23,"uds-translate"),_s(24,"Ok"),La(),La(),La()),2&t&&(vr(9),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.userId),vr(1),Ra("ngIf",e.users.length>10),vr(1),Ra("ngForOf",e.filteredUsers()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,xd,Sd,ux,mx,ox,VC,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function lM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New access rule for"),La())}function cM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit access rule for"),La())}function dM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Default fallback access for"),La())}function pM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",11),qa("changed",(function(t){return Ue(n),Za(2).calendarsFilter=t})),La()}}function hM(t,e){if(1&t&&(Fa(0,"mat-option",12),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function fM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Priority"),La(),La(),Fa(5,"input",8),qa("ngModelChange",(function(t){return Ue(n),Za().accessRule.priority=t})),La(),La(),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Calendar"),La(),La(),Fa(10,"mat-select",3),qa("ngModelChange",(function(t){return Ue(n),Za().accessRule.calendarId=t})),Aa(11,pM,1,0,"uds-mat-select-search",9),Aa(12,hM,2,2,"mat-option",10),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.accessRule.priority),vr(5),Ra("ngModel",i.accessRule.calendarId),vr(1),Ra("ngIf",i.calendars.length>10),vr(1),Ra("ngForOf",i.filtered(i.calendars,i.calendarsFilter))}}var mM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.calendars=[],this.calendarsFilter="",this.pool=i.pool,this.model=i.model,this.accessRule={id:void 0,priority:0,access:"ALLOW",calendarId:""},i.accessRule&&(this.accessRule.id=i.accessRule.id)}return t.launch=function(e,n,i,r){var o=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:o,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i,accessRule:r},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.calendars.summary().subscribe((function(e){t.calendars=e})),void 0!==this.accessRule.id&&-1!==this.accessRule.id?this.model.get(this.accessRule.id).subscribe((function(e){t.accessRule=e})):-1===this.accessRule.id&&this.model.parentModel.getFallbackAccess(this.pool.id).subscribe((function(e){return t.accessRule.access=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this,e=function(){t.dialogRef.close(),t.onSave.emit(!0)};-1!==this.accessRule.id?this.model.save(this.accessRule).subscribe(e):this.model.parentModel.setFallbackAccess(this.pool.id,this.accessRule.access).subscribe(e)},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-access-calendars"]],decls:24,vars:6,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],[3,"ngModel","ngModelChange"],["value","ALLOW"],["value","DENY"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Aa(1,lM,2,0,"uds-translate",1),Aa(2,cM,2,0,"uds-translate",1),Aa(3,dM,2,0,"uds-translate",1),_s(4),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",2),Aa(7,fM,13,4,"ng-container",1),Fa(8,"mat-form-field"),Fa(9,"mat-label"),Fa(10,"uds-translate"),_s(11,"Action"),La(),La(),Fa(12,"mat-select",3),qa("ngModelChange",(function(t){return e.accessRule.access=t})),Fa(13,"mat-option",4),_s(14," ALLOW "),La(),Fa(15,"mat-option",5),_s(16," DENY "),La(),La(),La(),La(),La(),Fa(17,"mat-dialog-actions"),Fa(18,"button",6),Fa(19,"uds-translate"),_s(20,"Cancel"),La(),La(),Fa(21,"button",7),qa("click",(function(t){return e.save()})),Fa(22,"uds-translate"),_s(23,"Ok"),La(),La(),La()),2&t&&(vr(1),Ra("ngIf",void 0===e.accessRule.id),vr(1),Ra("ngIf",void 0!==e.accessRule.id&&-1!==e.accessRule.id),vr(1),Ra("ngIf",-1===e.accessRule.id),vr(1),Cs(" ",e.pool.name,"\n"),vr(3),Ra("ngIf",-1!==e.accessRule.id),vr(5),Ra("ngModel",e.accessRule.access))},directives:[ax,Sd,sx,sD,tD,vx,_A,wD,AE,VC,ux,mx,ox,uI,MD,mD,xd,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function gM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function yM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",9),qa("changed",(function(t){return Ue(n),Za().groupFilter=t})),La()}}function vM(t,e){if(1&t&&(Na(0),_s(1),Ba()),2&t){var n=Za().$implicit;vr(1),Cs(" (",n.comments,")")}}function bM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),Aa(2,vM,2,1,"ng-container",10),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name,""),vr(1),Ra("ngIf",n.comments)}}var _M=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.model=null,this.auths=[],this.groups=[],this.groupFilter="",this.authId="",this.groupId="",this.pool=i.pool,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{pool:n,model:i},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;""!==this.authId&&this.rest.authenticators.detail(this.authId,"groups").summary().subscribe((function(e){t.groups=e}))},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()}))},t.prototype.changeAuth=function(t){this.groupId="",this.authChanged()},t.prototype.filteredGroups=function(){var t=this;return""===this.groupFilter?this.groups:this.groups.filter((function(e){return e.name.toLocaleLowerCase().includes(t.groupFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.groupId&&""!==this.authId?this.model.create({id:this.groupId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid group"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-add-group"]],decls:26,vars:6,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange","selectionChange"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"value"],[3,"changed"],[4,"ngIf"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New group for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Authenticator"),La(),La(),Fa(10,"mat-select",2),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(11,gM,2,2,"mat-option",3),La(),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Group"),La(),La(),Fa(16,"mat-select",4),qa("ngModelChange",(function(t){return e.groupId=t})),Aa(17,yM,1,0,"uds-mat-select-search",5),Aa(18,bM,3,3,"mat-option",3),La(),La(),La(),La(),Fa(19,"mat-dialog-actions"),Fa(20,"button",6),Fa(21,"uds-translate"),_s(22,"Cancel"),La(),La(),Fa(23,"button",7),qa("click",(function(t){return e.save()})),Fa(24,"uds-translate"),_s(25,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.pool.name,"\n"),vr(7),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.groupId),vr(1),Ra("ngIf",e.groups.length>10),vr(1),Ra("ngForOf",e.filteredGroups()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,xd,Sd,ux,mx,ox,VC,fI],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function wM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",7),qa("changed",(function(t){return Ue(n),Za().transportsFilter=t})),La()}}function CM(t,e){if(1&t&&(Na(0),_s(1),Ba()),2&t){var n=Za().$implicit;vr(1),Cs(" (",n.comments,")")}}function xM(t,e){if(1&t&&(Fa(0,"mat-option",8),_s(1),Aa(2,CM,2,1,"ng-container",9),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name,""),vr(1),Ra("ngIf",n.comments)}}var kM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.transports=[],this.transportsFilter="",this.transportId="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.transports.summary().subscribe((function(e){t.transports=e.filter((function(e){return t.servicePool.info.allowedProtocols.includes(e.protocol)}))}))},t.prototype.filteredTransports=function(){var t=this;return""===this.transportsFilter?this.transports:this.transports.filter((function(e){return e.name.toLocaleLowerCase().includes(t.transportsFilter.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;""!==this.transportId?this.rest.servicesPools.detail(this.servicePool.id,"transports").create({id:this.transportId}).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid transport"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-add-transport"]],decls:20,vars:4,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[4,"ngIf"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New transport for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Transport"),La(),La(),Fa(10,"mat-select",2),qa("ngModelChange",(function(t){return e.transportId=t})),Aa(11,wM,1,0,"uds-mat-select-search",3),Aa(12,xM,3,3,"mat-option",4),La(),La(),La(),La(),Fa(13,"mat-dialog-actions"),Fa(14,"button",5),Fa(15,"uds-translate"),_s(16,"Cancel"),La(),La(),Fa(17,"button",6),qa("click",(function(t){return e.save()})),Fa(18,"uds-translate"),_s(19,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.transportId),vr(1),Ra("ngIf",e.transports.length>10),vr(1),Ra("ngForOf",e.filteredTransports()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,Sd,xd,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),SM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.reason="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){},t.prototype.save=function(){var t=this;this.rest.servicesPools.detail(this.servicePool.id,"publications").invoke("publish","changelog="+encodeURIComponent(this.reason)).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-new-publication"]],decls:18,vars:2,consts:[["mat-dialog-title",""],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"New publication for"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),Fa(5,"div",1),Fa(6,"mat-form-field"),Fa(7,"mat-label"),Fa(8,"uds-translate"),_s(9,"Reason"),La(),La(),Fa(10,"input",2),qa("ngModelChange",(function(t){return e.reason=t})),La(),La(),La(),La(),Fa(11,"mat-dialog-actions"),Fa(12,"button",3),Fa(13,"uds-translate"),_s(14,"Cancel"),La(),La(),Fa(15,"button",4),qa("click",(function(t){return e.save()})),Fa(16,"uds-translate"),_s(17,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.reason))},directives:[ax,vx,sx,sD,tD,uI,mD,wD,AE,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}(),DM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1})},t.prototype.ngOnInit=function(){this.changeLogPubs=this.rest.servicesPools.detail(this.servicePool.id,"changelog")},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-publications-changelog"]],decls:11,vars:4,consts:[["mat-dialog-title",""],["icon","publications",3,"rest","allowExport","tableId"],["changeLog",""],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Changelog of"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),ja(5,"uds-table",1,2),La(),Fa(7,"mat-dialog-actions"),Fa(8,"button",3),Fa(9,"uds-translate"),_s(10,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.servicePool.name,"\n"),vr(2),Ra("rest",e.changeLogPubs)("allowExport",!0)("tableId","servicePools-d-changelog"+e.servicePool.id))},directives:[ax,vx,sx,JP,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function EM(t,e){1&t&&(Na(0),Fa(1,"uds-translate"),_s(2,"Edit action for"),La(),Ba())}function AM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New action for"),La())}function OM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za().calendarsFilter=t})),La()}}function IM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function PM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.description," ")}}function TM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za(2).transportsFilter=t})),La()}}function RM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function MM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Transport"),La(),La(),Fa(5,"mat-select",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),Aa(6,TM,1,0,"uds-mat-select-search",5),Aa(7,RM,2,2,"mat-option",6),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.paramValue),vr(1),Ra("ngIf",i.transports.length>10),vr(1),Ra("ngForOf",i.filtered(i.transports,i.transportsFilter))}}function FM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function LM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",14),qa("changed",(function(t){return Ue(n),Za(2).groupsFilter=t})),La()}}function jM(t,e){if(1&t&&(Fa(0,"mat-option",15),_s(1),La()),2&t){var n=e.$implicit;Ra("value",Za(2).authenticator+"@"+n.id),vr(1),Cs(" ",n.name," ")}}function NM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),Fa(3,"uds-translate"),_s(4,"Authenticator"),La(),La(),Fa(5,"mat-select",10),qa("ngModelChange",(function(t){return Ue(n),Za().authenticator=t}))("valueChange",(function(t){return Ue(n),Za().changedAuthenticator(t)})),Aa(6,FM,2,2,"mat-option",6),La(),La(),Fa(7,"mat-form-field"),Fa(8,"mat-label"),Fa(9,"uds-translate"),_s(10,"Group"),La(),La(),Fa(11,"mat-select",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),Aa(12,LM,1,0,"uds-mat-select-search",5),Aa(13,jM,2,2,"mat-option",6),La(),La(),Ba()}if(2&t){var i=Za();vr(5),Ra("ngModel",i.authenticator),vr(1),Ra("ngForOf",i.authenticators),vr(5),Ra("ngModel",i.paramValue),vr(1),Ra("ngIf",i.groups.length>10),vr(1),Ra("ngForOf",i.filtered(i.groups,i.groupsFilter))}}function BM(t,e){if(1&t){var n=za();Na(0),Fa(1,"div",8),Fa(2,"span",16),_s(3),La(),_s(4,"\xa0 "),Fa(5,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),La(),La(),Ba()}if(2&t){var i=Za();vr(3),ws(i.parameter.description),vr(2),Ra("ngModel",i.paramValue)}}function VM(t,e){if(1&t){var n=za();Na(0),Fa(1,"mat-form-field"),Fa(2,"mat-label"),_s(3),La(),Fa(4,"input",17),qa("ngModelChange",(function(t){return Ue(n),Za().paramValue=t})),La(),La(),Ba()}if(2&t){var i=Za();vr(3),Cs(" ",i.parameter.description," "),vr(1),Ra("type",i.parameter.type)("ngModel",i.paramValue)}}var zM=function(){return["transport","group","bool"]},HM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.calendars=[],this.actionList=[],this.authenticators=[],this.transports=[],this.groups=[],this.paramsDict={},this.calendarsFilter="",this.groupsFilter="",this.transportsFilter="",this.authenticator="",this.parameter={},this.paramValue="",this.servicePool=i.servicePool,this.scheduledAction={id:void 0,action:"",calendar:"",calendarId:"",atStart:!0,eventsOffset:0,params:{}},void 0!==i.scheduledAction&&(this.scheduledAction.id=i.scheduledAction.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n,scheduledAction:i},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.authenticators.summary().subscribe((function(e){return t.authenticators=e})),this.rest.transports.summary().subscribe((function(e){return t.transports=e})),this.rest.calendars.summary().subscribe((function(e){return t.calendars=e})),this.rest.servicesPools.actionsList(this.servicePool.id).subscribe((function(e){t.actionList=e,t.actionList.forEach((function(e){t.paramsDict[e.id]=e.params[0]})),void 0!==t.scheduledAction.id&&t.rest.servicesPools.detail(t.servicePool.id,"actions").get(t.scheduledAction.id).subscribe((function(e){t.scheduledAction=e,t.changedAction(t.scheduledAction.action)}))}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.changedAction=function(t){if(this.parameter=this.paramsDict[t],void 0!==this.parameter&&(this.paramValue=this.scheduledAction.params[this.parameter.name],void 0===this.paramValue&&(this.paramValue=!1!==this.parameter.default&&(this.parameter.default||"")),"group"===this.parameter.type)){var e=this.paramValue.split("@");2!==e.length&&(e=["",""]),this.authenticator=e[0],this.changedAuthenticator(this.authenticator)}},t.prototype.changedAuthenticator=function(t){var e=this;t&&this.rest.authenticators.detail(t,"groups").summary().subscribe((function(t){return e.groups=t}))},t.prototype.save=function(){var t=this;this.scheduledAction.params={},this.parameter&&(this.scheduledAction.params[this.parameter.name]=this.paramValue),this.rest.servicesPools.detail(this.servicePool.id,"actions").save(this.scheduledAction).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-scheduled-action"]],decls:42,vars:16,consts:[["mat-dialog-title",""],[4,"ngIf","ngIfElse"],["editTitle",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],["matInput","","type","number",3,"ngModel","ngModelChange"],[1,"mat-form-field-infix"],[1,"label-atstart"],[3,"ngModel","ngModelChange","valueChange"],[4,"ngIf"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"],[1,"label"],["matInput","",3,"type","ngModel","ngModelChange"]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,EM,3,0,"ng-container",1),Aa(2,AM,2,0,"ng-template",null,2,yl),_s(4),La(),Fa(5,"mat-dialog-content"),Fa(6,"div",3),Fa(7,"mat-form-field"),Fa(8,"mat-label"),Fa(9,"uds-translate"),_s(10,"Calendar"),La(),La(),Fa(11,"mat-select",4),qa("ngModelChange",(function(t){return e.scheduledAction.calendarId=t})),Aa(12,OM,1,0,"uds-mat-select-search",5),Aa(13,IM,2,2,"mat-option",6),La(),La(),Fa(14,"mat-form-field"),Fa(15,"mat-label"),Fa(16,"uds-translate"),_s(17,"Events offset (minutes)"),La(),La(),Fa(18,"input",7),qa("ngModelChange",(function(t){return e.scheduledAction.eventsOffset=t})),La(),La(),Fa(19,"div",8),Fa(20,"span",9),Fa(21,"uds-translate"),_s(22,"At the beginning of the interval?"),La(),La(),Fa(23,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return e.scheduledAction.atStart=t})),_s(24),La(),La(),Fa(25,"mat-form-field"),Fa(26,"mat-label"),Fa(27,"uds-translate"),_s(28,"Action"),La(),La(),Fa(29,"mat-select",10),qa("ngModelChange",(function(t){return e.scheduledAction.action=t}))("valueChange",(function(t){return e.changedAction(t)})),Aa(30,PM,2,2,"mat-option",6),La(),La(),Aa(31,MM,8,3,"ng-container",11),Aa(32,NM,14,5,"ng-container",11),Aa(33,BM,6,2,"ng-container",11),Aa(34,VM,5,3,"ng-container",11),La(),La(),Fa(35,"mat-dialog-actions"),Fa(36,"button",12),Fa(37,"uds-translate"),_s(38,"Cancel"),La(),La(),Fa(39,"button",13),qa("click",(function(t){return e.save()})),Fa(40,"uds-translate"),_s(41,"Ok"),La(),La(),La()),2&t){var n=Oa(3);vr(1),Ra("ngIf",void 0!==e.scheduledAction.id)("ngIfElse",n),vr(3),Cs(" ",e.servicePool.name,"\n"),vr(7),Ra("ngModel",e.scheduledAction.calendarId),vr(1),Ra("ngIf",e.calendars.length>10),vr(1),Ra("ngForOf",e.filtered(e.calendars,e.calendarsFilter)),vr(5),Ra("ngModel",e.scheduledAction.eventsOffset),vr(5),Ra("ngModel",e.scheduledAction.atStart),vr(1),Cs(" ",e.api.yesno(e.scheduledAction.atStart)," "),vr(5),Ra("ngModel",e.scheduledAction.action),vr(1),Ra("ngForOf",e.actionList),vr(1),Ra("ngIf","transport"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf","group"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf","bool"===(null==e.parameter?null:e.parameter.type)),vr(1),Ra("ngIf",(null==e.parameter?null:e.parameter.type)&&!Bu(15,zM).includes(e.parameter.type))}},directives:[ax,Sd,sx,sD,tD,vx,_A,wD,AE,xd,uI,MD,mD,aR,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-atstart[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}(),UM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.userService=i.userService,this.model=i.model}return t.launch=function(e,n,i){var r=window.innerWidth<800?"80%":"60%";e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{userService:n,model:i},disableClose:!1})},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-userservices-log"]],decls:10,vars:4,consts:[["mat-dialog-title",""],[3,"rest","itemId","tableId"],["mat-raised-button","","color","primary","mat-dialog-close",""]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Logs of"),La(),_s(3),La(),Fa(4,"mat-dialog-content"),ja(5,"uds-logs-table",1),La(),Fa(6,"mat-dialog-actions"),Fa(7,"button",2),Fa(8,"uds-translate"),_s(9,"Ok"),La(),La(),La()),2&t&&(vr(3),Cs(" ",e.userService.name,"\n"),vr(2),Ra("rest",e.model)("itemId",e.userService.id)("tableId","servicePools-d-uslog"+e.userService.id))},directives:[ax,vx,sx,hT,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}();function qM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",8),qa("changed",(function(t){return Ue(n),Za().assignablesServicesFilter=t})),La()}}function WM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}function GM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}function YM(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",8),qa("changed",(function(t){return Ue(n),Za().userFilter=t})),La()}}function KM(t,e){if(1&t&&(Fa(0,"mat-option",9),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var ZM=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.auths=[],this.assignablesServices=[],this.assignablesServicesFilter="",this.users=[],this.userFilter="",this.servicePool=i.servicePool}return t.launch=function(e,n){var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{servicePool:n},disableClose:!1}).componentInstance.onSave},t.prototype.authChanged=function(){var t=this;this.authId&&this.rest.authenticators.detail(this.authId,"users").summary().subscribe((function(e){t.users=e}))},t.prototype.ngOnInit=function(){var t=this;this.authId="",this.userId="",this.rest.authenticators.summary().subscribe((function(e){t.auths=e,t.authChanged()})),this.rest.servicesPools.listAssignables(this.servicePool.id).subscribe((function(e){t.assignablesServices=e}))},t.prototype.changeAuth=function(t){this.userId="",this.authChanged()},t.prototype.filteredUsers=function(){var t=this;if(""===this.userFilter)return this.users;var e=new Array;return this.users.forEach((function(n){n.name.toLocaleLowerCase().includes(t.userFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.filteredAssignables=function(){var t=this;if(""===this.assignablesServicesFilter)return this.assignablesServices;var e=new Array;return this.assignablesServices.forEach((function(n){n.text.toLocaleLowerCase().includes(t.assignablesServicesFilter.toLocaleLowerCase())&&e.push(n)})),e},t.prototype.save=function(){var t=this;""!==this.userId&&""!==this.authId?this.rest.servicesPools.createFromAssignable(this.servicePool.id,this.userId,this.serviceId).subscribe((function(e){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid user"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-assign-service-to-owner"]],decls:32,vars:8,consts:[["mat-dialog-title",""],[1,"content"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"ngModel","ngModelChange","selectionChange"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Fa(1,"uds-translate"),_s(2,"Assign service to user manually"),La(),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",1),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Service"),La(),La(),Fa(9,"mat-select",2),qa("ngModelChange",(function(t){return e.serviceId=t})),Aa(10,qM,1,0,"uds-mat-select-search",3),Aa(11,WM,2,2,"mat-option",4),La(),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Authenticator"),La(),La(),Fa(16,"mat-select",5),qa("ngModelChange",(function(t){return e.authId=t}))("selectionChange",(function(t){return e.changeAuth(t)})),Aa(17,GM,2,2,"mat-option",4),La(),La(),Fa(18,"mat-form-field"),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"User"),La(),La(),Fa(22,"mat-select",2),qa("ngModelChange",(function(t){return e.userId=t})),Aa(23,YM,1,0,"uds-mat-select-search",3),Aa(24,KM,2,2,"mat-option",4),La(),La(),La(),La(),Fa(25,"mat-dialog-actions"),Fa(26,"button",6),Fa(27,"uds-translate"),_s(28,"Cancel"),La(),La(),Fa(29,"button",7),qa("click",(function(t){return e.save()})),Fa(30,"uds-translate"),_s(31,"Ok"),La(),La(),La()),2&t&&(vr(9),Ra("ngModel",e.serviceId),vr(1),Ra("ngIf",e.assignablesServices.length>10),vr(1),Ra("ngForOf",e.filteredAssignables()),vr(5),Ra("ngModel",e.authId),vr(1),Ra("ngForOf",e.auths),vr(5),Ra("ngModel",e.userId),vr(1),Ra("ngIf",e.users.length>10),vr(1),Ra("ngForOf",e.filteredUsers()))},directives:[ax,vx,sx,sD,tD,_A,wD,AE,Sd,xd,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}"]}),t}();function $M(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function XM(t,e){if(1&t&&ja(0,"uds-information",20),2&t){var n=Za(2);Ra("value",n.servicePool)("gui",n.gui)}}function QM(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned services"),La())}function JM(t,e){if(1&t){var n=za();Fa(0,"uds-table",21),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteAssigned(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function tF(t,e){if(1&t){var n=za();Fa(0,"uds-table",22),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomAssigned(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteAssigned(t)})),La()}if(2&t){var i=Za(2);Ra("rest",i.assignedServices)("multiSelect",!0)("allowExport",!0)("onItem",i.processsAssignedElement)("tableId","servicePools-d-services"+i.servicePool.id)("customButtons",i.customButtonsAssignedServices)}}function eF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Cache"),La())}function nF(t,e){if(1&t){var n=za();Fa(0,"mat-tab"),Aa(1,eF,2,0,"ng-template",9),Fa(2,"div",10),Fa(3,"uds-table",23),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomCached(t)}))("deleteAction",(function(t){return Ue(n),Za(2).onDeleteCache(t)})),La(),La(),La()}if(2&t){var i=Za(2);vr(3),Ra("rest",i.cache)("multiSelect",!0)("allowExport",!0)("onItem",i.processsCacheElement)("tableId","servicePools-d-cache"+i.servicePool.id)("customButtons",i.customButtonsCachedServices)}}function iF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function rF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Transports"),La())}function oF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Publications"),La())}function aF(t,e){if(1&t){var n=za();Fa(0,"mat-tab"),Aa(1,oF,2,0,"ng-template",9),Fa(2,"div",10),Fa(3,"uds-table",24),qa("customButtonAction",(function(t){return Ue(n),Za(2).onCustomPublication(t)}))("newAction",(function(t){return Ue(n),Za(2).onNewPublication(t)}))("rowSelected",(function(t){return Ue(n),Za(2).onPublicationRowSelect(t)})),La(),La(),La()}if(2&t){var i=Za(2);vr(3),Ra("rest",i.publications)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-publications"+i.servicePool.id)("customButtons",i.customButtonsPublication)}}function sF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Scheduled actions"),La())}function uF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Access calendars"),La())}function lF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function cF(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,$M,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,XM,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,QM,2,0,"ng-template",9),Fa(9,"div",10),Aa(10,JM,1,6,"uds-table",12),Aa(11,tF,1,6,"ng-template",null,13,yl),La(),La(),Aa(13,nF,4,6,"mat-tab",14),Fa(14,"mat-tab"),Aa(15,iF,2,0,"ng-template",9),Fa(16,"div",10),Fa(17,"uds-table",15),qa("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)})),La(),La(),La(),Fa(18,"mat-tab"),Aa(19,rF,2,0,"ng-template",9),Fa(20,"div",10),Fa(21,"uds-table",16),qa("newAction",(function(t){return Ue(n),Za().onNewTransport(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteTransport(t)})),La(),La(),La(),Aa(22,aF,4,5,"mat-tab",14),Fa(23,"mat-tab"),Aa(24,sF,2,0,"ng-template",9),Fa(25,"div",10),Fa(26,"uds-table",17),qa("customButtonAction",(function(t){return Ue(n),Za().onCustomScheduleAction(t)}))("newAction",(function(t){return Ue(n),Za().onNewScheduledAction(t)}))("editAction",(function(t){return Ue(n),Za().onEditScheduledAction(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteScheduledAction(t)})),La(),La(),La(),Fa(27,"mat-tab"),Aa(28,uF,2,0,"ng-template",9),Fa(29,"div",10),Fa(30,"uds-table",18),qa("newAction",(function(t){return Ue(n),Za().onNewAccessCalendar(t)}))("editAction",(function(t){return Ue(n),Za().onEditAccessCalendar(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAccessCalendar(t)}))("loaded",(function(t){return Ue(n),Za().onAccessCalendarLoad(t)})),La(),La(),La(),Fa(31,"mat-tab"),Aa(32,lF,2,0,"ng-template",9),Fa(33,"div",10),ja(34,"uds-logs-table",19),La(),La(),La(),La(),La()}if(2&t){var i=Oa(12),r=Za();vr(2),Ra("selectedIndex",r.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",r.servicePool&&r.gui),vr(4),Ra("ngIf",!1===r.servicePool.info.must_assign_manually)("ngIfElse",i),vr(3),Ra("ngIf",r.cache),vr(4),Ra("rest",r.groups)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsGroups)("tableId","servicePools-d-groups"+r.servicePool.id),vr(4),Ra("rest",r.transports)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonsTransports)("tableId","servicePools-d-transports"+r.servicePool.id),vr(1),Ra("ngIf",r.publications),vr(4),Ra("rest",r.scheduledActions)("multiSelect",!0)("allowExport",!0)("tableId","servicePools-d-actions"+r.servicePool.id)("customButtons",r.customButtonsScheduledAction)("onItem",r.processsCalendarOrScheduledElement),vr(4),Ra("rest",r.accessCalendars)("multiSelect",!0)("allowExport",!0)("customButtons",r.customButtonAccessCalendars)("tableId","servicePools-d-access"+r.servicePool.id)("onItem",r.processsCalendarOrScheduledElement),vr(4),Ra("rest",r.rest.servicesPools)("itemId",r.servicePool.id)("tableId","servicePools-d-log"+r.servicePool.id)}}var dF=function(t){return["/pools","service-pools",t]},pF='event'+django.gettext("Logs")+"",hF='schedule'+django.gettext("Launch now")+"",fF='perm_identity'+django.gettext("Change owner")+"",mF='perm_identity'+django.gettext("Assign service")+"",gF='cancel'+django.gettext("Cancel")+"",yF='event'+django.gettext("Changelog")+"",vF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtonsScheduledAction=[{id:"launch-action",html:hF,type:jk.SINGLE_SELECT},Bk.getGotoButton("calendar","calendarId")],this.customButtonAccessCalendars=[Bk.getGotoButton("calendar","calendarId")],this.customButtonsAssignedServices=[{id:"change-owner",html:fF,type:jk.SINGLE_SELECT},{id:"log",html:pF,type:jk.SINGLE_SELECT},Bk.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.customButtonsCachedServices=[{id:"log",html:pF,type:jk.SINGLE_SELECT}],this.customButtonsPublication=[{id:"cancel-publication",html:gF,type:jk.SINGLE_SELECT},{id:"changelog",html:yF,type:jk.ALWAYS}],this.customButtonsGroups=[Bk.getGotoButton("group","auth_id","id")],this.customButtonsTransports=[Bk.getGotoButton("transport","id")],this.servicePool=null,this.gui=null,this.selectedTab=1}return t.cleanInvalidSelections=function(t){return t.table.selection.selected.filter((function(t){return["E","R","M","S","C"].includes(t.state)})).forEach((function(e){return t.table.selection.deselect(e)})),t.table.selection.isEmpty()},t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("pool");this.assignedServices=this.rest.servicesPools.detail(e,"services"),this.groups=this.rest.servicesPools.detail(e,"groups"),this.transports=this.rest.servicesPools.detail(e,"transports"),this.scheduledActions=this.rest.servicesPools.detail(e,"actions"),this.accessCalendars=this.rest.servicesPools.detail(e,"access"),this.rest.servicesPools.get(e).subscribe((function(n){t.servicePool=n,t.cache=t.servicePool.info.uses_cache?t.rest.servicesPools.detail(e,"cache"):null,t.publications=t.servicePool.info.needs_publication?t.rest.servicesPools.detail(e,"publications"):null,t.servicePool.info.can_list_assignables&&t.customButtonsAssignedServices.push({id:"assign-service",html:mF,type:jk.ALWAYS}),t.rest.servicesPools.gui().subscribe((function(e){t.gui=e.filter((function(e){return!(!1===t.servicePool.info.uses_cache&&["initial_srvs","cache_l1_srvs","cache_l2_srvs","max_srvs"].includes(e.name)||!1===t.servicePool.info.uses_cache_l2&&"cache_l2_srvs"===e.name||!1===t.servicePool.info.needs_manager&&"osmanager_id"===e.name)}))}))}))},t.prototype.onNewAssigned=function(t){},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;uM.launch(this.api,e,this.assignedServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id?UM.launch(this.api,e,this.assignedServices):"assign-service"===t.param.id&&ZM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onCustomCached=function(t){"log"===t.param.id&&UM.launch(this.api,t.table.selection.selected[0],this.cache)},t.prototype.processsAssignedElement=function(t){t.in_use=this.api.yesno(t.in_use),t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onDeleteAssigned=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete assigned service"))},t.prototype.onDeleteCache=function(e){t.cleanInvalidSelections(e)||this.api.gui.forms.deleteForm(e,django.gettext("Delete cached service"))},t.prototype.processsCacheElement=function(t){t.origState=t.state,"U"===t.state&&(t.state=""!==t.os_state&&"U"!==t.os_state?"Z":"U")},t.prototype.onNewGroup=function(t){_M.launch(this.api,this.servicePool,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewTransport=function(t){kM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteTransport=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned transport"))},t.prototype.onNewPublication=function(t){SM.launch(this.api,this.servicePool).subscribe((function(e){t.table.overview()}))},t.prototype.onPublicationRowSelect=function(t){1===t.table.selection.selected.length&&(this.customButtonsPublication[0].disabled=!["P","W","L","K"].includes(t.table.selection.selected[0].state))},t.prototype.onCustomPublication=function(t){var e=this;"cancel-publication"===t.param.id?this.api.gui.yesno(django.gettext("Publication"),django.gettext("Cancel publication?"),!0).subscribe((function(n){n&&e.publications.invoke(t.table.selection.selected[0].id+"/cancel").subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Publication canceled"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))})):"changelog"===t.param.id&&DM.launch(this.api,this.servicePool)},t.prototype.onNewScheduledAction=function(t){HM.launch(this.api,this.servicePool).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditScheduledAction=function(t){HM.launch(this.api,this.servicePool,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteScheduledAction=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete scheduled action"))},t.prototype.onCustomScheduleAction=function(t){var e=this;this.api.gui.yesno(django.gettext("Execute scheduled action"),django.gettext("Execute scheduled action right now?")).subscribe((function(n){n&&e.scheduledActions.invoke(t.table.selection.selected[0].id+"/execute").subscribe((function(){e.api.gui.snackbar.open(django.gettext("Scheduled action executed"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onNewAccessCalendar=function(t){mM.launch(this.api,this.servicePool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){mM.launch(this.api,this.servicePool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.servicesPools.getFallbackAccess(this.servicePool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processsCalendarOrScheduledElement=function(t){t.name=t.calendar,t.atStart=this.api.yesno(t.atStart)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-service-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction",4,"ngIf","ngIfElse"],["manually_assigned",""],[4,"ngIf"],["icon","groups",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","transports",3,"rest","multiSelect","allowExport","customButtons","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","customButtons","tableId","onItem","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","newAction","deleteAction"],["icon","cached",3,"rest","multiSelect","allowExport","onItem","tableId","customButtons","customButtonAction","deleteAction"],["icon","publications",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","newAction","rowSelected"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,cF,35,32,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,dF,e.servicePool?e.servicePool.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/pools.png"),qi),vr(1),Cs(" \xa0",null==e.servicePool?null:e.servicePool.name," "),vr(1),Ra("ngIf",null!==e.servicePool))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[".mat-column-state{max-width:10rem;justify-content:center} .mat-column-cache_level, .mat-column-in_use, .mat-column-priority, .mat-column-revision{max-width:7rem;justify-content:center} .mat-column-access, .mat-column-creation_date, .mat-column-publish_date, .mat-column-state_date, .mat-column-trans_type{max-width:9rem} .mat-column-owner{overflow-wrap:break-word;word-wrap:break-word;-ms-word-break:break-all;word-break:break-all;word-break:break-word}"]}),t}(),bF=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New meta pool"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit meta pool"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete meta pool"))},t.prototype.onDetail=function(t){this.api.navigation.gotoMetapoolDetail(t.param.id)},t.prototype.processElement=function(t){t.visible=this.api.yesno(t.visible),t.name=this.api.safeString(this.api.gui.icon(t.thumb)+t.name),t.pool_group_name=this.api.safeString(this.api.gui.icon(t.pool_group_thumb)+t.pool_group_name)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("metapool"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools"]],decls:2,vars:5,consts:[["icon","metas",3,"rest","multiSelect","allowExport","onItem","hasPermissions","detailAction","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"div"),Fa(1,"uds-table",0),qa("detailAction",(function(t){return e.onDetail(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La(),La()),2&t&&(vr(1),Ra("rest",e.rest.metaPools)("multiSelect",!0)("allowExport",!0)("onItem",e.processElement)("hasPermissions",!0))},directives:[JP],styles:[".mat-column-pool_group_name, .mat-column-user_services_count, .mat-column-user_services_in_preparation, .mat-column-visible{max-width:7rem;justify-content:center}"]}),t}();function _F(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New member pool"),La())}function wF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit member pool"),La())}function CF(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",11),qa("changed",(function(t){return Ue(n),Za().servicePoolsFilter=t})),La()}}function xF(t,e){if(1&t&&(Fa(0,"mat-option",12),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.name," ")}}var kF=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.servicePools=[],this.servicePoolsFilter="",this.model=i.model,this.memberPool={id:void 0,priority:0,pool_id:"",enabled:!0},i.memberPool&&(this.memberPool.id=i.memberPool.id)}return t.launch=function(e,n,i){var r=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:r,position:{top:window.innerWidth<800?"0px":"7rem"},data:{memberPool:i,model:n},disableClose:!1}).componentInstance.onSave},t.prototype.ngOnInit=function(){var t=this;this.rest.servicesPools.summary().subscribe((function(e){return t.servicePools=e})),this.memberPool.id&&this.model.get(this.memberPool.id).subscribe((function(e){return t.memberPool=e}))},t.prototype.filtered=function(t,e){return""===e?t:t.filter((function(t){return t.name.toLocaleLowerCase().includes(e.toLocaleLowerCase())}))},t.prototype.save=function(){var t=this;this.memberPool.pool_id?this.model.save(this.memberPool).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, select a valid service pool"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools-service-pools"]],decls:30,vars:8,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[1,"mat-form-field-infix"],[1,"label-enabled"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"h4",0),Aa(1,_F,2,0,"uds-translate",1),Aa(2,wF,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Priority"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.memberPool.priority=t})),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-label"),Fa(12,"uds-translate"),_s(13,"Service pool"),La(),La(),Fa(14,"mat-select",4),qa("ngModelChange",(function(t){return e.memberPool.pool_id=t})),Aa(15,CF,1,0,"uds-mat-select-search",5),Aa(16,xF,2,2,"mat-option",6),La(),La(),Fa(17,"div",7),Fa(18,"span",8),Fa(19,"uds-translate"),_s(20,"Enabled?"),La(),La(),Fa(21,"mat-slide-toggle",4),qa("ngModelChange",(function(t){return e.memberPool.enabled=t})),_s(22),La(),La(),La(),La(),Fa(23,"mat-dialog-actions"),Fa(24,"button",9),Fa(25,"uds-translate"),_s(26,"Cancel"),La(),La(),Fa(27,"button",10),qa("click",(function(t){return e.save()})),Fa(28,"uds-translate"),_s(29,"Ok"),La(),La(),La()),2&t&&(vr(1),Ra("ngIf",!(null!=e.memberPool&&e.memberPool.id)),vr(1),Ra("ngIf",null==e.memberPool?null:e.memberPool.id),vr(7),Ra("ngModel",e.memberPool.priority),vr(5),Ra("ngModel",e.memberPool.pool_id),vr(1),Ra("ngIf",e.servicePools.length>10),vr(1),Ra("ngForOf",e.filtered(e.servicePools,e.servicePoolsFilter)),vr(5),Ra("ngModel",e.memberPool.enabled),vr(1),Cs(" ",e.api.yesno(e.memberPool.enabled)," "))},directives:[ax,Sd,sx,sD,tD,vx,uI,MD,mD,wD,AE,_A,xd,aR,ux,mx,ox,fI,VC],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]{width:100%}.label-enabled[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function SF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Summary"),La())}function DF(t,e){if(1&t&&ja(0,"uds-information",17),2&t){var n=Za(2);Ra("value",n.metaPool)("gui",n.gui)}}function EF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Service pools"),La())}function AF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Assigned services"),La())}function OF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Groups"),La())}function IF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Access calendars"),La())}function PF(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Logs"),La())}function TF(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),qa("selectedIndexChange",(function(t){return Ue(n),Za().selectedTab=t})),Fa(3,"mat-tab"),Aa(4,SF,2,0,"ng-template",9),Fa(5,"div",10),Aa(6,DF,1,2,"uds-information",11),La(),La(),Fa(7,"mat-tab"),Aa(8,EF,2,0,"ng-template",9),Fa(9,"div",10),Fa(10,"uds-table",12),qa("newAction",(function(t){return Ue(n),Za().onNewMemberPool(t)}))("editAction",(function(t){return Ue(n),Za().onEditMemberPool(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteMemberPool(t)})),La(),La(),La(),Fa(11,"mat-tab"),Aa(12,AF,2,0,"ng-template",9),Fa(13,"div",10),Fa(14,"uds-table",13),qa("customButtonAction",(function(t){return Ue(n),Za().onCustomAssigned(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAssigned(t)})),La(),La(),La(),Fa(15,"mat-tab"),Aa(16,OF,2,0,"ng-template",9),Fa(17,"div",10),Fa(18,"uds-table",14),qa("newAction",(function(t){return Ue(n),Za().onNewGroup(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteGroup(t)})),La(),La(),La(),Fa(19,"mat-tab"),Aa(20,IF,2,0,"ng-template",9),Fa(21,"div",10),Fa(22,"uds-table",15),qa("newAction",(function(t){return Ue(n),Za().onNewAccessCalendar(t)}))("editAction",(function(t){return Ue(n),Za().onEditAccessCalendar(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteAccessCalendar(t)}))("loaded",(function(t){return Ue(n),Za().onAccessCalendarLoad(t)})),La(),La(),La(),Fa(23,"mat-tab"),Aa(24,PF,2,0,"ng-template",9),Fa(25,"div",10),ja(26,"uds-logs-table",16),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("selectedIndex",i.selectedTab)("@.disabled",!0),vr(4),Ra("ngIf",i.metaPool&&i.gui),vr(4),Ra("rest",i.memberPools)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("customButtons",i.customButtons)("tableId","metaPools-d-members"+i.metaPool.id),vr(4),Ra("rest",i.memberUserServices)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-services"+i.metaPool.id)("customButtons",i.customButtonsAssignedServices),vr(4),Ra("rest",i.groups)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-groups"+i.metaPool.id),vr(4),Ra("rest",i.accessCalendars)("multiSelect",!0)("allowExport",!0)("tableId","metaPools-d-access"+i.metaPool.id),vr(4),Ra("rest",i.rest.metaPools)("itemId",i.metaPool.id)("tableId","metaPools-d-log"+i.metaPool.id)}}var RF=function(t){return["/pools","meta-pools",t]},MF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[Bk.getGotoButton("pool","pool_id")],this.customButtonsAssignedServices=[{id:"change-owner",html:fF,type:jk.SINGLE_SELECT},{id:"log",html:pF,type:jk.SINGLE_SELECT},Bk.getGotoButton("user","owner_info.auth_id","owner_info.user_id")],this.metaPool=null,this.gui=null,this.selectedTab=1}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("metapool");this.rest.metaPools.get(e).subscribe((function(n){t.metaPool=n,t.rest.metaPools.gui().subscribe((function(e){t.gui=e})),t.memberPools=t.rest.metaPools.detail(e,"pools"),t.memberUserServices=t.rest.metaPools.detail(e,"services"),t.groups=t.rest.metaPools.detail(e,"groups"),t.accessCalendars=t.rest.metaPools.detail(e,"access")}))},t.prototype.onNewMemberPool=function(t){kF.launch(this.api,this.memberPools).subscribe((function(){return t.table.overview()}))},t.prototype.onEditMemberPool=function(t){kF.launch(this.api,this.memberPools,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteMemberPool=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Remove member pool"))},t.prototype.onCustomAssigned=function(t){var e=t.table.selection.selected[0];if("change-owner"===t.param.id){if(["E","R","M","S","C"].includes(e.state))return;uM.launch(this.api,e,this.memberUserServices).subscribe((function(e){return t.table.overview()}))}else"log"===t.param.id&&UM.launch(this.api,e,this.memberUserServices)},t.prototype.onDeleteAssigned=function(t){vF.cleanInvalidSelections(t)||this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned service"))},t.prototype.onNewGroup=function(t){_M.launch(this.api,this.metaPool.id,this.groups).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteGroup=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete assigned group"))},t.prototype.onNewAccessCalendar=function(t){mM.launch(this.api,this.metaPool,this.accessCalendars).subscribe((function(e){return t.table.overview()}))},t.prototype.onEditAccessCalendar=function(t){mM.launch(this.api,this.metaPool,this.accessCalendars,t.table.selection.selected[0]).subscribe((function(e){return t.table.overview()}))},t.prototype.onDeleteAccessCalendar=function(t){t.table.selection.selected[0].priority>0?this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar access rule")):this.onEditAccessCalendar(t)},t.prototype.onAccessCalendarLoad=function(t){var e=this;this.rest.metaPools.getFallbackAccess(this.metaPool.id).subscribe((function(n){var i=t.table.dataSource.data.filter((function(t){return!0}));i.push({id:-1,calendar:"-",priority:e.api.safeString('10000000FallBack'),access:n}),t.table.dataSource.data=i}))},t.prototype.processElement=function(t){t.enabled=this.api.yesno(t.enabled)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-meta-pools-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary",3,"selectedIndex","selectedIndexChange"],["mat-tab-label",""],[1,"content"],[3,"value","gui",4,"ngIf"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","customButtons","tableId","newAction","editAction","deleteAction"],["icon","pools",3,"rest","multiSelect","allowExport","tableId","customButtons","customButtonAction","deleteAction"],["icon","groups",3,"rest","multiSelect","allowExport","tableId","newAction","deleteAction"],["icon","calendars",3,"rest","multiSelect","allowExport","tableId","newAction","editAction","deleteAction","loaded"],[3,"rest","itemId","tableId"],[3,"value","gui"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,TF,27,25,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,RF,e.metaPool?e.metaPool.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/metas.png"),qi),vr(1),Cs(" ",null==e.metaPool?null:e.metaPool.name," "),vr(1),Ra("ngIf",e.metaPool))},directives:[Rg,Sd,ek,Kx,Yx,JP,hT,vx,bT],styles:[".mat-column-enabled, .mat-column-priority{max-width:8rem;justify-content:center}"]}),t}(),FF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("New Service Pool"),!1).subscribe((function(e){return t.table.overview()}))},t.prototype.onDelete=function(t){},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("poolgroup"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-pool-groups"]],decls:1,vars:4,consts:[["icon","spool-group",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.servicesPoolGroups)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[".mat-column-priority, .mat-column-thumb{max-width:7rem;justify-content:center}"]}),t}(),LF=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New calendar"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit calendar"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar"))},t.prototype.onDetail=function(t){this.api.navigation.gotoCalendarDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("calendar"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-calendars"]],decls:1,vars:4,consts:[["icon","calendars",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.calendars)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[""]}),t}(),jF=["mat-calendar-body",""];function NF(t,e){if(1&t&&(Fa(0,"tr",2),Fa(1,"td",3),_s(2),La(),La()),2&t){var n=Za();vr(1),us("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Da("colspan",n.numCols),vr(1),ws(n.label)}}function BF(t,e){if(1&t&&(Fa(0,"td",7),_s(1),La()),2&t){var n=Za(2);us("padding-top",n._cellPadding)("padding-bottom",n._cellPadding),Da("colspan",n._firstRowOffset),vr(1),ws(n._firstRowOffset>=n.labelMinRequiredCells?n.label:"")}}function VF(t,e){if(1&t){var n=za();Fa(0,"td",8),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za(2)._cellClicked(i)})),Fa(1,"div",9),_s(2),La(),La()}if(2&t){var i=e.$implicit,r=e.index,o=Za().index,a=Za();us("width",a._cellWidth)("padding-top",a._cellPadding)("padding-bottom",a._cellPadding),ls("mat-calendar-body-disabled",!i.enabled)("mat-calendar-body-active",a._isActiveCell(o,r)),Ra("ngClass",i.cssClasses)("tabindex",a._isActiveCell(o,r)?0:-1),Da("aria-label",i.ariaLabel)("aria-disabled",!i.enabled||null)("aria-selected",a.selectedValue===i.value),vr(1),ls("mat-calendar-body-selected",a.selectedValue===i.value)("mat-calendar-body-today",a.todayValue===i.value),vr(1),ws(i.displayValue)}}function zF(t,e){if(1&t&&(Fa(0,"tr",4),Aa(1,BF,2,6,"td",5),Aa(2,VF,3,20,"td",6),La()),2&t){var n=e.$implicit,i=e.index,r=Za();vr(1),Ra("ngIf",0===i&&r._firstRowOffset),vr(1),Ra("ngForOf",n)}}function HF(t,e){if(1&t&&(Fa(0,"th",5),_s(1),La()),2&t){var n=e.$implicit;Da("aria-label",n.long),vr(1),ws(n.narrow)}}var UF=["*"];function qF(t,e){}function WF(t,e){if(1&t){var n=za();Fa(0,"mat-month-view",5),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("selectedChange",(function(t){return Ue(n),Za()._dateSelected(t)}))("_userSelection",(function(t){return Ue(n),Za()._userSelected()})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)("dateClass",i.dateClass)}}function GF(t,e){if(1&t){var n=za();Fa(0,"mat-year-view",6),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("monthSelected",(function(t){return Ue(n),Za()._monthSelectedInYearView(t)}))("selectedChange",(function(t){return Ue(n),Za()._goToDateInView(t,"month")})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}function YF(t,e){if(1&t){var n=za();Fa(0,"mat-multi-year-view",7),qa("activeDateChange",(function(t){return Ue(n),Za().activeDate=t}))("yearSelected",(function(t){return Ue(n),Za()._yearSelectedInMultiYearView(t)}))("selectedChange",(function(t){return Ue(n),Za()._goToDateInView(t,"year")})),La()}if(2&t){var i=Za();Ra("activeDate",i.activeDate)("selected",i.selected)("dateFilter",i.dateFilter)("maxDate",i.maxDate)("minDate",i.minDate)}}var KF=["button"];function ZF(t,e){1&t&&(pn(),Fa(0,"svg",3),ja(1,"path",4),La())}var $F=[[["","matDatepickerToggleIcon",""]]],XF=["[matDatepickerToggleIcon]"];function QF(t){return Error("MatDatepicker: No provider found for "+t+". You must import one of the following modules at your application root: MatNativeDateModule, MatMomentDateModule, or provide a custom implementation.")}var JF=function(){function t(){this.changes=new P,this.calendarLabel="Calendar",this.openCalendarLabel="Open calendar",this.prevMonthLabel="Previous month",this.nextMonthLabel="Next month",this.prevYearLabel="Previous year",this.nextYearLabel="Next year",this.prevMultiYearLabel="Previous 20 years",this.nextMultiYearLabel="Next 20 years",this.switchToMonthViewLabel="Choose date",this.switchToMultiYearViewLabel="Choose month and year"}return t.prototype.formatYearRange=function(t,e){return t+" \u2013 "+e},t.ngInjectableDef=yt({factory:function(){return new t},token:t,providedIn:"root"}),t.\u0275fac=function(e){return new(e||t)},t.\u0275prov=yt({token:t,factory:function(e){return t.\u0275fac(e)},providedIn:"root"}),t}(),tL=function(){return function(t,e,n,i,r){this.value=t,this.displayValue=e,this.ariaLabel=n,this.enabled=i,this.cssClasses=r}}(),eL=function(){function t(t,e){this._elementRef=t,this._ngZone=e,this.numCols=7,this.activeCell=0,this.cellAspectRatio=1,this.selectedValueChange=new Zu}return t.prototype._cellClicked=function(t){t.enabled&&this.selectedValueChange.emit(t.value)},t.prototype.ngOnChanges=function(t){var e=t.numCols,n=this.rows,i=this.numCols;(t.rows||e)&&(this._firstRowOffset=n&&n.length&&n[0].length?i-n[0].length:0),(t.cellAspectRatio||e||!this._cellPadding)&&(this._cellPadding=50*this.cellAspectRatio/i+"%"),!e&&this._cellWidth||(this._cellWidth=100/i+"%")},t.prototype._isActiveCell=function(t,e){var n=t*this.numCols+e;return t&&(n-=this._firstRowOffset),n==this.activeCell},t.prototype._focusActiveCell=function(){var t=this;this._ngZone.runOutsideAngular((function(){t._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){var e=t._elementRef.nativeElement.querySelector(".mat-calendar-body-active");e&&e.focus()}))}))},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Vl))},t.\u0275cmp=we({type:t,selectors:[["","mat-calendar-body",""]],hostAttrs:["role","grid","aria-readonly","true",1,"mat-calendar-body"],inputs:{numCols:"numCols",activeCell:"activeCell",cellAspectRatio:"cellAspectRatio",label:"label",rows:"rows",todayValue:"todayValue",selectedValue:"selectedValue",labelMinRequiredCells:"labelMinRequiredCells"},outputs:{selectedValueChange:"selectedValueChange"},exportAs:["matCalendarBody"],features:[Rs()],attrs:jF,decls:2,vars:2,consts:[["aria-hidden","true",4,"ngIf"],["role","row",4,"ngFor","ngForOf"],["aria-hidden","true"],[1,"mat-calendar-body-label"],["role","row"],["aria-hidden","true","class","mat-calendar-body-label",3,"paddingTop","paddingBottom",4,"ngIf"],["role","gridcell","class","mat-calendar-body-cell","role","button",3,"ngClass","tabindex","mat-calendar-body-disabled","mat-calendar-body-active","width","paddingTop","paddingBottom","click",4,"ngFor","ngForOf"],["aria-hidden","true",1,"mat-calendar-body-label"],["role","gridcell","role","button",1,"mat-calendar-body-cell",3,"ngClass","tabindex","click"],[1,"mat-calendar-body-cell-content"]],template:function(t,e){1&t&&(Aa(0,NF,3,6,"tr",0),Aa(1,zF,3,2,"tr",1)),2&t&&(Ra("ngIf",e._firstRowOffset.mat-calendar-body-cell-content:not(.mat-calendar-body-selected),.cdk-program-focused .mat-calendar-body-active>.mat-calendar-body-cell-content:not(.mat-calendar-body-selected){outline:dotted 2px}}[dir=rtl] .mat-calendar-body-label{text-align:right}"],encapsulation:2,changeDetection:0}),t}(),nL=function(){function t(t,e,n,i){if(this._changeDetectorRef=t,this._dateFormats=e,this._dateAdapter=n,this._dir=i,this.selectedChange=new Zu,this._userSelection=new Zu,this.activeDateChange=new Zu,!this._dateAdapter)throw QF("DateAdapter");if(!this._dateFormats)throw QF("MAT_DATE_FORMATS");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),this._hasSameMonthAndYear(e,this._activeDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedDate=this._getDateInCurrentMonth(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._dateSelected=function(t){if(this._selectedDate!=t){var e=this._dateAdapter.getYear(this.activeDate),n=this._dateAdapter.getMonth(this.activeDate),i=this._dateAdapter.createDate(e,n,t);this.selectedChange.emit(i)}this._userSelection.emit()},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,-7);break;case 40:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,7);break;case 36:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,1-this._dateAdapter.getDate(this._activeDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarDays(this._activeDate,this._dateAdapter.getNumDaysInMonth(this._activeDate)-this._dateAdapter.getDate(this._activeDate));break;case 33:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,-1):this._dateAdapter.addCalendarMonths(this._activeDate,-1);break;case 34:this.activeDate=t.altKey?this._dateAdapter.addCalendarYears(this._activeDate,1):this._dateAdapter.addCalendarMonths(this._activeDate,1);break;case 13:case 32:return void(this.dateFilter&&!this.dateFilter(this._activeDate)||(this._dateSelected(this._dateAdapter.getDate(this._activeDate)),this._userSelection.emit(),t.preventDefault()));default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._init=function(){this._selectedDate=this._getDateInCurrentMonth(this.selected),this._todayDate=this._getDateInCurrentMonth(this._dateAdapter.today()),this._monthLabel=this._dateAdapter.getMonthNames("short")[this._dateAdapter.getMonth(this.activeDate)].toLocaleUpperCase();var t=this._dateAdapter.createDate(this._dateAdapter.getYear(this.activeDate),this._dateAdapter.getMonth(this.activeDate),1);this._firstWeekOffset=(7+this._dateAdapter.getDayOfWeek(t)-this._dateAdapter.getFirstDayOfWeek())%7,this._initWeekdays(),this._createWeekCells(),this._changeDetectorRef.markForCheck()},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._initWeekdays=function(){var t=this._dateAdapter.getFirstDayOfWeek(),e=this._dateAdapter.getDayOfWeekNames("narrow"),n=this._dateAdapter.getDayOfWeekNames("long").map((function(t,n){return{long:t,narrow:e[n]}}));this._weekdays=n.slice(t).concat(n.slice(0,t))},t.prototype._createWeekCells=function(){var t=this._dateAdapter.getNumDaysInMonth(this.activeDate),e=this._dateAdapter.getDateNames();this._weeks=[[]];for(var n=0,i=this._firstWeekOffset;n=0)&&(!this.maxDate||this._dateAdapter.compareDate(t,this.maxDate)<=0)},t.prototype._getDateInCurrentMonth=function(t){return t&&this._hasSameMonthAndYear(t,this.activeDate)?this._dateAdapter.getDate(t):null},t.prototype._hasSameMonthAndYear=function(t,e){return!(!t||!e||this._dateAdapter.getMonth(t)!=this._dateAdapter.getMonth(e)||this._dateAdapter.getYear(t)!=this._dateAdapter.getYear(e))},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._isRtl=function(){return this._dir&&"rtl"===this._dir.value},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(cC,8),Ia(lC,8),Ia(Ry,8))},t.\u0275cmp=we({type:t,selectors:[["mat-month-view"]],viewQuery:function(t,e){var n;1&t&&ul(eL,!0),2&t&&al(n=hl())&&(e._matCalendarBody=n.first)},inputs:{activeDate:"activeDate",selected:"selected",minDate:"minDate",maxDate:"maxDate",dateFilter:"dateFilter",dateClass:"dateClass"},outputs:{selectedChange:"selectedChange",_userSelection:"_userSelection",activeDateChange:"activeDateChange"},exportAs:["matMonthView"],decls:7,vars:7,consts:[["role","presentation",1,"mat-calendar-table"],[1,"mat-calendar-table-header"],["scope","col",4,"ngFor","ngForOf"],["colspan","7","aria-hidden","true",1,"mat-calendar-table-header-divider"],["mat-calendar-body","",3,"label","rows","todayValue","selectedValue","labelMinRequiredCells","activeCell","selectedValueChange","keydown"],["scope","col"]],template:function(t,e){1&t&&(Fa(0,"table",0),Fa(1,"thead",1),Fa(2,"tr"),Aa(3,HF,2,2,"th",2),La(),Fa(4,"tr"),ja(5,"th",3),La(),La(),Fa(6,"tbody",4),qa("selectedValueChange",(function(t){return e._dateSelected(t)}))("keydown",(function(t){return e._handleCalendarBodyKeydown(t)})),La(),La()),2&t&&(vr(3),Ra("ngForOf",e._weekdays),vr(3),Ra("label",e._monthLabel)("rows",e._weeks)("todayValue",e._todayDate)("selectedValue",e._selectedDate)("labelMinRequiredCells",3)("activeCell",e._dateAdapter.getDate(e.activeDate)-1))},directives:[xd,eL],encapsulation:2,changeDetection:0}),t}(),iL=function(){function t(t,e,n){if(this._changeDetectorRef=t,this._dateAdapter=e,this._dir=n,this.selectedChange=new Zu,this.yearSelected=new Zu,this.activeDateChange=new Zu,!this._dateAdapter)throw QF("DateAdapter");this._activeDate=this._dateAdapter.today()}return Object.defineProperty(t.prototype,"activeDate",{get:function(){return this._activeDate},set:function(t){var e=this._activeDate,n=this._getValidDateOrNull(this._dateAdapter.deserialize(t))||this._dateAdapter.today();this._activeDate=this._dateAdapter.clampDate(n,this.minDate,this.maxDate),rL(this._dateAdapter,e,this._activeDate,this.minDate,this.maxDate)||this._init()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){return this._selected},set:function(t){this._selected=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._selectedYear=this._selected&&this._dateAdapter.getYear(this._selected)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minDate",{get:function(){return this._minDate},set:function(t){this._minDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"maxDate",{get:function(){return this._maxDate},set:function(t){this._maxDate=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){this._init()},t.prototype._init=function(){var t=this;this._todayYear=this._dateAdapter.getYear(this._dateAdapter.today());var e=this._dateAdapter.getYear(this._activeDate)-oL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate);this._years=[];for(var n=0,i=[];n<24;n++)i.push(e+n),4==i.length&&(this._years.push(i.map((function(e){return t._createCellForYear(e)}))),i=[]);this._changeDetectorRef.markForCheck()},t.prototype._yearSelected=function(t){this.yearSelected.emit(this._dateAdapter.createDate(t,0,1));var e=this._dateAdapter.getMonth(this.activeDate),n=this._dateAdapter.getNumDaysInMonth(this._dateAdapter.createDate(t,e,1));this.selectedChange.emit(this._dateAdapter.createDate(t,e,Math.min(this._dateAdapter.getDate(this.activeDate),n)))},t.prototype._handleCalendarBodyKeydown=function(t){var e=this._activeDate,n=this._isRtl();switch(t.keyCode){case 37:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?1:-1);break;case 39:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,n?-1:1);break;case 38:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-4);break;case 40:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,4);break;case 36:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,-oL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate));break;case 35:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,24-oL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)-1);break;case 33:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?-240:-24);break;case 34:this.activeDate=this._dateAdapter.addCalendarYears(this._activeDate,t.altKey?240:24);break;case 13:case 32:this._yearSelected(this._dateAdapter.getYear(this._activeDate));break;default:return}this._dateAdapter.compareDate(e,this.activeDate)&&this.activeDateChange.emit(this.activeDate),this._focusActiveCell(),t.preventDefault()},t.prototype._getActiveCell=function(){return oL(this._dateAdapter,this.activeDate,this.minDate,this.maxDate)},t.prototype._focusActiveCell=function(){this._matCalendarBody._focusActiveCell()},t.prototype._createCellForYear=function(t){var e=this._dateAdapter.getYearName(this._dateAdapter.createDate(t,0,1));return new tL(t,e,e,this._shouldEnableYear(t))},t.prototype._shouldEnableYear=function(t){if(null==t||this.maxDate&&t>this._dateAdapter.getYear(this.maxDate)||this.minDate&&tn||t===n&&e>i}return!1},t.prototype._isYearAndMonthBeforeMinDate=function(t,e){if(this.minDate){var n=this._dateAdapter.getYear(this.minDate),i=this._dateAdapter.getMonth(this.minDate);return t enter",uy("120ms cubic-bezier(0, 0, 0.2, 1)",dy({opacity:1,transform:"scale(1, 1)"}))),fy("* => void",uy("100ms linear",dy({opacity:0})))]),fadeInCalendar:sy("fadeInCalendar",[py("void",dy({opacity:0})),py("enter",dy({opacity:1})),fy("void => *",uy("120ms 100ms cubic-bezier(0.55, 0, 0.55, 0.2)"))])},dL=0,pL=new Gt("mat-datepicker-scroll-strategy"),hL={provide:pL,deps:[$v],useFactory:function(t){return function(){return t.scrollStrategies.reposition()}}},fL=function(t){function e(e){return t.call(this,e)||this}return r(e,t),e.prototype.ngAfterViewInit=function(){this._calendar.focusActiveCell()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks))},e.\u0275cmp=we({type:e,selectors:[["mat-datepicker-content"]],viewQuery:function(t,e){var n;1&t&&ul(lL,!0),2&t&&al(n=hl())&&(e._calendar=n.first)},hostAttrs:[1,"mat-datepicker-content"],hostVars:3,hostBindings:function(t,e){2&t&&(Ss("@transformPanel","enter"),ls("mat-datepicker-content-touch",e.datepicker.touchUi))},inputs:{color:"color"},exportAs:["matDatepickerContent"],features:[Es],decls:1,vars:11,consts:[["cdkTrapFocus","",3,"id","ngClass","startAt","startView","minDate","maxDate","dateFilter","headerComponent","selected","dateClass","selectedChange","yearSelected","monthSelected","_userSelection"]],template:function(t,e){1&t&&(Fa(0,"mat-calendar",0),qa("selectedChange",(function(t){return e.datepicker.select(t)}))("yearSelected",(function(t){return e.datepicker._selectYear(t)}))("monthSelected",(function(t){return e.datepicker._selectMonth(t)}))("_userSelection",(function(t){return e.datepicker.close()})),La()),2&t&&Ra("id",e.datepicker.id)("ngClass",e.datepicker.panelClass)("startAt",e.datepicker.startAt)("startView",e.datepicker.startView)("minDate",e.datepicker._minDate)("maxDate",e.datepicker._maxDate)("dateFilter",e.datepicker._dateFilter)("headerComponent",e.datepicker.calendarHeaderComponent)("selected",e.datepicker._selected)("dateClass",e.datepicker.dateClass)("@fadeInCalendar","enter")},directives:[lL,Sb,_d],styles:[".mat-datepicker-content{display:block;border-radius:4px}.mat-datepicker-content .mat-calendar{width:296px;height:354px}.mat-datepicker-content-touch{display:block;max-height:80vh;overflow:auto;margin:-24px}.mat-datepicker-content-touch .mat-calendar{min-width:250px;min-height:312px;max-width:750px;max-height:788px}@media all and (orientation:landscape){.mat-datepicker-content-touch .mat-calendar{width:64vh;height:80vh}}@media all and (orientation:portrait){.mat-datepicker-content-touch .mat-calendar{width:80vw;height:100vw}}"],encapsulation:2,data:{animation:[cL.transformPanel,cL.fadeInCalendar]},changeDetection:0}),e}(nC(function(){return function(t){this._elementRef=t}}())),mL=function(){function t(t,e,n,i,r,o,a,s){if(this._dialog=t,this._overlay=e,this._ngZone=n,this._viewContainerRef=i,this._dateAdapter=o,this._dir=a,this._document=s,this.startView="month",this._touchUi=!1,this.yearSelected=new Zu,this.monthSelected=new Zu,this.openedStream=new Zu,this.closedStream=new Zu,this._opened=!1,this.id="mat-datepicker-"+dL++,this._validSelected=null,this._focusedElementBeforeOpen=null,this._inputSubscription=h.EMPTY,this._disabledChange=new P,this._selectedChanged=new P,!this._dateAdapter)throw QF("DateAdapter");this._scrollStrategy=r}return Object.defineProperty(t.prototype,"startAt",{get:function(){return this._startAt||(this._datepickerInput?this._datepickerInput.value:null)},set:function(t){this._startAt=this._getValidDateOrNull(this._dateAdapter.deserialize(t))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"color",{get:function(){return this._color||(this._datepickerInput?this._datepickerInput._getThemePalette():void 0)},set:function(t){this._color=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touchUi",{get:function(){return this._touchUi},set:function(t){this._touchUi=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this._datepickerInput?this._datepickerInput.disabled:!!this._disabled},set:function(t){var e=Ly(t);e!==this._disabled&&(this._disabled=e,this._disabledChange.next(e))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"opened",{get:function(){return this._opened},set:function(t){t?this.open():this.close()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_selected",{get:function(){return this._validSelected},set:function(t){this._validSelected=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_minDate",{get:function(){return this._datepickerInput&&this._datepickerInput.min},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_maxDate",{get:function(){return this._datepickerInput&&this._datepickerInput.max},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"_dateFilter",{get:function(){return this._datepickerInput&&this._datepickerInput._dateFilter},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.close(),this._inputSubscription.unsubscribe(),this._disabledChange.complete(),this._popupRef&&(this._popupRef.dispose(),this._popupComponentRef=null)},t.prototype.select=function(t){var e=this._selected;this._selected=t,this._dateAdapter.sameDate(e,this._selected)||this._selectedChanged.next(t)},t.prototype._selectYear=function(t){this.yearSelected.emit(t)},t.prototype._selectMonth=function(t){this.monthSelected.emit(t)},t.prototype._registerInput=function(t){var e=this;if(this._datepickerInput)throw Error("A MatDatepicker can only be associated with a single input.");this._datepickerInput=t,this._inputSubscription=this._datepickerInput._valueChange.subscribe((function(t){return e._selected=t}))},t.prototype.open=function(){if(!this._opened&&!this.disabled){if(!this._datepickerInput)throw Error("Attempted to open an MatDatepicker with no associated input.");this._document&&(this._focusedElementBeforeOpen=this._document.activeElement),this.touchUi?this._openAsDialog():this._openAsPopup(),this._opened=!0,this.openedStream.emit()}},t.prototype.close=function(){var t=this;if(this._opened){this._popupRef&&this._popupRef.hasAttached()&&this._popupRef.detach(),this._dialogRef&&(this._dialogRef.close(),this._dialogRef=null),this._calendarPortal&&this._calendarPortal.isAttached&&this._calendarPortal.detach();var e=function(){t._opened&&(t._opened=!1,t.closedStream.emit(),t._focusedElementBeforeOpen=null)};this._focusedElementBeforeOpen&&"function"==typeof this._focusedElementBeforeOpen.focus?(this._focusedElementBeforeOpen.focus(),setTimeout(e)):e()}},t.prototype._openAsDialog=function(){var t=this;this._dialogRef&&this._dialogRef.close(),this._dialogRef=this._dialog.open(fL,{direction:this._dir?this._dir.value:"ltr",viewContainerRef:this._viewContainerRef,panelClass:"mat-datepicker-dialog"}),this._dialogRef.afterClosed().subscribe((function(){return t.close()})),this._dialogRef.componentInstance.datepicker=this,this._setColor()},t.prototype._openAsPopup=function(){var t=this;this._calendarPortal||(this._calendarPortal=new Cy(fL,this._viewContainerRef)),this._popupRef||this._createPopup(),this._popupRef.hasAttached()||(this._popupComponentRef=this._popupRef.attach(this._calendarPortal),this._popupComponentRef.instance.datepicker=this,this._setColor(),this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._popupRef.updatePosition()})))},t.prototype._createPopup=function(){var t=this,e=new Lv({positionStrategy:this._createPopupPositionStrategy(),hasBackdrop:!0,backdropClass:"mat-overlay-transparent-backdrop",direction:this._dir,scrollStrategy:this._scrollStrategy(),panelClass:"mat-datepicker-popup"});this._popupRef=this._overlay.create(e),this._popupRef.overlayElement.setAttribute("role","dialog"),tt(this._popupRef.backdropClick(),this._popupRef.detachments(),this._popupRef.keydownEvents().pipe(Hp((function(e){return 27===e.keyCode||t._datepickerInput&&e.altKey&&38===e.keyCode})))).subscribe((function(e){e&&e.preventDefault(),t.close()}))},t.prototype._createPopupPositionStrategy=function(){return this._overlay.position().flexibleConnectedTo(this._datepickerInput.getConnectedOverlayOrigin()).withTransformOriginOn(".mat-datepicker-content").withFlexibleDimensions(!1).withViewportMargin(8).withLockedPosition().withPositions([{originX:"start",originY:"bottom",overlayX:"start",overlayY:"top"},{originX:"start",originY:"top",overlayX:"start",overlayY:"bottom"},{originX:"end",originY:"bottom",overlayX:"end",overlayY:"top"},{originX:"end",originY:"top",overlayX:"end",overlayY:"bottom"}])},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.prototype._setColor=function(){var t=this.color;this._popupComponentRef&&(this._popupComponentRef.instance.color=t),this._dialogRef&&(this._dialogRef.componentInstance.color=t)},t.\u0275fac=function(e){return new(e||t)(Ia(ix),Ia($v),Ia(Vl),Ia(_u),Ia(pL),Ia(lC,8),Ia(Ry,8),Ia(vc,8))},t.\u0275cmp=we({type:t,selectors:[["mat-datepicker"]],inputs:{startView:"startView",startAt:"startAt",color:"color",touchUi:"touchUi",disabled:"disabled",opened:"opened",calendarHeaderComponent:"calendarHeaderComponent",panelClass:"panelClass",dateClass:"dateClass"},outputs:{yearSelected:"yearSelected",monthSelected:"monthSelected",openedStream:"opened",closedStream:"closed"},exportAs:["matDatepicker"],decls:0,vars:0,template:function(t,e){},encapsulation:2,changeDetection:0}),t}(),gL={provide:cD,useExisting:It((function(){return bL})),multi:!0},yL={provide:kD,useExisting:It((function(){return bL})),multi:!0},vL=function(){return function(t,e){this.target=t,this.targetElement=e,this.value=this.target.value}}(),bL=function(){function t(t,e,n,i){var r=this;if(this._elementRef=t,this._dateAdapter=e,this._dateFormats=n,this._formField=i,this.dateChange=new Zu,this.dateInput=new Zu,this._valueChange=new Zu,this._disabledChange=new Zu,this._onTouched=function(){},this._cvaOnChange=function(){},this._validatorOnChange=function(){},this._datepickerSubscription=h.EMPTY,this._localeSubscription=h.EMPTY,this._parseValidator=function(){return r._lastValueValid?null:{matDatepickerParse:{text:r._elementRef.nativeElement.value}}},this._minValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.min||!e||r._dateAdapter.compareDate(r.min,e)<=0?null:{matDatepickerMin:{min:r.min,actual:e}}},this._maxValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return!r.max||!e||r._dateAdapter.compareDate(r.max,e)>=0?null:{matDatepickerMax:{max:r.max,actual:e}}},this._filterValidator=function(t){var e=r._getValidDateOrNull(r._dateAdapter.deserialize(t.value));return r._dateFilter&&e&&!r._dateFilter(e)?{matDatepickerFilter:!0}:null},this._validator=ED.compose([this._parseValidator,this._minValidator,this._maxValidator,this._filterValidator]),this._lastValueValid=!1,!this._dateAdapter)throw QF("DateAdapter");if(!this._dateFormats)throw QF("MAT_DATE_FORMATS");this._localeSubscription=e.localeChanges.subscribe((function(){r.value=r.value}))}return Object.defineProperty(t.prototype,"matDatepicker",{set:function(t){var e=this;t&&(this._datepicker=t,this._datepicker._registerInput(this),this._datepickerSubscription.unsubscribe(),this._datepickerSubscription=this._datepicker._selectedChanged.subscribe((function(t){e.value=t,e._cvaOnChange(t),e._onTouched(),e.dateInput.emit(new vL(e,e._elementRef.nativeElement)),e.dateChange.emit(new vL(e,e._elementRef.nativeElement))})))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"matDatepickerFilter",{set:function(t){this._dateFilter=t,this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){return this._value},set:function(t){t=this._dateAdapter.deserialize(t),this._lastValueValid=!t||this._dateAdapter.isValid(t),t=this._getValidDateOrNull(t);var e=this.value;this._value=t,this._formatValue(t),this._dateAdapter.sameDate(e,t)||this._valueChange.emit(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"min",{get:function(){return this._min},set:function(t){this._min=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"max",{get:function(){return this._max},set:function(t){this._max=this._getValidDateOrNull(this._dateAdapter.deserialize(t)),this._validatorOnChange()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return!!this._disabled},set:function(t){var e=Ly(t),n=this._elementRef.nativeElement;this._disabled!==e&&(this._disabled=e,this._disabledChange.emit(e)),e&&n.blur&&n.blur()},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this._datepickerSubscription.unsubscribe(),this._localeSubscription.unsubscribe(),this._valueChange.complete(),this._disabledChange.complete()},t.prototype.registerOnValidatorChange=function(t){this._validatorOnChange=t},t.prototype.validate=function(t){return this._validator?this._validator(t):null},t.prototype.getPopupConnectionElementRef=function(){return this.getConnectedOverlayOrigin()},t.prototype.getConnectedOverlayOrigin=function(){return this._formField?this._formField.getConnectedOverlayOrigin():this._elementRef},t.prototype.writeValue=function(t){this.value=t},t.prototype.registerOnChange=function(t){this._cvaOnChange=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._onKeydown=function(t){this._datepicker&&t.altKey&&40===t.keyCode&&!this._elementRef.nativeElement.readOnly&&(this._datepicker.open(),t.preventDefault())},t.prototype._onInput=function(t){var e=this._dateAdapter.parse(t,this._dateFormats.parse.dateInput);this._lastValueValid=!e||this._dateAdapter.isValid(e),e=this._getValidDateOrNull(e),this._dateAdapter.sameDate(e,this._value)?this._validatorOnChange():(this._value=e,this._cvaOnChange(e),this._valueChange.emit(e),this.dateInput.emit(new vL(this,this._elementRef.nativeElement)))},t.prototype._onChange=function(){this.dateChange.emit(new vL(this,this._elementRef.nativeElement))},t.prototype._getThemePalette=function(){return this._formField?this._formField.color:void 0},t.prototype._onBlur=function(){this.value&&this._formatValue(this.value),this._onTouched()},t.prototype._formatValue=function(t){this._elementRef.nativeElement.value=t?this._dateAdapter.format(t,this._dateFormats.display.dateInput):""},t.prototype._getValidDateOrNull=function(t){return this._dateAdapter.isDateInstance(t)&&this._dateAdapter.isValid(t)?t:null},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(lC,8),Ia(cC,8),Ia(sD,8))},t.\u0275dir=Ee({type:t,selectors:[["input","matDatepicker",""]],hostVars:5,hostBindings:function(t,e){1&t&&qa("input",(function(t){return e._onInput(t.target.value)}))("change",(function(t){return e._onChange()}))("blur",(function(t){return e._onBlur()}))("keydown",(function(t){return e._onKeydown(t)})),2&t&&(ks("disabled",e.disabled),Da("aria-haspopup",e._datepicker?"dialog":null)("aria-owns",(null==e._datepicker?null:e._datepicker.opened)&&e._datepicker.id||null)("min",e.min?e._dateAdapter.toIso8601(e.min):null)("max",e.max?e._dateAdapter.toIso8601(e.max):null))},inputs:{matDatepicker:"matDatepicker",matDatepickerFilter:"matDatepickerFilter",value:"value",min:"min",max:"max",disabled:"disabled"},outputs:{dateChange:"dateChange",dateInput:"dateInput"},exportAs:["matDatepickerInput"],features:[Us([gL,yL,{provide:oI,useExisting:t}])]}),t}(),_L=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["","matDatepickerToggleIcon",""]]}),t}(),wL=function(){function t(t,e,n){this._intl=t,this._changeDetectorRef=e,this._stateChanges=h.EMPTY;var i=Number(n);this.tabIndex=i||0===i?i:null}return Object.defineProperty(t.prototype,"disabled",{get:function(){return void 0===this._disabled&&this.datepicker?this.datepicker.disabled:!!this._disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){t.datepicker&&this._watchStateChanges()},t.prototype.ngOnDestroy=function(){this._stateChanges.unsubscribe()},t.prototype.ngAfterContentInit=function(){this._watchStateChanges()},t.prototype._open=function(t){this.datepicker&&!this.disabled&&(this.datepicker.open(),t.stopPropagation())},t.prototype._watchStateChanges=function(){var t=this,e=this.datepicker?this.datepicker._disabledChange:Vp(),n=this.datepicker&&this.datepicker._datepickerInput?this.datepicker._datepickerInput._disabledChange:Vp(),i=this.datepicker?tt(this.datepicker.openedStream,this.datepicker.closedStream):Vp();this._stateChanges.unsubscribe(),this._stateChanges=tt(this._intl.changes,e,n,i).subscribe((function(){return t._changeDetectorRef.markForCheck()}))},t.\u0275fac=function(e){return new(e||t)(Ia(JF),Ia(Ko),Pa("tabindex"))},t.\u0275cmp=we({type:t,selectors:[["mat-datepicker-toggle"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,_L,!0),2&t&&al(i=hl())&&(e._customIcon=i.first)},viewQuery:function(t,e){var n;1&t&&ul(KF,!0),2&t&&al(n=hl())&&(e._button=n.first)},hostAttrs:[1,"mat-datepicker-toggle"],hostVars:7,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e._button.focus()})),2&t&&(Da("tabindex",-1),ls("mat-datepicker-toggle-active",e.datepicker&&e.datepicker.opened)("mat-accent",e.datepicker&&"accent"===e.datepicker.color)("mat-warn",e.datepicker&&"warn"===e.datepicker.color))},inputs:{tabIndex:"tabIndex",disabled:"disabled",datepicker:["for","datepicker"],disableRipple:"disableRipple"},exportAs:["matDatepickerToggle"],features:[Rs()],ngContentSelectors:XF,decls:4,vars:6,consts:[["mat-icon-button","","type","button",3,"disabled","disableRipple","click"],["button",""],["class","mat-datepicker-toggle-default-icon","viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",4,"ngIf"],["viewBox","0 0 24 24","width","24px","height","24px","fill","currentColor","focusable","false",1,"mat-datepicker-toggle-default-icon"],["d","M19 3h-1V1h-2v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 16H5V8h14v11zM7 10h5v5H7z"]],template:function(t,e){1&t&&(Xa($F),Fa(0,"button",0,1),qa("click",(function(t){return e._open(t)})),Aa(2,ZF,2,0,"svg",2),Qa(3),La()),2&t&&(Ra("disabled",e.disabled)("disableRipple",e.disableRipple),Da("aria-haspopup",e.datepicker?"dialog":null)("aria-label",e._intl.openCalendarLabel)("tabindex",e.disabled?-1:e.tabIndex),vr(2),Ra("ngIf",!e._customIcon))},directives:[mx,Sd],styles:[".mat-form-field-appearance-legacy .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field-appearance-legacy .mat-form-field-suffix .mat-datepicker-toggle-default-icon{width:1em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-datepicker-toggle-default-icon{display:block;width:1.5em;height:1.5em}.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-prefix .mat-icon-button .mat-datepicker-toggle-default-icon,.mat-form-field:not(.mat-form-field-appearance-legacy) .mat-form-field-suffix .mat-icon-button .mat-datepicker-toggle-default-icon{margin:auto}"],encapsulation:2,changeDetection:0}),t}(),CL=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[JF,hL],imports:[[op,yx,cx,nb,Mb,Oy]]}),t}(),xL=["button"],kL=["*"],SL=new Gt("MAT_BUTTON_TOGGLE_DEFAULT_OPTIONS"),DL={provide:cD,useExisting:It((function(){return IL})),multi:!0},EL=function(){return function(){}}(),AL=0,OL=function(){return function(t,e){this.source=t,this.value=e}}(),IL=function(){function t(t,e){this._changeDetector=t,this._vertical=!1,this._multiple=!1,this._disabled=!1,this._controlValueAccessorChangeFn=function(){},this._onTouched=function(){},this._name="mat-button-toggle-group-"+AL++,this.valueChange=new Zu,this.change=new Zu,this.appearance=e&&e.appearance?e.appearance:"standard"}return Object.defineProperty(t.prototype,"name",{get:function(){return this._name},set:function(t){var e=this;this._name=t,this._buttonToggles&&this._buttonToggles.forEach((function(t){t.name=e._name,t._markForCheck()}))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"vertical",{get:function(){return this._vertical},set:function(t){this._vertical=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t.map((function(t){return t.value})):t[0]?t[0].value:void 0},set:function(t){this._setSelectionByValue(t),this.valueChange.emit(this.value)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"selected",{get:function(){var t=this._selectionModel?this._selectionModel.selected:[];return this.multiple?t:t[0]||null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t),this._buttonToggles&&this._buttonToggles.forEach((function(t){return t._markForCheck()}))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this._selectionModel=new xv(this.multiple,void 0,!1)},t.prototype.ngAfterContentInit=function(){var t;(t=this._selectionModel).select.apply(t,this._buttonToggles.filter((function(t){return t.checked})))},t.prototype.writeValue=function(t){this.value=t,this._changeDetector.markForCheck()},t.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},t.prototype.registerOnTouched=function(t){this._onTouched=t},t.prototype.setDisabledState=function(t){this.disabled=t},t.prototype._emitChangeEvent=function(){var t=this.selected,e=Array.isArray(t)?t[t.length-1]:t,n=new OL(e,this.value);this._controlValueAccessorChangeFn(n.value),this.change.emit(n)},t.prototype._syncButtonToggle=function(t,e,n,i){void 0===n&&(n=!1),void 0===i&&(i=!1),this.multiple||!this.selected||t.checked||(this.selected.checked=!1),this._selectionModel?e?this._selectionModel.select(t):this._selectionModel.deselect(t):i=!0,i||this._updateModelValue(n)},t.prototype._isSelected=function(t){return this._selectionModel&&this._selectionModel.isSelected(t)},t.prototype._isPrechecked=function(t){return void 0!==this._rawValue&&(this.multiple&&Array.isArray(this._rawValue)?this._rawValue.some((function(e){return null!=t.value&&e===t.value})):t.value===this._rawValue)},t.prototype._setSelectionByValue=function(t){var e=this;if(this._rawValue=t,this._buttonToggles)if(this.multiple&&t){if(!Array.isArray(t))throw Error("Value must be an array in multiple-selection mode.");this._clearSelection(),t.forEach((function(t){return e._selectValue(t)}))}else this._clearSelection(),this._selectValue(t)},t.prototype._clearSelection=function(){this._selectionModel.clear(),this._buttonToggles.forEach((function(t){return t.checked=!1}))},t.prototype._selectValue=function(t){var e=this._buttonToggles.find((function(e){return null!=e.value&&e.value===t}));e&&(e.checked=!0,this._selectionModel.select(e))},t.prototype._updateModelValue=function(t){t&&this._emitChangeEvent(),this.valueChange.emit(this.value)},t.\u0275fac=function(e){return new(e||t)(Ia(Ko),Ia(SL,8))},t.\u0275dir=Ee({type:t,selectors:[["mat-button-toggle-group"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,PL,!1),2&t&&al(i=hl())&&(e._buttonToggles=i)},hostAttrs:["role","group",1,"mat-button-toggle-group"],hostVars:5,hostBindings:function(t,e){2&t&&(Da("aria-disabled",e.disabled),ls("mat-button-toggle-vertical",e.vertical)("mat-button-toggle-group-appearance-standard","standard"===e.appearance))},inputs:{appearance:"appearance",name:"name",vertical:"vertical",value:"value",multiple:"multiple",disabled:"disabled"},outputs:{valueChange:"valueChange",change:"change"},exportAs:["matButtonToggleGroup"],features:[Us([DL,{provide:EL,useExisting:t}])]}),t}(),PL=function(t){function e(e,n,i,r,o,a){var s=t.call(this)||this;s._changeDetectorRef=n,s._elementRef=i,s._focusMonitor=r,s._isSingleSelector=!1,s._checked=!1,s.ariaLabelledby=null,s._disabled=!1,s.change=new Zu;var u=Number(o);return s.tabIndex=u||0===u?u:null,s.buttonToggleGroup=e,s.appearance=a&&a.appearance?a.appearance:"standard",s}return r(e,t),Object.defineProperty(e.prototype,"buttonId",{get:function(){return this.id+"-button"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"appearance",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup.appearance:this._appearance},set:function(t){this._appearance=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"checked",{get:function(){return this.buttonToggleGroup?this.buttonToggleGroup._isSelected(this):this._checked},set:function(t){var e=Ly(t);e!==this._checked&&(this._checked=e,this.buttonToggleGroup&&this.buttonToggleGroup._syncButtonToggle(this,this._checked),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled||this.buttonToggleGroup&&this.buttonToggleGroup.disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngOnInit=function(){this._isSingleSelector=this.buttonToggleGroup&&!this.buttonToggleGroup.multiple,this._type=this._isSingleSelector?"radio":"checkbox",this.id=this.id||"mat-button-toggle-"+AL++,this._isSingleSelector&&(this.name=this.buttonToggleGroup.name),this.buttonToggleGroup&&this.buttonToggleGroup._isPrechecked(this)&&(this.checked=!0),this._focusMonitor.monitor(this._elementRef,!0)},e.prototype.ngOnDestroy=function(){var t=this.buttonToggleGroup;this._focusMonitor.stopMonitoring(this._elementRef),t&&t._isSelected(this)&&t._syncButtonToggle(this,!1,!1,!0)},e.prototype.focus=function(t){this._buttonElement.nativeElement.focus(t)},e.prototype._onButtonClick=function(){var t=!!this._isSingleSelector||!this._checked;t!==this._checked&&(this._checked=t,this.buttonToggleGroup&&(this.buttonToggleGroup._syncButtonToggle(this,this._checked,!0),this.buttonToggleGroup._onTouched())),this.change.emit(new OL(this,this.value))},e.prototype._markForCheck=function(){this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(IL,8),Ia(Ko),Ia(Ks),Ia(Pb),Pa("tabindex"),Ia(SL,8))},e.\u0275cmp=we({type:e,selectors:[["mat-button-toggle"]],viewQuery:function(t,e){var n;1&t&&ul(xL,!0),2&t&&al(n=hl())&&(e._buttonElement=n.first)},hostAttrs:[1,"mat-button-toggle"],hostVars:11,hostBindings:function(t,e){1&t&&qa("focus",(function(t){return e.focus()})),2&t&&(Da("tabindex",-1)("id",e.id)("name",null),ls("mat-button-toggle-standalone",!e.buttonToggleGroup)("mat-button-toggle-checked",e.checked)("mat-button-toggle-disabled",e.disabled)("mat-button-toggle-appearance-standard","standard"===e.appearance))},inputs:{disableRipple:"disableRipple",appearance:"appearance",checked:"checked",disabled:"disabled",id:"id",name:"name",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],value:"value",tabIndex:"tabIndex"},outputs:{change:"change"},exportAs:["matButtonToggle"],features:[Es],ngContentSelectors:kL,decls:6,vars:9,consts:[["type","button",1,"mat-button-toggle-button",3,"id","disabled","click"],["button",""],[1,"mat-button-toggle-label-content"],[1,"mat-button-toggle-focus-overlay"],["matRipple","",1,"mat-button-toggle-ripple",3,"matRippleTrigger","matRippleDisabled"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"button",0,1),qa("click",(function(t){return e._onButtonClick()})),Fa(2,"div",2),Qa(3),La(),La(),ja(4,"div",3),ja(5,"div",4)),2&t){var n=Oa(1);Ra("id",e.buttonId)("disabled",e.disabled||null),Da("tabindex",e.disabled?-1:e.tabIndex)("aria-pressed",e.checked)("name",e.name||null)("aria-label",e.ariaLabel)("aria-labelledby",e.ariaLabelledby),vr(5),Ra("matRippleTrigger",n)("matRippleDisabled",e.disableRipple||e.disabled)}},directives:[PC],styles:[".mat-button-toggle-group,.mat-button-toggle-standalone{position:relative;display:inline-flex;flex-direction:row;white-space:nowrap;overflow:hidden;border-radius:2px;-webkit-tap-highlight-color:transparent}@media (-ms-high-contrast:active){.mat-button-toggle-group,.mat-button-toggle-standalone{outline:solid 1px}}.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{border-radius:4px}@media (-ms-high-contrast:active){.mat-button-toggle-group-appearance-standard,.mat-button-toggle-standalone.mat-button-toggle-appearance-standard{outline:0}}.mat-button-toggle-vertical{flex-direction:column}.mat-button-toggle-vertical .mat-button-toggle-label-content{display:block}.mat-button-toggle{white-space:nowrap;position:relative}.mat-button-toggle .mat-icon svg{vertical-align:top}.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:1}@media (-ms-high-contrast:active){.mat-button-toggle.cdk-keyboard-focused .mat-button-toggle-focus-overlay{opacity:.5}}.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{opacity:.04}.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.12}@media (-ms-high-contrast:active){.mat-button-toggle-appearance-standard.cdk-keyboard-focused:not(.mat-button-toggle-disabled) .mat-button-toggle-focus-overlay{opacity:.5}}@media (hover:none){.mat-button-toggle-appearance-standard:not(.mat-button-toggle-disabled):hover .mat-button-toggle-focus-overlay{display:none}}.mat-button-toggle-label-content{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:inline-block;line-height:36px;padding:0 16px;position:relative}.mat-button-toggle-appearance-standard .mat-button-toggle-label-content{line-height:48px;padding:0 12px}.mat-button-toggle-label-content>*{vertical-align:middle}.mat-button-toggle-focus-overlay{border-radius:inherit;pointer-events:none;opacity:0;top:0;left:0;right:0;bottom:0;position:absolute}.mat-button-toggle-checked .mat-button-toggle-focus-overlay{border-bottom:solid 36px}@media (-ms-high-contrast:active){.mat-button-toggle-checked .mat-button-toggle-focus-overlay{opacity:.5;height:0}}@media (-ms-high-contrast:active){.mat-button-toggle-checked.mat-button-toggle-appearance-standard .mat-button-toggle-focus-overlay{border-bottom:solid 48px}}.mat-button-toggle .mat-button-toggle-ripple{top:0;left:0;right:0;bottom:0;position:absolute;pointer-events:none}.mat-button-toggle-button{border:0;background:0 0;color:inherit;padding:0;margin:0;font:inherit;outline:0;width:100%;cursor:pointer}.mat-button-toggle-disabled .mat-button-toggle-button{cursor:default}.mat-button-toggle-button::-moz-focus-inner{border:0}"],encapsulation:2,changeDetection:0}),e}(iC(function(){return function(){}}())),TL=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC,TC],tC]}),t}();function RL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit rule"),La())}function ML(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New rule"),La())}function FL(t,e){if(1&t&&(Fa(0,"mat-option",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function LL(t,e){if(1&t&&(Fa(0,"mat-option",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function jL(t,e){if(1&t&&(Fa(0,"mat-button-toggle",22),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.value," ")}}function NL(t,e){if(1&t){var n=za();Fa(0,"div",23),Fa(1,"span",24),Fa(2,"uds-translate"),_s(3,"Weekdays"),La(),La(),Fa(4,"mat-button-toggle-group",25),qa("ngModelChange",(function(t){return Ue(n),Za().wDays=t})),Aa(5,jL,2,2,"mat-button-toggle",8),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.wDays),vr(1),Ra("ngForOf",i.weekDays)}}function BL(t,e){if(1&t){var n=za();Fa(0,"mat-form-field",9),Fa(1,"mat-label"),Fa(2,"uds-translate"),_s(3,"Repeat every"),La(),La(),Fa(4,"input",6),qa("ngModelChange",(function(t){return Ue(n),Za().rule.interval=t})),La(),Fa(5,"div",26),_s(6),La(),La()}if(2&t){var i=Za();vr(4),Ra("ngModel",i.rule.interval),vr(2),Cs("\xa0",i.frequency(),"")}}var VL={DAILY:[django.gettext("day"),django.gettext("days"),django.gettext("Daily")],WEEKLY:[django.gettext("week"),django.gettext("weeks"),django.gettext("Weekly")],MONTHLY:[django.gettext("month"),django.gettext("months"),django.gettext("Monthly")],YEARLY:[django.gettext("year"),django.gettext("years"),django.gettext("Yearly")],WEEKDAYS:["","",django.gettext("Weekdays")]},zL={MINUTES:django.gettext("Minutes"),HOURS:django.gettext("Hours"),DAYS:django.gettext("Days"),WEEKS:django.gettext("Weeks")},HL=[django.gettext("Sunday"),django.gettext("Monday"),django.gettext("Tuesday"),django.gettext("Wednesday"),django.gettext("Thursday"),django.gettext("Friday"),django.gettext("Saturday")];function UL(t,e){void 0===e&&(e=!1);for(var n=new Array,i=0;i<7;i++)1&t&&n.push(HL[i].substr(0,e?100:3)),t>>=1;return n.length?n.join(", "):django.gettext("(no days)")}var qL=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.dunits=Object.keys(zL).map((function(t){return{id:t,value:zL[t]}})),this.freqs=Object.keys(VL).map((function(t){return{id:t,value:VL[t][2]}})),this.weekDays=HL.map((function(t,e){return{id:1<0?" "+django.gettext("and every event will be active for")+" "+this.rule.duration+" "+zL[this.rule.duration_unit]:django.gettext("with no duration")}return t.replace("$FIELD",n)},t.prototype.save=function(){var t=this;this.rules.save(this.rule).subscribe((function(){t.dialogRef.close(),t.onSave.emit(!0)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-calendar-rule"]],decls:73,vars:21,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],[1,"oneThird"],["matInput","","type","time",3,"ngModel","ngModelChange"],["matInput","","type","number",3,"ngModel","ngModelChange"],[3,"ngModel","ngModelChange"],[3,"value",4,"ngFor","ngForOf"],[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","ngModelChange"],["matSuffix","",3,"for"],["startDatePicker",""],["matInput","",3,"matDatepicker","ngModel","placeholder","ngModelChange"],["endDatePicker",""],[1,"weekdays"],[3,"ngModel","ngModelChange","valueChange"],["class","oneHalf mat-form-field-infix",4,"ngIf"],["class","oneHalf",4,"ngIf"],[1,"info"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"disabled","click"],[3,"value"],[1,"oneHalf","mat-form-field-infix"],[1,"label-weekdays"],["multiple","",3,"ngModel","ngModelChange"],["matSuffix",""]],template:function(t,e){if(1&t&&(Fa(0,"h4",0),Aa(1,RL,2,0,"uds-translate",1),Aa(2,ML,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Name"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.rule.name=t})),La(),La(),Fa(10,"mat-form-field"),Fa(11,"mat-label"),Fa(12,"uds-translate"),_s(13,"Comments"),La(),La(),Fa(14,"input",3),qa("ngModelChange",(function(t){return e.rule.comments=t})),La(),La(),Fa(15,"h3"),Fa(16,"uds-translate"),_s(17,"Event"),La(),La(),Fa(18,"mat-form-field",4),Fa(19,"mat-label"),Fa(20,"uds-translate"),_s(21,"Start time"),La(),La(),Fa(22,"input",5),qa("ngModelChange",(function(t){return e.startTime=t})),La(),La(),Fa(23,"mat-form-field",4),Fa(24,"mat-label"),Fa(25,"uds-translate"),_s(26,"Duration"),La(),La(),Fa(27,"input",6),qa("ngModelChange",(function(t){return e.rule.duration=t})),La(),La(),Fa(28,"mat-form-field",4),Fa(29,"mat-label"),Fa(30,"uds-translate"),_s(31,"Duration units"),La(),La(),Fa(32,"mat-select",7),qa("ngModelChange",(function(t){return e.rule.duration_unit=t})),Aa(33,FL,2,2,"mat-option",8),La(),La(),Fa(34,"h3"),_s(35," Repetition "),La(),Fa(36,"mat-form-field",9),Fa(37,"mat-label"),Fa(38,"uds-translate"),_s(39," Start date "),La(),La(),Fa(40,"input",10),qa("ngModelChange",(function(t){return e.startDate=t})),La(),ja(41,"mat-datepicker-toggle",11),ja(42,"mat-datepicker",null,12),La(),Fa(44,"mat-form-field",9),Fa(45,"mat-label"),Fa(46,"uds-translate"),_s(47," Repeat until date "),La(),La(),Fa(48,"input",13),qa("ngModelChange",(function(t){return e.endDate=t})),La(),ja(49,"mat-datepicker-toggle",11),ja(50,"mat-datepicker",null,14),La(),Fa(52,"div",15),Fa(53,"mat-form-field",9),Fa(54,"mat-label"),Fa(55,"uds-translate"),_s(56,"Frequency"),La(),La(),Fa(57,"mat-select",16),qa("ngModelChange",(function(t){return e.rule.frequency=t}))("valueChange",(function(t){return e.rule.interval=1})),Aa(58,LL,2,2,"mat-option",8),La(),La(),Aa(59,NL,6,2,"div",17),Aa(60,BL,7,2,"mat-form-field",18),La(),Fa(61,"h3"),Fa(62,"uds-translate"),_s(63,"Summary"),La(),La(),Fa(64,"div",19),_s(65),La(),La(),La(),Fa(66,"mat-dialog-actions"),Fa(67,"button",20),Fa(68,"uds-translate"),_s(69,"Cancel"),La(),La(),Fa(70,"button",21),qa("click",(function(t){return e.save()})),Fa(71,"uds-translate"),_s(72,"Ok"),La(),La(),La()),2&t){var n=Oa(43),i=Oa(51);vr(1),Ra("ngIf",e.rule.id),vr(1),Ra("ngIf",!e.rule.id),vr(7),Ra("ngModel",e.rule.name),vr(5),Ra("ngModel",e.rule.comments),vr(8),Ra("ngModel",e.startTime),vr(5),Ra("ngModel",e.rule.duration),vr(5),Ra("ngModel",e.rule.duration_unit),vr(1),Ra("ngForOf",e.dunits),vr(7),Ra("matDatepicker",n)("ngModel",e.startDate),vr(1),Ra("for",n),vr(7),Ra("matDatepicker",i)("ngModel",e.endDate)("placeholder",e.FOREVER_STRING),vr(1),Ra("for",i),vr(8),Ra("ngModel",e.rule.frequency),vr(1),Ra("ngForOf",e.freqs),vr(1),Ra("ngIf","WEEKDAYS"===e.rule.frequency),vr(1),Ra("ngIf","WEEKDAYS"!==e.rule.frequency),vr(5),Cs(" ",e.summary()," "),vr(5),Ra("disabled",null!==e.updateRuleData()||""===e.rule.name)}},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,MD,_A,xd,bL,wL,iD,mL,ux,mx,ox,VC,IL,PL],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%]:not(.oneThird):not(.oneHalf){width:100%}.mat-form-field.oneThird[_ngcontent-%COMP%]{width:31%;margin-right:2%}.mat-form-field.oneHalf[_ngcontent-%COMP%]{width:48%;margin-right:2%}h3[_ngcontent-%COMP%]{width:100%;margin-top:.3rem;margin-bottom:1rem}.weekdays[_ngcontent-%COMP%]{width:100%;display:flex;align-items:flex-end}.label-weekdays[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.mat-datepicker-toggle[_ngcontent-%COMP%]{color:#00f}.mat-button-toggle-checked[_ngcontent-%COMP%]{background-color:rgba(35,35,133,.5);color:#fff}"]}),t}();function WL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Rules"),La())}function GL(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),Fa(3,"mat-tab"),Aa(4,WL,2,0,"ng-template",9),Fa(5,"div",10),Fa(6,"uds-table",11),qa("newAction",(function(t){return Ue(n),Za().onNewRule(t)}))("editAction",(function(t){return Ue(n),Za().onEditRule(t)}))("deleteAction",(function(t){return Ue(n),Za().onDeleteRule(t)})),La(),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("@.disabled",!0),vr(4),Ra("rest",i.calendarRules)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","calendars-d-rules"+i.calendar.id)}}var YL=function(t){return["/pools","calendars",t]},KL=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("calendar");this.rest.calendars.get(e).subscribe((function(e){t.calendar=e,t.calendarRules=t.rest.calendars.detail(e.id,"rules")}))},t.prototype.onNewRule=function(t){qL.launch(this.api,this.calendarRules).subscribe((function(){return t.table.overview()}))},t.prototype.onEditRule=function(t){qL.launch(this.api,this.calendarRules,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDeleteRule=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete calendar rule"))},t.prototype.processElement=function(t){!function(t){t.interval="WEEKDAYS"===t.frequency?UL(t.interval):t.interval+" "+VL[t.frequency][django.pluralidx(t.interval)],t.duration=t.duration+" "+zL[t.duration_unit]}(t)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-calendars-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","pools",3,"rest","multiSelect","allowExport","onItem","tableId","newAction","editAction","deleteAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,GL,7,6,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,YL,e.calendar?e.calendar.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/calendars.png"),qi),vr(1),Cs(" ",null==e.calendar?null:e.calendar.name," "),vr(1),Ra("ngIf",e.calendar))},directives:[Rg,Sd,ek,Kx,Yx,JP,vx],styles:[".mat-column-end, .mat-column-frequency, .mat-column-start{max-width:9rem} .mat-column-duration, .mat-column-interval{max-width:11rem}"]}),t}(),ZL='event'+django.gettext("Set time mark")+"",$L=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n,this.customButtons=[{id:"timemark",html:ZL,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){this.api.gui.forms.typedNewForm(t,django.gettext("New account"))},t.prototype.onEdit=function(t){this.api.gui.forms.typedEditForm(t,django.gettext("Edit account"))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account"))},t.prototype.onTimeMark=function(t){var e=this,n=t.table.selection.selected[0];this.api.gui.yesno(django.gettext("Time mark"),django.gettext("Set time mark for $NAME to current date/time?").replace("$NAME",n.name)).subscribe((function(i){i&&e.rest.accounts.timemark(n.id).subscribe((function(){e.api.gui.snackbar.open(django.gettext("Time mark stabliched"),django.gettext("dismiss"),{duration:2e3}),t.table.overview()}))}))},t.prototype.onDetail=function(t){this.api.navigation.gotoAccountDetail(t.param.id)},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("account"))},t.prototype.processElement=function(t){t.time_mark=78793200===t.time_mark?django.gettext("No time mark"):FI("SHORT_DATE_FORMAT",t.time_mark)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-accounts"]],decls:1,vars:6,consts:[["icon","accounts",3,"rest","multiSelect","allowExport","hasPermissions","customButtons","onItem","customButtonAction","newAction","editAction","deleteAction","detailAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("customButtonAction",(function(t){return e.onTimeMark(t)}))("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("detailAction",(function(t){return e.onDetail(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.accounts)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)("customButtons",e.customButtons)("onItem",e.processElement)},directives:[JP],styles:[""]}),t}();function XL(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Account usage"),La())}function QL(t,e){if(1&t){var n=za();Fa(0,"div",6),Fa(1,"div",7),Fa(2,"mat-tab-group",8),Fa(3,"mat-tab"),Aa(4,XL,2,0,"ng-template",9),Fa(5,"div",10),Fa(6,"uds-table",11),qa("deleteAction",(function(t){return Ue(n),Za().onDeleteUsage(t)})),La(),La(),La(),La(),La(),La()}if(2&t){var i=Za();vr(2),Ra("@.disabled",!0),vr(4),Ra("rest",i.accountUsage)("multiSelect",!0)("allowExport",!0)("onItem",i.processElement)("tableId","account-d-usage"+i.account.id)}}var JL=function(t){return["/pools","accounts",t]},tj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){var t=this,e=this.route.snapshot.paramMap.get("account");this.rest.accounts.get(e).subscribe((function(e){t.account=e,t.accountUsage=t.rest.accounts.detail(e.id,"usage")}))},t.prototype.onDeleteUsage=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete account usage"))},t.prototype.processElement=function(t){t.running=this.api.yesno(t.running)},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-accounts-detail"]],decls:9,vars:6,consts:[[1,"detail"],[1,"mat-elevation-z4","title"],[3,"routerLink"],[1,"material-icons"],[3,"src"],["class","card",4,"ngIf"],[1,"card"],[1,"card-content"],["backgroundColor","primary"],["mat-tab-label",""],[1,"content"],["icon","accounts",3,"rest","multiSelect","allowExport","onItem","tableId","deleteAction"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"div",1),Fa(2,"a",2),Fa(3,"i",3),_s(4,"arrow_back"),La(),La(),_s(5," \xa0"),ja(6,"img",4),_s(7),La(),Aa(8,QL,7,6,"div",5),La()),2&t&&(vr(2),Ra("routerLink",Vu(4,JL,e.account?e.account.id:"")),vr(4),Ra("src",e.api.staticURL("admin/img/icons/accounts.png"),qi),vr(1),Cs(" ",null==e.account?null:e.account.name," "),vr(1),Ra("ngIf",e.account))},directives:[Rg,Sd,ek,Kx,Yx,JP,vx],styles:[""]}),t}();function ej(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"New image for"),La())}function nj(t,e){1&t&&(Fa(0,"uds-translate"),_s(1,"Edit for"),La())}var ij=function(){function t(t,e,n,i){this.api=t,this.rest=e,this.dialogRef=n,this.onSave=new Zu(!0),this.preview="",this.image={id:void 0,data:"",name:""},i.image&&(this.image.id=i.image.id)}return t.launch=function(e,n){void 0===n&&(n=null);var i=window.innerWidth<800?"60%":"40%";return e.gui.dialog.open(t,{width:i,position:{top:window.innerWidth<800?"0px":"7rem"},data:{image:n},disableClose:!0}).componentInstance.onSave},t.prototype.onFileChanged=function(t){var e=this,n=t.target.files[0];if(n.size>262144)this.api.gui.alert(django.gettext("Error"),django.gettext("Image is too big (max. upload size is 256Kb)"));else if(["image/jpeg","image/png","image/gif"].includes(n.type)){var i=new FileReader;i.onload=function(t){var r=i.result;e.preview=r,e.image.data=r.substr(r.indexOf("base64,")+7),e.image.name||(e.image.name=n.name)},i.readAsDataURL(n)}else this.api.gui.alert(django.gettext("Error"),django.gettext("Invalid image type (only supports JPEG, PNG and GIF"))},t.prototype.ngOnInit=function(){var t=this;this.image.id&&this.rest.gallery.get(this.image.id).subscribe((function(e){switch(t.image=e,t.image.data.substr(2)){case"iV":t.preview="data:image/png;base64,"+t.image.data;break;case"/9":t.preview="data:image/jpeg;base64,"+t.image.data;break;default:t.preview="data:image/gif;base64,"+t.image.data}}))},t.prototype.background=function(){var t=this.api.config.image_size[0],e=this.api.config.image_size[1],n={"width.px":t,"height.px":e,"background-size":t+"px "+e+"px"};return this.preview&&(n["background-image"]="url("+this.preview+")"),n},t.prototype.save=function(){var t=this;this.image.name&&this.image.data?this.rest.gallery.save(this.image).subscribe((function(){t.api.gui.snackbar.open(django.gettext("Successfully saved"),django.gettext("dismiss"),{duration:2e3}),t.dialogRef.close(),t.onSave.emit(!0)})):this.api.gui.alert(django.gettext("Error"),django.gettext("Please, provide a name and a image"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-gallery-image"]],decls:32,vars:7,consts:[["mat-dialog-title",""],[4,"ngIf"],[1,"content"],["matInput","","type","text",3,"ngModel","ngModelChange"],["type","file",2,"display","none",3,"change"],["fileInput",""],["matInput","","type","text",3,"hidden","click"],[1,"preview",3,"click"],[1,"image-preview",3,"ngStyle"],[1,"help"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"]],template:function(t,e){if(1&t){var n=za();Fa(0,"h4",0),Aa(1,ej,2,0,"uds-translate",1),Aa(2,nj,2,0,"uds-translate",1),La(),Fa(3,"mat-dialog-content"),Fa(4,"div",2),Fa(5,"mat-form-field"),Fa(6,"mat-label"),Fa(7,"uds-translate"),_s(8,"Image name"),La(),La(),Fa(9,"input",3),qa("ngModelChange",(function(t){return e.image.name=t})),La(),La(),Fa(10,"input",4,5),qa("change",(function(t){return e.onFileChanged(t)})),La(),Fa(12,"mat-form-field"),Fa(13,"mat-label"),Fa(14,"uds-translate"),_s(15,"Image (click to change)"),La(),La(),Fa(16,"input",6),qa("click",(function(t){return Ue(n),Oa(11).click()})),La(),Fa(17,"div",7),qa("click",(function(t){return Ue(n),Oa(11).click()})),ja(18,"div",8),La(),La(),Fa(19,"div",9),Fa(20,"uds-translate"),_s(21,' For optimal results, use "squared" images. '),La(),Fa(22,"uds-translate"),_s(23," The image will be resized on upload to "),La(),_s(24),La(),La(),La(),Fa(25,"mat-dialog-actions"),Fa(26,"button",10),Fa(27,"uds-translate"),_s(28,"Cancel"),La(),La(),Fa(29,"button",11),qa("click",(function(t){return e.save()})),Fa(30,"uds-translate"),_s(31,"Ok"),La(),La(),La()}2&t&&(vr(1),Ra("ngIf",!e.image.id),vr(1),Ra("ngIf",e.image.id),vr(7),Ra("ngModel",e.image.name),vr(7),Ra("hidden",!0),vr(2),Ra("ngStyle",e.background()),vr(6),xs(" ",e.api.config.image_size[0],"x",e.api.config.image_size[1]," "))},directives:[ax,Sd,sx,sD,tD,vx,uI,mD,wD,AE,Md,ux,mx,ox],styles:[".mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}.content[_ngcontent-%COMP%]{margin-top:.5rem;display:flex;flex-wrap:wrap}.content[_ngcontent-%COMP%], .mat-form-field[_ngcontent-%COMP%], .preview[_ngcontent-%COMP%]{width:100%}.preview[_ngcontent-%COMP%]{display:flex;justify-content:flex-start}.image-preview[_ngcontent-%COMP%]{background-color:rgba(0,0,0,.3)}"]}),t}(),rj=function(){function t(t,e,n){this.route=t,this.rest=e,this.api=n}return t.prototype.ngOnInit=function(){},t.prototype.onNew=function(t){ij.launch(this.api).subscribe((function(){return t.table.overview()}))},t.prototype.onEdit=function(t){ij.launch(this.api,t.table.selection.selected[0]).subscribe((function(){return t.table.overview()}))},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete image"))},t.prototype.onLoad=function(t){!0===t.param&&t.table.selectElement("id",this.route.snapshot.paramMap.get("image"))},t.\u0275fac=function(e){return new(e||t)(Ia(wm),Ia(SS),Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-gallery"]],decls:1,vars:4,consts:[["icon","gallery",3,"rest","multiSelect","allowExport","hasPermissions","newAction","editAction","deleteAction","loaded"]],template:function(t,e){1&t&&(Fa(0,"uds-table",0),qa("newAction",(function(t){return e.onNew(t)}))("editAction",(function(t){return e.onEdit(t)}))("deleteAction",(function(t){return e.onDelete(t)}))("loaded",(function(t){return e.onLoad(t)})),La()),2&t&&Ra("rest",e.rest.gallery)("multiSelect",!0)("allowExport",!0)("hasPermissions",!0)},directives:[JP],styles:[".mat-column-thumb{max-width:7rem;justify-content:center} .mat-column-name{max-width:32rem}"]}),t}(),oj='assessment'+django.gettext("Generate report")+"",aj=function(){function t(t,e){this.rest=t,this.api=e,this.customButtons=[{id:"genreport",html:oj,type:jk.SINGLE_SELECT}]}return t.prototype.ngOnInit=function(){},t.prototype.generateReport=function(t){var e=this,n=new Zu;n.subscribe((function(n){e.api.gui.snackbar.open(django.gettext("Generating report...")),e.rest.reports.save(n,t.table.selection.selected[0].id).subscribe((function(t){for(var n=t.encoded?window.atob(t.data):t.data,i=n.length,r=new Uint8Array(i),o=0;o div[_ngcontent-%COMP%]{width:50%}.mat-form-field[_ngcontent-%COMP%]{width:100%}input[readonly][_ngcontent-%COMP%]{background-color:#e0e0e0}.slider-label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}.config-footer[_ngcontent-%COMP%]{display:flex;justify-content:center;width:100%;margin-top:2rem;margin-bottom:2rem}"]}),t}(),kj=function(){function t(t,e,n){this.api=t,this.route=e,this.rest=n}return t.prototype.ngOnInit=function(){},t.prototype.onDelete=function(t){this.api.gui.forms.deleteForm(t,django.gettext("Delete actor token - USE WITH EXTREME CAUTION!!!"))},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(wm),Ia(SS))},t.\u0275cmp=we({type:t,selectors:[["uds-actor-tokens"]],decls:2,vars:3,consts:[["icon","maleta",3,"rest","multiSelect","allowExport"]],template:function(t,e){1&t&&(Fa(0,"div"),ja(1,"uds-table",0),La()),2&t&&(vr(1),Ra("rest",e.rest.actorToken)("multiSelect",!0)("allowExport",!0))},directives:[JP],styles:[""]}),t}(),Sj=[{path:"",canActivate:[oS],children:[{path:"",redirectTo:"summary",pathMatch:"full"},{path:"summary",component:OS},{path:"providers",component:iT},{path:"providers/:provider/detail",component:ET},{path:"providers/:provider",component:iT},{path:"providers/:provider/detail/:service",component:ET},{path:"authenticators",component:AT},{path:"authenticators/:authenticator/detail",component:JR},{path:"authenticators/:authenticator",component:AT},{path:"authenticators/:authenticator/detail/groups/:group",component:JR},{path:"authenticators/:authenticator/detail/users/:user",component:JR},{path:"osmanagers",component:tM},{path:"osmanagers/:osmanager",component:tM},{path:"transports",component:eM},{path:"transports/:transport",component:eM},{path:"networks",component:nM},{path:"networks/:network",component:nM},{path:"proxies",component:iM},{path:"proxies/:proxy",component:iM},{path:"pools/service-pools",component:rM},{path:"pools/service-pools/:pool",component:rM},{path:"pools/service-pools/:pool/detail",component:vF},{path:"pools/meta-pools",component:bF},{path:"pools/meta-pools/:metapool",component:bF},{path:"pools/meta-pools/:metapool/detail",component:MF},{path:"pools/pool-groups",component:FF},{path:"pools/pool-groups/:poolgroup",component:FF},{path:"pools/calendars",component:LF},{path:"pools/calendars/:calendar",component:LF},{path:"pools/calendars/:calendar/detail",component:KL},{path:"pools/accounts",component:$L},{path:"pools/accounts/:account",component:$L},{path:"pools/accounts/:account/detail",component:tj},{path:"tools/gallery",component:rj},{path:"tools/gallery/:image",component:rj},{path:"tools/reports",component:aj},{path:"tools/reports/:report",component:aj},{path:"tools/configuration",component:xj},{path:"tools/actor_tokens",component:kj}]},{path:"**",redirectTo:"summary"}],Dj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[Zg.forRoot(Sj)],Zg]}),t}(),Ej=["input"],Aj=function(){return{enterDuration:150}},Oj=["*"],Ij=new Gt("mat-checkbox-click-action"),Pj=0,Tj={provide:cD,useExisting:It((function(){return Fj})),multi:!0},Rj=function(){var t={Init:0,Checked:1,Unchecked:2,Indeterminate:3};return t[t.Init]="Init",t[t.Checked]="Checked",t[t.Unchecked]="Unchecked",t[t.Indeterminate]="Indeterminate",t}(),Mj=function(){return function(){}}(),Fj=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e)||this;return u._changeDetectorRef=n,u._focusMonitor=i,u._ngZone=r,u._clickAction=a,u._animationMode=s,u.ariaLabel="",u.ariaLabelledby=null,u._uniqueId="mat-checkbox-"+ ++Pj,u.id=u._uniqueId,u.labelPosition="after",u.name=null,u.change=new Zu,u.indeterminateChange=new Zu,u._onTouched=function(){},u._currentAnimationClass="",u._currentCheckState=Rj.Init,u._controlValueAccessorChangeFn=function(){},u._checked=!1,u._disabled=!1,u._indeterminate=!1,u.tabIndex=parseInt(o)||0,u._focusMonitor.monitor(e,!0).subscribe((function(t){t||Promise.resolve().then((function(){u._onTouched(),n.markForCheck()}))})),u}return r(e,t),Object.defineProperty(e.prototype,"inputId",{get:function(){return(this.id||this._uniqueId)+"-input"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterViewChecked=function(){},e.prototype.ngOnDestroy=function(){this._focusMonitor.stopMonitoring(this._elementRef)},Object.defineProperty(e.prototype,"checked",{get:function(){return this._checked},set:function(t){t!=this.checked&&(this._checked=t,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this._disabled},set:function(t){var e=Ly(t);e!==this.disabled&&(this._disabled=e,this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"indeterminate",{get:function(){return this._indeterminate},set:function(t){var e=t!=this._indeterminate;this._indeterminate=t,e&&(this._transitionCheckState(this._indeterminate?Rj.Indeterminate:this.checked?Rj.Checked:Rj.Unchecked),this.indeterminateChange.emit(this._indeterminate))},enumerable:!0,configurable:!0}),e.prototype._isRippleDisabled=function(){return this.disableRipple||this.disabled},e.prototype._onLabelTextChange=function(){this._changeDetectorRef.detectChanges()},e.prototype.writeValue=function(t){this.checked=!!t},e.prototype.registerOnChange=function(t){this._controlValueAccessorChangeFn=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t},e.prototype._getAriaChecked=function(){return this.checked?"true":this.indeterminate?"mixed":"false"},e.prototype._transitionCheckState=function(t){var e=this._currentCheckState,n=this._elementRef.nativeElement;if(e!==t&&(this._currentAnimationClass.length>0&&n.classList.remove(this._currentAnimationClass),this._currentAnimationClass=this._getAnimationClassForCheckStateTransition(e,t),this._currentCheckState=t,this._currentAnimationClass.length>0)){n.classList.add(this._currentAnimationClass);var i=this._currentAnimationClass;this._ngZone.runOutsideAngular((function(){setTimeout((function(){n.classList.remove(i)}),1e3)}))}},e.prototype._emitChangeEvent=function(){var t=new Mj;t.source=this,t.checked=this.checked,this._controlValueAccessorChangeFn(this.checked),this.change.emit(t)},e.prototype.toggle=function(){this.checked=!this.checked},e.prototype._onInputClick=function(t){var e=this;t.stopPropagation(),this.disabled||"noop"===this._clickAction?this.disabled||"noop"!==this._clickAction||(this._inputElement.nativeElement.checked=this.checked,this._inputElement.nativeElement.indeterminate=this.indeterminate):(this.indeterminate&&"check"!==this._clickAction&&Promise.resolve().then((function(){e._indeterminate=!1,e.indeterminateChange.emit(e._indeterminate)})),this.toggle(),this._transitionCheckState(this._checked?Rj.Checked:Rj.Unchecked),this._emitChangeEvent())},e.prototype.focus=function(t,e){void 0===t&&(t="keyboard"),this._focusMonitor.focusVia(this._inputElement,t,e)},e.prototype._onInteractionEvent=function(t){t.stopPropagation()},e.prototype._getAnimationClassForCheckStateTransition=function(t,e){if("NoopAnimations"===this._animationMode)return"";var n="";switch(t){case Rj.Init:if(e===Rj.Checked)n="unchecked-checked";else{if(e!=Rj.Indeterminate)return"";n="unchecked-indeterminate"}break;case Rj.Unchecked:n=e===Rj.Checked?"unchecked-checked":"unchecked-indeterminate";break;case Rj.Checked:n=e===Rj.Unchecked?"checked-unchecked":"checked-indeterminate";break;case Rj.Indeterminate:n=e===Rj.Checked?"indeterminate-checked":"indeterminate-unchecked"}return"mat-checkbox-anim-"+n},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Ko),Ia(Pb),Ia(Vl),Pa("tabindex"),Ia(Ij,8),Ia(Hw,8))},e.\u0275cmp=we({type:e,selectors:[["mat-checkbox"]],viewQuery:function(t,e){var n;1&t&&(ul(Ej,!0),ul(PC,!0)),2&t&&(al(n=hl())&&(e._inputElement=n.first),al(n=hl())&&(e.ripple=n.first))},hostAttrs:[1,"mat-checkbox"],hostVars:12,hostBindings:function(t,e){2&t&&(ks("id",e.id),Da("tabindex",null),ls("mat-checkbox-indeterminate",e.indeterminate)("mat-checkbox-checked",e.checked)("mat-checkbox-disabled",e.disabled)("mat-checkbox-label-before","before"==e.labelPosition)("_mat-animation-noopable","NoopAnimations"===e._animationMode))},inputs:{disableRipple:"disableRipple",color:"color",tabIndex:"tabIndex",required:"required",checked:"checked",disabled:"disabled",indeterminate:"indeterminate",ariaLabel:["aria-label","ariaLabel"],ariaLabelledby:["aria-labelledby","ariaLabelledby"],id:"id",labelPosition:"labelPosition",name:"name",value:"value"},outputs:{change:"change",indeterminateChange:"indeterminateChange"},exportAs:["matCheckbox"],features:[Us([Tj]),Es],ngContentSelectors:Oj,decls:17,vars:20,consts:[[1,"mat-checkbox-layout"],["label",""],[1,"mat-checkbox-inner-container"],["type","checkbox",1,"mat-checkbox-input","cdk-visually-hidden",3,"id","required","checked","disabled","tabIndex","indeterminate","change","click"],["input",""],["matRipple","",1,"mat-checkbox-ripple",3,"matRippleTrigger","matRippleDisabled","matRippleRadius","matRippleCentered","matRippleAnimation"],[1,"mat-ripple-element","mat-checkbox-persistent-ripple"],[1,"mat-checkbox-frame"],[1,"mat-checkbox-background"],["version","1.1","focusable","false","viewBox","0 0 24 24",0,"xml","space","preserve",1,"mat-checkbox-checkmark"],["fill","none","stroke","white","d","M4.1,12.7 9,17.6 20.3,6.3",1,"mat-checkbox-checkmark-path"],[1,"mat-checkbox-mixedmark"],[1,"mat-checkbox-label",3,"cdkObserveContent"],["checkboxLabel",""],[2,"display","none"]],template:function(t,e){if(1&t&&(Xa(),Fa(0,"label",0,1),Fa(2,"div",2),Fa(3,"input",3,4),qa("change",(function(t){return e._onInteractionEvent(t)}))("click",(function(t){return e._onInputClick(t)})),La(),Fa(5,"div",5),ja(6,"div",6),La(),ja(7,"div",7),Fa(8,"div",8),pn(),Fa(9,"svg",9),ja(10,"path",10),La(),hn(),ja(11,"div",11),La(),La(),Fa(12,"span",12,13),qa("cdkObserveContent",(function(t){return e._onLabelTextChange()})),Fa(14,"span",14),_s(15,"\xa0"),La(),Qa(16),La(),La()),2&t){var n=Oa(1),i=Oa(13);Da("for",e.inputId),vr(2),ls("mat-checkbox-inner-container-no-side-margin",!i.textContent||!i.textContent.trim()),vr(1),Ra("id",e.inputId)("required",e.required)("checked",e.checked)("disabled",e.disabled)("tabIndex",e.tabIndex)("indeterminate",e.indeterminate),Da("value",e.value)("name",e.name)("aria-label",e.ariaLabel||null)("aria-labelledby",e.ariaLabelledby)("aria-checked",e._getAriaChecked()),vr(2),Ra("matRippleTrigger",n)("matRippleDisabled",e._isRippleDisabled())("matRippleRadius",20)("matRippleCentered",!0)("matRippleAnimation",Bu(19,Aj))}},directives:[PC,cb],styles:["@keyframes mat-checkbox-fade-in-background{0%{opacity:0}50%{opacity:1}}@keyframes mat-checkbox-fade-out-background{0%,50%{opacity:1}100%{opacity:0}}@keyframes mat-checkbox-unchecked-checked-checkmark-path{0%,50%{stroke-dashoffset:22.91026}50%{animation-timing-function:cubic-bezier(0,0,.2,.1)}100%{stroke-dashoffset:0}}@keyframes mat-checkbox-unchecked-indeterminate-mixedmark{0%,68.2%{transform:scaleX(0)}68.2%{animation-timing-function:cubic-bezier(0,0,0,1)}100%{transform:scaleX(1)}}@keyframes mat-checkbox-checked-unchecked-checkmark-path{from{animation-timing-function:cubic-bezier(.4,0,1,1);stroke-dashoffset:0}to{stroke-dashoffset:-22.91026}}@keyframes mat-checkbox-checked-indeterminate-checkmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(45deg)}}@keyframes mat-checkbox-indeterminate-checked-checkmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:0;transform:rotate(45deg)}to{opacity:1;transform:rotate(360deg)}}@keyframes mat-checkbox-checked-indeterminate-mixedmark{from{animation-timing-function:cubic-bezier(0,0,.2,.1);opacity:0;transform:rotate(-45deg)}to{opacity:1;transform:rotate(0)}}@keyframes mat-checkbox-indeterminate-checked-mixedmark{from{animation-timing-function:cubic-bezier(.14,0,0,1);opacity:1;transform:rotate(0)}to{opacity:0;transform:rotate(315deg)}}@keyframes mat-checkbox-indeterminate-unchecked-mixedmark{0%{animation-timing-function:linear;opacity:1;transform:scaleX(1)}100%,32.8%{opacity:0;transform:scaleX(0)}}.mat-checkbox-background,.mat-checkbox-frame{top:0;left:0;right:0;bottom:0;position:absolute;border-radius:2px;box-sizing:border-box;pointer-events:none}.mat-checkbox{transition:background .4s cubic-bezier(.25,.8,.25,1),box-shadow 280ms cubic-bezier(.4,0,.2,1);cursor:pointer;-webkit-tap-highlight-color:transparent}._mat-animation-noopable.mat-checkbox{transition:none;animation:none}.mat-checkbox .mat-ripple-element:not(.mat-checkbox-persistent-ripple){opacity:.16}.mat-checkbox-layout{-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:inherit;align-items:baseline;vertical-align:middle;display:inline-flex;white-space:nowrap}.mat-checkbox-label{-webkit-user-select:auto;-moz-user-select:auto;-ms-user-select:auto;user-select:auto}.mat-checkbox-inner-container{display:inline-block;height:16px;line-height:0;margin:auto;margin-right:8px;order:0;position:relative;vertical-align:middle;white-space:nowrap;width:16px;flex-shrink:0}[dir=rtl] .mat-checkbox-inner-container{margin-left:8px;margin-right:auto}.mat-checkbox-inner-container-no-side-margin{margin-left:0;margin-right:0}.mat-checkbox-frame{background-color:transparent;transition:border-color 90ms cubic-bezier(0,0,.2,.1);border-width:2px;border-style:solid}._mat-animation-noopable .mat-checkbox-frame{transition:none}@media (-ms-high-contrast:active){.mat-checkbox.cdk-keyboard-focused .mat-checkbox-frame{border-style:dotted}}.mat-checkbox-background{align-items:center;display:inline-flex;justify-content:center;transition:background-color 90ms cubic-bezier(0,0,.2,.1),opacity 90ms cubic-bezier(0,0,.2,.1)}._mat-animation-noopable .mat-checkbox-background{transition:none}.mat-checkbox-persistent-ripple{width:100%;height:100%;transform:none}.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:.04}.mat-checkbox.cdk-keyboard-focused .mat-checkbox-persistent-ripple{opacity:.12}.mat-checkbox-persistent-ripple,.mat-checkbox.mat-checkbox-disabled .mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{opacity:0}@media (hover:none){.mat-checkbox-inner-container:hover .mat-checkbox-persistent-ripple{display:none}}.mat-checkbox-checkmark{top:0;left:0;right:0;bottom:0;position:absolute;width:100%}.mat-checkbox-checkmark-path{stroke-dashoffset:22.91026;stroke-dasharray:22.91026;stroke-width:2.13333px}.mat-checkbox-mixedmark{width:calc(100% - 6px);height:2px;opacity:0;transform:scaleX(0) rotate(0);border-radius:2px}@media (-ms-high-contrast:active){.mat-checkbox-mixedmark{height:0;border-top:solid 2px;margin-top:2px}}.mat-checkbox-label-before .mat-checkbox-inner-container{order:1;margin-left:8px;margin-right:auto}[dir=rtl] .mat-checkbox-label-before .mat-checkbox-inner-container{margin-left:auto;margin-right:8px}.mat-checkbox-checked .mat-checkbox-checkmark{opacity:1}.mat-checkbox-checked .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-checked .mat-checkbox-mixedmark{transform:scaleX(1) rotate(-45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark{opacity:0;transform:rotate(45deg)}.mat-checkbox-indeterminate .mat-checkbox-checkmark-path{stroke-dashoffset:0}.mat-checkbox-indeterminate .mat-checkbox-mixedmark{opacity:1;transform:scaleX(1) rotate(0)}.mat-checkbox-unchecked .mat-checkbox-background{background-color:transparent}.mat-checkbox-disabled{cursor:default}.mat-checkbox-anim-unchecked-checked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-checked .mat-checkbox-checkmark-path{animation:180ms linear 0s mat-checkbox-unchecked-checked-checkmark-path}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-in-background}.mat-checkbox-anim-unchecked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-unchecked-indeterminate-mixedmark}.mat-checkbox-anim-checked-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-checked-unchecked .mat-checkbox-checkmark-path{animation:90ms linear 0s mat-checkbox-checked-unchecked-checkmark-path}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-checkmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-checkmark}.mat-checkbox-anim-checked-indeterminate .mat-checkbox-mixedmark{animation:90ms linear 0s mat-checkbox-checked-indeterminate-mixedmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-checkmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-checkmark}.mat-checkbox-anim-indeterminate-checked .mat-checkbox-mixedmark{animation:.5s linear 0s mat-checkbox-indeterminate-checked-mixedmark}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-background{animation:180ms linear 0s mat-checkbox-fade-out-background}.mat-checkbox-anim-indeterminate-unchecked .mat-checkbox-mixedmark{animation:.3s linear 0s mat-checkbox-indeterminate-unchecked-mixedmark}.mat-checkbox-input{bottom:0;left:50%}.mat-checkbox .mat-checkbox-ripple{position:absolute;left:calc(50% - 20px);top:calc(50% - 20px);height:40px;width:40px;z-index:1;pointer-events:none}"],encapsulation:2,changeDetection:0}),e}(rC(nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"accent"))),Lj={provide:kD,useExisting:It((function(){return jj})),multi:!0},jj=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}r(e,t),e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-checkbox","required","","formControlName",""],["mat-checkbox","required","","formControl",""],["mat-checkbox","required","","ngModel",""]],features:[Us([Lj]),Es]});var n=ei(e);return e}(WE),Nj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),Bj=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,TC,tC,db,Nj],tC,Nj]}),t}(),Vj=["*"],zj=nC(iC(eC(function(){return function(t){this._elementRef=t}}())),"primary"),Hj=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-chip-avatar"],["","matChipAvatar",""]],hostAttrs:[1,"mat-chip-avatar"]}),t}(),Uj=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-chip-trailing-icon"],["","matChipTrailingIcon",""]],hostAttrs:[1,"mat-chip-trailing-icon"]}),t}(),qj=function(t){function e(e,n,i,r,o,a){var s=t.call(this,e)||this;return s._elementRef=e,s._ngZone=n,s._changeDetectorRef=a,s._hasFocus=!1,s.chipListSelectable=!0,s._chipListMultiple=!1,s._selected=!1,s._selectable=!0,s._removable=!0,s._onFocus=new P,s._onBlur=new P,s.selectionChange=new Zu,s.destroyed=new Zu,s.removed=new Zu,s._addHostClassName(),s._chipRipple=new OC(s,n,e,i),s._chipRipple.setupTriggerEvents(e),s.rippleConfig=r||{},s._animationsDisabled="NoopAnimations"===o,s}return r(e,t),Object.defineProperty(e.prototype,"rippleDisabled",{get:function(){return this.disabled||this.disableRipple||!!this.rippleConfig.disabled},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selected",{get:function(){return this._selected},set:function(t){var e=Ly(t);e!==this._selected&&(this._selected=e,this._dispatchSelectionChange())},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return void 0!==this._value?this._value:this._elementRef.nativeElement.textContent},set:function(t){this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable&&this.chipListSelectable},set:function(t){this._selectable=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"removable",{get:function(){return this._removable},set:function(t){this._removable=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ariaSelected",{get:function(){return this.selectable&&(this._chipListMultiple||this.selected)?this.selected.toString():null},enumerable:!0,configurable:!0}),e.prototype._addHostClassName=function(){var t=this._elementRef.nativeElement;t.hasAttribute("mat-basic-chip")||"mat-basic-chip"===t.tagName.toLowerCase()?t.classList.add("mat-basic-chip"):t.classList.add("mat-standard-chip")},e.prototype.ngOnDestroy=function(){this.destroyed.emit({chip:this}),this._chipRipple._removeTriggerEvents()},e.prototype.select=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.deselect=function(){this._selected&&(this._selected=!1,this._dispatchSelectionChange(),this._markForCheck())},e.prototype.selectViaInteraction=function(){this._selected||(this._selected=!0,this._dispatchSelectionChange(!0),this._markForCheck())},e.prototype.toggleSelected=function(t){return void 0===t&&(t=!1),this._selected=!this.selected,this._dispatchSelectionChange(t),this._markForCheck(),this.selected},e.prototype.focus=function(){this._hasFocus||(this._elementRef.nativeElement.focus(),this._onFocus.next({chip:this})),this._hasFocus=!0},e.prototype.remove=function(){this.removable&&this.removed.emit({chip:this})},e.prototype._handleClick=function(t){this.disabled?t.preventDefault():t.stopPropagation()},e.prototype._handleKeydown=function(t){if(!this.disabled)switch(t.keyCode){case 46:case 8:this.remove(),t.preventDefault();break;case 32:this.selectable&&this.toggleSelected(!0),t.preventDefault()}},e.prototype._blur=function(){var t=this;this._ngZone.onStable.asObservable().pipe(Kh(1)).subscribe((function(){t._ngZone.run((function(){t._hasFocus=!1,t._onBlur.next({chip:t})}))}))},e.prototype._dispatchSelectionChange=function(t){void 0===t&&(t=!1),this.selectionChange.emit({source:this,isUserInput:t,selected:this._selected})},e.prototype._markForCheck=function(){this._changeDetectorRef&&this._changeDetectorRef.markForCheck()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(Vl),Ia(gv),Ia(IC,8),Ia(Hw,8),Ia(Ko))},e.\u0275dir=Ee({type:e,selectors:[["mat-basic-chip"],["","mat-basic-chip",""],["mat-chip"],["","mat-chip",""]],contentQueries:function(t,e,n){var i;1&t&&(cl(n,Hj,!0),cl(n,Uj,!0),cl(n,Wj,!0)),2&t&&(al(i=hl())&&(e.avatar=i.first),al(i=hl())&&(e.trailingIcon=i.first),al(i=hl())&&(e.removeIcon=i.first))},hostAttrs:["role","option",1,"mat-chip"],hostVars:14,hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))("keydown",(function(t){return e._handleKeydown(t)}))("focus",(function(t){return e.focus()}))("blur",(function(t){return e._blur()})),2&t&&(Da("tabindex",e.disabled?null:-1)("disabled",e.disabled||null)("aria-disabled",e.disabled.toString())("aria-selected",e.ariaSelected),ls("mat-chip-selected",e.selected)("mat-chip-with-avatar",e.avatar)("mat-chip-with-trailing-icon",e.trailingIcon||e.removeIcon)("mat-chip-disabled",e.disabled)("_mat-animation-noopable",e._animationsDisabled))},inputs:{color:"color",disabled:"disabled",disableRipple:"disableRipple",selected:"selected",value:"value",selectable:"selectable",removable:"removable"},outputs:{selectionChange:"selectionChange",destroyed:"destroyed",removed:"removed"},exportAs:["matChip"],features:[Es]}),e}(zj),Wj=function(){function t(t){this._parentChip=t}return t.prototype._handleClick=function(t){var e=this._parentChip;e.removable&&!e.disabled&&e.remove(),t.stopPropagation()},t.\u0275fac=function(e){return new(e||t)(Ia(qj))},t.\u0275dir=Ee({type:t,selectors:[["","matChipRemove",""]],hostAttrs:[1,"mat-chip-remove","mat-chip-trailing-icon"],hostBindings:function(t,e){1&t&&qa("click",(function(t){return e._handleClick(t)}))}}),t}(),Gj=new Gt("mat-chips-default-options"),Yj=oC(function(){return function(t,e,n,i){this._defaultErrorStateMatcher=t,this._parentForm=e,this._parentFormGroup=n,this.ngControl=i}}()),Kj=0,Zj=function(){return function(t,e){this.source=t,this.value=e}}(),$j=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,a,r,o,s)||this;return u._elementRef=e,u._changeDetectorRef=n,u._dir=i,u.ngControl=s,u.controlType="mat-chip-list",u._lastDestroyedChipIndex=null,u._destroyed=new P,u._uid="mat-chip-list-"+Kj++,u._tabIndex=0,u._userTabIndex=null,u._onTouched=function(){},u._onChange=function(){},u._multiple=!1,u._compareWith=function(t,e){return t===e},u._required=!1,u._disabled=!1,u.ariaOrientation="horizontal",u._selectable=!0,u.change=new Zu,u.valueChange=new Zu,u.ngControl&&(u.ngControl.valueAccessor=u),u}return r(e,t),Object.defineProperty(e.prototype,"selected",{get:function(){return this.multiple?this._selectionModel.selected:this._selectionModel.selected[0]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"role",{get:function(){return this.empty?null:"listbox"},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"multiple",{get:function(){return this._multiple},set:function(t){this._multiple=Ly(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"compareWith",{get:function(){return this._compareWith},set:function(t){this._compareWith=t,this._selectionModel&&this._initializeSelection()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"value",{get:function(){return this._value},set:function(t){this.writeValue(t),this._value=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._chipInput?this._chipInput.id:this._uid},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"required",{get:function(){return this._required},set:function(t){this._required=Ly(t),this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"placeholder",{get:function(){return this._chipInput?this._chipInput.placeholder:this._placeholder},set:function(t){this._placeholder=t,this.stateChanges.next()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"focused",{get:function(){return this._chipInput&&this._chipInput.focused||this._hasFocusedChip()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"empty",{get:function(){return(!this._chipInput||this._chipInput.empty)&&0===this.chips.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"shouldLabelFloat",{get:function(){return!this.empty||this.focused},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"disabled",{get:function(){return this.ngControl?!!this.ngControl.disabled:this._disabled},set:function(t){this._disabled=Ly(t),this._syncChipsState()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"selectable",{get:function(){return this._selectable},set:function(t){var e=this;this._selectable=Ly(t),this.chips&&this.chips.forEach((function(t){return t.chipListSelectable=e._selectable}))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"tabIndex",{set:function(t){this._userTabIndex=t,this._tabIndex=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipSelectionChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t.selectionChange})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipFocusChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t._onFocus})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipBlurChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t._onBlur})))},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"chipRemoveChanges",{get:function(){return tt.apply(void 0,this.chips.map((function(t){return t.destroyed})))},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){var t=this;this._keyManager=new bb(this.chips).withWrap().withVerticalOrientation().withHorizontalOrientation(this._dir?this._dir.value:"ltr"),this._dir&&this._dir.change.pipe(av(this._destroyed)).subscribe((function(e){return t._keyManager.withHorizontalOrientation(e)})),this._keyManager.tabOut.pipe(av(this._destroyed)).subscribe((function(){t._allowFocusEscape()})),this.chips.changes.pipe(of(null),av(this._destroyed)).subscribe((function(){t.disabled&&Promise.resolve().then((function(){t._syncChipsState()})),t._resetChips(),t._initializeSelection(),t._updateTabIndex(),t._updateFocusForDestroyedChips(),t.stateChanges.next()}))},e.prototype.ngOnInit=function(){this._selectionModel=new xv(this.multiple,void 0,!1),this.stateChanges.next()},e.prototype.ngDoCheck=function(){this.ngControl&&this.updateErrorState()},e.prototype.ngOnDestroy=function(){this._destroyed.next(),this._destroyed.complete(),this.stateChanges.complete(),this._dropSubscriptions()},e.prototype.registerInput=function(t){this._chipInput=t},e.prototype.setDescribedByIds=function(t){this._ariaDescribedby=t.join(" ")},e.prototype.writeValue=function(t){this.chips&&this._setSelectionByValue(t,!1)},e.prototype.registerOnChange=function(t){this._onChange=t},e.prototype.registerOnTouched=function(t){this._onTouched=t},e.prototype.setDisabledState=function(t){this.disabled=t,this.stateChanges.next()},e.prototype.onContainerClick=function(t){this._originatesFromChip(t)||this.focus()},e.prototype.focus=function(t){this.disabled||this._chipInput&&this._chipInput.focused||(this.chips.length>0?(this._keyManager.setFirstItemActive(),this.stateChanges.next()):(this._focusInput(t),this.stateChanges.next()))},e.prototype._focusInput=function(t){this._chipInput&&this._chipInput.focus(t)},e.prototype._keydown=function(t){var e=t.target;8===t.keyCode&&this._isInputEmpty(e)?(this._keyManager.setLastItemActive(),t.preventDefault()):e&&e.classList.contains("mat-chip")&&(36===t.keyCode?(this._keyManager.setFirstItemActive(),t.preventDefault()):35===t.keyCode?(this._keyManager.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t),this.stateChanges.next())},e.prototype._updateTabIndex=function(){this._tabIndex=this._userTabIndex||(0===this.chips.length?-1:0)},e.prototype._updateFocusForDestroyedChips=function(){if(null!=this._lastDestroyedChipIndex)if(this.chips.length){var t=Math.min(this._lastDestroyedChipIndex,this.chips.length-1);this._keyManager.setActiveItem(t)}else this.focus();this._lastDestroyedChipIndex=null},e.prototype._isValidIndex=function(t){return t>=0&&t-1:e.has(n)},t.\u0275fac=function(e){return new(e||t)(Ia(Ks),Ia(Gj))},t.\u0275dir=Ee({type:t,selectors:[["input","matChipInputFor",""]],hostAttrs:[1,"mat-chip-input","mat-input-element"],hostVars:4,hostBindings:function(t,e){1&t&&qa("keydown",(function(t){return e._keydown(t)}))("blur",(function(t){return e._blur()}))("focus",(function(t){return e._focus()}))("input",(function(t){return e._onInput()})),2&t&&(ks("id",e.id),Da("disabled",e.disabled||null)("placeholder",e.placeholder||null)("aria-invalid",e._chipList&&e._chipList.ngControl?e._chipList.ngControl.invalid:null))},inputs:{separatorKeyCodes:["matChipInputSeparatorKeyCodes","separatorKeyCodes"],placeholder:"placeholder",id:"id",chipList:["matChipInputFor","chipList"],addOnBlur:["matChipInputAddOnBlur","addOnBlur"],disabled:"disabled"},outputs:{chipEnd:"matChipInputTokenEnd"},exportAs:["matChipInput","matChipInputFor"],features:[Rs()]}),t}(),Jj={separatorKeyCodes:[13]},tN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[_C,{provide:Gj,useValue:Jj}]}),t}(),eN=0,nN=function(){function t(){this._stateChanges=new P,this._openCloseAllActions=new P,this.id="cdk-accordion-"+eN++,this._multi=!1}return Object.defineProperty(t.prototype,"multi",{get:function(){return this._multi},set:function(t){this._multi=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.openAll=function(){this._openCloseAll(!0)},t.prototype.closeAll=function(){this._openCloseAll(!1)},t.prototype.ngOnChanges=function(t){this._stateChanges.next(t)},t.prototype.ngOnDestroy=function(){this._stateChanges.complete()},t.prototype._openCloseAll=function(t){this.multi&&this._openCloseAllActions.next(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["cdk-accordion"],["","cdkAccordion",""]],inputs:{multi:"multi"},exportAs:["cdkAccordion"],features:[Rs()]}),t}(),iN=0,rN=function(){function t(t,e,n){var i=this;this.accordion=t,this._changeDetectorRef=e,this._expansionDispatcher=n,this._openCloseAllSubscription=h.EMPTY,this.closed=new Zu,this.opened=new Zu,this.destroyed=new Zu,this.expandedChange=new Zu,this.id="cdk-accordion-child-"+iN++,this._expanded=!1,this._disabled=!1,this._removeUniqueSelectionListener=function(){},this._removeUniqueSelectionListener=n.listen((function(t,e){i.accordion&&!i.accordion.multi&&i.accordion.id===e&&i.id!==t&&(i.expanded=!1)})),this.accordion&&(this._openCloseAllSubscription=this._subscribeToOpenCloseAllActions())}return Object.defineProperty(t.prototype,"expanded",{get:function(){return this._expanded},set:function(t){t=Ly(t),this._expanded!==t&&(this._expanded=t,this.expandedChange.emit(t),t?(this.opened.emit(),this._expansionDispatcher.notify(this.id,this.accordion?this.accordion.id:this.id)):this.closed.emit(),this._changeDetectorRef.markForCheck())},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this._disabled},set:function(t){this._disabled=Ly(t)},enumerable:!0,configurable:!0}),t.prototype.ngOnDestroy=function(){this.opened.complete(),this.closed.complete(),this.destroyed.emit(),this.destroyed.complete(),this._removeUniqueSelectionListener(),this._openCloseAllSubscription.unsubscribe()},t.prototype.toggle=function(){this.disabled||(this.expanded=!this.expanded)},t.prototype.close=function(){this.disabled||(this.expanded=!1)},t.prototype.open=function(){this.disabled||(this.expanded=!0)},t.prototype._subscribeToOpenCloseAllActions=function(){var t=this;return this.accordion._openCloseAllActions.subscribe((function(e){t.disabled||(t.expanded=e)}))},t.\u0275fac=function(e){return new(e||t)(Ia(nN,12),Ia(Ko),Ia(kv))},t.\u0275dir=Ee({type:t,selectors:[["cdk-accordion-item"],["","cdkAccordionItem",""]],inputs:{expanded:"expanded",disabled:"disabled"},outputs:{closed:"closed",opened:"opened",destroyed:"destroyed",expandedChange:"expandedChange"},exportAs:["cdkAccordionItem"],features:[Us([{provide:nN,useValue:void 0}])]}),t}(),oN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)}}),t}(),aN=["body"];function sN(t,e){}var uN=[[["mat-expansion-panel-header"]],"*",[["mat-action-row"]]],lN=["mat-expansion-panel-header","*","mat-action-row"],cN=function(t,e){return{collapsedHeight:t,expandedHeight:e}},dN=function(t,e){return{value:t,params:e}};function pN(t,e){1&t&&ja(0,"span",2),2&t&&Ra("@indicatorRotate",Za()._getExpandedState())}var hN=[[["mat-panel-title"]],[["mat-panel-description"]],"*"],fN=["mat-panel-title","mat-panel-description","*"],mN=new Gt("MAT_ACCORDION"),gN={indicatorRotate:sy("indicatorRotate",[py("collapsed, void",dy({transform:"rotate(0deg)"})),py("expanded",dy({transform:"rotate(180deg)"})),fy("expanded <=> collapsed, void => collapsed",uy("225ms cubic-bezier(0.4,0.0,0.2,1)"))]),expansionHeaderHeight:sy("expansionHeight",[py("collapsed, void",dy({height:"{{collapsedHeight}}"}),{params:{collapsedHeight:"48px"}}),py("expanded",dy({height:"{{expandedHeight}}"}),{params:{expandedHeight:"64px"}}),fy("expanded <=> collapsed, void => collapsed",ly([gy("@indicatorRotate",my(),{optional:!0}),uy("225ms cubic-bezier(0.4,0.0,0.2,1)")]))]),bodyExpansion:sy("bodyExpansion",[py("collapsed, void",dy({height:"0px",visibility:"hidden"})),py("expanded",dy({height:"*",visibility:"visible"})),fy("expanded <=> collapsed, void => collapsed",uy("225ms cubic-bezier(0.4,0.0,0.2,1)"))])},yN=function(){function t(t){this._template=t}return t.\u0275fac=function(e){return new(e||t)(Ia(vu))},t.\u0275dir=Ee({type:t,selectors:[["ng-template","matExpansionPanelContent",""]]}),t}(),vN=0,bN=new Gt("MAT_EXPANSION_PANEL_DEFAULT_OPTIONS"),_N=function(t){function e(e,n,i,r,o,a,s){var u=t.call(this,e,n,i)||this;return u._viewContainerRef=r,u._animationMode=a,u._hideToggle=!1,u.afterExpand=new Zu,u.afterCollapse=new Zu,u._inputChanges=new P,u._headerId="mat-expansion-panel-header-"+vN++,u._bodyAnimationDone=new P,u.accordion=e,u._document=o,u._bodyAnimationDone.pipe($y((function(t,e){return t.fromState===e.fromState&&t.toState===e.toState}))).subscribe((function(t){"void"!==t.fromState&&("expanded"===t.toState?u.afterExpand.emit():"collapsed"===t.toState&&u.afterCollapse.emit())})),s&&(u.hideToggle=s.hideToggle),u}return r(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle||this.accordion&&this.accordion.hideToggle},set:function(t){this._hideToggle=Ly(t)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"togglePosition",{get:function(){return this._togglePosition||this.accordion&&this.accordion.togglePosition},set:function(t){this._togglePosition=t},enumerable:!0,configurable:!0}),e.prototype._hasSpacing=function(){return!!this.accordion&&"default"===(this.expanded?this.accordion.displayMode:this._getExpandedState())},e.prototype._getExpandedState=function(){return this.expanded?"expanded":"collapsed"},e.prototype.ngAfterContentInit=function(){var t=this;this._lazyContent&&this.opened.pipe(of(null),Hp((function(){return t.expanded&&!t._portal})),Kh(1)).subscribe((function(){t._portal=new xy(t._lazyContent._template,t._viewContainerRef)}))},e.prototype.ngOnChanges=function(t){this._inputChanges.next(t)},e.prototype.ngOnDestroy=function(){t.prototype.ngOnDestroy.call(this),this._bodyAnimationDone.complete(),this._inputChanges.complete()},e.prototype._containsFocus=function(){if(this._body){var t=this._document.activeElement,e=this._body.nativeElement;return t===e||e.contains(t)}return!1},e.\u0275fac=function(t){return new(t||e)(Ia(mN,12),Ia(Ko),Ia(kv),Ia(_u),Ia(vc),Ia(Hw,8),Ia(bN,8))},e.\u0275cmp=we({type:e,selectors:[["mat-expansion-panel"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,yN,!0),2&t&&al(i=hl())&&(e._lazyContent=i.first)},viewQuery:function(t,e){var n;1&t&&ul(aN,!0),2&t&&al(n=hl())&&(e._body=n.first)},hostAttrs:[1,"mat-expansion-panel"],hostVars:6,hostBindings:function(t,e){2&t&&ls("mat-expanded",e.expanded)("_mat-animation-noopable","NoopAnimations"===e._animationMode)("mat-expansion-panel-spacing",e._hasSpacing())},inputs:{disabled:"disabled",expanded:"expanded",hideToggle:"hideToggle",togglePosition:"togglePosition"},outputs:{opened:"opened",closed:"closed",expandedChange:"expandedChange",afterExpand:"afterExpand",afterCollapse:"afterCollapse"},exportAs:["matExpansionPanel"],features:[Us([{provide:mN,useValue:void 0}]),Es,Rs()],ngContentSelectors:lN,decls:7,vars:4,consts:[["role","region",1,"mat-expansion-panel-content",3,"id"],["body",""],[1,"mat-expansion-panel-body"],[3,"cdkPortalOutlet"]],template:function(t,e){1&t&&(Xa(uN),Qa(0),Fa(1,"div",0,1),qa("@bodyExpansion.done",(function(t){return e._bodyAnimationDone.next(t)})),Fa(3,"div",2),Qa(4,1),Aa(5,sN,0,0,"ng-template",3),La(),Qa(6,2),La()),2&t&&(vr(1),Ra("@bodyExpansion",e._getExpandedState())("id",e.id),Da("aria-labelledby",e._headerId),vr(4),Ra("cdkPortalOutlet",e._portal))},directives:[Ey],styles:[".mat-expansion-panel{box-sizing:content-box;display:block;margin:0;border-radius:4px;overflow:hidden;transition:margin 225ms cubic-bezier(.4,0,.2,1),box-shadow 280ms cubic-bezier(.4,0,.2,1)}.mat-accordion .mat-expansion-panel:not(.mat-expanded),.mat-accordion .mat-expansion-panel:not(.mat-expansion-panel-spacing){border-radius:0}.mat-accordion .mat-expansion-panel:first-of-type{border-top-right-radius:4px;border-top-left-radius:4px}.mat-accordion .mat-expansion-panel:last-of-type{border-bottom-right-radius:4px;border-bottom-left-radius:4px}@media (-ms-high-contrast:active){.mat-expansion-panel{outline:solid 1px}}.mat-expansion-panel._mat-animation-noopable,.mat-expansion-panel.ng-animate-disabled,.ng-animate-disabled .mat-expansion-panel{transition:none}.mat-expansion-panel-content{display:flex;flex-direction:column;overflow:visible}.mat-expansion-panel-body{padding:0 24px 16px}.mat-expansion-panel-spacing{margin:16px 0}.mat-accordion>.mat-expansion-panel-spacing:first-child,.mat-accordion>:first-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-top:0}.mat-accordion>.mat-expansion-panel-spacing:last-child,.mat-accordion>:last-child:not(.mat-expansion-panel) .mat-expansion-panel-spacing{margin-bottom:0}.mat-action-row{border-top-style:solid;border-top-width:1px;display:flex;flex-direction:row;justify-content:flex-end;padding:16px 8px 16px 24px}.mat-action-row button.mat-button-base{margin-left:8px}[dir=rtl] .mat-action-row button.mat-button-base{margin-left:0;margin-right:8px}"],encapsulation:2,data:{animation:[gN.bodyExpansion]},changeDetection:0}),e}(rN),wN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-action-row"]],hostAttrs:[1,"mat-action-row"]}),t}(),CN=function(){function t(t,e,n,i,r){var o=this;this.panel=t,this._element=e,this._focusMonitor=n,this._changeDetectorRef=i,this._parentChangeSubscription=h.EMPTY,this._animationsDisabled=!0;var a=t.accordion?t.accordion._stateChanges.pipe(Hp((function(t){return!(!t.hideToggle&&!t.togglePosition)}))):Oh;this._parentChangeSubscription=tt(t.opened,t.closed,a,t._inputChanges.pipe(Hp((function(t){return!!(t.hideToggle||t.disabled||t.togglePosition)})))).subscribe((function(){return o._changeDetectorRef.markForCheck()})),t.closed.pipe(Hp((function(){return t._containsFocus()}))).subscribe((function(){return n.focusVia(e,"program")})),n.monitor(e).subscribe((function(e){e&&t.accordion&&t.accordion._handleHeaderFocus(o)})),r&&(this.expandedHeight=r.expandedHeight,this.collapsedHeight=r.collapsedHeight)}return t.prototype._animationStarted=function(){this._animationsDisabled=!1},Object.defineProperty(t.prototype,"disabled",{get:function(){return this.panel.disabled},enumerable:!0,configurable:!0}),t.prototype._toggle=function(){this.panel.toggle()},t.prototype._isExpanded=function(){return this.panel.expanded},t.prototype._getExpandedState=function(){return this.panel._getExpandedState()},t.prototype._getPanelId=function(){return this.panel.id},t.prototype._getTogglePosition=function(){return this.panel.togglePosition},t.prototype._showToggle=function(){return!this.panel.hideToggle&&!this.panel.disabled},t.prototype._keydown=function(t){switch(t.keyCode){case 32:case 13:Py(t)||(t.preventDefault(),this._toggle());break;default:return void(this.panel.accordion&&this.panel.accordion._handleHeaderKeydown(t))}},t.prototype.focus=function(t,e){void 0===t&&(t="program"),this._focusMonitor.focusVia(this._element,t,e)},t.prototype.ngOnDestroy=function(){this._parentChangeSubscription.unsubscribe(),this._focusMonitor.stopMonitoring(this._element)},t.\u0275fac=function(e){return new(e||t)(Ia(_N,1),Ia(Ks),Ia(Pb),Ia(Ko),Ia(bN,8))},t.\u0275cmp=we({type:t,selectors:[["mat-expansion-panel-header"]],hostAttrs:["role","button",1,"mat-expansion-panel-header"],hostVars:19,hostBindings:function(t,e){1&t&&(Wa("@expansionHeight.start",(function(t){return e._animationStarted()})),qa("click",(function(t){return e._toggle()}))("keydown",(function(t){return e._keydown(t)}))),2&t&&(Da("id",e.panel._headerId)("tabindex",e.disabled?-1:0)("aria-controls",e._getPanelId())("aria-expanded",e._isExpanded())("aria-disabled",e.panel.disabled),Ss("@.disabled",e._animationsDisabled)("@expansionHeight",zu(16,dN,e._getExpandedState(),zu(13,cN,e.collapsedHeight,e.expandedHeight))),ls("mat-expanded",e._isExpanded())("mat-expansion-toggle-indicator-after","after"===e._getTogglePosition())("mat-expansion-toggle-indicator-before","before"===e._getTogglePosition()))},inputs:{expandedHeight:"expandedHeight",collapsedHeight:"collapsedHeight"},ngContentSelectors:fN,decls:5,vars:1,consts:[[1,"mat-content"],["class","mat-expansion-indicator",4,"ngIf"],[1,"mat-expansion-indicator"]],template:function(t,e){1&t&&(Xa(hN),Fa(0,"span",0),Qa(1),Qa(2,1),Qa(3,2),La(),Aa(4,pN,1,1,"span",1)),2&t&&(vr(4),Ra("ngIf",e._showToggle()))},directives:[Sd],styles:[".mat-expansion-panel-header{display:flex;flex-direction:row;align-items:center;padding:0 24px;border-radius:inherit}.mat-expansion-panel-header:focus,.mat-expansion-panel-header:hover{outline:0}.mat-expansion-panel-header.mat-expanded:focus,.mat-expansion-panel-header.mat-expanded:hover{background:inherit}.mat-expansion-panel-header:not([aria-disabled=true]){cursor:pointer}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before{flex-direction:row-reverse}.mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 16px 0 0}[dir=rtl] .mat-expansion-panel-header.mat-expansion-toggle-indicator-before .mat-expansion-indicator{margin:0 0 0 16px}.mat-content{display:flex;flex:1;flex-direction:row;overflow:hidden}.mat-expansion-panel-header-description,.mat-expansion-panel-header-title{display:flex;flex-grow:1;margin-right:16px}[dir=rtl] .mat-expansion-panel-header-description,[dir=rtl] .mat-expansion-panel-header-title{margin-right:0;margin-left:16px}.mat-expansion-panel-header-description{flex-grow:2}.mat-expansion-indicator::after{border-style:solid;border-width:0 2px 2px 0;content:'';display:inline-block;padding:3px;transform:rotate(45deg);vertical-align:middle}"],encapsulation:2,data:{animation:[gN.indicatorRotate,gN.expansionHeaderHeight]},changeDetection:0}),t}(),xN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-panel-description"]],hostAttrs:[1,"mat-expansion-panel-header-description"]}),t}(),kN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-panel-title"]],hostAttrs:[1,"mat-expansion-panel-header-title"]}),t}(),SN=function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e._hideToggle=!1,e.displayMode="default",e.togglePosition="after",e}r(e,t),Object.defineProperty(e.prototype,"hideToggle",{get:function(){return this._hideToggle},set:function(t){this._hideToggle=Ly(t)},enumerable:!0,configurable:!0}),e.prototype.ngAfterContentInit=function(){this._keyManager=new bb(this._headers).withWrap()},e.prototype._handleHeaderKeydown=function(t){var e=t.keyCode,n=this._keyManager;36===e?Py(t)||(n.setFirstItemActive(),t.preventDefault()):35===e?Py(t)||(n.setLastItemActive(),t.preventDefault()):this._keyManager.onKeydown(t)},e.prototype._handleHeaderFocus=function(t){this._keyManager.updateActiveItem(t)},e.\u0275fac=function(t){return n(t||e)},e.\u0275dir=Ee({type:e,selectors:[["mat-accordion"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,CN,!0),2&t&&al(i=hl())&&(e._headers=i)},hostAttrs:[1,"mat-accordion"],inputs:{multi:"multi",hideToggle:"hideToggle",displayMode:"displayMode",togglePosition:"togglePosition"},exportAs:["matAccordion"],features:[Us([{provide:mN,useExisting:e}]),Es]});var n=ei(e);return e}(nN),DN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[op,oN,Oy]]}),t}(),EN=["*",[["mat-toolbar-row"]]],AN=["*","mat-toolbar-row"],ON=nC(function(){return function(t){this._elementRef=t}}()),IN=function(){function t(){}return t.\u0275fac=function(e){return new(e||t)},t.\u0275dir=Ee({type:t,selectors:[["mat-toolbar-row"]],hostAttrs:[1,"mat-toolbar-row"],exportAs:["matToolbarRow"]}),t}(),PN=function(t){function e(e,n,i){var r=t.call(this,e)||this;return r._platform=n,r._document=i,r}return r(e,t),e.prototype.ngAfterViewInit=function(){var t=this;yi()&&this._platform.isBrowser&&(this._checkToolbarMixedModes(),this._toolbarRows.changes.subscribe((function(){return t._checkToolbarMixedModes()})))},e.prototype._checkToolbarMixedModes=function(){var t=this;this._toolbarRows.length&&Array.from(this._elementRef.nativeElement.childNodes).filter((function(t){return!(t.classList&&t.classList.contains("mat-toolbar-row"))})).filter((function(e){return e.nodeType!==(t._document?t._document.COMMENT_NODE:8)})).some((function(t){return!(!t.textContent||!t.textContent.trim())}))&&function(){throw Error("MatToolbar: Attempting to combine different toolbar modes. Either specify multiple `` elements explicitly or just place content inside of a `` for a single row.")}()},e.\u0275fac=function(t){return new(t||e)(Ia(Ks),Ia(gv),Ia(vc))},e.\u0275cmp=we({type:e,selectors:[["mat-toolbar"]],contentQueries:function(t,e,n){var i;1&t&&cl(n,IN,!1),2&t&&al(i=hl())&&(e._toolbarRows=i)},hostAttrs:[1,"mat-toolbar"],hostVars:4,hostBindings:function(t,e){2&t&&ls("mat-toolbar-multiple-rows",e._toolbarRows.length>0)("mat-toolbar-single-row",0===e._toolbarRows.length)},inputs:{color:"color"},exportAs:["matToolbar"],features:[Es],ngContentSelectors:AN,decls:2,vars:0,template:function(t,e){1&t&&(Xa(EN),Qa(0),Qa(1,1))},styles:["@media (-ms-high-contrast:active){.mat-toolbar{outline:solid 1px}}.mat-toolbar-row,.mat-toolbar-single-row{display:flex;box-sizing:border-box;padding:0 16px;width:100%;flex-direction:row;align-items:center;white-space:nowrap}.mat-toolbar-multiple-rows{display:flex;box-sizing:border-box;flex-direction:column;width:100%}.mat-toolbar-multiple-rows{min-height:64px}.mat-toolbar-row,.mat-toolbar-single-row{height:64px}@media (max-width:599px){.mat-toolbar-multiple-rows{min-height:56px}.mat-toolbar-row,.mat-toolbar-single-row{height:56px}}"],encapsulation:2,changeDetection:0}),e}(ON),TN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},imports:[[tC],tC]}),t}(),RN=function(){function t(){}return t.\u0275mod=Se({type:t}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[{provide:qC,useValue:{float:"always"}},{provide:uC,useValue:udsData.language}],imports:[op,TN,yx,cP,OA,DN,cx,uD,lI,wA,CL,bC,YO,BA,ZA,KI,Bj,lk,tN,TL,cR,HT,eS,pP]}),t}();function MN(t,e){if(1&t){var n=za();Fa(0,"button",6),qa("click",(function(t){Ue(n);var i=e.$implicit;return Za().changeLang(i)})),_s(1),La()}if(2&t){var i=e.$implicit;vr(1),ws(i.name)}}function FN(t,e){if(1&t&&(Fa(0,"button",12),Fa(1,"i",7),_s(2,"face"),La(),_s(3),La()),2&t){var n=Za();Ra("matMenuTriggerFor",Oa(7)),vr(3),ws(n.api.user.user)}}function LN(t,e){if(1&t&&(Fa(0,"button",18),_s(1),Fa(2,"i",7),_s(3,"arrow_drop_down"),La(),La()),2&t){var n=Za();Ra("matMenuTriggerFor",Oa(7)),vr(1),Cs("",n.api.user.user," ")}}var jN=function(){function t(t){this.api=t,this.isNavbarCollapsed=!0;var e=t.config.language;this.langs=[];for(var n=0,i=t.config.available_languages;n .mat-button[_ngcontent-%COMP%]{padding-left:1.5rem}.icon[_ngcontent-%COMP%]{width:24px;margin:0 1em 0 0}"]}),t}();function VN(t,e){1&t&&ja(0,"div",1),2&t&&Ra("innerHTML",Za().messages,Ui)}var zN=function(){function t(t){this.api=t,this.messages="",this.visible=!1}return t.prototype.ngOnInit=function(){var t=this;if(this.api.notices.length>0){var e='
';this.messages='
'+e+this.api.notices.map((function(t){return t.replace(/ /gm," ").replace(/([A-Z]+[A-Z]+)/gm,"$1").replace(/([0-9]+)/gm,"$1")})).join("
"+e)+"
",this.api.gui.alert("",this.messages,0,"80%").subscribe((function(){t.visible=!0}))}},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-notices"]],decls:1,vars:1,consts:[["class","notice",3,"innerHTML",4,"ngIf"],[1,"notice",3,"innerHTML"]],template:function(t,e){1&t&&Aa(0,VN,1,1,"div",0),2&t&&Ra("ngIf",e.visible)},directives:[Sd],styles:[".notice[_ngcontent-%COMP%]{display:block} .warn-notice-container{background:#4682b4;border-radius:3px;box-shadow:0 4px 20px 0 rgba(0,0,0,.14),0 7px 10px -5px rgba(70,93,156,.4);box-sizing:border-box;color:#fff;margin:1rem 2rem 0;padding:15px;word-wrap:break-word;display:flex;flex-direction:column} .warn-notice{display:block;width:100%;text-align:center;font-size:1.1em;margin-bottom:.5rem}"]}),t}(),HN=function(){function t(){}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-footer"]],decls:4,vars:0,consts:[["href","https://www.udsenterprise.com"]],template:function(t,e){1&t&&(Fa(0,"div"),_s(1,"\xa9 2012-2020 "),Fa(2,"a",0),_s(3,"Virtual Cable S.L.U."),La(),La())},styles:[""]}),t}(),UN=function(){function t(){this.title="uds admin"}return t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-root"]],decls:8,vars:0,consts:[[1,"page"],[1,"content"],[1,"footer"]],template:function(t,e){1&t&&(ja(0,"uds-navbar"),ja(1,"uds-sidebar"),Fa(2,"div",0),Fa(3,"div",1),ja(4,"uds-notices"),ja(5,"router-outlet"),La(),Fa(6,"div",2),ja(7,"uds-footer"),La(),La())},directives:[jN,BN,zN,Ng,HN],styles:[".page[_ngcontent-%COMP%]{display:flex;flex-direction:column;height:100%}.footer[_ngcontent-%COMP%]{flex-shrink:0;margin:1em;height:1em;display:flex;flex-direction:row;justify-content:flex-end}.content[_ngcontent-%COMP%]{flex:1 0 auto;width:calc(100% - 64px);margin:4rem auto auto 56px;padding-left:8px;overflow-x:hidden}"]}),t}(),qN=function(t){function e(){var e=t.call(this)||this;return e.itemsPerPageLabel=django.gettext("Items per page"),e}return r(e,t),e.\u0275prov=yt({token:e,factory:e.\u0275fac=function(t){return new(t||e)}}),e}(LA),WN=function(){function t(){}return t.prototype.transform=function(t,e){return Array.from(t)},t.\u0275fac=function(e){return new(e||t)},t.\u0275pipe=Ae({name:"iterable",type:t,pure:!0}),t}(),GN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-text"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:6,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","disabled","maxlength","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly)("maxlength",e.field.gui.length||128))},directives:[sD,tD,uI,mD,wD,AE,qE,XE],styles:[""]}),t}(),YN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-numeric"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","number",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI,MD,mD,wD,AE,qE],styles:[""]}),t}(),KN=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-password"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","password",3,"ngModel","placeholder","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI,mD,wD,AE,qE],styles:[""]}),t}(),ZN=function(){function t(){}return t.prototype.ngOnInit=function(){""!==this.field.value&&void 0!==this.field.value||(this.field.value=this.field.gui.defvalue)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-hidden"]],inputs:{field:"field"},decls:0,vars:0,template:function(t,e){},styles:[""]}),t}(),$N=function(){function t(){}return t.prototype.ngOnInit=function(){this.field.value=this.field.gui.defvalue||this.field.value},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-textbox"]],inputs:{field:"field",value:"value"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","auto"],["matInput","","type","text",3,"ngModel","placeholder","required","readonly","ngModelChange"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"textarea",1),qa("ngModelChange",(function(t){return e.field.value=t})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",e.field.gui.required)("readonly",e.field.gui.rdonly))},directives:[sD,tD,uI,mD,wD,AE,qE],styles:[""]}),t}();function XN(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",3),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function QN(t,e){if(1&t&&(Fa(0,"mat-option",4),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}var JN=function(){function t(){this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>0&&(this.field.value=this.field.gui.values[0].id),this.field.value=""+this.field.value},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-choice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[[3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("ngModelChange",(function(t){return e.field.value=t}))("valueChange",(function(t){return e.changed.emit(e)})),Aa(4,XN,1,0,"uds-mat-select-search",1),Aa(5,QN,2,2,"mat-option",2),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.value)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,Sd,xd,fI,VC],styles:[""]}),t}();function tB(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",3),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function eB(t,e){if(1&t&&(Fa(0,"mat-option",4),_s(1),La()),2&t){var n=e.$implicit;Ra("value",n.id),vr(1),Cs(" ",n.text," ")}}var nB=function(){function t(){this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=void 0,void 0!==this.field.values?this.field.values.forEach((function(t,e,n){n[e]=""+t.id})):this.field.values=new Array},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-multichoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:6,vars:7,consts:[["multiple","",3,"ngModel","placeholder","required","disabled","ngModelChange","valueChange"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("ngModelChange",(function(t){return e.field.values=t}))("valueChange",(function(t){return e.changed.emit(e)})),Aa(4,tB,1,0,"uds-mat-select-search",1),Aa(5,eB,2,2,"mat-option",2),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("ngModel",e.field.values)("placeholder",e.field.gui.tooltip)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,Sd,xd,fI,VC],styles:[""]}),t}();function iB(t,e){if(1&t){var n=za();Fa(0,"div",12),Fa(1,"div",13),_s(2),La(),Fa(3,"div",14),_s(4," \xa0"),Fa(5,"a",15),qa("click",(function(t){Ue(n);var i=e.index;return Za().removeElement(i)})),Fa(6,"i",16),_s(7,"close"),La(),La(),La(),La()}if(2&t){var i=e.$implicit;vr(2),Cs(" ",i," ")}}var rB=function(){function t(t,e,n,i){var r=this;this.api=t,this.rest=e,this.dialogRef=n,this.data=i,this.values=[],this.input="",this.onSave=new Zu(!0),this.data.values.forEach((function(t){return r.values.push(t)}))}return t.launch=function(e,n,i){var r=window.innerWidth<800?"50%":"30%";return e.gui.dialog.open(t,{width:r,data:{title:n,values:i},disableClose:!0}).componentInstance.onSave},t.prototype.addElements=function(){var t=this;this.input.split(",").forEach((function(e){t.values.push(e)})),this.input=""},t.prototype.checkKey=function(t){"Enter"===t.code&&this.addElements()},t.prototype.removeAll=function(){this.values.length=0},t.prototype.removeElement=function(t){this.values.splice(t,1)},t.prototype.save=function(){var t=this;this.data.values.length=0,this.values.forEach((function(e){return t.data.values.push(e)})),this.onSave.emit(this.values),this.dialogRef.close()},t.prototype.ngOnInit=function(){},t.\u0275fac=function(e){return new(e||t)(Ia(rS),Ia(SS),Ia(QC),Ia(JC))},t.\u0275cmp=we({type:t,selectors:[["uds-editlist-editor"]],decls:23,vars:3,consts:[["mat-dialog-title",""],[1,"content"],[1,"list"],["class","elem",4,"ngFor","ngForOf"],[1,"buttons"],["mat-raised-button","","color","warn",3,"click"],[1,"input"],[1,"example-full-width"],["type","text","matInput","",3,"ngModel","keyup","ngModelChange"],["mat-button","","matSuffix","",1,"material-icons",3,"click"],["mat-raised-button","","mat-dialog-close","","color","warn"],["mat-raised-button","","color","primary",3,"click"],[1,"elem"],[1,"val"],[1,"remove"],[3,"click"],[1,"material-icons"]],template:function(t,e){1&t&&(Fa(0,"h4",0),_s(1),La(),Fa(2,"mat-dialog-content"),Fa(3,"div",1),Fa(4,"div",2),Aa(5,iB,8,1,"div",3),La(),Fa(6,"div",4),Fa(7,"button",5),qa("click",(function(t){return e.removeAll()})),Fa(8,"uds-translate"),_s(9,"Remove all"),La(),La(),La(),Fa(10,"div",6),Fa(11,"mat-form-field",7),Fa(12,"input",8),qa("keyup",(function(t){return e.checkKey(t)}))("ngModelChange",(function(t){return e.input=t})),La(),Fa(13,"button",9),qa("click",(function(t){return e.addElements()})),Fa(14,"uds-translate"),_s(15,"Add"),La(),La(),La(),La(),La(),La(),Fa(16,"mat-dialog-actions"),Fa(17,"button",10),Fa(18,"uds-translate"),_s(19,"Cancel"),La(),La(),Fa(20,"button",11),qa("click",(function(t){return e.save()})),Fa(21,"uds-translate"),_s(22,"Ok"),La(),La(),La()),2&t&&(vr(1),Cs(" ",e.data.title,"\n"),vr(4),Ra("ngForOf",e.values),vr(7),Ra("ngModel",e.input))},directives:[ax,sx,xd,mx,vx,sD,uI,mD,wD,AE,iD,ux,ox],styles:[".content[_ngcontent-%COMP%]{width:100%;justify-content:space-between;justify-self:center}.content[_ngcontent-%COMP%], .list[_ngcontent-%COMP%]{display:flex;flex-direction:column}.list[_ngcontent-%COMP%]{margin:1rem;height:16rem;overflow-y:auto;border-color:#333;border-radius:1px;box-shadow:0 1px 4px 0 rgba(0,0,0,.14);padding:.5rem}.buttons[_ngcontent-%COMP%]{display:flex;justify-content:flex-end;margin-right:1rem}.input[_ngcontent-%COMP%]{margin:0 1rem}.elem[_ngcontent-%COMP%]{font-family:Courier New,Courier,monospace;font-size:1.2rem;display:flex;justify-content:space-between;white-space:nowrap;flex-wrap:nowrap;margin-right:.4rem}.elem[_ngcontent-%COMP%]:hover{background-color:#333;color:#fff;cursor:default}.val[_ngcontent-%COMP%]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding-right:.2rem}.material-icons[_ngcontent-%COMP%]{font-size:1em;padding-bottom:1px}.material-icons[_ngcontent-%COMP%]:hover{cursor:pointer;color:red}.mat-dialog-actions[_ngcontent-%COMP%]{justify-content:flex-end}"]}),t}(),oB=function(){function t(t){this.api=t,this.changed=new Zu}return t.prototype.ngOnInit=function(){},t.prototype.launch=function(){var t=this;void 0===this.field.values&&(this.field.values=[]),rB.launch(this.api,this.field.gui.label,this.field.values).subscribe((function(e){t.changed.emit({field:t.field})}))},t.prototype.getValue=function(){if(void 0===this.field.values)return"";var t=this.field.values.filter((function(t,e,n){return e<5})).join(", ");return this.field.values.length>5&&(t+=django.gettext(", (%i more items)").replace("%i",""+(this.field.values.length-5))),t},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-field-editlist"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:4,vars:5,consts:[["appearance","standard","floatLabel","always"],["matInput","","type","text",1,"editlist",3,"readonly","value","placeholder","disabled","click"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("click",(function(t){return e.launch()})),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("readonly",!0)("value",e.getValue())("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly))},directives:[sD,tD,uI],styles:[".editlist[_ngcontent-%COMP%]{cursor:pointer}"]}),t}(),aB=function(){function t(){this.changed=new Zu}return t.prototype.ngOnInit=function(){var t;this.field.value=LI(""===(t=this.field.value)||null==t?this.field.gui.defvalue:this.field.value)},t.prototype.getValue=function(){return LI(this.field.value)?django.gettext("Yes"):django.gettext("No")},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-checkbox"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:5,vars:5,consts:[[1,"mat-form-field-infix"],[1,"label"],[3,"ngModel","required","disabled","ngModelChange","change"]],template:function(t,e){1&t&&(Fa(0,"div",0),Fa(1,"span",1),_s(2),La(),Fa(3,"mat-slide-toggle",2),qa("ngModelChange",(function(t){return e.field.value=t}))("change",(function(t){return e.changed.emit(e)})),_s(4),La(),La()),2&t&&(vr(2),ws(e.field.gui.label),vr(1),Ra("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(1),Cs(" ",e.getValue()," "))},directives:[aR,uR,wD,AE,qE],styles:[".label[_ngcontent-%COMP%]{color:rgba(0,0,0,.6);display:block;font-weight:400;left:0;line-height:18px;overflow:hidden;pointer-events:none;position:absolute;text-align:left;text-overflow:ellipsis;top:.5em;transform:matrix(.75,0,0,.75,0,-21.5);transform-origin:0 0;white-space:nowrap}"]}),t}();function sB(t,e){if(1&t&&ja(0,"div",5),2&t){var n=Za().$implicit;Ra("innerHTML",Za().asIcon(n),Ui)}}function uB(t,e){if(1&t&&(Fa(0,"div"),Aa(1,sB,1,1,"div",4),La()),2&t){var n=e.$implicit,i=Za();vr(1),Ra("ngIf",n.id==i.field.value)}}function lB(t,e){if(1&t){var n=za();Fa(0,"uds-mat-select-search",6),qa("changed",(function(t){return Ue(n),Za().filter=t})),La()}}function cB(t,e){if(1&t&&(Fa(0,"mat-option",7),ja(1,"div",5),La()),2&t){var n=e.$implicit,i=Za();Ra("value",n.id),vr(1),Ra("innerHTML",i.asIcon(n),Ui)}}var dB=function(){function t(t){this.api=t,this.filter="",this.changed=new Zu}return t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,""===this.field.value&&this.field.gui.values.length>=0&&(this.field.value=this.field.gui.values[0].id)},t.prototype.asIcon=function(t){return this.api.safeString(this.api.gui.icon(t.img)+t.text)},t.prototype.filteredValues=function(){if(""===this.filter)return this.field.gui.values;var t=this.filter.toLocaleLowerCase();return this.field.gui.values.filter((function(e){return e.text.toLocaleLowerCase().includes(t)}))},t.\u0275fac=function(e){return new(e||t)(Ia(rS))},t.\u0275cmp=we({type:t,selectors:[["uds-field-imgchoice"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:8,vars:8,consts:[[3,"placeholder","ngModel","required","disabled","valueChange","ngModelChange"],[4,"ngFor","ngForOf"],[3,"changed",4,"ngIf"],[3,"value",4,"ngFor","ngForOf"],[3,"innerHTML",4,"ngIf"],[3,"innerHTML"],[3,"changed"],[3,"value"]],template:function(t,e){1&t&&(Fa(0,"mat-form-field"),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-select",0),qa("valueChange",(function(t){return e.changed.emit(e)}))("ngModelChange",(function(t){return e.field.value=t})),Fa(4,"mat-select-trigger"),Aa(5,uB,2,1,"div",1),La(),Aa(6,lB,1,0,"uds-mat-select-search",2),Aa(7,cB,2,2,"mat-option",3),La(),La()),2&t&&(vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("placeholder",e.field.gui.tooltip)("ngModel",e.field.value)("required",!0===e.field.gui.required)("disabled",!0===e.field.gui.rdonly),vr(2),Ra("ngForOf",e.field.gui.values),vr(1),Ra("ngIf",e.field.gui.values.length>10),vr(1),Ra("ngForOf",e.filteredValues()))},directives:[sD,tD,_A,wD,AE,qE,bA,xd,Sd,fI,VC],styles:[""]}),t}(),pB=function(){function t(){this.changed=new Zu,this.value=new Date}return Object.defineProperty(t.prototype,"date",{get:function(){return this.value},set:function(t){this.value!==t&&(this.value=t,this.field.value=II("%Y-%m-%d",this.value))},enumerable:!0,configurable:!0}),t.prototype.ngOnInit=function(){this.field.value=this.field.value||this.field.gui.defvalue,"2000-01-01"===this.field.value?this.field.value=II("%Y-01-01"):"2000-01-01"===this.field.value&&(this.field.value=II("%Y-12-31"));var t=this.field.value.split("-");3===t.length&&(this.value=new Date(+t[0],+t[1]-1,+t[2]))},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-date"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:6,consts:[[1,"oneHalf"],["matInput","",3,"matDatepicker","ngModel","placeholder","disabled","ngModelChange"],["matSuffix","",3,"for"],["endDatePicker",""]],template:function(t,e){if(1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"input",1),qa("ngModelChange",(function(t){return e.date=t})),La(),ja(4,"mat-datepicker-toggle",2),ja(5,"mat-datepicker",null,3),La()),2&t){var n=Oa(6);vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("matDatepicker",n)("ngModel",e.date)("placeholder",e.field.gui.tooltip)("disabled",!0===e.field.gui.rdonly),vr(1),Ra("for",n)}},directives:[sD,tD,uI,bL,mD,wD,AE,wL,iD,mL],styles:[""]}),t}();function hB(t,e){if(1&t){var n=za();Fa(0,"mat-chip",5),qa("removed",(function(t){Ue(n);var i=e.$implicit;return Za().remove(i)})),_s(1),Fa(2,"i",6),_s(3,"cancel"),La(),La()}if(2&t){var i=e.$implicit,r=Za();Ra("selectable",!1)("removable",!0!==r.field.gui.rdonly),vr(1),Cs(" ",i," ")}}var fB,mB,gB,yB=function(){function t(){this.separatorKeysCodes=[13,188],this.changed=new Zu}return t.prototype.ngOnInit=function(){void 0===this.field.values&&(this.field.values=new Array,this.field.value=void 0),this.field.values.forEach((function(t,e,n){""===t.trim()&&n.splice(e,1)}))},t.prototype.add=function(t){var e=t.input,n=t.value;(n||"").trim()&&this.field.values.push(n.trim()),e&&(e.value="")},t.prototype.remove=function(t){var e=this.field.values.indexOf(t);e>=0&&this.field.values.splice(e,1)},t.\u0275fac=function(e){return new(e||t)},t.\u0275cmp=we({type:t,selectors:[["uds-field-tags"]],inputs:{field:"field"},outputs:{changed:"changed"},decls:7,vars:8,consts:[["appearance","standard","floatLabel","always"],[3,"selectable","disabled","change"],["chipList",""],[3,"selectable","removable","removed",4,"ngFor","ngForOf"],[3,"placeholder","matChipInputFor","matChipInputSeparatorKeyCodes","matChipInputAddOnBlur","matChipInputTokenEnd"],[3,"selectable","removable","removed"],["matChipRemove","",1,"material-icons"]],template:function(t,e){if(1&t&&(Fa(0,"mat-form-field",0),Fa(1,"mat-label"),_s(2),La(),Fa(3,"mat-chip-list",1,2),qa("change",(function(t){return e.changed.emit(e)})),Aa(5,hB,4,3,"mat-chip",3),Fa(6,"input",4),qa("matChipInputTokenEnd",(function(t){return e.add(t)})),La(),La(),La()),2&t){var n=Oa(4);vr(2),Cs(" ",e.field.gui.label," "),vr(1),Ra("selectable",!1)("disabled",!0===e.field.gui.rdonly),vr(2),Ra("ngForOf",e.field.values),vr(1),Ra("placeholder",e.field.gui.tooltip)("matChipInputFor",n)("matChipInputSeparatorKeyCodes",e.separatorKeysCodes)("matChipInputAddOnBlur",!0)}},directives:[sD,tD,$j,xd,Qj,qj,Wj],styles:[".mat-chip-trailing-icon[_ngcontent-%COMP%]{position:relative;top:-4px;left:-4px}mat-form-field[_ngcontent-%COMP%]{width:99.5%}"]}),t}(),vB=function(){function t(){}return t.\u0275mod=Se({type:t,bootstrap:[UN]}),t.\u0275inj=vt({factory:function(e){return new(e||t)},providers:[rS,SS,{provide:LA,useClass:qN}],imports:[[Bp,nA,iA,Ch,Dj,Ww,RN]]}),t}();fB=[UN,jN,vx,kx,HN,OS,BN,JP,iT,ET,AT,rM,Rk,Ik,Ck,GN,YN,KN,ZN,$N,JN,nB,fI,oB,aB,dB,pB,yB,hT,SI,wI,bT,vF,rB,yT,JR,RR,UR,$T,xR,tM,eM,nM,iM,ZM,uM,_M,kM,SM,HM,mM,DM,UM,bF,MF,kF,FF,LF,KL,qL,$L,tj,rj,ij,aj,xj,kj,zN,_d,wd,xd,Sd,Fd,Md,Od,Id,Pd,Td,Rd,OE,YD,XD,mD,MD,BD,pD,GD,$D,jD,wD,CD,qE,ZE,XE,JE,WE,YE,AE,SE,wE,TE,ME,zE,LE,NE,Ng,Tg,Rg,Fg,Pf,PN,IN,My,mx,gx,rP,eP,uP,JI,EA,AA,SN,_N,wN,CN,kN,xN,yN,$C,ox,ax,sx,ux,KS,sD,JS,tD,eD,nD,iD,eI,nI,uI,rI,_A,bA,VC,LC,lL,eL,mL,fL,bL,wL,_L,nL,sL,iL,uL,TO,MO,VO,LO,RO,HO,FO,zO,jO,BO,NO,UO,WO,qO,GO,NA,UA,KA,GI,YI,Fj,jj,ek,Yx,Kx,sk,uk,Gx,$j,qj,Qj,Wj,Hj,Uj,IL,PL,uR,aR,LT,zT,jT,tS,dP],mB=[bx,WN,hP,Vd,qd,zd,Zd,rp,Qd,Jd,Ud,tp,Wd,Yd,Kd,$d],(gB=Ck.\u0275cmp).directiveDefs=function(){return fB.map(Ce)},gB.pipeDefs=function(){return mB.map(xe)},function(){if(gi)throw new Error("Cannot enable prod mode after platform setup.");mi=!1}(),jp().bootstrapModule(vB).catch((function(t){return console.log(t)}))}},[[0,0]]]); \ No newline at end of file diff --git a/server/src/uds/templates/uds/admin/index.html b/server/src/uds/templates/uds/admin/index.html index 847fc8e3..5e2fe52c 100644 --- a/server/src/uds/templates/uds/admin/index.html +++ b/server/src/uds/templates/uds/admin/index.html @@ -92,6 +92,6 @@ - +